/* VoiceCandy site. Colours and type follow the VoiceCandy design system (docs/design/brand). */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url(/fonts/nunito-latin-800-900.woff2) format("woff2");
}

:root {
  color-scheme: light dark;
  --ground: #fff5eb;          /* cream */
  --surface: #ffffff;
  --ink: #241a14;             /* cocoa */
  --muted: #5e4b3f;
  --caramel: #b45620;
  --caramel-text: #a04d1c;
  --on-caramel: #ffffff;
  --line: rgba(36, 26, 20, 0.12);
  --tint: rgba(180, 86, 32, 0.1);
  --band: #241a14;
  --band-ink: #fff5eb;
  --band-muted: #d9c8b8;
  --band-accent: #e08550;
  --shadow: 0 24px 60px -24px rgba(36, 26, 20, 0.35);
  --display: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17110d;
    --surface: #221a15;
    --ink: #fff5eb;
    --muted: #cdbcae;
    --caramel: #e08550;
    --caramel-text: #e08550;
    --on-caramel: #1f1410;
    --line: rgba(255, 245, 235, 0.12);
    --tint: rgba(224, 133, 80, 0.12);
    --band: #2b201a;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--caramel-text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); color: var(--caramel); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--tint); padding: 0.1em 0.35em; border-radius: 5px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-lede { color: var(--muted); max-width: 40rem; margin-top: 12px; font-size: 1.1rem; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: block; }
.logo { width: 150px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 9999px; }
.nav nav a:hover { background: var(--tint); }
@media (max-width: 600px) { .nav nav a:not(:last-child) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { color: var(--caramel-text); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); line-height: 1.02; }
.hero h1 span { color: var(--caramel); display: inline-block; transform: rotate(-3deg); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); margin-top: 24px; max-width: 32rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.soon { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 9999px; background: var(--caramel); color: var(--on-caramel); font-weight: 600; }
.link-arrow { font-weight: 600; text-decoration: none; padding-block: 12px; }
.link-arrow::after { content: " \2193"; }
.link-arrow:hover { text-decoration: underline; }

/* Hero stage: a drawn Mac with the menu bar, listening pill and a Mail window */
.stage { position: relative; border-radius: 18px; padding: 0 0 28px; background: #d98a55; box-shadow: var(--shadow); overflow: hidden; min-height: 380px; }
.menubar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 14px; font-size: 12.5px; color: #1d1d1f; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mb-left b { display: inline-block; width: 11px; height: 13px; border-radius: 3px 3px 5px 5px; background: #1d1d1f; vertical-align: -2px; margin-right: 8px; }
.mb-left { font-weight: 500; }
.mb-right { display: inline-flex; align-items: center; gap: 14px; }
.mb-wave { width: 18px; height: 14px; fill: #1d1d1f; padding: 3px 5px; box-sizing: content-box; border-radius: 5px; background: rgba(0, 0, 0, 0.1); }
.pill { position: absolute; top: 36px; right: 64px; z-index: 2; display: flex; align-items: center; gap: 6px; width: 190px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(44, 46, 50, 0.92); color: rgba(255, 255, 255, 0.92); font-size: 12px; font-weight: 500; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.pill svg { width: 14px; height: 14px; fill: #0a84ff; flex: none; }
.meter { display: flex; align-items: center; gap: 2px; margin-left: auto; width: 60px; height: 14px; }
.meter i { flex: 1; height: 30%; border-radius: 2px; background: #e08550; animation: level 1.1s ease-in-out infinite alternate; }
.meter i:nth-child(2n) { animation-delay: -0.3s; }
.meter i:nth-child(3n) { animation-delay: -0.6s; }
.meter i:nth-child(5n) { animation-delay: -0.85s; }
@keyframes level { from { height: 20%; } to { height: 100%; } }
.window { position: relative; margin: 56px 28px 0; background: #ffffff; color: #1d1d1f; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(36, 26, 20, 0.45); overflow: hidden; font-size: 14px; }
.win-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f3f1ef; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; font-weight: 600; font-size: 13px; }
.win-field { padding: 8px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.win-field span { color: #6e6e73; margin-right: 6px; }
.win-body { padding: 16px 16px 28px; display: grid; gap: 10px; line-height: 1.5; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #b45620; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .meter i, .caret { animation: none; } .meter i { height: 60%; } }
@media (max-width: 600px) { .pill { right: 16px; } .window { margin-inline: 16px; } .mb-left { visibility: hidden; } }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.steps p { color: var(--muted); }
.key { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--caramel-text); }
.key svg { width: 22px; height: 18px; fill: currentColor; }

/* Exact vs Clean */
.compare { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare figure { margin: 0; border-radius: 18px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.compare figcaption { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare p { font-size: 1.15rem; }
.said { background: transparent; border: 1.5px dashed var(--line); }
.said p { color: var(--muted); font-style: italic; }
.out { background: var(--surface); border: 1px solid var(--line); }
.clean { background: var(--caramel); border-color: var(--caramel); color: var(--on-caramel); }
.clean figcaption { color: var(--on-caramel); }

/* Features */
.features { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .features { grid-template-columns: minmax(0, 1fr); } }
.features article { padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.features p { color: var(--muted); }

/* Privacy band */
.band { background: var(--band); color: var(--band-ink); padding-block: clamp(56px, 8vw, 104px); }
.band h2 { color: var(--band-accent); }
.band .section-lede { color: var(--band-muted); }
.band-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
@media (max-width: 860px) { .band-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.facts li { color: var(--band-muted); padding-left: 32px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--band-accent); }
.facts b { color: var(--band-ink); }

/* FAQ */
.faq { margin-top: 32px; max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--caramel-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 40rem; }
.faq summary:focus-visible, a:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

/* Closing and footer */
.closing { display: grid; justify-items: center; text-align: center; gap: 20px; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.closing img { width: 96px; height: 96px; transform: rotate(-6deg); }
.footer { display: flex; align-items: center; gap: 12px; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer .mark { width: 28px; height: 28px; }
