/* M IN — public website styles. Plain CSS, no build step.
   Type: each platform's own system typeface (SF Pro on iPhone, iPad and Mac, Roboto on Android,
   Segoe UI on Windows), light weight for headlines, regular for everything else.
   Colour: white page, warm-grey panels, black and white pill buttons. Colour comes from the real
   app screens, not from the page chrome. Coral is kept for links inside long text.
   Motion lives in motion.js + the [data-reveal] rules at the end; every page reads fine without it. */

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --bg-2: #F6F5F3;
  --surface: #FFFFFF;
  --surface-2: #F6F5F3;
  --chip-bg: #EFEEEB;
  --text: #0B0B0B;
  --text-2: #57534E;
  --muted: #8A847E;
  --border: #E3E1DE;
  --hairline: #ECEAE7;
  --pill-dark: #0B0B0B;
  --pill-dark-ink: #FFFFFF;
  --pill-dark-hover: #2E2C2A;
  --coral: #E94C41;
  --coral-hover: #D8413A;
  --coral-ink: #FFFFFF;
  --coral-text: #C8372D;
  --coral-soft: rgba(233, 76, 65, 0.10);
  --coral-glow: rgba(233, 76, 65, 0.28);
  --page-glow: transparent;
  --shadow: 0 1px 2px rgba(20, 16, 12, 0.05), 0 12px 32px -16px rgba(20, 16, 12, 0.18);
  --shadow-device: 0 2px 6px rgba(20, 16, 12, 0.06), 0 40px 70px -36px rgba(20, 16, 12, 0.45);
  --radius-card: 20px;
  --radius-card-sm: 14px;
  --radius-pill: 980px;
  --max: 1240px;
  --measure: 680px;
  --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --pad: clamp(20px, 3.4vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --bg-2: #151514;
    --surface: #121212;
    --surface-2: #151514;
    --chip-bg: #222120;
    --text: #F5F5F4;
    --text-2: #AFA9A3;
    --muted: #7D7772;
    --border: #2C2B29;
    --hairline: #222120;
    --pill-dark: #F5F5F4;
    --pill-dark-ink: #0A0A0A;
    --pill-dark-hover: #FFFFFF;
    --coral: #F0584C;
    --coral-hover: #F26E63;
    --coral-text: #FF8073;
    --coral-soft: rgba(242, 106, 91, 0.18);
    --coral-glow: rgba(242, 106, 91, 0.30);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -16px rgba(0, 0, 0, 0.8);
    --shadow-device: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 70px -36px rgba(0, 0, 0, 0.9);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 1.9rem + 2.2vw, 3.5rem); line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.5rem); line-height: 1.12; }
h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; }
h4 { font-family: var(--font); font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
h1 em, h2 em, .accent { font-style: normal; color: var(--coral); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: 0.3em 0; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

.skip {
  position: absolute; left: 12px; top: -60px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--pill-dark); color: var(--pill-dark-ink); font-size: 0.875rem;
  z-index: 100; transition: top .15s;
}
.skip:focus { top: 12px; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.55; color: var(--text-2); max-width: 46ch; letter-spacing: -0.01em; font-weight: 400; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
/* Pills: black (main action) and white with a hairline (everything else). */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--pill-dark);
  background: var(--pill-dark); color: var(--pill-dark-ink);
  font: inherit; font-weight: 500; font-size: 0.9375rem; line-height: 1.2; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; background: var(--pill-dark-hover); border-color: var(--pill-dark-hover); }
.btn:active { transform: scale(0.98); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-2); border-color: var(--border); }
.btn-lg { padding: 0 24px; font-size: 1rem; min-height: 48px; }
.btn-sm { padding: 0 14px; min-height: 34px; font-size: 0.875rem; }
.btn-block { width: 100%; }
:where(p) > .btn + .btn { margin-left: 8px; }
.btn-on-dark { background: #FFFFFF; color: #0B0B0B; border-color: #FFFFFF; }
.btn-on-dark:hover { background: #ECEAE7; border-color: #ECEAE7; }

/* Chip: a small category label. */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.4;
  color: var(--text-2); background: none;
}
.chip-neutral { color: var(--muted); }
.chip-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* Label above a headline: small, regular, grey. */
.eyebrow, .label {
  display: block; margin: 0 0 12px;
  font-family: var(--font); font-weight: 400; font-size: 0.875rem; letter-spacing: 0; line-height: 1.4; color: var(--text-2);
}

/* Store buttons, shaped like the official badges. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 18px 0 14px; min-height: 50px; min-width: 160px;
  border-radius: 12px;
  background: #000; color: #FFF;
  border: 1px solid #000;
  font-weight: 600; line-height: 1.05; text-align: left; letter-spacing: -0.015em;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.store:hover { text-decoration: none; background: #262626; }
.store:active { transform: scale(0.98); }
.store svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 0.6875rem; font-weight: 400; letter-spacing: 0; opacity: 0.8; margin-bottom: 2px; }
.store span { font-size: 1.0625rem; white-space: nowrap; }
.store[aria-disabled="true"] { cursor: default; pointer-events: none; }
@media (prefers-color-scheme: dark) { .store { border-color: #3A3A3A; } }

/* ---------- Top bar (latest news) ---------- */

.topbar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 6px var(--gutter); background: var(--bg-2); border-bottom: 1px solid var(--hairline); color: var(--text); font-size: 0.8125rem; line-height: 1.3; text-align: center; }
.topbar:hover { text-decoration: none; }
.topbar-tag { flex: none; font-weight: 600; color: var(--coral-text); }
.topbar-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-btn { flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: 0.75rem; }
.topbar:hover .topbar-btn { border-color: var(--text-2); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  padding-top: env(safe-area-inset-top, 0px);
}
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--bg); } }
.nav { position: relative; display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); margin-right: 28px; }
.brand:hover { text-decoration: none; }
/* Logo lockup. One set of proportions for header, footer and the splash, all in em, so the
   splash can scale onto the header exactly. */
.lockup { display: inline-flex; align-items: center; gap: 0.39em; line-height: 1; }
.lockup .mark { width: 1.28em; height: 1.28em; flex: none; color: inherit; }
.wordmark { display: inline-flex; font-family: var(--font); font-weight: 600; letter-spacing: 0.02em; font-size: 1em; line-height: 1; color: inherit; }
.wordmark b { font-weight: 600; display: inline-block; text-box: trim-both cap alphabetic; }
.wordmark b:nth-child(1) { padding-right: 0.47em; }
.wordmark b:nth-child(2) { padding-right: 0.19em; }
@supports not (text-box: trim-both cap alphabetic) { .wordmark { position: relative; top: -0.011em; } }
.brand .lockup .mark, .footer-brand .lockup .mark { margin-left: -0.2785em; }
.site-header .lockup { font-size: 1.2rem; }
.footer-brand .lockup { font-size: 18px; }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links li { margin: 0; }
.nav-links li:last-child { margin-left: auto; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  color: var(--text); font-size: 0.875rem; font-weight: 400; letter-spacing: -0.005em;
  transition: background-color .2s var(--ease);
}
.nav-links a:not(.btn):hover { text-decoration: none; background: var(--bg-2); }
.nav-links a[aria-current="page"] { background: var(--bg-2); }
.nav-links .btn { min-height: 36px; padding: 0 16px; font-size: 0.875rem; }

/* Menu button: two lines that turn into a cross. */
.nav-toggle {
  display: none; position: relative; margin-left: auto;
  width: 44px; height: 44px; margin-right: -12px; padding: 0;
  border: 0; background: none; color: var(--text); cursor: pointer;
  font: inherit; font-size: 0; -webkit-tap-highlight-color: transparent;
}
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 13px; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle::before { top: 18px; }
.nav-toggle::after { top: 25px; }
.nav-toggle[aria-expanded="true"]::before { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .nav-toggle { display: block; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; left: 0; right: 0; top: var(--menu-top, calc(var(--header-h) + env(safe-area-inset-top, 0px))); bottom: 0; z-index: 60;
    padding: 12px var(--gutter) max(32px, env(safe-area-inset-bottom, 0px)); gap: 0; overflow-y: auto;
    background: var(--bg);
    animation: menu-in .35s var(--ease-out);
  }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .js .nav-links.is-open li:last-child { margin-left: 0; }
  .js .nav-links.is-open a:not(.btn) { display: flex; min-height: 0; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--hairline); font-family: var(--display); font-size: 1.5rem; font-weight: 300; letter-spacing: -0.02em; background: none; }
  .js .nav-links.is-open .btn { margin: 24px 0 0; min-height: 48px; width: 100%; font-size: 1rem; }
  html:not(.js) .nav { flex-wrap: wrap; padding-bottom: 10px; }
  html:not(.js) .nav-links { flex-wrap: wrap; width: 100%; }
}
.menu-open { overflow: hidden; }
.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
html:not(.js) .nav-toggle { display: none !important; }

/* ---------- Sections ---------- */

main { display: block; }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin-top: 14px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; max-width: none; flex-wrap: wrap; }

/* Heading on the left, content on the right. */
.split { display: grid; gap: 20px 64px; grid-template-columns: 1fr; }
.split > .eyebrow { margin: 0; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); } }

/* Inner page heading. */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 16px; max-width: 52ch; }
.page-head + .section-tight { padding-top: 0; }
.crumbs + .eyebrow { display: none; }

/* Plan card: used in the guides. */
.plan-stack { display: grid; gap: 14px; width: 100%; max-width: 420px; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.plan-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-card .chip { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--chip-bg); color: var(--text); }
.plan-card .title { font-weight: 500; font-size: 1.125rem; line-height: 1.3; margin: 12px 0 4px; letter-spacing: -0.015em; color: var(--text); }
.plan-card .meta { color: var(--text-2); font-size: 0.875rem; }
.plan-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.plan-card .btn { pointer-events: none; background: var(--coral); border-color: var(--coral); color: #FFF; }
.avatars { display: flex; }
.avatars i, .avatars img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: block; object-fit: cover; background: var(--chip-bg); }
.avatars i:first-child, .avatars img:first-child { margin-left: 0; }
.plan-card.is-joined, .plan-card.is-tilt { transform: none; }

/* Grids and cards */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface-2); border-radius: var(--radius-card); padding: clamp(20px, 2.6vw, 28px); }
.card h3 { margin-top: 16px; }
.card p { color: var(--text-2); font-size: 0.9375rem; }
.card-soft { background: var(--surface-2); }
.icon, .ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--hairline); }
.icon svg, .ico svg { width: 20px; height: 20px; }
.icon svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Steps (kept for guide pages) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
.step { margin: 0; padding-top: 22px; border-top: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: block; margin-bottom: 14px; font-size: 0.875rem; color: var(--text-2); }
.step p { color: var(--text-2); max-width: 40ch; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0 40px; } }

/* Dark band (inner pages) */
.band { position: relative; border-radius: 24px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); background: #0B0B0B; color: #F5F5F4; overflow: hidden; }
.band h2 { color: inherit; max-width: 16ch; }
.band .lead { color: #A8A29E; }
.band ul { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.band li { margin: 0; padding: 22px 0; border-top: 1px solid #2C2B29; }
.band li strong { display: block; margin-bottom: 6px; font-weight: 500; }
.band li span { color: #A8A29E; }
@media (min-width: 720px) { .band ul { grid-template-columns: repeat(3, 1fr); gap: 0 32px; } }
@media (prefers-color-scheme: dark) { .band { background: var(--bg-2); } }

/* Announcements */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.news { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--hairline); margin: 0; }
.news .news-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news time { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news h3, .news h2 { margin: 4px 0 2px; font-family: var(--font); font-size: 1.125rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.news h3 a, .news h2 a { color: inherit; }
.news .news-body { color: var(--text-2); max-width: 64ch; font-size: 0.9375rem; }
.news .news-body p:last-child { margin-bottom: 0; }
.news .news-body ul { margin-bottom: 0.8em; }
@media (min-width: 800px) {
  .news { grid-template-columns: 190px minmax(0, 1fr); gap: 4px 32px; }
  .news .news-top { grid-row: 1 / span 3; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 6px; }
}
/* Home strip: three cards. */
.news-strip { border-top: 0; gap: 12px; }
.news-strip .news { position: relative; display: flex; flex-direction: column; gap: 0; padding: 22px 22px 24px; border: 0; border-radius: var(--radius-card); background: var(--bg-2); transition: background-color .2s var(--ease); }
.news-strip .news:hover { background: var(--chip-bg); }
.news-strip .news .news-top { flex-direction: row; align-items: center; gap: 8px; padding: 0; margin-bottom: 28px; }
.news-strip .news .news-top time::before { content: "\00B7"; margin-right: 8px; color: var(--muted); }
.news-strip .news h3 { margin: 0 0 8px; }
.news-strip .news h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-strip .news h3 a:hover { text-decoration: none; }
.news-strip .news .news-body { font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-strip .news .news-body ul { display: none; }
@media (min-width: 800px) { .news-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Full changelog (whats-new) */
.news-full { border-top: 1px solid var(--text); }
.news-full .news { padding: 36px 0 40px; gap: 10px; }
.news-full .news time { font-size: 0.9375rem; color: var(--text); }
.news-full .news h2 { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: -0.022em; line-height: 1.15; max-width: 24ch; margin: 0 0 10px; }
.news-full .news .news-body { font-size: 1.0625rem; max-width: 62ch; }
.news-full .news .news-body ul { padding-left: 1.2em; }
.news-full .news .news-body li { margin: 0.5em 0; }
@media (min-width: 800px) {
  .news-full .news { grid-template-columns: 220px minmax(0, 1fr); gap: 6px 48px; }
  .news-full .news .news-top { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------- Long reads ---------- */

.prose { max-width: var(--measure); }
.wrap.prose { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.prose h2 { font-family: var(--font); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-top: 2.2em; }
.prose h2:first-child, .prose > .toc + h2 { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--coral-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose .callout { background: var(--bg-2); border-radius: var(--radius-card-sm); padding: 18px 20px; margin: 1.6em 0; color: var(--text); }
.prose .callout p, .prose .callout li { color: inherit; }
.prose .box { background: var(--bg-2); border-radius: 16px; padding: 22px 24px; margin: 1.4em 0; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.prose dt { font-weight: 500; color: var(--text); }
.prose dd { margin: 0; min-width: 0; color: var(--text-2); }
@media (max-width: 420px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }
.prose .summary { background: var(--bg-2); }
.prose .summary ul { margin-bottom: 0; }

/* Contents list. On long documents it becomes a sticky sidebar (see .doc). */
.toc { list-style: none; padding: 0; margin: 0 0 2em; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.toc li { margin: 0; }
.toc a, .prose .toc a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); font-size: 0.9375rem; text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.doc, .doc-head { max-width: calc(1040px + 2 * var(--gutter)); }
.doc-body { max-width: var(--measure); min-width: 0; }
.doc-nav { padding: 16px 18px 12px; border-radius: var(--radius-card-sm); background: var(--bg-2); }
.doc-nav-h { margin: 0 0 4px; font-size: 0.8125rem; color: var(--muted); }
.doc-nav .toc { display: grid; gap: 0; margin: 0; }
.doc-nav .toc a { min-height: 34px; font-size: 0.9375rem; color: var(--text); }
@media (min-width: 1000px) {
  .doc { grid-template-columns: 196px minmax(0, 1fr); gap: 76px; }
  .doc-head > * { margin-left: 272px; }
  .doc-nav { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; padding: 4px 0 0; background: none; border-radius: 0; }
  .doc-nav-h { margin-bottom: 10px; }
  .doc-nav .toc { border-left: 1px solid var(--border); }
  .doc-nav .toc a { min-height: 0; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.875rem; line-height: 1.35; color: var(--muted); transition: color .2s var(--ease), border-color .2s var(--ease); }
  .doc-nav .toc a:hover { color: var(--text); text-decoration: none; }
  .doc-nav .toc a[aria-current="true"] { color: var(--text); border-left-color: var(--text); }
}

.values { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 1.5em 0; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values .card { padding: 22px; }
.values .card h3 { margin-top: 0; }

/* CTA block */
.cta { text-align: center; padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 40px); background: var(--bg-2); border-radius: 24px; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .stores { justify-content: center; margin-top: 28px; }
.app-icon { border-radius: 22.5%; }
.cta .app-icon { width: 84px; height: 84px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 max(32px, calc(env(safe-area-inset-bottom, 0px) + 20px)); margin-top: clamp(48px, 7vw, 104px); color: var(--text-2); font-size: 0.875rem; line-height: 1.45; }
.footer-grid { display: grid; gap: 32px 48px; grid-template-columns: 1fr; align-items: start; padding-bottom: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(220px, 1fr) 2.4fr; } }
.footer-about p { margin: 10px 0 0; max-width: 30ch; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.footer-brand:hover { text-decoration: none; }
.footer-cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-h { font-family: var(--font); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin: 0 0 8px; line-height: 1.4; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text); overflow-wrap: anywhere; }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Share landing (/p/) ---------- */

.share-page { min-height: 100svh; display: flex; flex-direction: column; }
.share-page main { flex: 1; display: flex; align-items: center; }
.share-card { width: 100%; max-width: 460px; margin: 40px auto; padding: 32px 28px 28px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.share-card .app-icon { width: 80px; height: 80px; margin: 0 auto 20px; box-shadow: 0 0 0 1px var(--hairline); }
.share-card h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.25rem); }
.share-card .lead { margin: 10px auto 24px; font-size: 1rem; }
.share-card .btn-lg { width: 100%; }
.share-card .fallback { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.qr-panel { display: none; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.qr-panel .qr { display: inline-block; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--hairline); }
.qr-panel .qr svg { width: 168px; height: 168px; }
.qr-panel .stores { justify-content: center; margin-top: 18px; }
.share-code { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); word-break: break-all; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .qr-panel { display: block; } }

/* 404 */
.big-num { font-family: var(--display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 200; letter-spacing: -0.05em; line-height: 0.9; color: var(--text); margin-bottom: 0.15em; }

/* Utilities */
.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Opening splash (home) ---------- */
#splash { display: none; }
.splash-on #splash { display: flex; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.splash-on .site-header .brand { visibility: hidden; }
.splash-bg { position: absolute; inset: 0; background: var(--bg); }
.splash-lockup { position: relative; font-size: 36px; will-change: transform; }
.splash-markwrap { position: relative; display: inline-flex; }
.splash-mark { width: 120px; height: 120px; display: block; position: relative; z-index: 1; flex: none; }
.sp-stroke { fill: none; stroke: currentColor; stroke-width: 7.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-sweep { fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.sp-dot { fill: currentColor; transform-origin: 75.45px 75.45px; transform: scale(0); opacity: 0; }
.splash-glow { position: absolute; left: -80%; top: -80%; width: 260%; height: 260%; transform-origin: center; transform: scale(0.55); border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(circle at center, var(--coral-glow), transparent 62%); filter: blur(18px); display: none; }
@media (prefers-color-scheme: dark) { .splash-glow { display: block; } }
.splash-word { opacity: 0; }
.splash-word b { opacity: 0; transform: translateX(-8px); }
.splash-signoff { position: absolute; left: 0; right: 0; bottom: max(40px, env(safe-area-inset-bottom, 0px) + 32px); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); color: var(--muted); font-size: 14px; letter-spacing: 0.1em; }
.splash-signoff .rentuku { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0.23em; }
.splash-signoff .rentuku img { width: 22px; height: 22px; }
.splash-signoff i { font-style: normal; }

/* ---------- Editorial shapes ---------- */
.editorial { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); line-height: 1.45; letter-spacing: -0.018em; color: var(--text); max-width: 58ch; }
.not-list h2 { margin-bottom: 0.5em; }
.not-list ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.not-list li { padding: 16px 0; margin: 0; border-bottom: 1px solid var(--hairline); color: var(--text-2); }
.bigline { font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); font-weight: 300; letter-spacing: -0.028em; line-height: 1.12; text-wrap: balance; max-width: 22ch; margin: 0 auto; }
.bigline .w { display: inline-block; opacity: 0.16; transition: opacity .5s var(--ease); }
.bigline .w.on { opacity: 1; }

/* FAQ: hairline accordion. */
.faq { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 0; }
.faq-item summary { cursor: pointer; padding: 20px 0; font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.012em; line-height: 1.35; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--text); -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; color: var(--text-2); transition: transform .3s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-2); padding: 0 40px 22px 0; margin: 0; max-width: 64ch; font-size: 0.9375rem; animation: fade-up .35s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.plain-list { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.plain-list li { padding: 16px 0; margin: 0; border-bottom: 1px solid var(--hairline); }
.plain-list li strong { color: var(--text); font-weight: 500; }
.founder-note { font-family: var(--display); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); font-weight: 300; line-height: 1.5; letter-spacing: -0.016em; margin: 0 0 2.4em; }
.founder-note p { color: var(--text); }
.founder-note .sign { font-family: var(--font); font-size: 1rem; font-weight: 500; margin-top: 1.4em; }
.beta-teaser { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; padding: clamp(28px, 4vw, 44px); background: var(--bg-2); border-radius: 24px; }
.beta-teaser p { color: var(--text-2); max-width: 50ch; }
@media (min-width: 760px) { .beta-teaser { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }

/* ---------- Guides, FAQ and city pages ---------- */
.crumbs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.875rem; color: var(--text-2); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.prose .plan-card { margin: 1.6em 0; max-width: 440px; }
.qa h3 { font-size: 1.125rem; margin-top: 1.8em; }
.qa h3 + p { margin-top: 0.3em; }
.see-also { list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 8px; }
.see-also li { margin: 0; }
.see-also a, .prose .see-also a { position: relative; display: block; padding: 18px 44px 18px 20px; border-radius: 16px; background: var(--bg-2); color: var(--text); font-weight: 500; font-size: 1rem; letter-spacing: -0.012em; text-decoration: none; transition: background-color .2s var(--ease); }
.see-also a span { display: block; font-weight: 400; color: var(--text-2); font-size: 0.875rem; margin-top: 2px; }
.see-also a::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--text-2); border-right: 1.5px solid var(--text-2); transform: translateY(-50%) rotate(45deg); }
.see-also a:hover { background: var(--chip-bg); }
.day { display: grid; gap: 4px 20px; grid-template-columns: 1fr; padding: 14px 0; border-top: 1px solid var(--hairline); }
@media (min-width: 560px) { .day { grid-template-columns: 7.5em 1fr; } }
.day:first-of-type { border-top: 1px solid var(--border); }
.day dt { font-weight: 500; color: var(--text); }
.day dd { margin: 0; color: var(--text-2); }
.more-link { margin-top: 28px; }
.prose dl.days { display: block; margin: 1em 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Forms ---------- */
/* delete-account's .form. Beta, support, promote and the share page style their fields in their
   own stylesheets, which load after this one. */
.form { display: grid; gap: 18px; background: var(--bg-2); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 32px); }
.form .field { display: grid; gap: 8px; }
.form label { font-weight: 500; font-size: 0.9375rem; color: var(--text); }
.form input[type="email"], .form input[type="text"], .form textarea {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus-visible, .form textarea:focus-visible { outline: 0; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--coral); }
.form .form-note { margin: 0; }
.form .form-status { margin: 0; font-weight: 500; }
.form .form-status:empty { display: none; }
.form .form-status.is-error { color: var(--coral-text); }
.form button[disabled] { opacity: 0.6; pointer-events: none; }
.form .hidden { display: none; }
.field-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Small screens and landscape phones ---------- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .store { min-width: 0; flex: 1 1 140px; justify-content: center; padding: 0 12px; }
  .store span { font-size: 1rem; }
  .share-card { padding: 28px 20px 24px; border-radius: 22px; }
  .faq-item p { padding-right: 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  .splash-mark { width: 88px; height: 88px; }
  .splash-signoff { bottom: max(16px, env(safe-area-inset-bottom, 0px) + 8px); }
}

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bigline .w { opacity: 1; transition: none; }
  .faq-item p { animation: none; }
  .btn, .store, .nav-toggle::before, .nav-toggle::after { transition: none; }
  .js .nav-links.is-open { animation: none; }
}
