/* Layout: a real-device hero, then the four real screens strung on a red playback scrubber, then quiet lists. */
:root {
  --paper: #ffffff;
  --ink: #111113;
  --mist: #f4f4f6;
  --line: #e6e6ea;
  --muted: #66666d;
  --red: #e62117;
  --band: #111113;
  --band-ink: #f4f4f6;
  --band-muted: #a1a1aa;
  --device: #111113;
  --display: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans Thai", "Noto Sans Devanagari", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans Thai", "Noto Sans Devanagari", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0e10; --ink: #f2f2f4; --mist: #17171a; --line: #26262b; --muted: #a0a0a8;
    --band: #1b1b1f; --band-ink: #f2f2f4; --band-muted: #a0a0a8; --device: #2a2a2f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e0e10; --ink: #f2f2f4; --mist: #17171a; --line: #26262b; --muted: #a0a0a8;
  --band: #1b1b1f; --band-ink: #f2f2f4; --band-muted: #a0a0a8; --device: #2a2a2f; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--paper); }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: auto; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav { display: flex; } }
.lang { margin-left: auto; }
@media (min-width: 860px) { .lang { margin-left: 0; } }
.brand + .lang { margin-left: auto; } /* pages without the nav */
.lang select {
  font: 500 14px var(--sans); color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 30px 7px 14px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: 0.86; }
.btn-secondary { border-color: var(--line); }
.btn-secondary:hover { background: var(--mist); }
.btn-soon { background: var(--mist); color: var(--muted); cursor: default; }
.req { width: 100%; font-size: 14px; color: var(--muted); }
.band .btn-primary { background: var(--band-ink); color: var(--band); }
.band .btn-soon { background: color-mix(in srgb, var(--band-ink) 10%, transparent); color: var(--band-muted); }
.band .req { color: var(--band-muted); }
.versions { width: 100%; max-width: 34em; list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.versions b { margin-right: 8px; font-weight: 600; color: var(--ink); }
.band .versions { color: var(--band-muted); }
.band .versions b { color: var(--band-ink); }
/* Beside the heading the buttons' column sizes to its content: without a limit the notes would stretch it and squeeze the heading. */
@media (min-width: 940px) { .band .cta { max-width: 470px; } }

/* Hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 940px) { .hero { padding-block: 72px 112px; } .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 22px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 24px; }
:lang(zh) .hero h1, :lang(th) .hero h1, :lang(hi) .hero h1 { letter-spacing: 0; line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 36px; max-width: 32em; }

.stage { position: relative; justify-self: center; width: min(330px, 82vw); }
.device { background: var(--device); border-radius: 44px; padding: 10px; box-shadow: 0 40px 80px -40px rgba(17, 17, 19, 0.45); }
.device img { width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; border-radius: 35px; background: var(--mist); }
.float {
  position: absolute; left: -14%; bottom: 14%; width: 78%;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 24px 50px -24px rgba(17, 17, 19, 0.35);
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; align-items: center;
}
.float .thumb { grid-row: span 2; height: 34px; border-radius: 8px; background: linear-gradient(100deg, #12102a 0 55%, #ff6a2b 58%, #4a0b12 64%); }
.float strong { font: 600 15px var(--display); }
.float .mono { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.float .bar b { display: block; height: 100%; width: 95%; background: var(--red); border-radius: 2px; transform-origin: left; animation: grow 2.4s cubic-bezier(.3,.7,.3,1) both; }
@keyframes grow { from { transform: scaleX(0.35); } }
@media (max-width: 560px) { .float { left: -6%; width: 88%; bottom: 8%; } }
@media (prefers-reduced-motion: reduce) { .kicker i, .float .bar b { animation: none; } }

/* Sections */
section { padding-block: 72px; }
@media (min-width: 940px) { section { padding-block: 104px; } }
.tint { background: var(--mist); }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 46em; }
.head h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.025em; }
:lang(zh) .head h2, :lang(th) .head h2, :lang(hi) .head h2 { letter-spacing: 0; line-height: 1.3; }
.head p { margin: 0; color: var(--muted); font-size: 18px; }

/* Storyboard: the four real screens in order, joined by a scrubber that fills toward the last one. */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(74%, 270px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-bottom: 8px; }
.board::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .board { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.step { scroll-snap-align: start; display: grid; gap: 18px; align-content: start; min-width: 0; }
.scrub { position: relative; height: 14px; }
.scrub::before { content: ""; position: absolute; left: 0; right: -28px; top: 6px; height: 2px; background: var(--red); }
.step:last-child .scrub::before { right: 0; background: linear-gradient(90deg, var(--red) 40%, var(--line) 40%); }
.scrub::after { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.step .time { color: var(--muted); margin-top: -8px; }
.step .shot { background: var(--device); border-radius: 30px; padding: 7px; }
.step .shot img { width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; border-radius: 24px; background: var(--paper); }
.step h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Sites */
/* Laid out like the app's own shortcut grid on its home page. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; max-width: 760px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 16px; } }
.tile { display: grid; justify-items: center; gap: 12px; text-align: center; min-width: 0; }
.tile-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; box-shadow: 0 10px 22px -12px rgba(17, 17, 19, 0.45); }
.tile-icon svg { width: 34px; height: 34px; }
.tile-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; background: #fff; }
.tile-label { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
@media (max-width: 420px) { .tile-icon { width: 56px; height: 56px; border-radius: 16px; } .tile-icon svg { width: 30px; height: 30px; } .tile-label { font-size: 13px; } }
.fine { color: var(--muted); font-size: 14px; margin: 28px 0 0; max-width: 46em; }

/* Features: a plain two-column list, ruled like a spec sheet. */
.specs { display: grid; gap: 0 56px; margin: 0; }
@media (min-width: 760px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec { border-top: 1px solid var(--line); padding-block: 22px; display: grid; gap: 6px; min-width: 0; }
.spec dt { font: 600 18px/1.35 var(--display); letter-spacing: -0.01em; }
.spec dd { margin: 0; color: var(--muted); }

/* Closing band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { display: grid; gap: 28px; }
@media (min-width: 940px) { .band .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.band h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.08; }
.band p { margin: 14px 0 0; color: var(--band-muted); max-width: 34em; }
.notes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--band-muted); border-top: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent); padding-top: 24px; grid-column: 1 / -1; }

/* Footer */
.footer { padding-block: 28px 36px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer .brand { font-size: 16px; color: var(--ink); }
.footer .brand img { width: 20px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Privacy page */
.doc { max-width: 760px; padding-block: 48px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.025em; margin: 0 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc ul { padding-left: 22px; }
.todo { background: #fff3cd; color: #664d03; padding: 0 4px; border-radius: 4px; }
