/* ============================================================
   TypeMic — "Caret"
   A studio-instrument identity: warm bone paper + one dark slab.
   Paper #EFEBE2 · Ink #161410 · Signal #4B30E8 (electric indigo)
   Display: Bricolage Grotesque · Body: Hanken Grotesk · Data: IBM Plex Mono
   ============================================================ */

:root {
  --paper:    #efebe2;
  --paper-2:  #e6e1d5;   /* recessed surfaces */
  --paper-3:  #ddd7c8;   /* hairline fills */
  --line:     #d2ccbc;   /* hairlines on paper */
  --line-2:   #c4bda9;
  --ink:      #161410;
  --ink-2:    #3a362d;
  --ink-soft: #6b6557;
  --ink-faint:#928c7c;

  --slab:     #0d0e0c;   /* the instrument */
  --slab-2:   #16170f;
  --slab-line:rgba(255,255,255,0.10);
  --slab-text:rgba(255,255,255,0.92);
  --slab-dim: rgba(255,255,255,0.46);

  --signal:   #4b30e8;   /* electric indigo */
  --signal-2: #6a52ff;
  --signal-soft: rgba(75,48,232,0.12);
  --live:     #ff4530;   /* functional recording status only */
  --slab-border: #000;
  --ok:       #1f9d4d;

  --r:   12px;
  --r-lg:18px;
  --shell: 1120px;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Hanken Grotesk", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  background: var(--paper);       /* base colour; the #bg canvas paints over it */
  color-scheme: light;
  transition: background-color .45s var(--ease);
}

body {
  background: var(--paper);       /* solid, same as /account */
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* smooth theme cross-fade on the surfaces that change colour */
body, .topbar, .band, .feature, .card, .proof, .footer, .flow-key,
input, select, textarea, .spec-table, .spec-row, .faq-list, .faq-item,
.btn, .chip {
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .25s var(--ease);
}

::selection { background: var(--signal); color: #fff; }

a { color: inherit; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- shared display type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.sig { color: var(--signal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em; text-decoration: none;
  padding: 13px 20px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--signal); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 5px;
  background: rgba(255,255,255,0.16); color: inherit;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 64px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 35px; height: 28px; flex-shrink: 0; overflow: visible; }
.brand-mark { color: var(--ink); }
.brand-name {
  font-family: var(--display); font-weight: 500; font-size: 23px;
  letter-spacing: -0.02em; color: var(--ink);
}
/* red dot on the "i" (covers its tittle) — the brand flourish. Wrapping the
   narrow "i" (not the "M") keeps TypeMic's kerning intact, so no gaps open up. */
.brand-i { position: relative; }
.brand-i::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 0.19em; height: 0.19em; background: var(--brand-red, #d2202b);
  border-radius: 50%; transform: translateX(-50%);
}
@keyframes blink { 50% { opacity: 0; } }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a {
  font-size: 15px; color: var(--ink-soft); text-decoration: none; letter-spacing: -0.01em;
  transition: color .15s;
}
.topnav a:hover { color: var(--ink); }

/* ---------- topbar account: sign-in link -> chip with plan badge ---------- */
.account-slot { display: flex; align-items: center; flex-shrink: 0; }
.account-signin {
  font-size: 15px; color: var(--ink-soft); text-decoration: none; letter-spacing: -0.01em;
  transition: color .15s;
}
.account-signin:hover { color: var(--ink); }
/* Google-branded sign-in — desktop hides it (uses the text link above);
   mobile shows it in the top-right slot in place of the Download button. */
.account-google {
  display: none; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: #1f1f1f; white-space: nowrap;
  background: #fff; border: 1px solid #dadce0; border-radius: 999px;
  padding: 8px 14px 8px 11px; text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.account-google:hover { background: #f7f8f8; box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.account-google svg { display: block; }
.account-chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s, transform .22s var(--ease);
}
.account-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.account-chip img { width: 24px; height: 24px; border-radius: 50%; display: block; }
.plan-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; line-height: 1;
}
.plan-badge.pro {
  color: #fff; background: linear-gradient(120deg, var(--signal), var(--signal-2));
  box-shadow: 0 1px 6px rgba(75, 48, 232, 0.35);
}
.plan-badge.free {
  color: var(--ink-soft); border: 1px solid var(--line-2); background: var(--paper-2);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .8s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ============ HERO ============ */
.hero { padding: clamp(48px, 8vw, 104px) 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,69,48,.5);} 70%,100% { box-shadow: 0 0 0 8px rgba(255,69,48,0);} }
.hero-title {
  font-size: clamp(52px, 9vw, 104px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92;
}
.hero-title span { display: block; }
.hero-sub {
  font-size: clamp(17px, 1.7vw, 19px); color: var(--ink-2); max-width: 46ch;
  margin: 20px 0; line-height: 1.55;
}
.hero-sub + .hero-sub { margin-top: 12px; }
.hero-sub em { font-style: normal; color: var(--ink); box-shadow: inset 0 -0.5em 0 var(--signal-soft); }
.hero-contrast { color: var(--ink-soft); }
.hero-contrast em { box-shadow: none; color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.hero-meta {
  margin-top: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.01em;
}

/* "Secure by design" badge — the hero's cybersecurity signal */
.hero-secure {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--paper-2), var(--paper-2)) padding-box,
    linear-gradient(90deg, rgba(75,48,232,0.35), rgba(75,48,232,0.08)) border-box;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-soft);
}
.hero-secure b { color: var(--ink); font-weight: 600; }
.hero-secure svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--signal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.hero-secure svg .tick { stroke: var(--signal); stroke-width: 2; }

/* OS-aware download button: platform glyph + label */
.hero-dl { gap: 9px; }
.hero-dl-icon { display: inline-flex; width: 17px; height: 17px; }
.hero-dl-icon svg { width: 100%; height: 100%; display: block; }

/* ---------- the slab (signature) ---------- */
.slab {
  background: var(--slab); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--slab-border);
  box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 28px 60px -28px rgba(20,18,12,.55), 0 8px 22px -16px rgba(20,18,12,.5);
}
.slab-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--slab-line);
  font-family: var(--mono); font-size: 11.5px; color: var(--slab-dim); letter-spacing: 0.03em;
}
.slab-rec { display: inline-flex; align-items: center; gap: 7px; color: var(--slab-text); text-transform: uppercase; letter-spacing: 0.1em; }
.slab-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 1.4s steps(1) infinite; }
.slab-readout { margin-left: auto; }
.slab-readout b { color: var(--slab-text); font-weight: 500; }
.slab-dots { display: inline-flex; gap: 5px; }
.slab-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); }
.slab-stage {
  position: relative; height: 150px;
  background: radial-gradient(120% 100% at 50% 120%, rgba(75,48,232,.18), transparent 70%);
}
.slab-stage canvas { display: block; width: 100%; height: 100%; }
.slab-out {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 20px 22px; border-top: 1px solid var(--slab-line);
  font-family: var(--mono); font-size: 15px; line-height: 1.5; min-height: 78px;
}
.slab-prompt { color: var(--signal-2); }
.slab-text { color: var(--slab-text); }
.slab-caret {
  display: inline-block; width: 9px; height: 18px; background: var(--signal-2);
  transform: translateY(3px); animation: blink 1.1s steps(1) infinite;
}

/* ---------- cross-platform grid ---------- */
.platforms-band .band-head { max-width: 720px; }
.band-lede { margin-top: 14px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.platform-grid {
  margin-top: clamp(30px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
@media (max-width: 940px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.platform-card:hover {
  transform: translateY(-3px); border-color: var(--line-2);
  box-shadow: 0 18px 40px -24px rgba(20,18,12,.5);
}
.platform-top { display: flex; align-items: center; justify-content: space-between; }
.platform-icon { width: 30px; height: 30px; color: var(--ink); }
.platform-icon svg { width: 100%; height: 100%; display: block; }
.platform-badge {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-live { background: rgba(31,157,77,.12); color: var(--ok); }
.badge-store { background: var(--signal-soft); color: var(--signal); }
.badge-soon { background: var(--paper-3); color: var(--ink-soft); }
.platform-name { font-family: var(--display); font-size: 20px; font-weight: 700; margin-top: 4px; }
.platform-tagline { color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; flex: 1; }
.platform-cta {
  margin-top: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--signal); text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
  transition: gap .2s var(--ease);
}
.platform-cta:hover { gap: 10px; }

/* ---------- security trust strip ---------- */
.trust {
  margin-top: clamp(30px, 4vw, 46px);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px 22px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(var(--paper-2), var(--paper-2)) padding-box,
    linear-gradient(90deg, transparent, rgba(75,48,232,0.28), transparent) border-box;
  position: relative;
}
.trust::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(75,48,232,0.35), transparent);
}
.trust-eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  padding-right: 4px;
}
.trust-badge { display: inline-flex; align-items: center; gap: 9px; }
.trust-badge svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--ink); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.trust-badge svg .tick { stroke: var(--signal); stroke-width: 1.9; }
.trust-badge svg .dot { fill: var(--signal); stroke: none; }
.trust-badge svg .core { fill: var(--signal); stroke: none; }
.trust-text { display: flex; flex-direction: column; line-height: 1.15; }
.trust-text b {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink);
}
.trust-text i {
  font-style: normal; font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
  margin-top: 2px;
}
.trust-sep { width: 1px; height: 30px; background: var(--line); }
@media (max-width: 640px) {
  .trust { border-radius: 18px; gap: 12px 16px; }
  .trust-sep { display: none; }
}

/* ---------- proof strip ---------- */
.proof {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-2);
}
.proof-item { padding: 26px 24px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: none; }
.proof-item b { display: block; font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.proof-item span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ============ bands ============ */
.band { padding: clamp(64px, 9vw, 116px) 0; border-top: 1px solid var(--line); }
.band-head { max-width: 32ch; margin-bottom: clamp(36px, 5vw, 60px); }
.band-head .kicker { display: block; margin-bottom: 16px; }
.band-head h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.035em; }
.band-sub { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

/* ---------- how / flow ---------- */
.flow { list-style: none; display: flex; align-items: stretch; gap: 8px; }
.flow-step { flex: 1; }
.flow-arrow { display: flex; align-items: center; color: var(--line-2); font-size: 24px; padding: 0 6px; }
.flow-key {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--paper-2); box-shadow: 0 2px 0 var(--line-2);
}
.flow-key.live { color: #fff; background: var(--signal); border-color: var(--signal); box-shadow: 0 2px 0 #2f1bb0; }
.flow-step h3 { font-size: 22px; margin: 20px 0 10px; }
.flow-step p { color: var(--ink-soft); font-size: 16px; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--paper); padding: 32px 28px; transition: background .2s; }
.feature:hover { background: var(--paper-2); }
.feature-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }
.feature h3 { font-size: 21px; margin: 16px 0 10px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.privacy-copy h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 16px 0 20px; }
.privacy-copy > p { color: var(--ink-2); max-width: 46ch; }
.check { list-style: none; margin-top: 24px; display: grid; gap: 13px; }
.check li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; }
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--signal);
}
.check em { font-style: normal; font-weight: 600; color: var(--ink); }
.privacy-card {
  background: var(--slab); border-radius: var(--r-lg); padding: 22px;
  border: 1px solid var(--slab-border);
  font-family: var(--mono); color: var(--slab-text);
  box-shadow: 0 28px 60px -30px rgba(20,18,12,.5);
}
.net-head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slab-dim); padding-bottom: 16px; border-bottom: 1px solid var(--slab-line); }
.net-state { color: #5fd07a; }
.net-rows { display: grid; gap: 2px; padding: 14px 0; }
.net-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--slab-dim); }
.net-row b { font-weight: 500; }
.net-row .ok { color: #5fd07a; }
.net-row .zero { color: var(--slab-text); }
.net-foot { font-size: 13px; color: var(--slab-dim); padding-top: 14px; border-top: 1px solid var(--slab-line); }
.net-foot b { color: var(--signal-2); font-size: 15px; }

/* ---------- specs table ---------- */
.spec-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.spec-row { display: grid; grid-template-columns: 1.1fr 1.5fr 0.8fr 1.6fr; gap: 18px; padding: 16px 24px; border-top: 1px solid var(--line); align-items: center; font-size: 15px; }
.spec-row:first-child { border-top: none; }
.spec-head { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-3); }
.spec-row b { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--ink); }
.spec-row span:nth-child(2), .spec-row span:nth-child(4) { color: var(--ink-soft); }
.pill { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.pill.local { background: var(--signal-soft); color: var(--signal); }
.pill.cloud { background: var(--paper-3); color: var(--ink-soft); }

/* ---------- install ---------- */
.install { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; background: var(--slab); border: 1px solid var(--slab-border); }
.install-bar { display: flex; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--slab-line); font-family: var(--mono); font-size: 12px; color: var(--slab-dim); }
.install-label { letter-spacing: 0.04em; }
.copy-btn { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slab-dim); background: none; border: 1px solid var(--slab-line); border-radius: 6px; padding: 4px 11px; cursor: pointer; transition: color .15s, border-color .15s; }
.copy-btn:hover { color: var(--slab-text); border-color: rgba(255,255,255,.35); }
.install pre { padding: 18px 18px 20px; overflow-x: auto; }
.install code { font-family: var(--mono); font-size: 13.5px; line-height: 1.9; color: var(--slab-text); white-space: pre; }
.install code .c { color: var(--signal-2); user-select: none; margin-right: 8px; }

/* ---------- mobile ---------- */
.mobile-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.mobile-copy h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 16px 0 18px; }
.mobile-copy > p { color: var(--ink-2); max-width: 44ch; }

/* ---------- cards / forms ---------- */
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.field-label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.optional { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
input, select, textarea {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
textarea { resize: vertical; line-height: 1.5; }
.waitlist input { margin-bottom: 18px; }
.platforms { border: none; margin-bottom: 20px; }
.platforms .field-label { margin-bottom: 11px; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.chip input { width: auto; accent-color: var(--signal); }
.chip:has(input:checked) { border-color: var(--signal); background: var(--signal-soft); }
.feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.feedback-form .field:last-of-type { margin-bottom: 20px; }
.form-note { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }
.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--live); }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 24px; color: var(--signal); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); font-size: 16px; padding-bottom: 24px; max-width: 70ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 44px; background: var(--paper-2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer-brand .brand-name { font-size: 22px; }
.footer-line { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.footer-line a, .footer-fine a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.footer-line a:hover, .footer-fine a:hover { border-color: var(--ink); }
.footer-statement { max-width: 620px; font-size: 13.5px; line-height: 1.65; opacity: .82; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.footer-nav a { font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .hero-grid, .privacy-grid, .mobile-grid { grid-template-columns: 1fr; }
  .hero-sub { max-width: none; }
  .slab { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(odd) { border-left: none; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topnav { display: none; }
  /* Mobile top-right: swap the Download button for a Google sign-in button.
     The account-slot (sign-in / hydrated account chip) is pushed flush-right;
     the text "Sign in" link is replaced by the Google-branded button. */
  .topbar-download { display: none; }
  .account-slot { margin-left: auto; }
  .account-signin { display: none; }
  .account-google { display: inline-flex; }
  .flow { flex-direction: column; gap: 24px; }
  .flow-arrow { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 18px; }
  .spec-head { display: none; }
  .spec-row span[data-l]::before { content: attr(data-l) " · "; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
  .spec-row b { font-size: 15px; }
  .feedback-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
  .slab-readout { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- FAQ: Ask TypeMic (Workers AI) ---------- */
.ask-box { margin-top: 40px; padding: 26px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ask-form { display: flex; gap: 10px; margin-top: 12px; }
.ask-form input {
  flex: 1; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); outline: none;
}
.ask-form input:focus { border-color: var(--signal); }
.ask-answer { margin-top: 14px; font-size: 15px; color: var(--ink-2); min-height: 0; white-space: pre-wrap; }
.ask-answer.thinking { color: var(--ink-faint); }
.ask-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); }
@media (max-width: 560px) { .ask-form { flex-direction: column; } }

/* ---------- live chat widget ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 18px; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 6px 24px rgba(22, 20, 16, 0.28);
  transition: transform .22s var(--ease), background .2s;
}
.chat-fab:hover { background: var(--signal); transform: translateY(-2px); }
.chat-fab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chat-panel {
  position: fixed; right: 22px; bottom: 86px; z-index: 91;
  width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100vh - 120px));
  display: none; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 18px 60px rgba(22, 20, 16, 0.22);
}
.chat-panel.open { display: flex; }
.chat-head {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  background: var(--ink); color: var(--paper);
}
.chat-head .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  background: linear-gradient(120deg, var(--signal), var(--signal-2)); color: #fff;
}
.chat-head .who-name { font-family: var(--display); font-weight: 650; font-size: 15px; line-height: 1.2; }
.chat-head .who-sub { font-size: 11.5px; opacity: .62; }
.chat-head .status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .8; }
.chat-head .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-close { background: none; border: none; color: inherit; opacity: .6; cursor: pointer; font-size: 17px; margin-left: 8px; }
.chat-close:hover { opacity: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.chat-msg.them { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; background: var(--signal); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing { align-self: flex-start; padding: 11px 15px; }
.chat-typing i { display: inline-block; width: 6px; height: 6px; margin: 0 1.5px; border-radius: 50%; background: var(--ink-faint); animation: chatdot 1.1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chatdot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; padding: 10px 13px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 11px; outline: none;
}
.chat-form input:focus { border-color: var(--signal); }
.chat-send {
  padding: 0 16px; border: none; border-radius: 11px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  background: var(--ink); color: var(--paper);
}
.chat-send:hover { background: var(--signal); }
.chat-send[disabled] { opacity: .5; cursor: default; }
@media (max-width: 560px) { .chat-fab span.label { display: none; } .chat-fab { padding: 13px 15px; } }

/* ---------- download page: primary .deb card ---------- */
.dl-primary { margin-top: 34px; }
.dl-card {
  max-width: 560px; padding: 30px; border-radius: var(--r-lg);
  background: var(--paper-2); border: 1px solid var(--line-2);
  border-top: 3px solid var(--signal);
}
.dl-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dl-card-head h2 { font-size: 20px; }
.dl-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(120deg, var(--signal), var(--signal-2));
}
.dl-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.dl-card .btn { font-size: 16px; padding: 14px 24px; }
.dl-fine { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }
.dl-fine a { color: var(--ink-soft); }

/* ---------- mobile page: platform cards ---------- */
.mobile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.mobile-cards .dl-card { max-width: none; }
@media (max-width: 720px) { .mobile-cards { grid-template-columns: 1fr; } }

/* ---------- app store badge (Google Play style) ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid #a6a6a6; border-radius: 9px;
  padding: 9px 20px 9px 16px; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
.store-badge-icon { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge-text small {
  color: #fff; font-size: 10px; letter-spacing: .5px; text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif; font-weight: 400;
}
.store-badge-text strong {
  color: #fff; font-size: 20px; font-weight: 500; letter-spacing: .2px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}
