/* دوّار landing — bright and airy: soft stone canvas, white cards, one emerald accent, gold hairlines.
   Thmanyah Sans. Strict CSP: no inline styles, everything lives here. */
@font-face { font-family: 'Thmanyah Sans'; src: url(fonts/sans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url(fonts/sans-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url(fonts/sans-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F5F5F2;
  --bg-2: #EDEDE8;
  --surface: #FFFFFF;
  --raised: #FAFAF8;
  --ink: #222725;
  --ink-2: #3A413D;
  --muted: #666D68;
  --line: #E5E5DF;
  --line-2: #D8D8D1;
  --accent: #0E6B53;
  --accent-hover: #0B5844;
  --accent-2: #14896A;
  --accent-soft: #E4F1EB;
  --gold: #B08A3E;
  --danger: #B42318;
  --radius: 22px;
  --shadow-card: 0 1px 2px rgba(20, 30, 25, .04), 0 12px 32px -18px rgba(20, 40, 30, .16);
  --font: 'Thmanyah Sans', 'Dubai', 'Segoe UI', Tahoma, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; text-wrap: balance; letter-spacing: 0; font-weight: 500; }
p { margin: 0; }
kbd {
  font-family: var(--font); font-size: .8em; font-weight: 700; direction: ltr; display: inline-block; unicode-bidi: isolate;
  padding: 0 .55em; border: 1px solid var(--line-2); border-bottom-width: 2.5px; border-radius: 7px;
  background: var(--surface); color: var(--ink); line-height: 1.75;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.container { max-width: 1080px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.container-narrow { max-width: 780px; }
.section { padding-block: clamp(56px, 7.5vw, 100px); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(32px, 5vw, 56px); display: grid; gap: 10px; }
.section-head-start { text-align: start; margin-inline: 0; }
.kicker { color: var(--accent); font-weight: 700; font-size: 15px; }
.section-head h2, .privacy-copy h2, .get-copy h2 { font-size: clamp(30px, 4.2vw, 50px); }
.sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; cursor: pointer;
  font: 700 16px/1 var(--font); padding: .95em 1.4em; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 20px -10px rgba(14, 107, 83, .6); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet, .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn-quiet:hover, .btn-ghost:hover { border-color: var(--line-2); background: var(--raised); }
.btn-sm { font-size: 14.5px; padding: .72em 1.1em; border-radius: 11px; }
.btn-lg { font-size: 17px; padding: 1.05em 1.6em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 245, 242, .84); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 9px; }
.nav a:hover { color: var(--ink); background: rgba(0,0,0,.04); }

/* ---------------------------------------------------------------- file icons (shared) */
.ficon { display: block; width: 48px; height: 60px; flex: none; }
.ficon svg { width: 100%; height: 100%; overflow: visible; display: block; filter: drop-shadow(0 3px 5px rgba(20, 30, 25, .14)); }
.ficon:empty { background: #fff; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.fi-page { fill: #fff; stroke: rgba(30, 40, 35, .14); stroke-width: 1; }
.fi-fold { fill: #ECECE7; }
.fi-line { stroke: #D9D9D3; stroke-width: 2; stroke-linecap: round; }
.fi-ext { font: 700 8.5px var(--font); fill: #fff; text-anchor: middle; letter-spacing: .02em; }
.fi-thumb-frame { fill: #fff; stroke: rgba(30, 40, 35, .14); }

.dfile { display: grid; justify-items: center; gap: 5px; width: 104px; text-align: center; }
.fname {
  font-size: 12.5px; line-height: 1.7; font-weight: 500; color: var(--ink); padding: 0 8px; border-radius: 6px;
  max-width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fname.is-sel { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- the wheel (shared SVG) */
.wheel { position: relative; width: 300px; aspect-ratio: 1; }
.wheel svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 16px 26px rgba(22, 40, 32, .16)); }
.w-disc { stroke: rgba(30, 40, 35, .07); stroke-width: 1; }
.w-slice { stroke: rgba(30, 40, 35, .12); stroke-width: 1; transition: d .12s ease-out; }
.w-slice.hi { stroke: rgba(8, 60, 45, .35); }
.w-label { font: 700 12px var(--font); fill: #1E2421; text-anchor: middle; }
.w-label.fmt { font-size: 16px; }
.w-label.hi { fill: #fff; }
.w-icon { fill: none; stroke: #2D3531; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.w-icon.hi { stroke: #fff; }
.w-hub { fill: #fff; }
.w-hub-ring { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .75; }
.w-echo { font: 700 14px var(--font); fill: var(--ink); text-anchor: middle; }
.w-cap { font: 500 calc(11px * var(--fs, 1)) var(--font); fill: var(--muted); text-anchor: middle; }
.wheel.is-open { animation: bloom .24s cubic-bezier(.2, .9, .3, 1.15); }
.wheel.is-closing { animation: wilt .18s ease-in forwards; }
@keyframes bloom { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes wilt { to { transform: scale(.82); opacity: 0; } }

/* ---------------------------------------------------------------- keycaps */
.keycap {
  --kw: 152px; --kh: 74px;
  position: relative; display: block; width: var(--kw); height: var(--kh); border-radius: 16px;
  background: linear-gradient(180deg, #E4E1D8, #CFCABD);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 -2px 0 rgba(0,0,0,.06) inset, 0 3px 0 #B9B3A4, 0 16px 24px -12px rgba(50, 42, 24, .45);
  transition: transform .09s ease-out, box-shadow .09s ease-out;
}
.kc-top {
  position: absolute; inset: 5px 8px 11px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 0;
  background: linear-gradient(180deg, #F7F6F1, #E8E5DC); box-shadow: 0 1px 0 #fff inset, 0 2px 5px rgba(80, 70, 40, .12);
  color: #57544B; direction: ltr;
}
.kc-glyph { font: 400 15px/1 'Segoe UI Symbol', var(--font); }
.kc-label { font: 500 15px/1.3 var(--font); }
.keycap-wide { --kw: 230px; }
.keycap.is-down { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 #B9B3A4, 0 6px 10px -6px rgba(50, 42, 24, .45); }
.keycap-sm { --kw: 80px; --kh: 66px; border-radius: 14px; background: linear-gradient(180deg, #F2F2EE, #DEDED7); box-shadow: 0 3px 0 #CFCFC7, 0 10px 18px -12px rgba(30, 40, 35, .35); }
.keycap-sm .kc-top { inset: 4px 5px 9px; border-radius: 11px; background: linear-gradient(180deg, #FFFFFF, #F4F4F0); justify-items: start; padding-inline: 10px; gap: 4px; align-content: center; }
.keycap-sm .kc-glyph { font-size: 20px; color: #6A6A63; }
.keycap-sm .kc-label { font-size: 12px; color: #6A6A63; }
.keycap-space { --kw: 150px; }
.keycap-space .kc-top { justify-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: 24px clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-inner { display: grid; justify-items: center; text-align: center; }
.stage { position: relative; width: min(600px, 100%); height: 400px; user-select: none; -webkit-user-select: none; pointer-events: none; }
.stage > * { position: absolute; }
.stage .dfile { left: 0; top: 0; transition: opacity .3s; }
.stage-src .ficon, .stage-out .ficon { width: 52px; height: 64px; }
.stage .ghost { z-index: 4; opacity: 0; }
.stage .ghost .ficon { width: 52px; height: 64px; opacity: .75; }
.stage .stage-wheel { z-index: 3; left: 0; top: 0; opacity: 0; }
.stage .stage-wheel.is-on { opacity: 1; }
.stage .cursor { z-index: 5; left: 0; top: 0; width: 24px; height: 24px; fill: #151917; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; opacity: 0; transition: opacity .25s; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.3)); }
.stage .keycap { left: 50%; bottom: 8px; margin-inline-start: 0; translate: -50% 0; z-index: 1; }
.stage .stage-out { opacity: 0; }
.stage .stage-out.is-in { opacity: 1; animation: pop .34s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
.stage-toast {
  top: 4px; left: 50%; translate: -50% -8px; z-index: 6; opacity: 0; transition: opacity .3s, translate .3s;
  display: flex; align-items: center; gap: 10px; text-align: start; white-space: nowrap;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 18px;
  box-shadow: 0 14px 30px -16px rgba(20, 40, 30, .35);
}
.stage-toast.is-in { opacity: 1; translate: -50% 0; }
.st-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.st-text { display: grid; line-height: 1.6; }
.st-text b { font-size: 14px; }
.st-text span { font-size: 12.5px; color: var(--muted); }

.hero-copy { display: grid; justify-items: center; gap: 18px; margin-top: 18px; max-width: min(900px, 100%); min-width: 0; }
.hero h1 { font-size: clamp(30px, 9.2vw, 86px); font-weight: 500; line-height: 1.35; white-space: nowrap; }
.lead { color: var(--muted); font-size: clamp(16.5px, 1.6vw, 19px); max-width: 620px; }
.lead-strong { color: var(--ink-2); font-weight: 500; font-size: clamp(16.5px, 1.6vw, 19px); margin-top: -12px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ic { color: var(--accent); }

/* ---------------------------------------------------------------- how it works */
.how-section { padding-top: clamp(24px, 4vw, 48px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 26px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow-card); }
.step-art { height: 170px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; position: relative; overflow: hidden; margin-bottom: 10px; }
.step-no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px; line-height: 1; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; }
.art-drag .ficon { width: 50px; height: 62px; animation: drag-file 3.2s ease-in-out infinite; }
.art-cursor { position: absolute; width: 22px; height: 22px; fill: #151917; stroke: #fff; stroke-width: 1.3; left: calc(50% + 10px); top: calc(50% + 14px); animation: drag-cursor 3.2s ease-in-out infinite; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.3)); }
.art-trail { position: absolute; left: 22%; right: 22%; top: 50%; border-top: 2px dashed var(--line-2); z-index: -0; opacity: .0; animation: trail 3.2s ease-in-out infinite; }
@keyframes drag-file { 0%, 18% { transform: translateX(36px); } 62%, 82% { transform: translateX(-36px) rotate(-4deg); } 100% { transform: translateX(36px); } }
@keyframes drag-cursor { 0%, 18% { transform: translateX(36px); } 62%, 82% { transform: translateX(-36px); } 100% { transform: translateX(36px); } }
@keyframes trail { 0%, 22% { opacity: 0; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
.art-keys { grid-auto-flow: column; gap: 10px; place-content: center; }
.mini-key {
  display: grid; place-items: center; height: 54px; min-width: 64px; padding-inline: 12px; border-radius: 12px; direction: ltr;
  font: 500 14px var(--font); color: #57544B; background: linear-gradient(180deg, #FBFAF6, #ECE9E0);
  box-shadow: 0 1px 0 #fff inset, 0 3px 0 #CBC6B8, 0 10px 16px -10px rgba(50, 42, 24, .45);
  animation: key-tap 3.6s ease-in-out infinite;
}
.mini-key-wide { min-width: 96px; }
.mini-key:nth-child(2) { animation-delay: 1.2s; }
.mini-key:nth-child(3) { animation-delay: 2.4s; }
@keyframes key-tap { 0%, 8%, 100% { transform: none; box-shadow: 0 1px 0 #fff inset, 0 3px 0 #CBC6B8, 0 10px 16px -10px rgba(50, 42, 24, .45); color: #57544B; }
  2%, 6% { transform: translateY(3px); box-shadow: 0 1px 0 #fff inset, 0 0 0 #CBC6B8, 0 4px 8px -6px rgba(50, 42, 24, .45); color: var(--accent); } }
.mini-wheel { width: 150px; }
.mini-wheel svg { filter: drop-shadow(0 10px 16px rgba(22, 40, 32, .14)); }

/* ---------------------------------------------------------------- try it */
.try-section { position: relative; isolation: isolate; padding-block: clamp(56px, 8vw, 96px); overflow: hidden; }
.try-bg { position: absolute; inset: 0; z-index: -2; }
.try-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; }
.try-section::before, .try-section::after { content: ''; position: absolute; inset-inline: 0; z-index: -1; pointer-events: none; }
.try-section::before { top: 0; height: 32%; background: linear-gradient(to bottom, var(--bg), rgba(245,245,242,0)); }
.try-section::after { bottom: 0; height: 22%; background: linear-gradient(to top, var(--bg), rgba(245,245,242,0)); }
.try-inner .section-head { margin-bottom: 8px; }
.try-sub-touch { display: none; }
.desk { position: relative; height: 560px; user-select: none; -webkit-user-select: none; }
.desk-files { position: absolute; inset: 0; }
.file { all: unset; position: absolute; cursor: grab; display: grid; justify-items: center; gap: 5px; width: 104px; padding: 8px 4px; border-radius: 14px; touch-action: none; text-align: center; transition: background .15s; }
.file .fname { background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.file:hover { background: rgba(255,255,255,.28); }
.file:focus-visible { outline: 2.5px solid var(--gold); background: rgba(255,255,255,.3); }
.file.dragging { opacity: .45; }
.file.is-new .fname { background: var(--accent-soft); color: var(--accent); }
.file.is-new { animation: arrive .4s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes arrive { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.f1 { top: 9%; inset-inline-start: 18%; }
.f2 { top: 6%; inset-inline-start: 56%; }
.f3 { top: 34%; inset-inline-start: 80%; }
.f4 { top: 38%; inset-inline-start: 38%; }
.f5 { top: 60%; inset-inline-start: 7%; }
.f6 { top: 62%; inset-inline-start: 63%; }
.desk-note { position: absolute; top: 2%; inset-inline-start: 4%; display: grid; justify-items: start; color: var(--ink-2); font-size: 18px; font-weight: 500; rotate: -4deg; pointer-events: none; }
.desk-note svg { width: 92px; height: 54px; margin-inline-start: 46px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1); }
.desk-bar {
  position: absolute; bottom: 14px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; z-index: 2;
  padding: 6px; border-radius: 999px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(20, 40, 30, .4); max-width: calc(100% - 16px);
}
.desk-modes { display: flex; gap: 4px; }
.mode { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; padding: 4px 12px 4px 8px; border-radius: 999px; line-height: 1.9; white-space: nowrap; color: var(--ink-2); }
.mode kbd { font-size: 11px; padding: 0 6px; line-height: 1.8; }
.mode:hover { background: rgba(255,255,255,.7); }
.mode.on { background: var(--accent); color: #fff; }
.mode.on kbd { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.mode:focus-visible { outline: 2.5px solid var(--gold); }
.sound-btn { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.sound-btn:hover { background: rgba(255,255,255,.8); }
.sound-btn:focus-visible { outline: 2.5px solid var(--gold); }
.sound-btn .ic-off, .sound-btn[aria-pressed="false"] .ic-on { display: none; }
.sound-btn[aria-pressed="false"] .ic-off { display: block; }
.desk-hint { position: absolute; bottom: 72px; inset-inline: 20px; text-align: center; font-size: 15px; color: var(--ink-2); font-weight: 500; pointer-events: none; }
.desk-hint.nudge { color: var(--accent); font-weight: 700; }
.desk .ghost { position: absolute; pointer-events: none; z-index: 5; translate: -50% -50%; width: auto; }
.desk .ghost .ficon { width: 46px; height: 57px; opacity: .85; }
.desk-wheel { position: absolute; z-index: 4; width: min(300px, 84vw); pointer-events: none; }
.toast {
  position: absolute; bottom: 80px; inset-inline-end: 8px; z-index: 6; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center;
  background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; width: min(330px, calc(100% - 16px));
  box-shadow: 0 18px 40px -18px rgba(8,30,22,.4); font-size: 14px; line-height: 1.7; animation: toast-in .3s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast .t-ic { grid-row: span 3; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.toast b { font-size: 15px; }
.toast span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- stats */
.stats-section { padding-block: clamp(48px, 6vw, 72px); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px 32px; text-align: center; display: grid; gap: 6px; justify-items: center; box-shadow: var(--shadow-card); }
.stat-num { font-size: clamp(60px, 7vw, 84px); line-height: 1.2; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats h3 { font-size: 22px; }
.stats p { color: var(--muted); font-size: 15px; max-width: 280px; }

/* ---------------------------------------------------------------- wheels by kind */
.wheels-section { padding-top: clamp(24px, 4vw, 48px); }
.kind-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.kind-tab { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--muted); line-height: 1.8; white-space: nowrap; }
.kind-tab:hover { color: var(--ink); }
.kind-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 16px -10px rgba(20, 40, 30, .3); }
.kind-tab:focus-visible { outline: 2.5px solid var(--gold); }
.kind-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.kind-title { text-align: center; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: clamp(16px, 3vw, 28px); }
.kind-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kind-col { display: grid; justify-items: center; gap: 8px; align-content: start; padding-inline: 16px; }
.kind-col + .kind-col { border-inline-start: 1px solid var(--line); }
.kind-cap { color: var(--muted); font-size: 15px; font-weight: 500; }
.kind-echo { color: var(--muted); font-size: 14.5px; min-height: 1.9em; }
.show-wheel { width: min(340px, 100%); margin-top: 12px; pointer-events: auto; cursor: pointer; touch-action: pan-y; }
.kind-foot { text-align: center; color: var(--muted); font-size: 15px; margin: 22px auto 0; max-width: 640px; }
.kind-card.swap .kind-cols { animation: fade-in .3s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- tools */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px 28px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow-card); }
.tool h3 { font-size: 20px; }
.tool p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.tool-art { height: 168px; display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 8px; }
.art-arrow { color: var(--line-2); width: 22px; height: 22px; }
.pages { display: flex; }
.pages .ficon { width: 38px; height: 48px; margin-inline-start: -14px; }
.pages .ficon:first-child { margin-inline-start: 0; }
.sized { display: grid; justify-items: center; gap: 6px; }
.sized small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.sized-small .ficon { width: 36px; height: 45px; }
.sized-small small { color: var(--accent); }
.fan { display: flex; }
.fan .ficon { width: 40px; height: 50px; margin-inline-start: -16px; }
.fan .ficon:nth-child(1) { rotate: 8deg; }
.fan .ficon:nth-child(2) { rotate: -2deg; translate: 0 -4px; }
.fan .ficon:nth-child(3) { rotate: -10deg; }
.fan .ficon:first-child { margin-inline-start: 0; }
.tool-art-shot { padding: 6px; }
.tool-art-shot img { max-height: 100%; width: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(20, 40, 30, .35); object-fit: cover; }
.tool-art-toast img { border: 0; box-shadow: none; max-width: 92%; height: auto; filter: drop-shadow(0 10px 18px rgba(20, 40, 30, .16)); }
.garble { font: 500 13px/1.6 Consolas, 'Courier New', monospace; color: #A0463F; background: #FBF1EF; padding: 6px 10px; border-radius: 8px; max-width: 46%; overflow-wrap: anywhere; }
.fixed { font-size: 22px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 14px; border-radius: 10px; }
.mini-sheet { display: grid; grid-template-columns: auto auto; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; font-size: 13px; line-height: 1.8; background: #fff; box-shadow: 0 10px 22px -16px rgba(20, 40, 30, .4); }
.mini-sheet span { padding: 4px 14px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); text-align: start; }
.mini-sheet span:nth-child(-n+2) { background: var(--accent-soft); font-weight: 700; color: var(--accent); }
.mini-sheet span:nth-child(odd) { border-inline-start: 0; }
.mini-sheet span:nth-last-child(-n+2) { border-bottom: 0; }
.meta-card { display: grid; justify-items: center; gap: 2px; width: 190px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 22px -16px rgba(20, 40, 30, .4); }
.meta-card .ficon { width: 36px; height: 45px; margin-bottom: 4px; }
.meta-row { display: flex; justify-content: space-between; width: 100%; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); line-height: 2; }
.tag { justify-self: start; font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; line-height: 1.9; }

/* ---------------------------------------------------------------- actions */
.actions-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 18px; align-items: center; }
.actions-wheel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px 22px; display: grid; justify-items: center; gap: 8px; box-shadow: var(--shadow-card); }
.action-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.action-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow-card); }
.action-cards .ic { width: 26px; height: 26px; color: var(--ink-2); stroke-width: 1.6; margin-bottom: 8px; }
.action-cards h3 { font-size: 19px; }
.action-cards p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- formats */
.formats-section { padding-top: clamp(16px, 3vw, 32px); }
.privacy-section { padding-top: clamp(40px, 5vw, 72px); }
.formats { margin: 0; border-top: 1px solid var(--line-2); }
.fmt-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.formats dt { font-weight: 500; font-size: 16.5px; }
.formats dd { margin: 0; }
.fmt-list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.fmt-note { color: var(--muted); font-size: 14px; text-align: end; }

/* ---------------------------------------------------------------- privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.privacy-copy { display: grid; gap: 14px; }
.privacy-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow-card); }
.p-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.p-ic-warn { background: #F3F1EC; color: var(--muted); }
.p-ic .ic { width: 22px; height: 22px; }
.privacy-cards h3 { font-size: 19px; }
.privacy-cards p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------------------------------------------------------------- download */
.get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.get-copy { display: grid; gap: 14px; }
.get-card { background: var(--surface); border: 1px solid #DCE9E2; border-radius: 26px; padding: clamp(24px, 3.4vw, 38px); display: grid; gap: 18px; box-shadow: 0 30px 60px -36px rgba(14, 80, 60, .35); }
.get-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.get-head img { border-radius: 11px; }
.get-head h3 { font-size: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.ticks .ic { color: var(--accent); margin-top: .35em; }
.get-card .btn { justify-self: start; }
.fine { color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 500; padding-block: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; transition: rotate .2s; flex: none; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* ---------------------------------------------------------------- footer */
.site-foot { padding-block: 28px 36px; }
.foot-row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 28px; }
.brand-sm { font-size: 17px; gap: 8px; }
.brand-sm img { border-radius: 6px; }
.foot-by { color: var(--muted); font-size: 14px; }
.foot-by strong { color: var(--ink-2); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.foot-links a, .foot-links button { all: unset; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; line-height: 1.8; }
.foot-links a:hover, .foot-links button:hover { border-color: var(--line-2); }
.foot-links a:focus-visible, .foot-links button:focus-visible { outline: 2.5px solid var(--gold); }

/* ---------------------------------------------------------------- modal (wizard) */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 36, 33, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(500px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface);
  border-radius: 24px; padding: 26px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.4); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 22px; font-weight: 700; }
.modal-close { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.wizard-track { list-style: none; margin: 20px 0 6px; padding: 0; display: flex; justify-content: space-between; position: relative; }
.wizard-track::before { content: ''; position: absolute; top: 15px; inset-inline: 16%; height: 2px; background: var(--line); }
.wizard-step { position: relative; display: grid; justify-items: center; gap: 2px; flex: 1; }
.ws-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 2px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); }
.ws-label { font-size: 13px; color: var(--muted); }
.wizard-step.is-active .ws-dot { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.wizard-step.is-done .ws-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.wizard-step.is-active .ws-label { color: var(--ink); font-weight: 700; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label, .field .label { font-weight: 700; font-size: 15px; }
.req { color: var(--danger); }
.field input, .phone-row select {
  font: 16px var(--font); color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 11px; padding: .7em .9em; width: 100%; min-width: 0;
}
.field input:focus, .phone-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,107,83,.15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.phone-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px; }
.err { display: none; color: var(--danger); font-size: 13.5px; }
.err.show { display: block; }
.pill-row { display: flex; gap: 8px; }
.pill-btn { font: 700 15px var(--font); padding: .5em 1.4em; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; }
.pill-btn.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.consent-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); font-size: 15px; line-height: 1.9; cursor: pointer; }
.consent-card input { margin-top: .5em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent-muted { color: var(--muted); }
.modal .fine { margin-top: 8px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wizard-actions { display: flex; gap: 10px; margin-top: 22px; }
.btn-grow { flex: 1; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 4px auto 10px; }
.success-mark .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.success-title { text-align: center; font-size: 22px; font-weight: 700; }
#success-view .modal-sub { text-align: center; margin-bottom: 16px; }
.alt-link { display: block; text-align: center; margin-top: 10px; font-size: 14px; }
.steps-card { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.steps-card h4 { font-size: 15px; font-weight: 700; }
.steps-card ol { margin: 6px 0 0; padding-inline-start: 1.2em; color: var(--muted); font-size: 14.5px; display: grid; gap: 4px; }

/* Simple pages (privacy, errors) */
.simple-page { background: var(--bg); }
.simple-card { max-width: 760px; margin: 48px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 44px); display: grid; gap: 14px; }
.simple-card h1 { font-size: clamp(26px, 4vw, 34px); }
.simple-card h2 { font-size: 20px; margin-top: 10px; }
.simple-card p, .simple-card li { color: var(--muted); }
.simple-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.simple-head img { border-radius: 9px; }

/* Reveal on scroll (visible by default; animated only when JS marks the page ready). */
.js-ready .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.js-ready .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .head-row .btn { margin-inline-start: auto; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions-grid { grid-template-columns: minmax(0, 1fr); }
  .actions-wheel-card { max-width: 440px; width: 100%; justify-self: center; }
}
@media (max-width: 860px) {
  .steps, .stats { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .privacy, .get { grid-template-columns: minmax(0, 1fr); }
  .fmt-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fmt-note { text-align: start; }
  .f1 { inset-inline-start: 10%; } .f2 { inset-inline-start: 50%; } .f3 { inset-inline-start: 76%; }
  .f4 { inset-inline-start: 30%; } .f5 { inset-inline-start: 4%; } .f6 { inset-inline-start: 58%; }
}
@media (max-width: 700px) {
  .kind-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kind-col + .kind-col { border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .kind-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .kind-tab { flex-direction: column; justify-content: center; gap: 2px; padding: 8px 4px; font-size: 13.5px; text-align: center; white-space: normal; line-height: 1.6; }
  .kind-tab .ic { width: 22px; height: 22px; }
  .tools, .action-cards { grid-template-columns: minmax(0, 1fr); }
  .desk { height: 620px; }
  .desk-note { display: none; }
  .desk-files { inset: 8px 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 4px; justify-items: center; }
  .file { position: relative; inset: auto; width: 100%; max-width: 110px; }
  .file .fname { font-size: 11.5px; line-height: 1.6; max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding-block: 2px; }
  .desk-hint { bottom: 76px; }
  .toast { bottom: 128px; inset-inline: 8px; width: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stage { height: 330px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .section-head h2, .privacy-copy h2, .get-copy h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .phone-row { grid-template-columns: minmax(0, 1fr); }
  .get-card .btn { justify-self: stretch; }
  .foot-links { margin-inline-start: 0; }
  .desk-bar { gap: 2px; padding: 4px; }
  .mode { padding: 4px 9px 4px 6px; font-size: 13px; gap: 4px; }
  .mode kbd { font-size: 10px; padding: 0 4px; }
}
@media (hover: none), (pointer: coarse) {
  .try-sub-desk { display: none; }
  .try-sub-touch { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel.is-open, .file.is-new, .toast, .stage .stage-out.is-in { animation: none; }
  .art-drag .ficon, .art-cursor, .art-trail, .mini-key { animation: none; }
  .js-ready .reveal { opacity: 1; translate: none; transition: none; }
}

/* Speech to text: the wide feature card at the head of the tools grid. */
.tool-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 12px 36px; }
.tool-copy { display: grid; gap: 8px; align-content: start; }
.tag-new { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.ticks-sm { gap: 6px; margin-top: 4px; }
.ticks-sm li { font-size: 15px; color: var(--ink-2); line-height: 1.9; }
.tool-copy p, .ticks-sm li, .faq p, .asls-copy .sub { text-wrap: pretty; }
.nw { white-space: nowrap; }
.tool-art-script { height: auto; min-height: 168px; margin-bottom: 0; }
.script-card { display: grid; width: min(300px, 100%); padding: 10px 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 22px -16px rgba(20, 40, 30, .4); font-size: 13px; line-height: 1.9; }
.script-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.script-head .ficon { width: 20px; height: 25px; }
.script-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; color: var(--ink-2); white-space: nowrap; }
.script-row > span { overflow: hidden; text-overflow: ellipsis; }
.script-row time { font: 500 11.5px/1.9 Consolas, 'Courier New', monospace; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; }
@media (max-width: 700px) { .tool-wide { grid-template-columns: minmax(0, 1fr); } .tool-art-script { order: -1; } }
@media (max-width: 560px) { .tool-art-script .art-src, .tool-art-script .art-arrow { display: none; } .script-card { width: 100%; } }

/* Sponsor: ASLS AI, in its own turquoise (official logo colours) on the page's light card. */
.asls-section { padding-top: 0; }
.asls-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 64px); align-items: center; padding: clamp(26px, 4.5vw, 56px); border-radius: 26px; border: 1px solid #CDE6E8; background: linear-gradient(135deg, #EEF8F8 0%, #FFFFFF 62%); box-shadow: var(--shadow-card); }
.asls-copy { display: grid; gap: 12px; justify-items: start; }
.asls-copy .kicker { color: #087D98; }
.asls-copy h2 { font-size: clamp(30px, 4.2vw, 50px); }
.btn-asls { margin-top: 10px; background: #087D98; color: #fff; border-color: #087D98; box-shadow: 0 8px 20px -10px rgba(8, 125, 152, .6); }
.btn-asls:hover { background: #066A81; }
.asls-side { display: grid; gap: 24px; justify-items: center; }
.asls-logo { width: min(340px, 82%); height: auto; }
.asls-services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.asls-services li { font-size: 14px; font-weight: 500; color: #0B5F72; background: #fff; border: 1px solid #CDE6E8; border-radius: 999px; padding: 2px 14px; line-height: 1.9; }
@media (max-width: 860px) { .asls-card { grid-template-columns: minmax(0, 1fr); } .asls-side { order: -1; } }
@media (max-width: 560px) {
  .asls-copy h2 { font-size: clamp(27px, 7.4vw, 34px); } .btn-asls { width: 100%; } .asls-logo { width: min(260px, 80%); }
  .asls-services { gap: 6px; } .asls-services li { font-size: 13px; padding: 1px 11px; }
}
