/* QuillKey web. Graphite surfaces, the accent as light, layered native windows.
   Surface tokens are DesignTokens.swift; --accent is the one value the accent
   picker rewrites (qk.js), and everything that glows follows it. */
:root {
  --ground: #17191D;
  --tone: #1C2026;
  --card: #1E2126;
  --panel: #24272C;
  --selection: #353A43;
  --line: #2E323A;
  --line2: #3A4049;
  --ink: #F2F4F7;
  --ink2: #B4BCC7;
  --ink3: #9BA5B2;
  --hud: #0A0A0C;
  --accent: #0A84FF;
  --accent-fg: #FFFFFF;
  --accent-ink: #65B1FF;
  --danger: #FF9E93;

  --r-card: 22px;
  --r-row: 12px;
  --r-ctl: 10px;

  --face-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --face-display: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  --face-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground); color: var(--ink);
  font: 500 16px/1.7 var(--face-ui);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
ul { list-style: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px 20px; background: var(--ink); color: var(--ground); border-radius: 8px; transform: translateY(-150%); }
.skip:focus { transform: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 48px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Silkscreen labels: small, uppercase, tightly set, monospaced. */
.silk { font-family: var(--face-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; color: var(--ink3); }

h1, h2 { font-family: var(--face-display); font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 66px); line-height: 1.04; }
h3 { font-family: var(--face-display); letter-spacing: -.025em; text-wrap: balance; }
.lede { color: var(--ink2); font-size: 17px; line-height: 1.8; max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--r-ctl);
  font: 700 16px/1 var(--face-ui); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .16s var(--ease-out), filter .16s, background-color .16s;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 15px 22px; }
.btn-accent { background: var(--accent); color: var(--accent-fg); box-shadow: inset 0 1px rgba(255,255,255,.15), 0 6px 24px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-quiet { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-quiet:hover { background: var(--selection); }
.btn-onaccent { background: var(--accent-fg); color: color-mix(in srgb, var(--accent) 70%, #000); }
.btn-onaccent-quiet { color: var(--accent-fg); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent-fg) 70%, transparent); }
.btn-onaccent-quiet:hover { box-shadow: inset 0 0 0 2px var(--accent-fg); }
.btn-wide { width: 100%; }
.btn-wide .button-price { margin-right: auto; }
.button-price { border-left: 1px solid currentColor; padding-left: 14px; }
.btn .ic { width: 18px; height: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav: the masthead minimises once the page scrolls. */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.075); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 88px; transition: height .25s var(--ease-out); }
.nav.mini .nav-in { height: 64px; }
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 1 176px; min-width: 0; transition: flex-basis .25s var(--ease-out); }
.nav.mini .brand { flex-basis: 150px; }
.brand-lockup { display: block; width: 100%; height: auto; }
.brand-lockup .word-accent { fill: var(--accent-ink); }
.brand-lockup .brand-wave > g { fill: var(--accent); }
.links { margin-left: auto; display: flex; gap: 2px; }
.links a { color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 12px 10px; border-radius: 8px; transition: color .15s; }
.links a:hover { color: var(--ink); }
.btn-nav { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-ctl); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .ic { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: 52px; width: 250px; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 8px; box-shadow: 0 24px 50px rgba(0,0,0,.5); display: grid; }
.menu-panel a { padding: 12px 14px; min-height: 48px; text-decoration: none; font-weight: 600; border-radius: var(--r-ctl); }
.menu-panel a:hover { background: var(--panel); }
.menu-panel .menu-trial { color: var(--accent-ink); }

/* Accent swatches: the app's presets. */
.swatches { display: flex; gap: 0; margin: 12px 0 0 -8px; flex-wrap: wrap; }
.nav-swatches { margin: 0; gap: 0; flex-wrap: nowrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.swatch::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px transparent; transition: transform .15s var(--ease-out), box-shadow .15s; }
.swatch:hover::before { transform: scale(1.12); }
.swatch[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--ink); }
.nav-swatches .swatch { width: 22px; height: 44px; }
.nav-swatches .swatch::before { width: 13px; height: 13px; }
.nav-swatches .swatch[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink); }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 70px 0 60px; overflow: clip; }
.hero-layout { display: grid; grid-template-columns: .95fr 1.1fr; gap: 10px; align-items: center; min-height: 660px; }
.hero-copy { position: relative; z-index: 5; padding-bottom: 60px; min-width: 0; }
.availability { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--ink2); font-size: 15px; font-weight: 600; }
.availability .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero h1 { font-size: clamp(64px, 7.8vw, 108px); line-height: .97; letter-spacing: -.045em; margin-bottom: 28px; }
.hero h1 .said { color: var(--accent-ink); }
.hero .lede { max-width: 420px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: 15px; color: var(--ink2); line-height: 1.8; }
.hero-note span { color: var(--ink3); }

/* The layered scene */
.hero-scene { position: relative; height: 650px; margin-right: -45px; perspective: 1300px; }
.scene-grid { position: absolute; width: 520px; height: 520px; top: 20px; left: 0; opacity: .13; background-image: linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px); background-size: 55px 55px; mask-image: radial-gradient(ellipse, black, transparent 68%); -webkit-mask-image: radial-gradient(ellipse, black, transparent 68%); transform: rotate(-12deg); }
.scene-backplate { position: absolute; width: 430px; height: 360px; top: 40px; left: 115px; border-radius: 30px; border: 1px solid #3C4653; background: linear-gradient(145deg, #252F3C, #1C2026); transform: rotate(-8deg); padding: 28px; box-shadow: 0 40px 70px rgba(0,0,0,.2); }
.scene-brand { display: block; width: 180px; height: 180px; margin: 28px auto; opacity: .8; }
.scene-local { position: absolute; top: 90px; left: 0; z-index: 3; display: flex; gap: 14px; align-items: center; padding: 15px 18px; border-radius: 16px; background: rgba(35,41,50,.92); border: 1px solid #475564; box-shadow: 0 20px 40px rgba(0,0,0,.27); font-size: 14px; font-weight: 600; line-height: 1.4; }
.scene-local small { display: block; color: var(--ink3); font-size: 13px; font-weight: 500; margin-top: 3px; }
.local-icon { color: var(--accent-ink); }
.local-icon .ic { width: 26px; height: 26px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6BCDA0; margin-left: 8px; }
.scene-mail { position: absolute; z-index: 4; width: 460px; top: 240px; left: 30px; transform: rotateY(-9deg) rotateZ(3deg); }
.scene-key { position: absolute; top: 540px; right: 0; z-index: 5; width: 340px; text-align: center; }
.depth { translate: 0 var(--depth-y, 0px); }

.demo { position: relative; padding-bottom: 50px; }
.window { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.hero .window { background: linear-gradient(130deg, #2B3039, #1F232A); border-color: #505865; box-shadow: 0 30px 65px rgba(0,0,0,.53), 0 0 0 5px rgba(23,25,29,.2); }
.titlebar, .pad-title { display: flex; align-items: center; gap: 8px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.tl { width: 10px; height: 10px; border-radius: 50%; background: #5B6069; flex: none; }
.tl:first-child { background: #FA736A; } .tl:nth-child(2) { background: #E9BC59; } .tl:nth-child(3) { background: #65BE75; }
.titlebar .title { margin: 0 auto; transform: translateX(-26px); font-size: 13px; color: var(--ink3); white-space: nowrap; }
.compose-meta { padding: 10px 22px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink2); display: flex; gap: 8px; }
.compose-meta b { color: var(--ink); font-weight: 600; }
.compose-body { padding: 20px 24px; min-height: 160px; font-size: 16px; line-height: 1.65; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--accent); vertical-align: -0.2em; margin-left: 2px; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* The pill, as the app draws it: black whatever the theme, no outline. */
.pill { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 6; background: var(--hud); border-radius: 999px; padding: 10px 14px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 18px 35px rgba(0,0,0,.44); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.pill:has(.live.has-text) { border-radius: 16px; padding: 10px 16px; }
.pill.idle { opacity: 0; transform: translateX(-50%) translateY(8px); }
.pill-row { display: flex; align-items: center; gap: 8px; height: 22px; }
.pmark { width: 22px; height: 22px; flex: none; opacity: .85; }
.wave { display: flex; align-items: center; gap: 2.5px; height: 22px; }
.wave i { width: 3px; height: 3px; border-radius: 2px; display: block; transition: height .15s; }
.wave.on i { animation: wob .9s ease-in-out infinite; }
@keyframes wob { 0%, 100% { height: 3px; } 50% { height: var(--h); } }
.pill .live { display: block; width: 0; max-height: 0; overflow: hidden; color: #E9ECF1; font-size: 13px; line-height: 1.45; text-align: left; transition: width .3s var(--ease-out), max-height .3s var(--ease-out); }
.pill .live.has-text { width: min(300px, 62vw); max-height: 60px; margin-bottom: 6px; }

.keycap-row { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink3); font-size: 15px; font-weight: 600; }
.keycap {
  display: inline-grid; place-items: center; min-width: 64px; min-height: 56px; padding: 0 20px;
  font: 600 20px/1 var(--face-mono); color: var(--ink);
  background: linear-gradient(#30353D, #26292F); border: 1px solid var(--line2); border-bottom-width: 4px; border-radius: 13px;
  box-shadow: 0 10px 20px rgba(0,0,0,.3); transition: transform .1s var(--ease-out), border-bottom-width .1s, background .1s;
}
button.keycap { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: none; }
.keycap.held { transform: translateY(3px); border-bottom-width: 1px; background: color-mix(in srgb, var(--accent) 30%, #26292F); }
.keycap-sub { margin-top: 10px; font-size: 12px; }

/* Accent bands */
.band-accent { background: var(--accent); color: var(--accent-fg); }
.band-accent .silk { color: var(--accent-fg); opacity: .8; }
.proof { padding: 72px 0; }
.proof-in { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 64px; align-items: start; }
.proof h2 { margin-top: 10px; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.engines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.engines li { background: #FFFFFF; color: #17191D; border-radius: 18px; padding: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.engines b { display: block; font: 800 20px/1.2 var(--face-display); letter-spacing: -.02em; }
.engines span { display: block; margin-top: 4px; font-size: 15px; color: #4A5260; line-height: 1.45; }
.release { grid-column: 2; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16px; }

/* Sections */
section { padding: 120px 0; position: relative; }
.tone { background: var(--tone); border-block: 1px solid rgba(255,255,255,.035); }
.sec-head { margin-bottom: 48px; }
.sec-head .silk { display: block; color: var(--accent-ink); margin-bottom: 18px; }
.sec-head .lede { margin-top: 22px; }

/* How it works */
.how-head { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.clip { width: 210px; }
.clip video { width: 100%; height: auto; border-radius: 18px; background: #0E1013; display: block; border: 1px solid var(--line2); box-shadow: 0 20px 40px rgba(0,0,0,.4); transform: rotate(2deg); }
.clip figcaption { margin-top: 14px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding: 12px 38px 10px; }
.step:first-child { padding-left: 0; }
.step + .step { border-left: 1px solid var(--line2); }
.step .stage { height: 115px; display: flex; align-items: center; }
.keycap-tilt { transform: perspective(400px) rotateX(18deg) rotateY(-16deg); }
.minipill { display: inline-flex; align-items: center; gap: 8px; background: var(--hud); border-radius: 11px; padding: 6px 12px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.landed { font-size: 16px; font-weight: 600; }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { color: var(--ink2); font-size: 16px; line-height: 1.8; }

/* Private */
.private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.private-copy .sec-head { margin-bottom: 24px; }
.private-copy > p { color: var(--ink2); font-size: 16px; line-height: 1.85; }
.private-copy > p b { color: var(--ink); }
.promises { margin: 28px 0 36px; display: grid; gap: 14px; }
.promises li { display: flex; gap: 14px; color: var(--ink2); line-height: 1.6; }
.promises b { color: var(--ink); }
.promises .ic { color: var(--accent-ink); margin-top: 3px; }
.flowcard { background: linear-gradient(145deg, #273340, #1B2129); padding: 45px 30px; border: 1px solid #3E4A58; border-radius: 24px; box-shadow: 0 25px 60px rgba(0,0,0,.2); transform: rotate(2deg); }
.flow { display: flex; flex-direction: column; }
.flow-node { display: flex; align-items: center; gap: 14px; background: #222B36; border: 1px solid #3C4959; border-radius: var(--r-row); padding: 16px 18px; font-size: 16px; font-weight: 600; }
.flow-node .silk { margin-left: auto; }
.flow-node.deck { background: color-mix(in srgb, var(--accent) 14%, #222B36); border-color: color-mix(in srgb, var(--accent) 45%, #3C4959); box-shadow: 0 10px 35px color-mix(in srgb, var(--accent) 14%, transparent); }
.ic-tile { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #2A3542; color: var(--accent-ink); flex: none; }
.ic-tile .mark { display: block; width: 20px; height: 20px; }
.flow-join { width: 2px; height: 22px; background: var(--line2); margin: 0 auto; }
.no-cloud { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed #3C4959; color: var(--ink2); font-size: 15px; }
.no-cloud .ic { color: var(--ink3); }

/* Dictionary */
.dict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.dict-grid .sec-head { margin: 0; }
.dict-card { background: linear-gradient(140deg, #242B35, #1D2229); border: 1px solid #3C4652; border-radius: var(--r-card); padding: 42px 34px; box-shadow: 0 25px 50px rgba(0,0,0,.27); transform: rotate(-2deg); }
.dict-heard { font: 600 27px/1.5 var(--face-display); letter-spacing: -.01em; min-height: 4.5em; }
.dict-heard .miss { border-bottom: 2px solid var(--danger); }
.dict-heard .fixterm { border-bottom: 2px solid var(--accent); }
.dict-rule { display: flex; width: fit-content; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; font: 500 13px/1.4 var(--face-mono); color: var(--ink2); }
.dict-rule .ic { width: 16px; height: 16px; color: var(--ink3); }
.dict-rule .fixed { color: var(--accent-ink); }
.dict-cmd { margin-top: 24px; color: var(--ink2); font-size: 15px; }
.dict-cmd b { color: var(--ink); }

/* In use */
.vignettes { display: grid; grid-template-columns: 1fr 1fr; gap: 46px 36px; }
.vignette { position: relative; padding-bottom: 28px; min-width: 0; }
.vignette:nth-child(even) { transform: translateY(40px); }
.vignette .window { min-height: 180px; background: #242A33; border-color: #424B58; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.vignette .compose-body { min-height: 120px; padding: 24px; }
.vignette .pill { bottom: 44px; }
.vignette .pmark { width: 18px; height: 18px; }
.vig-label { margin-top: 16px; text-align: center; color: var(--ink2); font-size: 15px; }
.codeline { font: 15px/1.8 var(--face-mono); white-space: pre-wrap; overflow-wrap: break-word; }
.codeline .cm { color: var(--ink3); }
.msgrow { display: flex; margin-bottom: 10px; }
.msgrow.me { justify-content: flex-end; }
.bubble { background: var(--panel); border-radius: 14px; padding: 8px 13px; font-size: 15px; max-width: 88%; }
.msgrow.me .bubble { background: var(--selection); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px 60px; align-items: center; }
.stats-grid .sec-head { margin: 0; }
.stats-window { background: #202730; border-color: #414C5B; transform: rotate(2deg); box-shadow: 0 24px 60px rgba(0,0,0,.33); }
.stats-body { padding: 22px; display: grid; gap: 14px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-tile { background: #272F3A; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-tile.primary { background: color-mix(in srgb, var(--accent) 16%, #272F3A); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.tlabel { font: 500 12px/1.4 var(--face-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.stat-tile.primary .tlabel { color: var(--accent-ink); }
.tvalue { font: 700 34px/1.1 var(--face-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tvalue small { font: 500 14px var(--face-ui); color: var(--ink3); margin-left: 4px; letter-spacing: 0; }
.tfoot { font-size: 14px; color: var(--ink3); }
.activity { background: #272F3A; border-radius: 12px; padding: 16px 18px; }
.activity-bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 10px; }
.activity-bars i { flex: 1; height: 3px; border-radius: 2px 2px 0 0; background: var(--accent); transition: height .5s var(--ease-out); }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font: 12px var(--face-mono); color: var(--ink3); }
.sample { margin-top: 24px; text-align: center; color: var(--ink3); font-size: 15px; }

/* Scratchpad */
.pad-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.pad-grid .sec-head { margin: 0; }
.pad-wrap { position: relative; padding-bottom: 56px; transform: rotate(-2deg); }
.pad-wrap .window { border-color: #434D5B; box-shadow: 0 24px 60px rgba(0,0,0,.33); }
.pad-title .name { font: 800 16px var(--face-display); margin-left: 6px; }
.pad-body { display: flex; min-height: 280px; }
.pad-drawer { width: 170px; padding: 16px 12px; background: #1F2227; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.dlabel { font-size: 14px; color: var(--ink2); font-weight: 600; }
.pad-search { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 8px; padding: 7px 10px; font-size: 14px; color: var(--ink3); }
.pad-search .ic { width: 15px; height: 15px; }
.pad-note { font-size: 14px; line-height: 1.4; padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.pad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 16px 14px 12px; gap: 12px; }
.pad-editor-row { display: flex; gap: 10px; flex: 1; min-width: 0; }
.pad-toggle { color: var(--accent-ink); padding-top: 4px; }
.pad-editor { flex: 1; min-width: 0; background: #1F2227; border-radius: 10px; padding: 14px; font-size: 16px; line-height: 1.6; }
.pad-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pad-hint { font-size: 13px; color: var(--ink2); margin-right: auto; }
.pad-actions { display: flex; gap: 10px; }
.pad-btn { font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); }
.pad-btn.quiet { background: var(--panel); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.pad-wrap .pill { bottom: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature { border-top: 1px solid var(--line2); padding: 28px 0; }
.feature .silk { display: block; color: var(--accent-ink); margin-bottom: 12px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--ink2); font-size: 16px; line-height: 1.8; }

/* Pricing */
#pricing { background: radial-gradient(ellipse at 80% 55%, color-mix(in srgb, var(--accent) 22%, transparent) 0, transparent 60%), #1C222B; border-block: 1px solid rgba(255,255,255,.04); }
.price-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 0 85px; align-items: center; }
.price-grid .sec-head { margin: 0; }
#pricing h2 { font-size: clamp(48px, 5.5vw, 75px); }
#pricing h2 span { color: var(--accent-ink); }
.price-card { position: relative; padding: 40px; background: linear-gradient(130deg, #2A3645, #222A35); border: 1px solid #506076; border-radius: var(--r-card); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.licence-mark { position: absolute; width: 40px; height: 40px; right: 32px; top: 34px; }
.price-card > .silk { display: block; color: var(--ink2); margin-bottom: 14px; }
.price { font: 700 80px/1 var(--face-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.price small { font-size: 28px; vertical-align: 32px; margin-right: 4px; letter-spacing: -.02em; }
.price-sub { color: var(--ink2); font-size: 15px; margin: 12px 0 22px; }
.price-list { margin-bottom: 26px; }
.price-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 16px; color: var(--ink2); }
.price-list li:last-child { border-bottom: 0; }
.price-list .ic { color: var(--accent-ink); width: 18px; height: 18px; }
.try-first { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 6px; font-size: 15px; color: var(--ink2); text-decoration: none; }
.try-first:hover { color: var(--accent-ink); }
.deal-note { margin-top: 22px; font-size: 15px; color: var(--ink3); line-height: 1.7; }
.reqs { grid-column: 1 / -1; margin-top: 36px; color: var(--ink3); font-size: 15px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq-grid .sec-head { margin: 0; }
.faq-grid .lede a { color: var(--ink); font-weight: 600; display: inline-block; padding: 10px 0; margin: -10px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 64px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent-ink); transition: transform .2s var(--ease-out); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--ink2); font-size: 16px; line-height: 1.85; padding: 0 40px 22px 0; }

/* Final */
.final { padding: 112px 0; }
.final-in { display: grid; justify-items: center; text-align: center; }
.final-mark { width: 64px; height: 64px; }
.final h2 { margin-top: 22px; font-size: clamp(40px, 5vw, 68px); }
.final-sub { margin-top: 14px; font: 800 clamp(22px, 2.4vw, 32px)/1.2 var(--face-display); letter-spacing: -.03em; opacity: .85; }
.final .ctas { margin-top: 36px; justify-content: center; }

/* Footer */
.foot { background: #14171C; padding: 40px 0; }
.foot-in { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot .brand { flex: 0 0 140px; }
.foot nav { display: flex; flex-wrap: wrap; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink2); font-size: 15px; font-weight: 600; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .silk { margin-left: auto; }

/* Tablet */
@media (max-width: 1100px) {
  .wrap { padding-inline: 32px; }
  .links a { font-size: 13px; padding-inline: 8px; }
  .nav-swatches { display: none; }
  .hero h1 { font-size: 78px; }
  .hero-scene { transform: scale(.86); transform-origin: left center; margin-right: -65px; }
  .private-grid, .dict-grid, .stats-grid, .pad-grid, .price-grid, .faq-grid { gap: 40px; }
  .step { padding-inline: 22px; }
  .engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 800px) {
  .wrap { padding-inline: 20px; }
  .links { display: none; }
  .menu { display: block; }
  .btn-nav { margin-left: auto; }
  .nav-in, .nav.mini .nav-in { height: 64px; gap: 8px; }
  .brand, .nav.mini .brand { flex-basis: 140px; }
  .hero { padding-top: 40px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero-copy { padding-bottom: 20px; }
  .hero h1 { font-size: clamp(52px, 15vw, 88px); }
  .hero-ctas .btn { width: 100%; }
  .hero-scene { width: 100%; max-width: 560px; height: 680px; margin: 0 auto; transform: none; }
  .scene-backplate { width: 78%; left: 20%; top: 50px; height: 300px; }
  .scene-brand { width: 130px; height: 130px; }
  .scene-local { left: 0; top: 70px; }
  .scene-mail { left: 0; width: 100%; top: 220px; transform: rotate(-2deg); }
  .scene-key { right: 0; left: 0; width: auto; top: 586px; }
  .depth { translate: none; }
  .proof-in { grid-template-columns: 1fr; }
  .release { grid-column: 1; }
  .engines { gap: 8px; }
  .engines li { padding: 16px; }
  section { padding: 84px 0; }
  .how-head { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child { padding: 26px 0; display: grid; grid-template-columns: 124px 1fr; column-gap: 16px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step > .silk { grid-column: 2; }
  .step .stage { grid-column: 1; grid-row: 1 / 4; height: auto; justify-content: center; }
  .step h3, .step p { grid-column: 2; }
  .step h3 { margin: 6px 0; font-size: 21px; }
  .step .landed { font-size: 14px; }
  .private-grid, .dict-grid, .stats-grid, .pad-grid, .price-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .flowcard, .dict-card, .stats-window, .pad-wrap { transform: none; }
  .flowcard { padding: 28px 18px; }
  .dict-card { padding: 28px 22px; }
  .dict-heard { font-size: 23px; min-height: 5em; }
  .vignettes { grid-template-columns: 1fr; gap: 32px; }
  .vignette:nth-child(even) { transform: none; }
  .pad-grid .sec-head { order: -1; }
  .pad-drawer { display: none; }
  .features { grid-template-columns: 1fr; }
  .price-card { padding: 30px 24px; }
  .price { font-size: 68px; }
  .faq details p { padding-right: 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .foot nav { margin-left: -10px; }
  .foot .silk { margin-left: 0; }
}
@media (max-width: 420px) {
  .engines { grid-template-columns: 1fr 1fr; }
  .stat-grid { gap: 10px; }
  .stat-tile { padding: 14px; }
  .tvalue { font-size: 27px; }
  .final .ctas .btn, .private-copy .ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wave i { height: var(--h); }
  .depth { translate: none !important; }
}
