:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --ink: #2b2230;
  --muted: #6e6273;
  --accent: #b84d72;
  --accent-ink: #ffffff;
  --plum: #5e3a5d;
  --line: #eadfe2;
  --her: #b84d72;
  --him: #f1e8ee;
  --ok: #2f7a55;
  --error: #b3393b;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1520;
    --surface: #251d2b;
    --ink: #f3ecf2;
    --muted: #b6a8b8;
    --accent: #e07ea2;
    --accent-ink: #1b1520;
    --plum: #d8b4d6;
    --line: #3a2e40;
    --her: #c4587a;
    --him: #33283a;
  }
}

/* Chinese pages: same look, with CJK fonts behind the Latin ones. */
:root:lang(zh) {
  --serif: "Iowan Old Style", Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:lang(zh) .eyebrow { letter-spacing: 0.2em; }
:lang(zh) h1 { line-height: 1.25; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

.hero, main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero { padding-top: 56px; padding-bottom: 32px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--plum); }
h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); margin: 0.2em 0 0.4em; }
h2 { font-size: 1.7rem; margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.3em; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--accent); margin: 0; }
.lede { font-size: 1.15rem; color: var(--ink); }
.fineprint { font-size: 0.85rem; color: var(--muted); }
.note { color: var(--muted); font-style: italic; }
a { color: var(--accent); }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font: 600 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: wait; }

section { padding: 40px 0; border-top: 1px solid var(--line); }

.cards { display: grid; gap: 16px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; }

.demo {
  position: relative;
  margin: 28px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px 12px;
}
.demo-tag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--plum);
  color: var(--bg);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 10px;
}
.demo-panels { display: grid; gap: 16px; }
@media (min-width: 560px) { .demo-panels { grid-template-columns: 1fr 1fr; } }
.phone { display: flex; flex-direction: column; gap: 6px; }
.bubble { margin: 0; padding: 8px 12px; border-radius: 16px; max-width: 85%; font-size: 0.95rem; }
.bubble.her { align-self: flex-end; background: var(--her); color: #fff; border-bottom-right-radius: 4px; }
.bubble.him { align-self: flex-start; background: var(--him); border-bottom-left-radius: 4px; }
.invite { margin: 4px 0 0; align-self: flex-start; font-size: 0.85rem; border: 1px dashed var(--accent); color: var(--accent); border-radius: 999px; padding: 2px 10px; }
.scene { font-family: var(--serif); font-size: 1rem; border-left: 3px solid var(--line); padding-left: 14px; }
.scene p { margin: 0 0 0.6em; }
.demo figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }

.points { padding-left: 1.1em; }
.points li { margin-bottom: 0.8em; }

.join form { display: grid; gap: 20px; margin-top: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; }
input[type="email"] {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.95rem;
}
.chips input { accent-color: var(--accent); }
.option { display: flex; gap: 10px; align-items: baseline; cursor: pointer; }
.option input { accent-color: var(--accent); }
.age { font-weight: 600; }
.turnstile { min-height: 65px; }
.status { margin: 0; min-height: 1.6em; }
.status[data-kind="ok"] { color: var(--ok); }
.status[data-kind="error"] { color: var(--error); }

footer { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

.page { max-width: 560px; margin: 0 auto; padding: 72px 16px; }

/* Language switch: always visible, top-right, thumb-sized. */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: 600 0.95rem var(--sans);
  text-decoration: none;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.08);
}
.lang-switch:hover, .lang-switch:focus-visible { background: var(--accent); color: var(--accent-ink); }
