/* TaskVox marketing site — same tokens as the app (DESIGN.md §4). No framework, no JS required. */
:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eceef2;
  --border: #e4e7ec;
  --text: #101828;
  --muted: #5b6475;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --on-primary: #ffffff;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --danger: #b42318;
  --shadow: 0 10px 30px rgb(16 24 40 / 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #151821;
    --surface-2: #1e222d;
    --border: #262a35;
    --text: #f2f4f7;
    --muted: #98a2b3;
    --primary: #818cf8;
    --primary-soft: #1d1f3a;
    --on-primary: #0b0d12;
    --success: #75e0a7;
    --success-soft: #0f2a1d;
    --warning: #fec84b;
    --danger: #fda29b;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text) !important; text-decoration: none !important; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); background: var(--surface); text-decoration: none; }
.nav .btn { margin-left: 8px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 16px; top: 60px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; width: min(280px, calc(100vw - 32px)); display: grid; gap: 2px; }
.menu-panel a { padding: 12px; border-radius: 8px; color: var(--text); }
.menu-panel .btn { margin-top: 6px; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.9rem; padding: 0; margin: 0; list-style: none; }
.trust li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.hero-art { position: relative; display: flex; justify-content: center; gap: 16px; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* device frames */
.phone { width: 270px; border-radius: 36px; padding: 10px; background: #0b0d12; box-shadow: var(--shadow); flex: none; }
.phone img { border-radius: 28px; }
.phone.tilt { transform: rotate(-3deg) translateY(24px); }
.phone.sm { width: 220px; }
.browser { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.browser::before { content: ''; display: block; height: 28px; background: var(--surface-2) radial-gradient(circle at 16px 14px, #f97066 5px, transparent 6px), radial-gradient(circle at 34px 14px, #fdb022 5px, transparent 6px); background-repeat: no-repeat; border-bottom: 1px solid var(--border); }
@media (max-width: 560px) {
  .phone { width: 220px; border-radius: 30px; }
  .phone img { border-radius: 22px; }
  .hero-art .phone:nth-child(2) { display: none; }
}

/* sections */
section { padding: 72px 0; }
.alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.alt .card { background: var(--bg); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.card p:last-child { margin-bottom: 0; }

/* problem / solution */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs .card h3 { display: flex; align-items: center; gap: 8px; }
.vs ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.vs .bad li::before { content: '✕'; color: var(--danger); font-weight: 700; margin-right: 10px; }
.vs .good li::before { content: '✓'; color: var(--success); font-weight: 700; margin-right: 10px; }
@media (max-width: 700px) { .vs { grid-template-columns: 1fr; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312B76A' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-art { order: 0; }
}

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* stats / quote */
.stat { font-size: 2rem; font-weight: 700; color: var(--primary); }

/* pricing */
.billing-toggle { display: flex; justify-content: center; margin-bottom: 32px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.seg label { padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
/* the radios sit before .billing-toggle (needed for the ~ selectors) — keep them focusable but invisible */
#bill-yearly, #bill-monthly { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#bill-yearly:checked ~ .billing-toggle label[for='bill-yearly'],
#bill-monthly:checked ~ .billing-toggle label[for='bill-monthly'] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgb(16 24 40 / 0.12); }
#bill-yearly:focus-visible ~ .billing-toggle label[for='bill-yearly'],
#bill-monthly:focus-visible ~ .billing-toggle label[for='bill-monthly'] { outline: 3px solid var(--primary); }
.price-monthly { display: none; }
#bill-monthly:checked ~ .plans .price-yearly { display: none; }
#bill-monthly:checked ~ .plans .price-monthly { display: block; }
.save { font-size: 0.75rem; background: var(--success-soft); color: var(--success); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 24px; position: relative; }
.plan.popular { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--primary); color: var(--on-primary); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin-bottom: 2px; }
.plan .tag { color: var(--muted); font-size: 0.9rem; min-height: 2.8em; }
.amount { font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin: 12px 0 2px; }
.amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.per { color: var(--muted); font-size: 0.85rem; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; font-size: 0.95rem; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.note { background: var(--primary-soft); border-radius: 14px; padding: 16px 20px; margin: 28px auto 0; max-width: 880px; text-align: center; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 12px; border-bottom: 1px solid var(--border); text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { background: var(--surface); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); }

/* CTA band */
.band { background: var(--primary); color: var(--on-primary); border-radius: 24px; padding: 48px 32px; text-align: center; }
.band h2 { color: inherit; }
.band p { opacity: 0.9; font-size: 1.1rem; }
.band .btn-primary { background: var(--on-primary); color: var(--primary); }

/* guide */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 0.95rem; }
.toc p { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.toc a:hover, .toc a[aria-current='page'] { background: var(--surface); color: var(--text); text-decoration: none; }
.article { min-width: 0; max-width: 760px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.article h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: 0.4em; scroll-margin-top: 84px; }
.article h3 { margin-top: 1.6em; }
.article ol.how { padding-left: 0; list-style: none; counter-reset: h; display: grid; gap: 14px; margin: 16px 0; }
.article ol.how > li { counter-increment: h; position: relative; padding-left: 44px; }
.article ol.how > li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 6px; }
.shot { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0; }
.shot figure { margin: 0; }
.shot figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; max-width: 260px; }
.tip { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.warn { border-left-color: var(--warning); }
kbd, .ui { font: 600 0.9em/1 inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; }
  .toc { position: static; min-width: 0; }
  .toc .onpage { display: none; }
  .toc ol { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { border: 1px solid var(--border); white-space: nowrap; }
  .toc a[aria-current='page'] { border-color: var(--primary); color: var(--primary); }
}

/* footer */
footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; font-size: 0.95rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--text); }
footer .legal { margin-top: 32px; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
