/* Tab Pilot site. Tokens match the extension's dark theme (popup.css). */
:root {
  color-scheme: dark;
  --bg: #0b0f16;
  --bg-2: #0e1118;
  --card: #161a24;
  --card-2: #12161f;
  --line: #262c3a;
  --line-soft: #1d2230;
  --field: #1d2230;
  --text: #eef1f7;
  --muted: #8d96aa;
  --muted-2: #a5aec0;
  --accent: #34d399;
  --accent-strong: #6ee7b7;
  --accent-soft: #123528;
  --on-accent: #06281c;
  --glow: #134e3a;
  --mint: #b5f0d6;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 30px 80px rgb(0 0 0 / 45%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%, rgb(19 78 58 / 85%), transparent 62%),
    radial-gradient(760px 560px at 100% 30%, rgb(19 78 58 / 35%), transparent 60%);
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, kbd { font-family: var(--mono); }
code { font-size: .86em; color: var(--accent-strong); background: rgb(52 211 153 / 8%); border: 1px solid rgb(52 211 153 / 18%); border-radius: 6px; padding: 1px 6px; }
kbd { font-size: .8em; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); color: var(--text); }
::selection { background: rgb(52 211 153 / 35%); }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(11 15 22 / 72%); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgb(38 44 58 / 60%);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .wrap { gap: 12px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px rgb(52 211 153 / 25%); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: rgb(255 255 255 / 3%); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3a4256; background: rgb(255 255 255 / 6%); color: var(--text); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }

/* ---------- pill (same as the popup's phase pill) ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent-strong); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live::before { animation: pulse 1s ease-in-out infinite; }
.pill[data-phase="ready"], .pill[data-phase="waiting"] { background: var(--field); color: var(--muted-2); }
.pill[data-phase="ready"]::before, .pill[data-phase="waiting"]::before { animation: none; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(38px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 22px; }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted-2); max-width: 680px; margin: 0 auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }
.fine span + span::before { content: "·"; margin: 0 10px; color: var(--line); }

.showcase { position: relative; margin: 56px auto 0; width: min(1080px, 100%); }
.showcase::before { content: ""; position: absolute; inset: 8% 6% -6%; background: radial-gradient(closest-side, rgb(52 211 153 / 22%), transparent); filter: blur(40px); z-index: -1; }
.frame { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #121722; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3142; }
.frame-bar > span { margin-left: 10px; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame video { width: 100%; aspect-ratio: 16 / 9; background: var(--bg); }
.frame-bar .sound-btn { margin-left: auto; padding: 5px 10px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.frame-bar .sound-btn svg { width: 15px; height: 15px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; }
h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 8px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted-2); font-size: 19px; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

.card { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted-2); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* human typing split */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; color: var(--muted-2); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { color: var(--text); font-weight: 600; }

.demo { background: #ffffff; color: #1f2328; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.demo-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; background: #e8ebf0; }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c4c9d2; }
.demo-bar .tab { margin-left: 12px; align-self: flex-end; padding: 8px 16px; background: #fff; border-radius: 10px 10px 0 0; font-size: 13px; font-weight: 600; }
.demo-bar .pill { margin-left: auto; font-size: 12px; padding: 4px 10px; }
.demo-field { margin: 0 26px; padding: 12px 0; border-bottom: 1px solid #e3e6ee; font-size: 14px; color: #2b303b; }
.demo-field b { display: inline-block; width: 74px; color: #5b6270; font-weight: 500; }
.demo-body { min-height: 220px; padding: 18px 26px 26px; font-size: 18px; line-height: 1.6; white-space: pre-wrap; }
.demo-body .typo { text-decoration: underline wavy #e5484d; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -.2em; background: #059669; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.caret.busy { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* under the hood */
.hood { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 920px) { .hood { grid-template-columns: 1fr; } }
.cmds { display: grid; gap: 12px; }
.cmd { display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px; background: var(--field); border: 1px solid var(--line-soft); }
.cmd strong { font-size: 16px; }
.cmd code { background: none; border: 0; padding: 0; font-size: 14px; }
.cmd span { color: var(--muted); font-size: 15px; }
pre.code { margin: 0; height: 100%; padding: 24px; border-radius: var(--radius); background: #0a0d13; border: 1px solid var(--line); overflow: auto; font: 14px/1.7 var(--mono); color: #c9d1e0; }
pre.code .c { color: #5f6b80; }
pre.code .s { color: var(--mint); }
pre.code .k { color: var(--accent-strong); }

/* privacy band */
.band { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px 36px; }
.band .icon { margin: 0; width: 56px; height: 56px; border-radius: 16px; }
.band h3 { font-size: 24px; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* install */
.install { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; padding: 0; overflow: hidden; }
.install > div { padding: 44px; }
.install-cta { background: radial-gradient(520px 380px at 0% 0%, rgb(19 105 76 / 70%), transparent 70%), var(--card); border-right: 1px solid var(--line); }
.install-cta img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px; }
.install-cta h2 { font-size: clamp(32px, 4vw, 44px); }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } .install-cta { border-right: 0; border-bottom: 1px solid var(--line); } .install > div { padding: 30px; } }
ol.install-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 20px; }
ol.install-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--muted-2); }
ol.install-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent-strong); }
ol.install-steps b { color: var(--text); font-weight: 600; }
.copy-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line); font: 14px var(--mono); color: var(--text); }
.copy-chip button { font: 600 12px var(--font); color: var(--accent-strong); background: var(--accent-soft); border: 0; border-radius: 7px; padding: 5px 9px; cursor: pointer; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; transition: rotate .15s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 20px; color: var(--muted-2); }

/* docs pages (privacy, support) */
.doc { padding: 72px 0 40px; }
.doc h1 { font-size: clamp(38px, 5.5vw, 60px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 14px; }
.doc h2 { font-size: 26px; letter-spacing: -.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--muted-2); }
.doc strong, .doc b { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 10px 0; }
.updated { color: var(--muted); font-size: 15px; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer .brand { font-size: 15px; }
.footer .brand img { width: 24px; height: 24px; border-radius: 7px; }
.footer a:not(.brand) { color: var(--muted); text-decoration: none; }
.footer a:not(.brand):hover { color: var(--text); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill.live::before, .caret { animation: none; }
}

/* ---------- walkthrough (/welcome) ---------- */
.tour-hero { padding: 72px 0 40px; }
.tour-hero h1 { max-width: 900px; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin: 0 0 18px; }
.tour-hero .lead { margin: 0; }
.tour { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: start; padding-bottom: 40px; }
@media (max-width: 980px) { .tour { grid-template-columns: 1fr; } }
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tour-step { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card-2); transition: border-color .2s, background .2s, opacity .2s; }
.tour-step h3 { margin-top: 3px; }
.tour-step p { margin: 0 0 14px; color: var(--muted-2); }
.tour-step p:last-child { margin-bottom: 0; }
.tour-step .btn { margin-top: 2px; }
.tour-step.current { border-color: rgb(52 211 153 / 55%); background: linear-gradient(180deg, #16201f, var(--card-2)); box-shadow: 0 0 0 4px rgb(52 211 153 / 8%); }
.tour-step:not(.current):not(.done) { opacity: .62; }
.tour-check { counter-increment: tour; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.tour-steps { counter-reset: tour; }
.tour-check::before { content: counter(tour); }
.tour-step.current .tour-check { border-color: var(--accent); color: var(--accent-strong); }
.tour-step.done .tour-check { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306281c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 18px no-repeat; }
.tour-step.done .tour-check::before { content: ""; }
.tour-step.done h3 { color: var(--muted-2); }
.glyph { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: .9em; color: var(--text); }
.sample { margin: 0 0 14px; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--field); color: var(--text); font-size: 16px; }
ol.mini { margin: 0 0 14px; padding-left: 20px; color: var(--muted-2); display: grid; gap: 8px; }
ol.mini b, .tour-step p b { color: var(--text); font-weight: 600; }
.tip { font-size: 14.5px; color: var(--muted) !important; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 2.5%); border: 1px dashed var(--line); }

.practice-wrap { position: sticky; top: 92px; }
.practice { padding: 22px; display: grid; gap: 14px; transition: box-shadow .3s, border-color .3s; }
.practice.glow { border-color: rgb(52 211 153 / 60%); box-shadow: 0 0 0 5px rgb(52 211 153 / 10%), 0 30px 80px rgb(0 0 0 / 45%); }
.practice-head { display: flex; align-items: center; justify-content: space-between; }
.practice textarea { width: 100%; min-height: 230px; resize: vertical; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff; color: #1f2328; font: 17px/1.6 var(--font); }
.practice textarea::placeholder { color: #7a8190; }
.practice textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(52 211 153 / 30%); }
.practice-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.practice-stats div { padding: 12px; border-radius: 12px; background: var(--field); display: grid; gap: 2px; }
.practice-stats b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.practice-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.practice .btn { justify-self: start; }

.finish { padding: 20px 0 40px; }
.finish-card { padding: 44px; background: radial-gradient(700px 400px at 0% 0%, rgb(19 105 76 / 55%), transparent 70%), var(--card); }
.finish-card h2 { margin-top: 18px; }
.finish-card .grid .card { background: rgb(11 15 22 / 55%); }
.finish-card .cta-row { margin-top: 30px; }
