/* CrispVoice marketing site — uses the app's design tokens so the
   brand reads continuously between marketing surface and product. */

:root {
  --ink-900: #0A0D11;
  --ink-800: #0E1116;
  --ink-700: #161A20;
  --ink-600: #1F242C;
  --ink-500: #2B313B;
  --signal-600: #C2933F;
  --signal-500: #F5C36C;
  --signal-400: #F8D38D;
  --signal-300: #FBE2B2;
  --cool-500: #6CC2F5;
  --success-500: #5BD68A;
  --text-100: #F4F6F9;
  --text-300: #9AA4B1;
  --text-400: #6E7785;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --pad-x: clamp(20px, 5vw, 48px);
  --max-w: 1100px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink-900);
  color: var(--text-100);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--signal-500);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover,
a:focus-visible {
  color: var(--signal-400);
}

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

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 17, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(43, 49, 59, 0.6);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-100);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-300);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-100);
}

.nav-cta {
  background: var(--signal-500);
  color: var(--ink-900) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.nav-cta:hover {
  background: var(--signal-400);
  color: var(--ink-900) !important;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(64px, 12vw, 128px) var(--pad-x) clamp(48px, 9vw, 96px);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-500);
  background: rgba(245, 195, 108, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--text-100) 0%, var(--text-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .accent {
  background: linear-gradient(180deg, var(--signal-500), var(--signal-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subhead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-300);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: var(--signal-500);
  color: var(--ink-900) !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--signal-400);
  color: var(--ink-900) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-100) !important;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--ink-500);
}

.btn-secondary:hover {
  background: var(--ink-700);
  border-color: var(--ink-500);
  color: var(--text-100) !important;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-400);
  font-size: 13px;
}

.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-500);
}

/* ---------- Hero before/after story ---------- */

.hero-story {
  padding: 0 var(--pad-x) clamp(48px, 8vw, 96px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.story-card {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

@media (max-width: 720px) {
  .story-card {
    grid-template-columns: 1fr;
  }
  .story-divider {
    transform: rotate(90deg);
    margin: 4px auto;
  }
}

.story-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-400);
}

.story-step.accent .story-eyebrow {
  color: var(--signal-500);
}

.story-step p {
  color: var(--text-300);
  font-size: 15.5px;
  line-height: 1.6;
}

.story-step.accent p {
  color: var(--text-100);
}

.story-divider {
  font-size: 28px;
  color: var(--ink-500);
  font-weight: 300;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(64px, 9vw, 128px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

section h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.015em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

section .lede {
  text-align: center;
  color: var(--text-300);
  max-width: 600px;
  margin: 0 auto 64px;
  font-size: 18px;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 195, 108, 0.4);
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 195, 108, 0.12);
  color: var(--signal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-300);
  font-size: 15px;
  line-height: 1.55;
}

.feature .pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--signal-500);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Personas ---------- */

.personas {
  list-style: none;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.persona {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.persona.featured {
  background: linear-gradient(
    180deg,
    rgba(245, 195, 108, 0.08),
    var(--ink-700) 60%
  );
  border-color: rgba(245, 195, 108, 0.4);
  grid-column: 1 / -1;
}

.persona-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--signal-500);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.persona h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-100);
}

.persona p {
  color: var(--text-300);
  font-size: 15px;
  line-height: 1.6;
}

.persona.featured h3 {
  font-size: 22px;
}

.persona.featured p {
  color: var(--text-100);
  font-size: 16px;
  max-width: 640px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: step;
}

.step {
  background: var(--ink-700);
  border-radius: var(--radius-md);
  padding: 32px 24px 28px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--signal-500);
  color: var(--ink-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-300);
  font-size: 15px;
}

/* ---------- Privacy callout ---------- */

.privacy-card {
  background: linear-gradient(
    180deg,
    rgba(108, 194, 245, 0.08),
    rgba(91, 214, 138, 0.05)
  );
  border: 1px solid rgba(108, 194, 245, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  text-align: center;
}

.privacy-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(108, 194, 245, 0.15);
  color: var(--cool-500);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.privacy-card h2 {
  margin-bottom: 12px;
}

.privacy-card p {
  color: var(--text-300);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.plan {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--signal-500);
  background: linear-gradient(
    180deg,
    rgba(245, 195, 108, 0.06),
    var(--ink-700) 60%
  );
  position: relative;
}

.plan.featured::after {
  content: "Most popular";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--signal-500);
  color: var(--ink-900);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-300);
  margin-bottom: 8px;
}

.plan .price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.plan .price small {
  font-size: 15px;
  color: var(--text-300);
  font-weight: 500;
}

.plan .price-note {
  color: var(--text-400);
  font-size: 13px;
  margin-bottom: 24px;
}

.plan ul {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan li {
  padding: 8px 0;
  color: var(--text-100);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan li::before {
  content: "✓";
  color: var(--success-500);
  font-weight: 700;
  flex-shrink: 0;
}

.plan li.muted {
  color: var(--text-400);
}

.plan li.muted::before {
  content: "—";
  color: var(--text-400);
}

.plan .btn-primary,
.plan .btn-secondary {
  text-align: center;
  justify-content: center;
}

/* Apple-required subscription disclosure */
.subscription-terms {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--ink-700);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-300);
  line-height: 1.65;
}

.subscription-terms strong {
  color: var(--text-100);
  display: block;
  margin-bottom: 6px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-100);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--signal-500);
  font-size: 22px;
  font-weight: 300;
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details[open] summary {
  border-bottom: 1px solid var(--ink-500);
}

.faq .answer {
  padding: 18px 24px 22px;
  color: var(--text-300);
  font-size: 15px;
  line-height: 1.65;
}

.faq .answer p + p {
  margin-top: 12px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--ink-500);
  padding: 48px var(--pad-x) 64px;
  margin-top: 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-brand p {
  color: var(--text-400);
  font-size: 14px;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-400);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-300);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--text-100);
}

.legal {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--ink-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-400);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal page (Privacy / Terms / Support) ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad-x);
}

.doc h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 12px;
}

.doc .updated {
  color: var(--text-400);
  font-size: 14px;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-100);
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-100);
}

.doc p,
.doc li {
  color: var(--text-300);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.doc ul,
.doc ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.doc strong {
  color: var(--text-100);
}

.doc a {
  color: var(--signal-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-toc {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 32px;
}

.doc-toc h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-400);
  margin-bottom: 10px;
}

.doc-toc ol {
  margin: 0;
  padding-left: 20px;
}

.doc-toc li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: clamp(80px, 14vw, 160px) var(--pad-x);
  max-width: 540px;
  margin: 0 auto;
}

.notfound .code {
  font-family: var(--font-mono);
  color: var(--signal-500);
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.notfound h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.notfound p {
  color: var(--text-300);
  margin-bottom: 32px;
}

/* ---------- Visually-hidden but screen-reader-readable ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
