/* Layout: one centered column, Apple-style: big quiet type, generous air, a single band of years as the hero image. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --fg: #1b1f24;
  --muted: #5a6470;
  --line: #e2e6ec;
  --accent: #1f5fa8;      /* harbor blue */
  --accent-fg: #ffffff;
  --ok: #1f7a4a; --err: #b3261e;
  --accent-soft: #eaf1fa;
  --tile-a: #c9d7e8; --tile-b: #e6d6c3; --tile-c: #d3e2d0; --tile-d: #e9cfcf;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114; --bg-soft: #181b20; --fg: #f1f3f6; --muted: #a0a9b4; --line: #2a2f36;
    --accent: #5b9ae6; --accent-fg: #0b1320; --ok: #5fcf8f; --err: #ff8a80; --accent-soft: #16263a;
    --tile-a: #33465e; --tile-b: #5a4a39; --tile-c: #3b5138; --tile-d: #5a3a3d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1114; --bg-soft: #181b20; --fg: #f1f3f6; --muted: #a0a9b4; --line: #2a2f36;
  --accent: #5b9ae6; --accent-fg: #0b1320; --ok: #5fcf8f; --err: #ff8a80; --accent-soft: #16263a;
  --tile-a: #33465e; --tile-b: #5a4a39; --tile-c: #3b5138; --tile-d: #5a3a3d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

header.nav { border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav a.small { font-size: 16px; text-decoration: none; }

.hero { text-align: center; padding-block: 72px 40px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.05; margin: 0 auto 20px; max-width: 18ch;
  text-wrap: balance;
}
.hero p.lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 40ch; margin: 0 auto 32px; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-size: 18px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent);
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* The year strip: one photo per year, fading out at both edges. */
.years { margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.years ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; justify-content: center; }
.years img { width: 150px; height: 110px; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 10px 24px -14px rgba(20, 40, 70, .5); }
.years li { flex: 0 0 auto; display: grid; gap: 6px; justify-items: center; }
.years .yr { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

section.band { padding-block: 72px; }
section.band.soft { background: var(--bg-soft); }
h2 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
.intro { max-width: 60ch; color: var(--muted); margin: 0 0 40px; }


.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.promise div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.promise strong { display: block; font-size: 19px; margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: 17px; }

.download { text-align: center; }
.download .intro { margin-inline: auto; }
.sys { font-size: 15px; color: var(--muted); margin-top: 18px; }

footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* App preview: a drawn window in the app's own layout (sidebar + year cards). */
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 30px 60px -30px rgba(20, 40, 70, .35); }
.shot .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.shot .body { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
.shot nav { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 16px 10px; font-size: 14px; display: grid; align-content: start; gap: 2px; }
.shot nav b { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 10px 4px; font-weight: 600; }
.shot nav span { padding: 6px 10px; border-radius: 7px; display: flex; justify-content: space-between; }
.shot nav span.on { background: var(--line); font-weight: 600; }
.shot nav small { color: var(--muted); font-variant-numeric: tabular-nums; }
.shot main { padding: 22px 24px; min-width: 0; }
.shot h4 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.shot .sub { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.shot .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot .card { aspect-ratio: 4 / 3; border-radius: 10px; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; max-width: 100%; background: var(--line); }
.shot .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 45%, rgba(0,0,0,.45)); }
.shot .card strong, .shot .card em { position: relative; z-index: 2; font-style: normal; }
.shot .card strong { font-size: 20px; line-height: 1.1; }
.shot .card em { font-size: 12px; opacity: .9; }

/* Feature rows: text beside a picture, alternating sides. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: center; margin-top: 72px; }
.feature.flip { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px; }
.feature-text p { margin: 0; color: var(--muted); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}

/* Screens inside the drawn app window */
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mcard { display: grid; gap: 2px; font-size: 13px; }
.mcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; margin-bottom: 6px; }
.mcard strong { font-size: 14px; }
.mcard span { color: var(--muted); }
.phead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.phead img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.phead .sub { margin: 0; }
.prow { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.prow span { display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.prow img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.prow .on { color: var(--fg); font-weight: 600; }
.prow .on img { outline: 2px solid var(--accent); outline-offset: 2px; }
.label { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.through { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.through figure { margin: 0; }
.through img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.through figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.sgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.sgrid > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.stext h4 { font-size: 20px; }
.audio { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border-radius: 999px; padding: 6px 12px 6px 6px; margin: 4px 0 12px; }
.audio b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 10px; flex: none; }
.audio i { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 5px); -webkit-mask-image: linear-gradient(0deg, transparent 20%, #000 20%, #000 80%, transparent 80%); opacity: .55; border-radius: 2px; }
.audio small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quote { font-size: 15px; line-height: 1.5; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chips span { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp thead th { border-top: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.cmp thead th.us { color: var(--accent); font-size: 17px; }
.cmp tbody th { font-weight: 600; width: 28%; }
.cmp td { color: var(--muted); }
.cmp td.us { color: var(--fg); background: var(--accent-soft); font-weight: 500; }
.cmp thead th.us { background: var(--accent-soft); }
.fine-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Sign-up form */
.notify form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; margin: 0 auto; }
.notify label.vh, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notify input[type=email] { flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 18px; font: inherit; font-size: 18px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.notify input[type=email]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.notify button.btn { cursor: pointer; font-family: inherit; }
.notify button[disabled] { opacity: .6; cursor: default; }
.notify .msg { min-height: 1.5em; margin-top: 14px; font-size: 17px; }
.notify .msg.ok { color: var(--ok); }
.notify .msg.err { color: var(--err); }
.notify .fine { font-size: 15px; color: var(--muted); margin-top: 6px; }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 720px) {
  .shot .body { grid-template-columns: 1fr; }
  .shot nav { display: none; }
  .shot .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero { padding-block: 48px 24px; }
  section.band { padding-block: 52px; }
  .years ol { justify-content: flex-start; }
}

/* Header: language switch beside the sign-up link */
.navlinks { display: flex; align-items: center; gap: 20px; }
.navlinks .lang { color: var(--muted); }

/* Remember Together, drawn as the app's conversation */
.chat { display: grid; gap: 10px; max-width: 440px; margin-inline: auto; font-size: 14px; line-height: 1.45; }
.chat .pic { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.bubble { background: var(--bg-soft); border-radius: 16px; padding: 9px 13px; justify-self: start; max-width: 88%; }
.bubble.me { background: var(--accent); color: var(--accent-fg); justify-self: end; }
.got { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; justify-self: start; box-shadow: 0 6px 18px -12px rgba(20, 40, 70, .35); }
.got b { display: block; font-size: 13px; margin-bottom: 6px; }
.chips.blue span { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-size: 13px; padding: 3px 11px; }
.chat .aside { font-size: 12px; color: var(--muted); text-align: center; }

/* Story screen extras */
.cover { position: relative; margin: 0 0 12px; }
.cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 9px; display: block; }
.cover span { position: absolute; right: 8px; bottom: 8px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 999px; padding: 2px 9px; }
.mic { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.mic b { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.mic svg { width: 12px; height: 12px; }
.written { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-top: 10px; font-size: 13px; }
.written b { display: block; font-size: 12px; margin-bottom: 3px; }
.written em { font-family: Georgia, "Songti SC", "STSong", serif; color: var(--fg); }

/* More features: quiet tiles */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.more div { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.more h3 { font-size: 21px; letter-spacing: -0.01em; margin: 0 0 6px; }
.more p { margin: 0; color: var(--muted); font-size: 17px; }
.more .soon h3::after { content: attr(data-soon); margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; vertical-align: 3px; }

@media (max-width: 560px) {
  .navlinks { gap: 14px; }
  .chat .pic { width: 120px; }
  .sgrid { grid-template-columns: 1fr; }
  .sgrid > img { aspect-ratio: 16 / 10; }
}

/* Chinese pages: a little more line height, no letter tightening */
:lang(zh) body, body:lang(zh) { line-height: 1.7; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }
:lang(zh) .hero h1 { max-width: 12em; line-height: 1.2; }
:lang(zh) .hero p.lead { max-width: 24em; }
