/* sayput.app — one stylesheet for both languages. System fonts only: nothing is fetched from
   another host, so the page loads the same inside and outside mainland China. */

:root {
  --paper: #fff8f0;
  --paper-deep: #f6e9da;
  --ink: #231c18;
  --muted: #6f625a;
  --line: #eadccb;
  --accent: #d4521c;
  --accent-ink: #ffffff;
  --accent-soft: #f59a5e;
  --pill: #2a211d;
  --pill-text: #fbf3ea;
  --pill-muted: #b3a69b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171311;
    --paper-deep: #211b18;
    --ink: #f3ebe4;
    --muted: #a3958a;
    --line: #3a302a;
    --accent: #ff8f3a;
    --accent-ink: #1b1411;
    --accent-soft: #c96a2c;
    --pill: #2c2420;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 980px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; font-size: 15px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding-block: 48px 40px; }
.hero .icon { width: 128px; height: 128px; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.1; margin: 20px 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 auto 28px; text-wrap: balance; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.button svg { width: 18px; height: 18px; }
.requirements { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* The recording pill, as it looks on screen while speaking */
.demo { display: flex; justify-content: center; padding-block: 16px 64px; }
.pill {
  display: flex; align-items: center; gap: 14px;
  max-width: 100%; padding: 12px 22px 12px 18px; border-radius: 999px;
  background: var(--pill); color: var(--pill-text);
  box-shadow: 0 18px 50px rgba(35, 20, 10, 0.18), 0 2px 6px rgba(35, 20, 10, 0.12);
  font-size: 16px;
}
.bars { display: flex; align-items: center; gap: 3px; height: 22px; flex: none; }
.bars i { display: block; width: 3px; border-radius: 2px; background: #ff8f3a; height: 40%; animation: talk 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.2s; }
.bars i:nth-child(3) { animation-delay: -0.45s; }
.bars i:nth-child(4) { animation-delay: -0.7s; }
.bars i:nth-child(5) { animation-delay: -0.9s; }
@keyframes talk { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; height: 70%; } }
.pill .words { min-width: 0; }
.pill .words span { display: block; }
.pill .hint { font-size: 13px; color: var(--pill-muted); }
.pill .time { font-size: 14px; color: var(--pill-muted); font-variant-numeric: tabular-nums; flex: none; }

/* Sections */
section { padding-block: 56px; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; line-height: 1.3; margin: 0 0 28px; text-wrap: balance; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.feature h3 { font-size: 19px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.feature h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.feature p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 10px;
  background: var(--paper-deep); color: var(--accent); font-weight: 700; font-size: 15px;
}
.steps h3 { font-size: 18px; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin: 0; }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--muted); }

.privacy p { max-width: 42em; color: var(--muted); margin: 0 0 12px; }
.privacy p strong { color: var(--ink); }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .features, .steps { grid-template-columns: 1fr; }
  .top nav .optional { display: none; }
  .pill .hint { display: none; }
  .specs { grid-template-columns: 1fr; gap: 2px; }
  .specs dd { margin-bottom: 10px; }
}
