/* Layout: a dark, grainy indigo hero and closing band around calm paper-coloured sections; one centred column, 1120px max. */
@font-face { font-family: "Bricolage"; src: url(fonts/BricolageGrotesque.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/Figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --night: #0c0c1c;         /* hero and privacy bands */
  --indigo: #3b3bdb;        /* the brand */
  --indigo-hi: #5656f2;
  --indigo-lo: #2c2cc0;
  --mist: #c7c7f7;          /* light indigo: text on dark, the key's lip in the logo */
  --paper: #f7f7fb;
  --ink: #14142a;
  --muted: #5d5d78;
  --line: #e2e2ee;
  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  /* Film grain, drawn by the browser: no image to download. */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--indigo-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }

/* Grainy gradient bands */
.grain { position: relative; isolation: isolate; color: #fff; background:
  radial-gradient(60% 70% at 78% 30%, rgba(86, 86, 242, .55), transparent 70%),
  radial-gradient(50% 60% at 10% 90%, rgba(44, 44, 192, .5), transparent 70%),
  var(--night); }
.grain::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }

/* Nav */
nav { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.beta { font: 700 10px var(--body); letter-spacing: .12em; padding: 3px 7px; border-radius: 99px; background: rgba(199, 199, 247, .16); color: var(--mist); }
nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
nav .links a { text-decoration: none; color: rgba(255, 255, 255, .75); }
nav .links a:hover { color: #fff; }

.button { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font: 600 17px var(--body); text-decoration: none; background: #fff; color: var(--indigo-lo); box-shadow: 0 10px 30px rgba(10, 10, 40, .35); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(10, 10, 40, .45); }
.button svg { width: 18px; height: 18px; }
.button.small { padding: 9px 16px; font-size: 15px; border-radius: 11px; box-shadow: none; }
.fine { font-size: 14px; color: rgba(255, 255, 255, .62); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 56px 96px; }
.hero h1 { font-size: clamp(52px, 8vw, 96px); font-weight: 800; }
.hero h1 span { color: var(--mist); }
.hero .lede { margin-top: 22px; font-size: 20px; color: rgba(255, 255, 255, .82); max-width: 33ch; }
.hero .cta { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
kbd { font: 600 .85em var(--body); padding: 1px 8px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }

/* Fluted glass panel */
.glass { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #19194a, #0e0e2a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 20, .5); }
.glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass .listening { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 14px; color: #fff; background: rgba(12, 12, 28, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.glass .dot { width: 8px; height: 8px; border-radius: 99px; background: #ff5a6a; }

/* Sections */
section.band { padding-block: 112px; }
.head { max-width: 720px; display: grid; gap: 14px; margin-bottom: 56px; }
.head h2 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; }
.head p { font-size: 19px; color: var(--muted); }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--indigo); color: #fff; font: 800 19px var(--display); }
.steps h3 { font-size: 23px; font-weight: 700; margin-bottom: 4px; }
.steps p { color: var(--muted); }
.ascii { margin: 0; padding: 26px 22px; border-radius: 24px; background: var(--night); color: var(--mist); font: 500 clamp(9px, 1.25vw, 14px)/1.25 var(--mono); overflow: hidden; white-space: pre; min-height: 17em; box-shadow: 0 24px 60px rgba(20, 20, 60, .25); }
.ascii .dim { color: #ff7a88; text-decoration: line-through; opacity: .8; }
.ascii .out { color: #fff; font-weight: 700; }
.ascii-caption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 34px 30px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.feature svg { width: 30px; height: 30px; color: var(--indigo); }
.feature h3 { font-size: 23px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 16px; }

/* Your instructions */
.instr { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs button { font: 600 15px var(--body); padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.example { border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 24px 60px rgba(20, 20, 60, .08); }
.example .rule { padding: 22px 26px; background: rgba(59, 59, 219, .06); border-bottom: 1px solid var(--line); }
.example .label { display: block; font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); margin-bottom: 6px; }
.example .rule p { font-size: 17px; font-weight: 500; }
.example .pair { display: grid; gap: 18px; padding: 24px 26px 28px; }
.example .said p { color: var(--muted); font-style: italic; }
.example .typed p { white-space: pre-line; font-size: 18px; font-weight: 500; }
.example code { font: 500 .92em var(--mono); padding: 1px 6px; border-radius: 6px; background: rgba(59, 59, 219, .08); }

/* English letters */
.letters { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.samples { display: grid; gap: 12px; }
.sample { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.sample b { font: 600 13px var(--body); letter-spacing: .04em; color: var(--indigo); text-transform: uppercase; }
.sample span { font-size: 18px; font-weight: 500; min-width: 0; }

/* Privacy */
.privacy .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode { padding: 34px; border-radius: 24px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); display: grid; gap: 14px; align-content: start; }
.mode h3 { font-size: 30px; font-weight: 800; }
.mode .tag { justify-self: start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(199, 199, 247, .15); color: var(--mist); }
.mode ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: rgba(255, 255, 255, .82); }
.privacy .head p { color: rgba(255, 255, 255, .72); }
.privacy .eyebrow { color: var(--mist); }
.promises { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.promises span { font-size: 15px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #fff; }

/* FAQ */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font: 700 21px var(--display); display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 28px/1 var(--body); color: var(--indigo); transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { padding-bottom: 22px; color: var(--muted); max-width: 64ch; }

/* Closing */
.closing { text-align: center; padding-block: 120px; }
.closing h2 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; }
.closing p { margin: 18px auto 34px; color: rgba(255, 255, 255, .78); font-size: 19px; max-width: 40ch; }
.closing .cta { display: grid; justify-items: center; gap: 12px; }

footer { padding-block: 40px 48px; color: var(--muted); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .row a { text-decoration: none; }
footer .row a:hover { color: var(--ink); }
footer .row .brand { color: var(--ink); font-size: 17px; margin-right: auto; }
footer .row .brand img { width: 26px; height: 26px; }

@media (max-width: 900px) {
  nav { flex-wrap: wrap; row-gap: 14px; }
  nav .button.small { margin-left: auto; }
  nav .links { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; white-space: nowrap; }
  .hero, .how, .letters, .instr, .privacy .cols { grid-template-columns: 1fr; }
  .hero { gap: 44px; padding-block: 28px 72px; }
  .features { grid-template-columns: 1fr 1fr; }
  section.band { padding-block: 80px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .sample { grid-template-columns: 1fr; gap: 2px; }
  .mode { padding: 26px; }
  .ascii { padding: 22px 12px; font-size: 10.5px; }
  .head { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Inner pages: a compact grainy header, then a single reading column. */
nav .links a[aria-current="page"] { color: #fff; font-weight: 600; }
.page-head { padding-bottom: 72px; }
.page-title { padding-top: 40px; max-width: 760px; display: grid; gap: 14px; }
.page-title .eyebrow { color: var(--mist); }
.page-title h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 800; }
.page-title .lede { font-size: 20px; color: rgba(255, 255, 255, .8); max-width: 52ch; }
.doc { max-width: 800px; padding-block: 72px 104px; }
.doc > h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin: 64px 0 18px; }
.doc > h2:first-child { margin-top: 0; }
.doc h3 { font-size: 21px; font-weight: 700; margin: 28px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol:not(.steps) { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.doc li ol, .doc li ul { margin: 8px 0 0; }
.doc code { font: 500 .9em var(--mono); background: rgba(59, 59, 219, .08); padding: 1px 6px; border-radius: 6px; }
.doc pre { white-space: pre-wrap; font: 12.5px/1.55 var(--mono); background: #fff; border: 1px solid var(--line); padding: 20px; border-radius: 14px; overflow-x: auto; }
.doc a { color: var(--indigo); }
.doc mark { background: #fff1b8; color: var(--ink); padding: 0 3px; border-radius: 4px; }
.doc .steps { margin-bottom: 18px; }
.doc .steps h3 { margin: 6px 0 4px; }
.note { padding: 14px 18px; border-radius: 14px; background: rgba(59, 59, 219, .07); font-size: 15px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.release { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.release:first-child { border-top: 0; padding-top: 0; }
.release .when { display: grid; gap: 2px; align-content: start; }
.release .when b { font: 800 26px var(--display); }
.release .when span { font-size: 14px; color: var(--muted); }
.release ul { margin: 0; }
.price-card { max-width: 520px; margin: 0 auto 28px; padding: 38px 36px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20, 20, 60, .08); display: grid; gap: 14px; }
.price-card h2 { font-size: 28px; font-weight: 800; margin: 0; }
.price-card .soon { justify-self: start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: rgba(59, 59, 219, .1); color: var(--indigo); }
.price-card .amount { font: 800 64px/1 var(--display); letter-spacing: -.03em; }
.price-card .amount small { font: 500 20px var(--body); color: var(--muted); letter-spacing: 0; }
.price-card .beta-offer { padding: 14px 16px; border-radius: 14px; background: rgba(59, 59, 219, .07); margin: 0; }
@media (max-width: 900px) { .page-head { padding-bottom: 56px; } }
@media (max-width: 560px) { .release { grid-template-columns: 1fr; gap: 8px; } .price-card { padding: 30px 24px; } }
.tip { margin: 8px 0 18px 60px; padding: 18px 22px; border-radius: 16px; border: 1px dashed rgba(59, 59, 219, .35); background: rgba(59, 59, 219, .04); }
.tip h3 { margin: 4px 0 6px; font-size: 19px; }
.tip p { margin: 0; color: var(--muted); }
.tip-label { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
@media (max-width: 560px) { .tip { margin-left: 0; } }

/* The fn key, drawn as on newer Mac keyboards: a globe and "fn". */
.fnkey { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: 1px; }
.fnkey svg { width: .9em; height: .9em; flex: none; }
.steps .fnkey, .doc .fnkey, .tip .fnkey { font-size: .85em; padding: 1px 7px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
