/* Saygleam site. Tokens from specs/2026-10-23-visual-design/design.md (landing-page D-5). */
:root {
  --accent: #FFD600;
  --background: #000000;
  --surface: #1C1C1E;
  --text-primary: #FFFFFF;
  --text-secondary: #98989F;
  --separator: #3A3A3C;
  --glow: rgba(255, 214, 0, 0.12);
  --glow-strong: rgba(255, 214, 0, 0.35);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.site-header, main, .site-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.wordmark .gleam {
  background: var(--accent);
  color: var(--background);
  border-radius: 6px;
  padding: 0 4px;
  margin-left: 1px;
}

.languages { display: flex; gap: 12px; font-size: 15px; }
.languages a { text-decoration: none; color: var(--text-secondary); }
.languages a[aria-current] { color: var(--text-primary); }

main section { margin: 48px 0; }

/* Home */
body { background: radial-gradient(ellipse 90% 60% at 70% 0%, var(--glow), transparent 70%) no-repeat, var(--background); }

.hero { display: flex; flex-direction: column; gap: 40px; margin-top: 24px; }
.eyebrow {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 20px; }
.promise { color: var(--text-secondary); font-size: 19px; line-height: 1.45; max-width: 34em; }

/* The headline's words light up one after another, like the prompter's highlight. A black-on-
   yellow copy of each word (::after, from data-w) is revealed by a moving clip: it wipes in from the
   left while the word before wipes out to the right, so the highlight glides. 0.55 s per word, then
   a pause; the cycle is 6 s. */
.karaoke span { position: relative; }
.karaoke span::after {
  content: attr(data-w);
  content: attr(data-w) / "";
  position: absolute;
  inset: 0 -0.06em;
  padding: 0 0.06em;
  border-radius: 0.14em;
  background: var(--accent);
  color: var(--background);
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: say 6s ease-in-out infinite;
}
.karaoke span:nth-child(2)::after { animation-delay: 0.55s; }
.karaoke span:nth-child(3)::after { animation-delay: 1.1s; }
.karaoke span:nth-child(4)::after { animation-delay: 1.65s; }
.karaoke span:nth-child(5)::after { animation-delay: 2.2s; }
.karaoke span:nth-child(6)::after { animation-delay: 2.75s; }
.karaoke span:nth-child(7)::after { animation-delay: 3.3s; }
.karaoke span:nth-child(8)::after { animation-delay: 3.85s; }
.karaoke span:nth-child(n+9)::after { animation: none; }
@keyframes say {
  0% { clip-path: inset(0 100% 0 0); }
  4%, 9% { clip-path: inset(0 0 0 0); }
  13%, 100% { clip-path: inset(0 0 0 100%); }
}

.badge { margin-top: 28px; }
.badge img, .closing-badge img { display: block; width: 160px; height: auto; }
.badge p { color: var(--text-secondary); font-size: 15px; margin: 8px 0 0; }

.demo { position: relative; margin: 0; text-align: center; }
.demo::before {
  content: "";
  position: absolute;
  inset: 8% -10% 14%;
  background: radial-gradient(closest-side, var(--glow-strong), transparent);
  z-index: -1;
}
.phone {
  display: inline-block;
  padding: 10px;
  border-radius: 44px;
  background: #0A0A0A;
  border: 1px solid var(--separator);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 6px #111113;
}
.phone video, .phone img {
  display: block;
  width: 240px;
  height: auto;
  border-radius: 34px;
  background: var(--surface);
}
.phone img { display: none; }
/* The clip again, cropped to the script window and enlarged beside the phone. */
.zoom {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translateX(-50%) rotate(-2deg);
  width: 300px;
  aspect-ratio: 480 / 190;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--separator);
  background: var(--background);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px var(--glow);
}
.zoom video, .zoom img { display: block; width: 100%; height: auto; margin-top: -9%; }
.zoom img { display: none; }
.demo figcaption { color: var(--text-secondary); font-size: 15px; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .phone video { display: none; }
  .phone img { display: block; }
  .zoom video { display: none; }
  .zoom img { display: block; }
  .karaoke span::after { animation: none; }
  .karaoke span:nth-child(4)::after { clip-path: none; }
}

main section h2 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 24px; }

.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.steps li p { color: var(--text-secondary); margin: 0; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
  margin-bottom: 14px;
}

.cards { display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--text-secondary); }
.card p:last-child { margin-bottom: 0; }
.glyph {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--glow);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.price { text-align: center; }
.trial-pill {
  display: inline-block;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
.plans { display: grid; gap: 16px; max-width: 640px; margin: 0 auto; }
.plan {
  position: relative;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 24px;
}
.plan-best { border-color: var(--accent); }
.plan h3 { color: var(--text-secondary); font-size: 17px; font-weight: 600; }
.plan .amount { font-size: 30px; font-weight: 700; margin: 0; }
.plan .per { color: var(--text-secondary); font-size: 15px; margin: 4px 0 0; }
.save {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--background);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  margin: 0;
}
.price .fine { color: var(--text-secondary); font-size: 15px; max-width: 34em; margin: 20px auto 0; }

.closing {
  background: var(--accent);
  color: var(--background);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
}
.closing-line { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.closing p { font-size: 17px; }
.closing .closing-line { font-size: 30px; text-wrap: balance; }
.closing-badge { display: inline-block; margin-top: 8px; }

/* Text pages: support, privacy, terms, 404 */
.text-page { max-width: 680px; }
.text-page h1 { font-size: 36px; margin-top: 24px; }
.text-page h2 { font-size: 22px; margin-top: 32px; }
.text-page .updated { color: var(--text-secondary); font-size: 15px; }
.text-page li { margin-bottom: 0.5em; }

.site-footer {
  border-top: 1px solid var(--separator);
  padding-top: 24px;
  padding-bottom: 48px;
  color: var(--text-secondary);
  font-size: 15px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.site-footer nav a { text-decoration: none; }

@media (min-width: 760px) {
  .hero { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 56px; }
  .hero-text { flex: 1; max-width: 545px; }
  .hero h1 { font-size: 56px; }
  .promise { max-width: 430px; }
  .demo { flex: none; padding: 0 24px; }
  .phone video, .phone img { width: 280px; }
  main section { margin: 96px 0; }
  main section h2 { font-size: 40px; }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .closing { padding: 72px 48px; }
  .closing .closing-line { font-size: 48px; }
  .zoom { left: -96px; top: 46%; width: 380px; transform: rotate(-2deg); }
}
