/* Sotto marketing site — brand tokens per brand/BRAND.md (light/dark pairs). */

/* ---------- Fonts (self-hosted, no CDN) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --paper: #FAF6F0;
  --surface: #FFFFFF;
  --ink: #211C19;
  --muted: #6B625B;
  --accent: #C25C3F;
  --accent-strong: #A84B31;
  --accent-tint: #EFDDD4;
  --line: #E7DDD1;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --container: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17130F;
    --surface: #211A14;
    --ink: #F2EBE1;
    --muted: #A79D93;
    --accent: #E07A57;
    --accent-strong: #EC8C6B;
    --accent-tint: #3A2A22;
    --line: #2A231D;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
img, svg { max-width: 100%; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

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

.section { padding: 96px 0; }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
}
.section-lead { color: var(--muted); max-width: 34em; margin-bottom: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-strong); color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .btn-primary, .btn-primary:hover { color: #17130F; }
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-wide { display: block; text-align: center; }

/* ---------- Voice dot ---------- */
.voice-dot {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    var(--accent) 0 40%, transparent 40% 68%,
    var(--ink) 68% 96%, transparent 96%);
  flex: none;
}
.dot-period {
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.08em;
  background: var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .voice-dot { width: 16px; height: 16px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.nav-cta { color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .nav-links a.nav-cta { color: #17130F; }
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; text-align: center; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  max-width: 36em;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero demo card */
.hero-demo { max-width: 620px; margin: 0 auto; }
.demo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 56px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(33, 28, 25, 0.04);
}
.demo-text { color: var(--ink); font-size: 1.0625rem; margin: 0; }
.demo-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.demo-pill {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 6px 18px rgba(33, 28, 25, 0.08);
  white-space: nowrap;
}
.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
.pill-label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.pill-wave { display: inline-flex; align-items: center; gap: 3px; }
.pill-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1.2s ease-in-out infinite;
}
.pill-wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.pill-wave i:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.pill-wave i:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.pill-wave i:nth-child(4) { height: 15px; animation-delay: 0.45s; }
.pill-wave i:nth-child(5) { height: 7px; animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.trust-list li { display: flex; align-items: center; }
.trust-list li + li::before {
  content: "\00B7";
  margin: 0 20px;
  color: var(--line);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.375rem; margin-bottom: 0.35em; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.feature p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Privacy ---------- */
.privacy-card {
  background: var(--accent-tint);
  border-radius: 20px;
  padding: clamp(36px, 6vw, 72px);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.privacy-card p {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}
.privacy-card p:last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing .section-title { text-align: center; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 48px);
  max-width: 440px;
  margin: 2.5rem auto 0;
  text-align: center;
}
.price-kicker {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.15em;
}
.price-line { color: var(--muted); font-weight: 500; margin-bottom: 1.25em; }
.price-note { color: var(--muted); font-size: 0.9375rem; }
.price-list {
  list-style: none;
  margin: 0 0 1.75em;
  padding: 1.25em 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.price-list li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.6em;
  font-size: 0.9375rem;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0.25em;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.price-fineprint { color: var(--muted); font-size: 0.875rem; margin: 1.25em 0 0; }

/* ---------- FAQ ---------- */
.faq .section-title { text-align: center; }
.faq-list { max-width: 720px; margin: 2.5rem auto 0; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 18px 8px;
  list-style-position: outside;
}
.faq-list summary::marker { color: var(--accent); }
.faq-list details p {
  color: var(--muted);
  padding: 0 8px 18px;
  margin: 0;
  max-width: 42em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 96px 0 48px;
  text-align: center;
}
.footer-cta { margin-bottom: 72px; }
.footer-cta .section-title { margin-bottom: 0.75em; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent); }
.footer-line { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.footer-copy { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* ---------- Scroll reveal (hidden state only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-period, .pill-dot, .pill-wave i, .demo-caret { animation: none; }
  .btn, .nav { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .trust-list { flex-direction: column; align-items: center; gap: 8px; }
  .trust-list li + li::before { content: none; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links a.nav-cta { margin-top: 8px; }
}
