/* Heard. Tokens come from HeardTheme.swift and the asset catalog:
   warm paper canvas, white cards at 16pt radius, navy ink, the orange accent,
   and the purple to navy gradient of the app icon. */
:root {
  --canvas: #f4f2ee;
  --card: #ffffff;
  --ink: #1a2a48;
  --muted: #58606d;
  --soft: #6b7380;
  --hair: #e0ded9;
  --chip: #edebe6;
  --icon-fill: #eceae7;
  --accent: #d1662e;
  --accent-ink: #b0501d;
  --amber: #f0a04b;
  --copied: #339e66;
  --plum: #43266c;
  --navy: #21376f;
  --deep: #1a2a48;
  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, ui-sans-serif, system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: #8f3f14; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.022em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(244, 242, 238, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .pill { color: #fff; background: var(--ink); padding: 7px 15px; border-radius: 999px; font-weight: 600; }
.nav .pill:hover { color: #fff; background: #2a3d63; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn path { transition: transform .2s ease; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }
.menu-btn:hover { background: var(--chip); }
.menu { display: grid; gap: 2px; padding: 8px 20px 20px; border-top: 1px solid var(--hair); background: rgba(244, 242, 238, .98); }
.menu[hidden] { display: none; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 550; padding: 13px 4px; border-bottom: 1px solid var(--hair); }
.menu a:not(.btn):hover { color: var(--accent-ink); }
.menu .btn { justify-content: center; margin-top: 16px; }
@media (max-width: 760px) { .nav { display: none; } .menu-btn { display: grid; } }
@media (min-width: 761px) { .menu { display: none !important; } }

/* Buttons and status */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a3d63; color: #fff; }
.btn-ghost { background: var(--chip); color: var(--ink); }
.btn-ghost:hover { background: #e3e0d9; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f4f2ee; color: var(--ink); }
.btn-outline { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 18px; padding: 6px 13px 6px 11px; border-radius: 999px; color: var(--accent-ink); font-size: 14px; font-weight: 650; background: rgba(209, 102, 46, .1); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(209, 102, 46, .18); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -12%; top: -20%; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(240, 160, 75, .20), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 40px -14px rgba(33, 55, 111, .55); }
.hero h1 { font-size: clamp(40px, 5vw, 66px); font-weight: 760; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.lede { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* App illustration: a result screen */
.screen { position: relative; background: var(--canvas); border-radius: 40px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(26, 42, 72, .45), 0 0 0 10px #fff, 0 0 0 11px var(--hair); max-width: 430px; margin: 0 auto; }
.screen-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 14px; font-weight: 700; font-size: 15px; }
.screen-top span { color: var(--accent-ink); font-weight: 600; }
.caption { text-align: center; margin-top: 30px; font-size: 12px; color: var(--soft); letter-spacing: .02em; }
.rcard { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 16px; }
.rcard + .rcard { margin-top: 10px; }
.src-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.src-row b { display: block; font-size: 16px; }
.src-row small { display: block; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 12.5px; font-weight: 550; }
.chip svg { width: 12px; height: 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sec-head h4 { margin: 0; font-size: 17px; font-weight: 650; }
.copy { font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.copy.done { background: var(--copied); color: #fff; }
.rcard p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.rcard .orig { color: var(--muted); font-size: 14px; }
.rcard ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }

/* Sections */
section { padding: 100px 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 740; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.copyblock h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 740; }
.copyblock > p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.apps span { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--hair); font-size: 15px; font-weight: 600; }

/* Queue illustration */
.queue { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 10px 18px; box-shadow: 0 30px 60px -36px rgba(26, 42, 72, .35); }
.qrow { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.qrow + .qrow { border-top: 1px solid var(--hair); }
.qrow .t { flex: 1; min-width: 0; }
.qrow b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow small { color: var(--muted); font-size: 13px; }
.st { flex: none; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.st.queued { background: var(--chip); color: var(--muted); }
.st.listening { background: rgba(33, 55, 111, .1); color: var(--navy); }
.st.translating { background: rgba(209, 102, 46, .12); color: var(--accent-ink); }
.st.done { background: rgba(51, 158, 102, .13); color: #23794c; }
.st.failed { background: rgba(190, 40, 40, .1); color: #a32424; }
.glyph-c { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--icon-fill); color: var(--muted); }
.glyph-c svg { width: 17px; height: 17px; }

/* Deep band (icon colours) */
.deep { background: linear-gradient(160deg, var(--plum), var(--navy) 60%, #1d3066); color: #fff; }
.deep .eyebrow { color: var(--amber); }
.deep .section-head p { color: #c9cde0; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: f; }
.flow li { list-style: none; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 26px; }
.flow { padding: 0; margin: 0; }
.flow .bars { display: flex; align-items: center; gap: 4px; height: 34px; }
.flow .bars i { width: 6px; border-radius: 3px; background: var(--amber); }
.flow h3 { margin: 18px 0 8px; font-size: 20px; }
.flow p { color: #c9cde0; font-size: 16px; }
.flow .tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(240, 160, 75, .16); color: #ffc58a; }

/* Features grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 26px; }
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--icon-fill); color: var(--ink); }
.ic svg { width: 19px; height: 19px; }

/* Settings list */
.settings { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; }
.setting { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.setting + .setting { border-top: 1px solid var(--hair); }
.setting b { display: block; font-size: 16px; font-weight: 600; }
.setting small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.switch { flex: none; width: 50px; height: 30px; border-radius: 999px; background: #34c759; position: relative; }
.switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.switch.off { background: #e3e1dc; }
.switch.off::after { right: auto; left: 2px; }

/* Privacy points */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.point { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 24px; }
.point h3 { font-size: 18px; margin-bottom: 6px; }
.point p { color: var(--muted); font-size: 16px; }

/* Closing */
.closing { text-align: center; padding: 110px 0 120px; }
.closing .box { background: linear-gradient(160deg, var(--plum), var(--navy)); color: #fff; border-radius: 36px; padding: 80px 24px; position: relative; overflow: hidden; }
.closing .box::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(240, 160, 75, .28), transparent 70%); }
.closing .box > * { position: relative; z-index: 1; }
.closing img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 26px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); }
.closing h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 760; }
.closing p { margin: 16px auto 0; color: #d4d7e8; font-size: 19px; max-width: 32em; }
.closing .cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .berth b { color: var(--ink); }

/* Documents */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 760; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -.015em; }
.doc p, .doc li { color: #3d4657; font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.callout { margin-top: 28px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 24px 26px; }
.faq { margin-top: 12px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; font-size: 16px; }
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound img { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 24px; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); }
.notfound p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.notfound .cta { justify-content: center; }

/* Jump button */
.jump { position: fixed; z-index: 6; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px -10px rgba(26, 42, 72, .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.jump.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
.jump:hover { background: #fff; color: var(--accent-ink); }
.jump svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .jump, .jump.show, .menu-btn path, .btn { transition: none; } }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 56px; }
  .grid, .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 44px 0 72px; }
  .app-icon { width: 80px; height: 80px; border-radius: 19px; }
  section { padding: 76px 0; }
  .grid, .flow, .points { grid-template-columns: 1fr; }
  .screen { border-radius: 32px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(26, 42, 72, .45), 0 0 0 7px #fff, 0 0 0 8px var(--hair); margin: 0 8px; }
  .card, .point, .flow li { padding: 22px; }
  .section-head { margin-bottom: 36px; }
  .section-head p, .copyblock > p { font-size: 17px; }
  .closing { padding: 72px 0 80px; }
  .closing .box { border-radius: 28px; padding: 56px 20px; }
  .split.rev > :first-child { order: 2; }
}
.point .ic { flex: none; }
.flow .tag { display: table; margin-top: 14px; }
.closing { padding-top: 0; }
