/* Basesmall site. One accent (the app's gold), one radius scale (10px; buttons are pills), light and dark
   from the system. No web fonts: the same system stack as the app. */
:root {
  color-scheme: light dark;
  --bg: #F2F3F5; --panel: #FFFFFF; --line: #DADDE3; --text: #15171C; --muted: #565D69;
  --accent: #E8B04A; --accent-ink: #15171C; --link: #8A5D0E;
  --font: 'Segoe UI Variable', 'Segoe UI', 'Microsoft JhengHei UI', 'PingFang TC', 'Noto Sans TC', system-ui, sans-serif;
  --mono: 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171C; --panel: #1B1E24; --line: #2A2E37; --text: #E8EAEE; --muted: #A0A6B1; --link: #E8B04A; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.top, main, footer { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px; }
.brand img { border-radius: 6px; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; max-width: 14em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 680; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; }

.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: var(--panel); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #F0BE5E; }

/* Hero: copy on the left, the real app on the right. */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 56px 0 88px; }
.hero-copy { display: grid; gap: 22px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shot { margin: 0; }
.hero-shot img { display: block; width: 100%; border-radius: var(--radius); background: #15171C; box-shadow: 0 18px 50px rgb(21 23 28 / .28); image-rendering: auto; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Sizes: the tall picture beside a short definition list. */
.sizes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; padding: 72px 0; border-top: 1px solid var(--line); }
.sizes-copy { display: grid; gap: 18px; position: sticky; top: 40px; }
.sizes-copy > p { color: var(--muted); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 20px; margin: 8px 0 0; }
dt { font-weight: 650; }
dd { margin: 0; color: var(--muted); }
.sizes-shot { justify-self: center; width: 100%; max-width: 420px; border-radius: var(--radius); }

/* Features: a two-column list on a panel, no cards. */
.features { padding: 72px 0; }
.features h2 { margin-bottom: 32px; }
.features ul { list-style: none; margin: 0; padding: 32px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.features li { color: var(--muted); }
.features li b { color: var(--text); display: block; margin-bottom: 2px; }

/* Download: three platforms in a row, each with its own files; the visitor's system goes first. */
.download { padding: 72px 0; border-top: 1px solid var(--line); display: grid; gap: 28px; justify-items: start; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; width: 100%; }
.platform { display: grid; gap: 10px; align-content: start; grid-template-rows: auto 1fr auto; }
.platform.mine { order: -1; }
.platform p { color: var(--muted); }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn .size { margin-left: 8px; font-weight: 400; font-size: 14px; opacity: .7; }
.btn .size:empty { display: none; }
.note { font-size: 15px; color: var(--muted); max-width: 52em; }
.note[hidden] { display: none; }

/* Mobile waitlist: one line of form on a wide screen. */
.waitlist { padding: 64px 0; border-top: 1px solid var(--line); display: grid; gap: 16px; max-width: 760px; }
.waitlist > p { color: var(--muted); }
.waitlist form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; margin-top: 8px; }
.waitlist .email { display: grid; gap: 6px; flex: 1 1 260px; font-size: 15px; color: var(--muted); }
.waitlist input[type=email] { height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: inherit; font-size: 16px; }
.waitlist input[type=email]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.waitlist .phones { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; border: 0; font-size: 15px; }
.waitlist .phones legend { padding: 0; margin-bottom: 6px; color: var(--muted); width: 100%; }
.waitlist .phones label { display: inline-flex; align-items: center; gap: 6px; height: 46px; }
.waitlist .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.linklike { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--text); }
.waitlist button:disabled { opacity: .6; cursor: progress; }
.waitlist .msg { min-height: 1.6em; color: var(--text); font-weight: 600; }
.waitlist .msg[data-result=invalid], .waitlist .msg[data-result=busy], .waitlist .msg[data-result=error] { color: #C2410C; }
.waitlist .fine { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
main.done { padding: 96px 24px; display: grid; gap: 16px; font-size: 18px; }

.privacy { padding: 64px 0 80px; display: grid; gap: 14px; max-width: 760px; }
.privacy p { color: var(--muted); }

footer { padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
footer .fine { font-size: 13px; max-width: 60em; }

@media (max-width: 860px) {
  .hero, .sizes { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 24px 0 56px; }
  .sizes { padding: 56px 0; }
  .sizes-shot { max-width: 360px; }
  .sizes-copy { position: static; }
  .features ul { grid-template-columns: 1fr; padding: 24px; }
  .platforms { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
  .top, main, footer { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
