/* ============================================================
   Saidso — landing page
   Native-Mac, quiet-premium aesthetic. Brand indigo from AppIcon.
   CSP note: no inline styles/scripts allowed — everything lives here;
   interactions are CSS-only (details/summary, :target, hover).
   ============================================================ */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f6;
  --panel: #ffffff;
  --fg: #16161c;
  --fg-soft: #5b5b6b;
  --fg-faint: #8a8a99;
  --accent: #3b5bdb;
  --accent-deep: #2a2aa0;
  --accent-fg: #ffffff;
  --accent-tint: color-mix(in srgb, var(--accent) 8%, var(--panel));
  --good: #1a9e6a;
  --bad: #c2536b;
  --border: #e6e6ee;
  --border-soft: #eeeef4;
  --shadow-sm: 0 1px 2px rgba(20,20,45,.06), 0 1px 1px rgba(20,20,45,.04);
  --shadow: 0 4px 12px rgba(20,20,45,.06), 0 20px 40px -16px rgba(20,20,45,.14);
  --shadow-lg: 0 8px 24px rgba(20,20,45,.10), 0 40px 80px -24px rgba(28,8,131,.28);
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --bg-alt: #101017;
    --panel: #16161f;
    --fg: #f3f3f7;
    --fg-soft: #a7a7b6;
    --fg-faint: #71717f;
    --accent: #7d96ff;
    --accent-deep: #5f78ee;
    --accent-fg: #0b0b10;
    --accent-tint: color-mix(in srgb, var(--accent) 14%, var(--panel));
    --good: #46c895;
    --bad: #ff7d95;
    --border: #262633;
    --border-soft: #1e1e29;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow: 0 4px 12px rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.6);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.5), 0 48px 90px -24px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.62;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand span { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) { color: var(--fg-soft); font-size: .95rem; font-weight: 500; }
.nav-links > a:not(.btn):hover { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: .5ch;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; color: var(--btn-fg);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s cubic-bezier(.2,.7,.3,1), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--accent-fg);
  box-shadow: 0 2px 8px -1px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { box-shadow: 0 8px 22px -4px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ghost { background: var(--panel); color: var(--fg); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
/* Nav download — high specificity so the label never inherits nav-link grey (old bug) */
.nav-links a.btn-nav { padding: 9px 18px; font-size: .92rem; color: var(--accent-fg);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.18); }
.nav-links a.btn-nav:hover { color: var(--accent-fg); transform: translateY(-1px); }
.btn .sub { font-size: .72rem; font-weight: 500; opacity: .85; margin-left: .4ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 104px 0 84px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 720px; z-index: -1;
  background:
    radial-gradient(680px 340px at 50% -4%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(520px 300px at 82% 8%, color-mix(in srgb, var(--accent-deep) 20%, transparent), transparent 70%),
    radial-gradient(460px 280px at 16% 14%, color-mix(in srgb, #7d96ff 18%, transparent), transparent 72%);
  filter: blur(6px);
}
.hero .eyebrow { display: inline-block; margin-bottom: 20px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.4rem); margin: 0 0 14px; letter-spacing: -0.045em; }
.hero .tagline { font-size: clamp(1.15rem, 3vw, 1.55rem); color: var(--fg-soft); margin: 0 auto 36px; max-width: 22ch; font-weight: 450; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.req-note { margin-top: 22px; color: var(--fg-faint); font-size: .88rem; font-family: var(--font-mono); letter-spacing: .01em; }

/* Staggered load-in. Transform-only + opacity that ALWAYS ends visible — content is
   never hidden behind an animation that could fail to fire (backgrounded tab, etc.). */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .55s cubic-bezier(.2,.7,.3,1) both; }
  .d1 { animation-delay: .04s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .16s; }
  .d4 { animation-delay: .22s; } .d5 { animation-delay: .28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 12px; }
.section-sub { color: var(--fg-soft); font-size: 1.06rem; margin: 0 auto; }
.tint { background: var(--bg-alt); }

/* ---------- Privacy pitch band ---------- */
.pitch { text-align: center; }
.pitch .big { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; margin: 0 auto 20px; }
.pitch p { max-width: 640px; margin: 0 auto; color: var(--fg-soft); font-size: 1.08rem; }
.pitch .chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.chip { font-family: var(--font-mono); font-size: .82rem; color: var(--fg); background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px; box-shadow: var(--shadow-sm); }
.chip b { color: var(--accent); font-weight: 600; }

/* ---------- Screenshots: frameless, identical fixed-aspect boxes + one uniform
   drop-shadow so both read the same. Shadows are NOT baked into the .webp files
   (they're trimmed to the window); drop-shadow hugs the rounded corners. ---------- */
.shot { width: 100%; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 12px 26px rgba(20,20,45,.18)); }
@media (prefers-color-scheme: dark) {
  .shot img { filter: drop-shadow(0 12px 28px rgba(0,0,0,.6)); }
}

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 44px; max-width: 1040px;
  margin: 0 auto; align-items: end; }
.demo-cap { text-align: center; color: var(--fg-soft); font-size: .92rem; margin: 14px auto 0; max-width: 40ch; }
.demo-cap b { color: var(--fg); font-weight: 600; }

/* ---------- The pill: live CSS recreation of Saidso's listening indicator ----------
   Rendered in-browser (not a screen-recording) so it's crisp, always animating, and
   not tied to any one OS. This is the product's signature motif. */
/* The pill floats on its own shadow — no box behind it (matches the Claude Design). */
.pill-stage { max-width: 620px; margin: 0 auto; padding: 28px 24px 6px; display: flex; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-weight: 500; font-size: 1.05rem; color: var(--fg); letter-spacing: -0.01em;
}
/* Visualizer swaps by state to mirror the app: bars (listening), dots
   (transcribing), spinner (thinking). Fixed footprint so the pill never jumps. */
.pill-viz { width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.pill-label { display: inline-block; min-width: 106px; }
.pill-bars, .pill-dots { display: none; align-items: center; }
.pill-spinner { display: none; }
.pill[data-state="listening"]    .pill-bars    { display: inline-flex; }
.pill[data-state="transcribing"] .pill-dots    { display: inline-flex; }
.pill[data-state="thinking"]     .pill-spinner { display: block; }

/* Bars — center-tall waveform (app weights 0.5 / 0.78 / 1 / 0.78 / 0.5), stands in
   for the app's live mic level since a web page has no microphone. */
.pill-bars { gap: 3px; height: 24px; }
.pill-bars i { width: 3px; height: 24px; border-radius: 999px; background: var(--accent);
  transform: scaleY(.24); transform-origin: center; --peak: 1; }
.pill-bars i:nth-child(1) { --peak: .5; }
.pill-bars i:nth-child(2) { --peak: .78; }
.pill-bars i:nth-child(3) { --peak: 1; }
.pill-bars i:nth-child(4) { --peak: .78; }
.pill-bars i:nth-child(5) { --peak: .5; }

/* Dots — three dots pulsing in sequence (app transcribing cue). */
.pill-dots { gap: 3.5px; }
.pill-dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); opacity: .3; }

/* Spinner — rotating 3/4 arc (app thinking cue). */
.pill-spinner { width: 14px; height: 14px; border-radius: 999px;
  background: conic-gradient(var(--accent) 0 .72turn, transparent .72turn 1turn);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 2px)); }

@media (prefers-reduced-motion: no-preference) {
  .pill-bars i { animation: eqListen 1.05s ease-in-out infinite; }
  .pill-bars i:nth-child(1) { animation-delay: 0s; }
  .pill-bars i:nth-child(2) { animation-delay: .09s; }
  .pill-bars i:nth-child(3) { animation-delay: .18s; }
  .pill-bars i:nth-child(4) { animation-delay: .27s; }
  .pill-bars i:nth-child(5) { animation-delay: .36s; }
  .pill-dots i { animation: dotPulse .9s linear infinite; }
  .pill-dots i:nth-child(2) { animation-delay: .18s; }
  .pill-dots i:nth-child(3) { animation-delay: .36s; }
  .pill-spinner { animation: pillspin .8s linear infinite; }
}
@keyframes eqListen { 0%,100% { transform: scaleY(.24); } 50% { transform: scaleY(var(--peak)); } }
@keyframes dotPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pillspin { to { transform: rotate(360deg); } }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.tier {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 26px 30px; text-align: center; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier-featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.tier h3 { margin: 0 0 4px; font-size: 1.15rem; }
.tier .price { font-size: 3rem; font-weight: 700; margin: 10px 0 2px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tier .seats { color: var(--fg-soft); font-family: var(--font-mono); font-size: .82rem; margin: 0 0 22px; }
.tier .btn { width: 100%; }
.tier .btn-buy { background: var(--accent-tint); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.tier .btn-buy:hover { background: var(--accent); color: var(--accent-fg); }
.tier-featured .btn-buy { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: var(--accent-fg); border-color: transparent;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 55%, transparent); }
.soon-tag { display: inline-block; width: 100%; padding: 13px 18px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .02em; color: var(--fg-faint);
  background: var(--bg-alt); border: 1px dashed var(--border); }
.tier-featured .soon-tag { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-tint); }
.buy-note { text-align: center; color: var(--fg-soft); max-width: 620px; margin: 34px auto 0; font-size: .95rem; }
.buy-note b { color: var(--fg); }
.buy-cta { text-align: center; margin-top: 22px; }

/* ---------- Comparison ---------- */
.cmp-wrap { max-width: 940px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.cmp th, .cmp td { padding: 15px 18px; text-align: left; vertical-align: middle; font-size: .95rem; }
.cmp thead th { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.cmp tbody td { border-bottom: 1px solid var(--border-soft); color: var(--fg); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody td:first-child, .cmp thead th:first-child { color: var(--fg-soft); font-weight: 500; }
.cmp td { text-wrap: pretty; }
/* highlighted saidso column (2nd col) */
.cmp .col-us { position: relative; }
.cmp thead .col-us { color: var(--accent); background: var(--accent-tint); }
.cmp tbody .col-us { background: var(--accent-tint); font-weight: 600; color: var(--fg); }
.cmp .col-us:first-letter { } /* no-op keep */
.cmp thead .col-us { border-radius: 0; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--bad); font-weight: 600; }
.mini { display: block; font-size: .8rem; color: var(--fg-faint); font-weight: 400; margin-top: 2px; }
.fine-print { text-align: center; color: var(--fg-faint); font-size: .82rem; margin: 20px auto 0; max-width: 640px; }

/* ---------- FAQ (CSS-only accordion) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .2s;
}
.faq-list details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-weight: 600; font-size: 1.05rem; color: var(--fg);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--fg-faint);
  border-bottom: 2px solid var(--fg-faint); transform: rotate(45deg); transition: transform .22s; margin-top: -4px;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; border-color: var(--accent); }
.faq-list .answer { padding: 0 22px 22px; color: var(--fg-soft); margin: 0; font-size: 1rem; }

/* ---------- Privacy notice ---------- */
.privacy-notice .section-sub { margin-bottom: 34px; }
.priv-list { max-width: 780px; margin: 0 auto; list-style: none; padding: 0; display: grid; gap: 14px; }
.priv-list li { background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; color: var(--fg-soft); box-shadow: var(--shadow-sm); }
.priv-list li strong { color: var(--fg); display: block; margin-bottom: 4px; }
.priv-foot { text-align: center; color: var(--fg-faint); font-size: .86rem; max-width: 700px; margin: 26px auto 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); text-align: center; padding: 56px 0; }
.footer .brand { justify-content: center; margin-bottom: 12px; }
.footer p { color: var(--fg-soft); margin: 6px auto 0; max-width: 44ch; }
.footer .copyright { font-size: .84rem; color: var(--fg-faint); margin-top: 16px; font-family: var(--font-mono); }

/* ---------- Responsive ---------- */
/* Comparison table scrolls sideways on narrow screens — only shown when it actually does. */
.cmp-hint { display: none; }
.cmp-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (max-width: 760px) {
  .nav-links > a:not(.btn) { display: none; }
  .tiers, .demo-grid { grid-template-columns: 1fr; }
  .tier-featured { order: -1; }
  section { padding: 60px 0; }
  .hero { padding: 76px 0 60px; }
  .cmp-hint {
    display: block; text-align: right; max-width: 940px; margin: 0 auto 8px;
    color: var(--fg-faint); font-size: .8rem; letter-spacing: .02em;
  }
}
