/* Voiceboard marketing site. Plain CSS, no build step. Colours follow the app's Pro mic. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f2f0ec;
  --ink: #16151a;
  --ink-2: #55535c;
  --ink-3: #8a8892;
  --line: #e6e3de;
  --accent: #296bf2;
  --pink: #ed3885;
  --orange: #f56b2e;
  --violet: #854df2;
  --blue: #296bf2;
  --teal: #149ec7;
  --rainbow: conic-gradient(from 0deg, var(--pink), var(--orange), var(--violet), var(--blue), var(--teal), var(--pink));
  --key: #ffffff;
  --keyboard: #d4d6dc;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px rgb(22 21 26 / 0.08);
  --radius: 22px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e12;
    --surface: #18181e;
    --surface-2: #202028;
    --ink: #f4f3f6;
    --ink-2: #b4b2bc;
    --ink-3: #7d7b86;
    --line: #2a2a33;
    --accent: #6f9bff;
    --key: #5b5b63;
    --keyboard: #2b2b31;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 40px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang HK", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(zh) body, body:lang(zh) { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand .orb { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* The mic orb */
.orb {
  position: relative; border-radius: 50%; background: var(--rainbow);
  display: grid; place-items: center; flex: none;
}
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgb(255 255 255 / 0.35), transparent 60%); }
.orb svg { position: relative; z-index: 1; width: 42%; height: 42%; color: #fff; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px;
}
.button:hover { text-decoration: none; opacity: 0.88; }
.button svg { width: 20px; height: 20px; }
.button.soon { background: var(--surface-2); color: var(--ink-2); cursor: default; }
.button.soon:hover { opacity: 1; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rainbow); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--pink), var(--orange) 30%, var(--violet) 60%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin: 22px 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .note { font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* Phone mock */
.phone {
  width: min(360px, 100%); margin-inline: auto; aspect-ratio: 9 / 19.2;
  border-radius: 48px; padding: 12px; background: #1b1b20; box-shadow: var(--shadow), inset 0 0 0 2px #34343b;
  position: relative;
}
.screen { height: 100%; border-radius: 38px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.chat { flex: 1; padding: 44px 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 14px; }
.chat .who { text-align: center; font-size: 12px; color: var(--ink-3); margin-bottom: auto; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 18px; line-height: 1.35; }
.bubble.them { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.field { margin-top: 6px; border: 1px solid var(--line); border-radius: 18px; padding: 7px 12px; color: var(--ink);
  background: var(--surface); min-height: 34px; }
.field .marked { background: color-mix(in srgb, var(--blue) 18%, transparent); border-radius: 3px; }
.field .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--blue); vertical-align: -2px;
  animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kb { background: var(--keyboard); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 10px; height: 46%; }
.kb .bar { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; }
.chip { background: var(--key); border-radius: 999px; padding: 4px 10px; color: var(--ink); }
.chip.pro { background: var(--blue); color: #fff; margin-left: auto; }
.kb .said { font-size: 12px; color: var(--ink-2); text-align: center; padding: 0 8px; min-height: 2.6em; }
.kb .mic { flex: 1; display: grid; place-items: center; }
.kb .mic .orb { width: 92px; height: 92px; animation: spin 6s linear infinite; }
.kb .mic .orb svg { animation: spin 6s linear infinite reverse; }
.kb .hint { font-size: 11px; color: var(--ink-3); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kb .mic .orb, .kb .mic .orb svg, .field .caret { animation: none; } }

/* Sections */
section { padding: 88px 0; }
section.tint { background: var(--surface-2); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head .kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
:lang(zh) .section-head .kicker { letter-spacing: 0.04em; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--ink-2); font-size: 19px; margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature.wide { grid-column: span 2; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); }
.i-pink { background: var(--pink); } .i-orange { background: var(--orange); } .i-violet { background: var(--violet); }
.i-blue { background: var(--blue); } .i-teal { background: var(--teal); } .i-ink { background: var(--ink); color: var(--bg) !important; }

.demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 22px; }
.demo .from, .demo .to { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; font-size: 16px; }
.demo .label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.demo .arrow { color: var(--ink-3); font-size: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--ink); }
.chips span.pro::after { content: " Pro"; font-size: 11px; font-weight: 700; color: var(--violet); }

@media (max-width: 900px) {
  .steps, .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .demo { grid-template-columns: 1fr; }
  .demo .arrow { transform: rotate(90deg); justify-self: center; }
  section { padding: 64px 0; }
}

/* Pricing */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tier.pro { position: relative; border: 0; }
.tier.pro::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: var(--radius); background: var(--rainbow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.tier h3 { font-size: 24px; }
.tier .price { color: var(--ink-2); margin: 6px 0 18px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tier li { padding-left: 28px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23296bf2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.plan.popular { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.plan .name { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan .tag { font-size: 11px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: 0.06em; }
.plan .amount { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .amount small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .mins { color: var(--ink-2); }
.plan .per { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 20px; max-width: 60em; }
.packs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.packs span { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 15px; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } .plans { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-top: 12px; }

/* Closing call */
.closing { text-align: center; }
.closing .orb { width: 88px; height: 88px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(30px, 4vw, 44px); }
.closing p { color: var(--ink-2); font-size: 19px; margin: 14px auto 28px; max-width: 32em; }
.closing .cta { justify-content: center; }

/* Documents: privacy and support */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.doc .updated { color: var(--ink-3); margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-2); }
.doc .table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 20px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--ink-2); }
