/* MindType site styles. Plain CSS, no build step. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-ext-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark light;

  --page: #0A0A0B;
  --surface: #141416;
  --raised: #1C1C1F;
  --hairline: #2A2A2E;
  --text: #EDEDED;
  --muted: #A0A0A0;
  --dim: #4D4D4D;
  --accent: #FF8A3D;
  --on-accent: #0A0A0B;
  --btn: #EDEDED;
  --on-btn: #0A0A0B;
  --nav-bg: rgb(10 10 11 / 0.8);
  --arc-outer: #7C7C7C;
  --arc-mid: #B4B4B4;
  --shadow: 0 40px 80px -30px rgb(0 0 0 / 0.75);

  /* Device mock-ups */
  --bezel: #050506;
  --bezel-edge: #34343A;
  --m-app: #0E0E10;
  --m-side: #121215;
  --m-bubble: #1F1F23;
  --m-field: #18181B;
  --m-hair: #2A2A2F;
  --m-text: #F2F2F2;
  --m-muted: #8F8F95;
  --m-kb: #1A1A1D;
  --m-key: #2F2F33;
  --m-pill: #EDEDED;
  --m-on-pill: #1A1A1A;
  --m-wall: #17171A;
  --m-card: rgb(44 44 48 / 0.92);
  --m-toggle: #EDEDED;
  --m-me: #34343A;
  --panel: #141416;

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --nav-h: 56px;
}

@media (prefers-color-scheme: light) {
  :root {
    --page: #F5F5F3;
    --surface: #FFFFFF;
    --raised: #ECECE9;
    --hairline: #DCDCD7;
    --text: #1A1A1A;
    --muted: #575757;
    --dim: #B9B9B4;
    --btn: #1A1A1A;
    --on-btn: #F5F5F3;
    --nav-bg: rgb(245 245 243 / 0.85);
    --arc-outer: #8A8A8A;
    --arc-mid: #626262;
    --shadow: 0 40px 70px -34px rgb(20 20 20 / 0.35);

    --bezel: #18181A;
    --bezel-edge: #3A3A3F;
    --m-app: #FFFFFF;
    --m-side: #F6F6F7;
    --m-bubble: #F0F0F2;
    --m-field: #F7F7F8;
    --m-hair: #E3E3E7;
    --m-text: #111113;
    --m-muted: #5F5F65;
    --m-kb: #D5D7DD;
    --m-key: #FFFFFF;
    --m-pill: #FFFFFF;
    --m-on-pill: #1A1A1A;
    --m-wall: #E6E6EA;
    --m-card: rgb(255 255 255 / 0.9);
    --m-toggle: #1A1A1A;
    --m-me: #E6E6EB;
    --panel: #EBEBE7;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: common-ligatures no-contextual;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--btn);
  color: var(--on-btn);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono { font-family: var(--font-mono); }

/* ---------- Buttons and labels ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn);
  color: var(--on-btn);
  font: 600 16px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn .i { width: 18px; height: 18px; }

.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn-quiet:hover { opacity: 1; background: var(--surface); }

/* A status label, not a control: no border or fill, so it does not read as a button. */
.soon {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.soon::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--dim);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.link:hover { text-decoration-color: currentColor; }
.link .i { width: 18px; height: 18px; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav > .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

/* Hidden with its landmark below 800 px, where the menu holds the same links. */
.nav-main { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-right: 12px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav .soon { display: none; }
.nav .soon-rest { display: none; }

.menu { position: relative; }
.menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .i { width: 22px; height: 22px; }
.menu > summary .i-close { display: none; }
.menu[open] > summary .i-open { display: none; }
.menu[open] > summary .i-close { display: block; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.menu-panel ul { list-style: none; }
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.menu-panel a:hover { background: var(--surface); }
.menu-panel .soon-line {
  margin: 6px 14px 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Sections ---------- */

.section { padding-block: 72px; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2,
.h2 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  max-width: 36em;
  text-wrap: pretty;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 44px;
  text-align: center;
}
.platforms {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 22px;
  list-style: none;
}
.platforms li {
  padding: 5px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.hero h1 {
  max-width: 15ch;
  margin-inline: auto;
  font-size: 36px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero .lede {
  max-width: 33em;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 30px;
}
.hero .fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.stage {
  position: relative;
  max-width: 1060px;
  margin: 48px auto 0;
  padding: 0 15% 7% 0;
}

/* ---------- Device mock-ups (illustrations, not screenshots) ---------- */

.ipad {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1.6%;
  background: var(--bezel);
  border-radius: 4% / 5.3%;
  box-shadow: 0 0 0 1px var(--bezel-edge), var(--shadow);
  text-align: left;
}
.ipad.portrait { aspect-ratio: 3 / 4; padding: 2.2%; border-radius: 5.4% / 4%; }
.ipad .screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2.6% / 3.5%;
  background: var(--m-app);
  container-type: inline-size;
}
.ipad.portrait .screen { border-radius: 3.6% / 2.7%; }
.ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--m-text);
  font-family: var(--font-sans);
  line-height: 1.35;
}
.ipad .ui { font-size: 1.55cqw; }
.ipad.portrait .ui { font-size: 2.5cqw; }
.ui .i { width: 1.15em; height: 1.15em; stroke-width: 1.9; }

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55em 1.6em 0.35em;
  font-size: 0.78em;
  font-weight: 600;
}
.status-right { display: flex; align-items: center; gap: 0.45em; }
.status .i { width: 1.25em; height: 1.25em; }
.status .bat { width: 2em; height: 1em; stroke-width: 1; }
.mic-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--accent);
}

.app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 25% 1fr;
}
.side {
  padding: 0.7em 0.8em;
  background: var(--m-side);
  border-right: 1px solid var(--m-hair);
  font-size: 0.86em;
}
.side .t4 { font-size: 1.05em; font-weight: 600; margin: 0.2em 0.4em 0.8em; }
.side ul { list-style: none; }
.side li {
  padding: 0.45em 0.6em;
  border-radius: 0.6em;
  color: var(--m-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side li.on { background: var(--m-bubble); color: var(--m-text); }

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  min-height: 0;
  padding: 0.7em 1.4em 0.9em;
}
.chat-head {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--m-hair);
}
.chat-head b { font-weight: 600; }
.chat-head span { color: var(--m-muted); font-size: 0.85em; }
.msg {
  align-self: flex-start;
  max-width: 78%;
  padding: 0.6em 0.85em;
  background: var(--m-bubble);
  border-radius: 0.9em;
  font-size: 0.9em;
}
.msg.me { align-self: flex-end; background: var(--m-me); }
.msg code { font-family: var(--font-mono); font-size: 0.92em; }
.msg pre {
  margin: 0.6em 0 0;
  padding: 0.6em 0.75em;
  border-radius: 0.6em;
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  font-family: var(--font-mono);
  font-size: 0.86em;
  line-height: 1.55;
  white-space: pre;
  overflow: hidden;
}
.msg pre .c { color: var(--m-muted); }
.composer {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
  margin-top: auto;
  padding: 0.65em 0.65em 0.65em 0.9em;
  background: var(--m-field);
  border: 1px solid var(--m-hair);
  border-radius: 1em;
}
.composer p {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8em;
  line-height: 1.5;
}
.caret {
  display: inline-block;
  width: 0.12em;
  height: 1.15em;
  margin-left: 0.1em;
  vertical-align: text-bottom;
  background: var(--m-text);
}
.send {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--m-text);
  color: var(--m-app);
}

/* MindType keyboard */
.kb {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 0.85em 1.8em 1.1em;
  background: var(--m-kb);
}
.kb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kb-brand {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 1.12em;
  font-weight: 700;
}
.kb-keys { display: flex; gap: 0.6em; }
.k {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: var(--m-key);
  color: var(--m-text);
}
.k.lg { width: 3em; height: 3em; }
.kb-label {
  text-align: center;
  color: var(--m-muted);
  font-size: 0.95em;
}
.kb-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3em;
}
.kb-slot {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  color: var(--m-muted);
  font-family: var(--font-mono);
  font-size: 0.95em;
}
.pill-mic {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.9em;
  height: 3.7em;
  border-radius: 999px;
  background: var(--m-pill);
  color: var(--m-on-pill);
  box-shadow: 0 0.1em 0.3em rgb(0 0 0 / 0.12);
}
.pill-mic .i { width: 1.45em; height: 1.45em; }
.pill-mic.live,
.pill-mic.paused { background: var(--accent); color: #FFFFFF; box-shadow: none; }
.pill-mic.live::before {
  content: "";
  position: absolute;
  inset: -0.35em;
  border-radius: inherit;
  border: 0.18em solid var(--accent);
  opacity: 0.45;
}
.kb-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
}
.k-ret {
  display: grid;
  place-items: center;
  width: 6.2em;
  height: 3em;
  border-radius: 999px;
  background: var(--m-key);
  font-size: 1em;
}

/* iPhone */
.iphone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--bezel);
  border-radius: 16% / 7.4%;
  box-shadow: 0 0 0 1px var(--bezel-edge), var(--shadow);
  container-type: inline-size;
  text-align: left;
}
.iphone .screen {
  position: absolute;
  inset: 3.6cqw;
  overflow: hidden;
  border-radius: 12.5cqw;
  background: var(--m-wall);
}
.iphone .ui { font-size: 5.1cqw; padding: 0 0.7em; position: relative; }
.island {
  position: absolute;
  top: 0.55em;
  left: 50%;
  width: 34%;
  height: 1.55em;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000000;
}
.iphone .status { padding: 0.75em 0.9em 0; font-size: 0.8em; }
.lock-time {
  margin-top: 1.4em;
  text-align: center;
  font-size: 3.6em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lock-date { text-align: center; font-size: 0.9em; font-weight: 500; margin-top: 0.3em; }
.la {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: auto;
  margin-bottom: 2.2em;
  padding: 0.75em 0.7em 0.75em 0.75em;
  border-radius: 1.3em;
  background: var(--m-card);
  color: var(--m-text);
}
.la img { width: 2.3em; height: 2.3em; border-radius: 0.55em; }
.la-body { flex: 1; min-width: 0; }
.la-app { font-size: 0.72em; color: var(--m-muted); }
.la-state {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.92em;
  font-weight: 600;
  white-space: nowrap;
}
.la-state .mic-dot { width: 0.55em; height: 0.55em; }
.la-state .dot-ready { background: var(--m-muted); }
.la-time { font-family: var(--font-mono); font-weight: 400; color: var(--m-muted); font-size: 0.92em; }
.la-btn {
  padding: 0.45em 0.8em;
  border-radius: 999px;
  background: var(--m-key);
  font-size: 0.8em;
  font-weight: 600;
}
.la-btn.stop { background: var(--accent); color: var(--on-accent); }

.stage .iphone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 19%;
}

/* ---------- Prompt demo ---------- */

.demo {
  display: grid;
  gap: 14px;
  align-items: stretch;
}
.demo-card {
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
}
.demo-card h3 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.demo-card p,
.demo-card ol {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
}
.demo-card.said p { color: var(--muted); }
.demo-card ol { margin-top: 10px; padding-left: 3ch; }
.demo-card ol li + li { margin-top: 4px; }
.demo-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.action-pill .i { width: 18px; height: 18px; }
.demo-mid .arrow-r { display: none; }
.demo-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  max-width: 62em;
}

/* ---------- Feature rows ---------- */

.rows { display: grid; gap: 80px; }
.row { display: grid; gap: 28px; align-items: center; }
.row h3 {
  font-size: 27px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.row p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 32em;
  text-wrap: pretty;
}
.row .link { margin-top: 10px; }

.panel {
  position: relative;
  overflow: hidden;
  padding: 7%;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  container-type: inline-size;
}
.crop {
  font-size: clamp(11px, 3cqw, 16px);
  color: var(--m-text);
}
.crop .i { width: 1.2em; height: 1.2em; }
/* Panels that hold real text (not a role="img" drawing) keep it readable on a phone:
   at 14px, the smallest line (0.78em) is about 11px. */
.panel .crop:not([role="img"]) { font-size: clamp(14px, 3.6cqw, 16px); }

.field {
  padding: 1em 1.1em;
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  border-radius: 1em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  line-height: 1.55;
}
.kbcrop {
  margin-top: 1em;
  padding: 1em 1.2em 1.2em;
  background: var(--m-kb);
  border-radius: 1.2em;
  display: grid;
  gap: 0.9em;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5em; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  background: var(--m-key);
  border: 1px solid var(--m-hair);
  font-size: 0.88em;
  font-weight: 600;
  white-space: nowrap;
}
.chip.ghost { background: transparent; border-style: dashed; color: var(--m-muted); }
.ba {
  margin-top: 1em;
  padding: 1em 1.1em;
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  border-radius: 1em;
}
.ba + .ba { margin-top: 0.75em; }
.ba-name { font-size: 0.82em; font-weight: 600; color: var(--m-muted); margin-bottom: 0.5em; }
.ba dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35em 0.8em; margin: 0; }
.ba dt { font-size: 0.82em; color: var(--m-muted); padding-top: 0.15em; }
.ba dd { margin: 0; font-family: var(--font-mono); font-size: 0.86em; line-height: 1.5; }
.ba dd.before { color: var(--m-muted); }
.preview-btns { display: flex; gap: 0.5em; margin-top: 0.9em; }
.preview-btns span {
  flex: 1;
  padding: 0.55em 0;
  border-radius: 0.7em;
  background: var(--m-key);
  text-align: center;
  font-size: 0.85em;
  font-weight: 600;
}

.session {
  display: grid;
  grid-template-columns: minmax(0, 46%) 1fr;
  gap: 8%;
  align-items: center;
}
.states { list-style: none; display: grid; gap: 0.6em; }
.states li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 0.9em;
  border-radius: 0.9em;
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  font-size: 0.9em;
  font-weight: 600;
}
.states .t { margin-left: auto; font-family: var(--font-mono); font-weight: 400; color: var(--m-muted); font-size: 0.9em; }
.states .mic-dot { flex: none; }
.states .dot-ready, .states .dot-busy { background: var(--m-muted); }
.states .dot-busy { background: transparent; border: 0.15em solid var(--m-muted); }
.states-cap { margin-bottom: 0.6em; font-size: 0.82em; color: var(--m-muted); }

.hist {
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  border-radius: 1.2em;
  overflow: hidden;
}
.hist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9em 1.1em 0.7em;
  border-bottom: 1px solid var(--m-hair);
}
.hist-head b { font-size: 1.15em; font-weight: 600; }
.hist-head span { color: var(--m-muted); font-size: 0.85em; }
.hist ul { list-style: none; }
.hist li { padding: 0.8em 1.1em; }
.hist li + li { border-top: 1px solid var(--m-hair); }
.hist-meta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78em;
  color: var(--m-muted);
  font-family: var(--font-mono);
}
.hist-meta .i { width: 1.1em; height: 1.1em; }
.hist-meta b { font-family: var(--font-sans); color: var(--m-text); font-weight: 600; }
.hist p { margin-top: 0.3em; font-size: 0.88em; color: var(--m-muted); }
.hist p.res { color: var(--m-text); }
.tts-line {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1em;
  padding: 0.75em 1em;
  border-radius: 1em;
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  font-size: 0.9em;
}
.tts-line .wave { display: flex; align-items: center; gap: 0.18em; margin-left: auto; }
.tts-line .wave i {
  display: block;
  width: 0.2em;
  border-radius: 1em;
  background: var(--arc-mid);
}

/* Three-arc ramp, from the icon: outer grey, middle grey, inner accent */
.wave i:nth-child(3n + 1) { background: var(--arc-outer); }
.wave i:nth-child(3n + 2) { background: var(--arc-mid); }
.wave i:nth-child(3n) { background: var(--m-text); }
.wave .w1 { height: 0.5em; }
.wave .w2 { height: 0.9em; }
.wave .w3 { height: 1.3em; }
.wave .w4 { height: 0.7em; }
.wave .w5 { height: 1.1em; }

/* ---------- Steps ---------- */

.steps { list-style: none; display: grid; gap: 16px; }
.step {
  display: grid;
  gap: 22px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  container-type: inline-size;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
  color: var(--arc-outer);
}
.step:nth-child(2) .step-num { color: var(--arc-mid); }
.step:nth-child(3) .step-num { color: var(--text); }
.step h3 {
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p { margin-top: 10px; color: var(--muted); }
.step .crop { font-size: clamp(12px, 4cqw, 15px); align-self: end; }
.path { font-family: var(--font-mono); font-size: 0.92em; color: var(--text); }

.settings {
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  border-radius: 1em;
  overflow: hidden;
}
.settings-head {
  display: flex;
  align-items: center;
  gap: 0.2em;
  padding: 0.8em 1em;
  border-bottom: 1px solid var(--m-hair);
  color: var(--m-muted);
  font-size: 0.9em;
}
.settings-head b { margin-left: auto; margin-right: auto; color: var(--m-text); font-weight: 600; padding-right: 4.5em; }
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 1em;
  font-size: 0.95em;
}
.setting + .setting { border-top: 1px solid var(--m-hair); }
.toggle {
  position: relative;
  width: 2.7em;
  height: 1.6em;
  border-radius: 999px;
  background: var(--m-toggle);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 0.15em;
  right: 0.15em;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--m-app);
}

.appcrop {
  padding: 0.8em 1em 1.1em;
  background: var(--m-app);
  border: 1px solid var(--m-hair);
  border-radius: 1em;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-size: 0.8em;
  color: var(--m-muted);
}
.back .i { width: 1em; height: 1em; }
.appcrop .t4 { margin-top: 0.6em; font-size: 1.05em; font-weight: 600; }
.appcrop p { margin-top: 0.3em; color: var(--m-muted); font-size: 0.9em; }
.appcrop .rec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9em;
}
.appcrop .rec .t { font-family: var(--font-mono); font-size: 1.3em; }
.appcrop .pill-mic { width: 3.6em; height: 2.7em; }
.appcrop .pill-mic .i { width: 1.1em; height: 1.1em; }

.insert .field { font-size: 0.86em; }
.insert .kbcrop { gap: 0.7em; }
.insert .pill-mic { width: 3.8em; height: 2.8em; margin-inline: auto; }
.insert .pill-mic .i { width: 1.15em; height: 1.15em; }

/* ---------- iPad section ---------- */

.ipad-grid {
  display: grid;
  gap: 36px;
  grid-template-areas: "copy" "fig" "facts";
}
.ipad-copy { grid-area: copy; }
.ipad-fig { grid-area: fig; max-width: 400px; width: 100%; margin-inline: auto; }
.facts { grid-area: facts; list-style: none; display: grid; gap: 12px; }
.fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
}
.fact .ic {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--raised);
}
.fact .ic .i { width: 20px; height: 20px; }
.fact h3 { font-size: 17px; font-weight: 600; line-height: 1.3; padding-top: 2px; }
.fact p { color: var(--muted); font-size: 16px; }

.doc-lines { padding: 1.4em 1.8em; display: grid; align-content: start; gap: 0.8em; flex: 1; min-height: 0; }
.doc-lines .t4 { font-size: 1.35em; font-weight: 600; }
.doc-lines p { font-family: var(--font-mono); font-size: 0.92em; line-height: 1.55; }

/* ---------- Data-flow table ---------- */

.flow {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
}
.flow caption { text-align: left; }
.flow th,
.flow td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}
.flow thead th {
  background: var(--raised);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.flow tbody th {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}
.flow td {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.flow td a { text-underline-offset: 3px; text-decoration-color: var(--dim); }
.flow td a:hover { text-decoration-color: currentColor; }
.flow tbody tr > * { border-top: 1px solid var(--hairline); }
.flow tr.local > * { background: var(--raised); }
.flow .dev {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 799px) {
  .flow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .flow, .flow tbody, .flow tr, .flow th, .flow td { display: block; width: 100%; }
  .flow tbody tr { padding: 16px 18px; border-top: 1px solid var(--hairline); }
  .flow tbody tr:first-child { border-top: 0; }
  .flow tbody tr > * { border-top: 0; padding: 0; }
  .flow tbody th { margin-bottom: 8px; }
  .flow td + td { margin-top: 10px; }
  .flow td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .flow tr.local { background: var(--raised); }
}

.privacy-after { margin-top: 24px; display: grid; gap: 8px; }
.privacy-after p { color: var(--muted); max-width: 44em; }
.privacy-after p strong { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hairline); }
.faq details {
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  transition: background-color 0.2s ease, border-radius 0.2s ease;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] {
  background: var(--surface);
  border-radius: 18px;
  border-bottom-color: transparent;
}
.faq details[open] summary .i { transform: rotate(45deg); color: var(--text); }
.answer {
  padding: 0 16px 20px;
  color: var(--muted);
  max-width: 68ch;
}
.answer p + p,
.answer p + ul,
.answer ul + p { margin-top: 10px; }
.answer ul { padding-left: 1.2em; }
.answer li + li { margin-top: 6px; }
.answer strong { color: var(--text); font-weight: 600; }
.answer a { color: var(--text); text-underline-offset: 3px; }
.answer .anchor {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.faq-more { margin-top: 24px; }

/* ---------- Closing call to action ---------- */

.closing { text-align: center; }
.closing img {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--hairline);
}
.closing p { margin: 14px auto 0; max-width: 34em; color: var(--muted); }
.closing .cta-row { margin-top: 26px; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 40px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 15px;
}
.footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer .brand { margin-right: 0; font-size: 17px; }
.footer .brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Document pages (Privacy, Terms, Support) ---------- */

.doc-head { padding: 44px 0 28px; }
.doc-head h1 {
  font-size: 38px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc-head .meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc-head .lede { margin-top: 14px; color: var(--muted); font-size: 19px; max-width: 36em; }
.doc-head .cta-row { justify-content: flex-start; margin-top: 24px; }

.doc-grid { display: grid; gap: 28px; padding-bottom: 32px; }
.toc-side { display: none; }
.toc-fold {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}
.toc-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.toc-fold summary::-webkit-details-marker { display: none; }
.toc-fold summary .i { color: var(--muted); transition: transform 0.2s ease; }
.toc-fold[open] summary .i { transform: rotate(45deg); }
.toc-fold ol { padding: 0 8px 10px; }

.toc-list { list-style: none; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
}
.toc-list a:hover { color: var(--text); background: var(--surface); }
.toc-list .n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); min-width: 2ch; }

.prose { min-width: 0; max-width: 760px; }
.prose p, .prose li { max-width: 65ch; }
.prose > section { scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose > section + section { margin-top: 52px; }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose h2 .n {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.prose h3 { margin-top: 26px; font-size: 19px; font-weight: 600; }
.prose p,
.prose ul,
.prose ol { margin-top: 14px; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); }
.prose a { text-underline-offset: 3px; text-decoration-color: var(--muted); }
.prose a:hover { text-decoration-color: currentColor; }
.prose .table-wrap { margin-top: 20px; }

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}
.short h2 { font-size: 20px; }
.short ul { margin-top: 12px; padding-left: 1.2em; }
.short li + li { margin-top: 8px; }
.prose > .short + section { margin-top: 40px; }

.ask {
  margin-top: 64px;
  display: grid;
  gap: 16px;
  align-items: center;
}
.ask h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.ask p { color: var(--muted); }
.ask .btn { justify-self: start; }

/* Support page */
.inline-steps { list-style: none; counter-reset: s; border-top: 1px solid var(--hairline); }
.inline-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.inline-steps .n {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  padding-top: 2px;
}
.inline-steps p { color: var(--text); }
.inline-steps p span { color: var(--muted); }

.group-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 8px;
}
.group-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.group-nav a:hover { background: var(--surface); }
.faq-group { scroll-margin-top: calc(var(--nav-h) + 16px); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-intro + .faq-group { margin-top: 28px; }
.faq-group > h3 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.support-main { min-width: 0; max-width: 820px; }
.support-main > section + section,
.support-main > .faq-intro { margin-top: 64px; }
.support-main .faq-intro + .faq-group { margin-top: 28px; }
.inline-steps { margin-top: 22px; }

/* 404 */
.lost { padding: 96px 0 40px; text-align: center; }
.lost .code { font-family: var(--font-mono); color: var(--muted); }
.lost h1 { margin-top: 10px; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.lost p { margin: 14px auto 0; max-width: 30em; color: var(--muted); }
.lost .cta-row { margin-top: 28px; }

/* ---------- Motion (only when the reader allows it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .pill-mic.live::before { animation: pulse 1.6s ease-in-out infinite; }
  .caret { animation: blink 1.1s steps(1) infinite; }

  .demo-card.clean.armed .type { clip-path: inset(0 0 100% 0); }
  .demo-card.clean.play .type { animation: type-on 1.6s steps(9, end) forwards; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.15; }
}
@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes type-on {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Breakpoints: phone first, then iPad portrait, iPad landscape, desktop ---------- */

@media (min-width: 360px) {
  .nav .soon { display: inline-flex; }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .nav .soon-rest { display: inline; }
  .hero h1 { font-size: 42px; }
  .section-head h2, .h2 { font-size: 34px; }
  .footer .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 28px; }
  .footer .copy { flex-basis: 100%; }
}

@media (min-width: 744px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 44px; }
  .hero .lede { font-size: 20px; }
  .doc-head h1 { font-size: 44px; }
  .section { padding-block: 88px; }
}

@media (min-width: 800px) {
  .nav-main { display: block; }
  .menu { display: none; }


  .row { grid-template-columns: 5fr 6fr; gap: 56px; }
  .row:nth-child(even) .row-copy { order: 2; }
  .row h3 { font-size: 30px; }

  .step { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 28px; }

  .ask { grid-template-columns: 1fr auto; }
  .ask .btn { justify-self: end; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .hero { padding-top: 80px; }
  .hero h1 { font-size: 48px; max-width: 16ch; }
  .section { padding-block: 104px; }
  .section-head h2, .h2 { font-size: 38px; }
  .rows { gap: 104px; }
  .row h3 { font-size: 32px; }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .demo { grid-template-columns: 1fr auto 1fr; gap: 18px; }
  .demo-mid .arrow-d { display: none; }
  .demo-mid .arrow-r { display: block; }
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; }

  .ipad-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    grid-template-areas: "copy fig" "facts fig";
    grid-template-rows: auto 1fr;
    column-gap: 72px;
    row-gap: 32px;
  }
  .ipad-fig { align-self: center; }

  .doc-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .group-nav-wrap { display: none; }
  .toc-side {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
  }
  .toc-side h2 { margin: 0 10px 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .toc-fold { display: none; }
  .doc-head h1 { font-size: 52px; }

  .footer .wrap { flex-wrap: nowrap; justify-content: space-between; }
  .footer .copy { flex-basis: auto; }
}

@media (min-width: 1280px) {
  .doc-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; }
  .hero h1 { font-size: 64px; }
  .hero .lede { font-size: 21px; }
  .section-head h2, .h2 { font-size: 42px; }
}

@media (min-width: 1440px) {
  .hero h1 { font-size: 72px; }
}
