/* copailot marketing site — one stylesheet, light + dark via prefers-color-scheme. */

:root {
  --violet: #7C5CFF;
  --cyan: #22D3EE;
  --rec: #FF6A13;
  --accent: #6A48FF;        /* button fill — white text 5.7:1 */
  --accent-strong: #4F2FE0; /* hover — white text 7.4:1 */

  --bg: #FBFAFF;
  --bg-alt: #F3F1FC;
  --surface: #FFFFFF;
  --text: #15122B;
  --muted: #56526F;
  --border: #E4E0F2;
  --link: #5134E6;
  --focus: #5134E6;
  --glow: rgba(124, 92, 255, 0.16);
  --grid: rgba(21, 18, 43, 0.05);
  --shadow: 0 1px 2px rgba(21, 18, 43, 0.05), 0 8px 24px rgba(21, 18, 43, 0.06);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 16px;
  --container: 1160px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0A17;
    --bg-alt: #110F22;
    --surface: #16142C;
    --text: #F3F1FF;
    --muted: #ABA7C9;
    --border: #2A2748;
    --link: #B3A6FF;
    --focus: #B3A6FF;
    --glow: rgba(124, 92, 255, 0.28);
    --grid: rgba(243, 241, 255, 0.05);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  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-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Wordmark: cop + "ai" (violet→cyan) + lot, orange recorder dot on the i ---------- */
/* Each gradient glyph clips its OWN background, so nothing relies on background-clip:text
   painting into a positioned descendant (the Chrome bug in the app's React wordmark). */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}
.wm-a, .wm-i {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.wm-a { background-image: linear-gradient(120deg, #7C5CFF, #4F98F6); }
.wm-i { background-image: linear-gradient(120deg, #4F98F6, #22D3EE); position: relative; }
.wm-i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.13em;
  width: 0.17em;
  height: 0.17em;
  margin-left: -0.085em;
  border-radius: 50%;
  background: var(--rec);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); text-decoration: none; }
.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }

/* ---------- Badges / placeholders ---------- */
.badge {
  display: inline-block; font: 700 0.7rem/1 var(--font-body); letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 8px; border-radius: 6px; vertical-align: middle;
}
.badge-draft { background: #FFF1E8; color: #9A3A00; border: 1.5px dashed #D9661F; }
.badge-todo { background: #FFF7D6; color: #6B4E00; border: 1.5px dashed #B38900; }
.badge-soon { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) {
  .badge-draft { background: #3A1E0C; color: #FFB78A; border-color: #D9661F; }
  .badge-todo { background: #332A08; color: #FFE08A; border-color: #B38900; }
}
.placeholder-box {
  border: 2px dashed #D9661F; border-radius: var(--radius); padding: 20px 22px;
  background: color-mix(in srgb, #FF6A13 6%, var(--surface));
}
.placeholder-box.todo { border-color: #B38900; background: color-mix(in srgb, #FFD43B 8%, var(--surface)); }
.placeholder-box > :last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .wordmark { font-size: 1.5rem; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav ul a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1.5px solid var(--border); color: var(--text); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 20px; margin-left: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Recorder dot ---------- */
.rec-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rec);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rec) 22%, transparent);
  flex: none;
}
.rec-note { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .rec-dot.live { animation: rec-pulse 2.4s ease-in-out infinite; }
}
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--rec) 0%, transparent); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 96px 0 112px; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); letter-spacing: -0.04em; margin-bottom: 20px; }
.hero .byline { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 32ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 28px; font-size: 0.95rem; color: var(--muted); }
/* The one "Not that copilot" nod — deliberately quiet: small, muted, italic, no emphasis. */
.wink { margin-top: 10px; font-size: 0.8rem; font-style: italic; letter-spacing: 0.01em; color: var(--muted); opacity: 0.8; }

/* Hero visual: voice orb + "flight recorder" capture strip (illustrative only) */
.hero-visual { position: relative; display: grid; place-items: center; }
.orb-wrap { position: relative; width: min(300px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.orb-wrap::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
}
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); }
.orb-ring.r2 { inset: -12%; opacity: 0.6; }
.orb {
  position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex; align-items: center; justify-content: center; gap: 6%;
  box-shadow: 0 20px 60px -10px rgba(124, 92, 255, 0.55);
}
.orb .bar { width: 7%; border-radius: 99px; background: #fff; height: 20%; }
.orb .bar:nth-child(2), .orb .bar:nth-child(4) { height: 36%; }
.orb .bar:nth-child(3) { height: 56%; }
@media (prefers-reduced-motion: no-preference) {
  .orb .bar { animation: talk 1.6s ease-in-out infinite; transform-origin: center; }
  .orb .bar:nth-child(2) { animation-delay: .2s; }
  .orb .bar:nth-child(3) { animation-delay: .4s; }
  .orb .bar:nth-child(4) { animation-delay: .6s; }
  .orb .bar:nth-child(5) { animation-delay: .8s; }
}
@keyframes talk { 50% { transform: scaleY(0.55); } }
.orb-rec {
  position: absolute; top: 9%; right: 9%; width: 13%; aspect-ratio: 1; border-radius: 50%;
  background: var(--rec); border: 3px solid var(--bg);
}

.capture-card {
  position: relative; margin-top: -8px; width: min(360px, 100%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.capture-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.capture-title { font-weight: 600; font-size: 0.95rem; }
.capture-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.capture-rows { display: grid; gap: 8px; }
.capture-row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.capture-row .tick {
  width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--link);
}
.capture-row .line { height: 8px; border-radius: 99px; background: var(--border); flex: 1; }
.capture-foot { margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Crew ---------- */
.crew-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .crew-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.crew-card { display: flex; flex-direction: column; gap: 10px; }
.crew-card h3 { font-size: 1.3rem; margin: 4px 0 0; }
.crew-card p { color: var(--muted); margin: 0; }
.crew-when { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 16%, transparent), color-mix(in srgb, var(--cyan) 16%, transparent));
  color: var(--link);
}
.icon-tile svg { width: 22px; height: 22px; }
.crew-card.cta-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 10%, var(--surface)), color-mix(in srgb, var(--cyan) 10%, var(--surface)));
  justify-content: center;
}
.crew-card.cta-card p { color: var(--text); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.08em; color: var(--link); margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Voice-first / recorder ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.timeline { position: relative; padding: 24px; }
.tl-track { position: relative; display: flex; align-items: center; gap: 3px; height: 72px; }
.tl-track span { flex: 1; border-radius: 99px; background: linear-gradient(180deg, var(--violet), var(--cyan)); opacity: 0.85; min-width: 2px; }
.tl-labels { display: flex; justify-content: space-between; margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.tl-out { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); display: flex; gap: 12px; align-items: flex-start; }
.tl-out p { margin: 0; font-size: 0.95rem; }
.check-list { display: grid; gap: 14px; margin-top: 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--link); margin-top: 2px; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-grid h3 { font-size: 1.15rem; margin-top: 16px; }
.trust-grid p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 48px 24px; text-align: center;
  background: linear-gradient(135deg, #1B1245, #0E2A3F); color: #fff;
}
@media (min-width: 720px) { .cta-band { padding: 72px 48px; } }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.45), transparent 50%), radial-gradient(circle at 90% 100%, rgba(34, 211, 238, 0.3), transparent 50%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta-band p { color: #D9D5F5; max-width: 52ch; margin: 0 auto 28px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn-ghost:hover { border-color: #fff; }
.cta-band .btn-primary { background: #fff; color: #3A1FC2; }
.cta-band .btn-primary:hover { background: #EDE9FF; }
.cta-band :focus-visible { outline-color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 64px 0 24px; }
@media (min-width: 900px) { .page-head { padding: 88px 0 32px; } }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -0.035em; }
.page-head .lead { max-width: 60ch; }
.page-body { padding-top: 24px; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Pricing ---------- */
.draft-banner { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 32px; }
.draft-banner p { margin: 0; }
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 28px;
}
.billing-toggle button {
  font: 600 0.9rem/1 var(--font-body); border: 0; background: transparent; color: var(--muted);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.billing-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { border: 2px solid var(--accent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h2 { font-size: 1.5rem; margin: 0; }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font: 500 1rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.price-note { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
.plan ul { display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--link); }
.plan .btn { margin-top: auto; }
.js [data-annual] { display: none; }
.js .show-annual [data-annual] { display: inline; }
.js .show-annual [data-monthly] { display: none; }
.no-js-note { display: none; }
html:not(.js) .no-js-note { display: block; }
html:not(.js) .billing-toggle { display: none; }
.topup { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.topup h2 { font-size: 1.3rem; margin: 0 0 4px; }
.topup p { margin: 0; color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-grid h2 { font-size: 1.35rem; }
.contact-grid p { color: var(--muted); }
.big-link { font: 600 1.15rem var(--font-body); word-break: break-word; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .code { font: 700 clamp(4rem, 16vw, 8rem)/1 var(--font-display); letter-spacing: -0.05em; }
.notfound .code .wm-i { font: inherit; }
.notfound .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer-brand { grid-column: auto; } }
.footer-brand .wordmark { font-size: 1.35rem; }
.footer-tag { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.footer-h { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; font-size: 0.95rem; word-break: break-word; }
.site-footer ul a:hover { color: var(--link); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 20px; background: linear-gradient(var(--border), var(--border)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.footer-base p { margin: 0; }
