/* Ai VoiceRing — site styles.
   Palette comes from DESIGN.md: blurple #5865F2, light #9CA4FF, brand black
   #151B24, letter fill #D2E7FD, letter edge #7BB1F7. System fonts only — the
   site must load fast on cheap phones on mobile data. */

:root {
  --blurple: #5865F2;
  --blurple-dark: #4552d9;
  --light: #9CA4FF;
  --ink: #151B24;
  --ink-soft: #3d4654;
  --muted: #5F6368;
  --paper: #ffffff;
  --paper-alt: #F1F3F7;
  --letter: #D2E7FD;
  --edge: #7BB1F7;
  --ok: #1B5E20;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--blurple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e9ef;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
nav.main { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
nav.main a { color: var(--ink-soft); }
nav.main a.cta {
  background: var(--blurple); color: #fff; padding: 8px 16px;
  border-radius: 999px; font-weight: 600;
}
nav.main a.cta:hover { background: var(--blurple-dark); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 800;
  max-width: 820px; margin: 0 auto;
}
.hero h1 .accent { color: var(--blurple); }
.hero p.sub {
  margin: 20px auto 0; max-width: 640px;
  font-size: 1.15rem; color: var(--ink-soft);
}
.hero .actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent;
}
.btn.primary { background: var(--blurple); color: #fff; }
.btn.primary:hover { background: var(--blurple-dark); text-decoration: none; }
.btn.ghost { border-color: #d7dbe4; color: var(--ink); }
.btn.ghost:hover { border-color: var(--blurple); text-decoration: none; }
.btn .small-note { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.85; }

.coming-soon-note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* language chips under hero */
.langs { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.langs span {
  background: var(--paper-alt); border-radius: 999px; padding: 7px 16px;
  font-size: 0.9rem; color: var(--ink-soft);
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--paper-alt); }
.kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--blurple);
}
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.01em; margin: 8px 0 14px; }
.lede { color: var(--ink-soft); max-width: 640px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 800px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid #e6e9ef; border-radius: var(--radius);
  padding: 26px;
}
section.alt .card { border-color: #dde2ea; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .step-no {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blurple); color: #fff; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 14px;
}

/* chat mock */
.chat-demo {
  max-width: 420px; margin: 40px auto 0; background: var(--paper);
  border: 1px solid #e6e9ef; border-radius: 18px; padding: 22px;
  text-align: left;
}
.chat-demo .said { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.bubble-row { display: flex; margin: 8px 0; }
.bubble-row.out { justify-content: flex-end; }
.chat-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem;
}
.chat-bubble.spoken { background: var(--paper-alt); color: var(--ink-soft); border-bottom-left-radius: 4px; }
.chat-bubble.typed { background: var(--blurple); color: #fff; border-bottom-right-radius: 4px; }
.chat-demo .arrow { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 6px 0; }

/* privacy strip */
.privacy-points { list-style: none; margin-top: 26px; }
.privacy-points li {
  padding: 10px 0 10px 34px; position: relative; color: var(--ink-soft);
}
.privacy-points li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ */
details.faq {
  border-bottom: 1px solid #e6e9ef; padding: 16px 0;
}
details.faq summary {
  font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 30px;
}
details.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--blurple); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.97rem; }
.legal ul, .legal ol { padding-left: 24px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal .callout {
  background: var(--paper-alt); border-left: 4px solid var(--blurple);
  border-radius: 8px; padding: 16px 18px; margin: 18px 0;
}
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.92rem; }
.legal th, .legal td { border: 1px solid #dde2ea; padding: 9px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-alt); }
.legal .toc { background: var(--paper-alt); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.legal .toc ol { margin: 6px 0 0; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink); color: #aab2c0; padding: 48px 0 40px; margin-top: 40px;
  font-size: 0.92rem;
}
footer.site .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px;
}
@media (max-width: 700px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
footer.site a { color: #aab2c0; display: block; margin: 6px 0; }
footer.site a:hover { color: #fff; }
footer.site .brandline { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 10px; }
footer.site .brandline svg { width: 28px; height: 28px; }
footer.site .fineprint { margin-top: 34px; padding-top: 20px; border-top: 1px solid #2a3342; color: #7c8698; font-size: 0.85rem; }
