/* Lantern homepage.
   Layout: a fixed voxel village (canvas#world) shows through the hero and four story steps; a rounded sheet then
   slides over it with the rest of the page. Twilight navy and warm cream, one amber light source, soft glass cards. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #121936;
  --bg-2: #18204a;
  --card: #1c2552;
  --card-2: #252f63;
  --glass: rgba(24, 31, 68, 0.62);
  --line: rgba(190, 200, 255, 0.12);
  --line-2: rgba(190, 200, 255, 0.22);
  --fg: #fbf5ea;
  --muted: #c6cae6;
  --faint: #8f97c2;
  --accent: #ffb547;
  --accent-hi: #ffd78f;
  --peach: #ff9e7a;
  --ink: #2a1a05;
  --ok: #7ee2a8;
  --help: #ff7b7b;
  --res: #74c8f5;
  --rose: #f7a1bc;
  --violet: #b9a2ff;
  --badge-bg: #000000;
  --badge-fg: #ffffff;
  --badge-line: #a6a6a6;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 44px);
  --r: 28px;
  --shadow: 0 30px 80px -30px rgba(5, 8, 25, 0.75);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17.5px/1.65 var(--body); -webkit-font-smoothing: antialiased;
  /* clip, not hidden: nothing can widen the page, and body doesn't become its own scroller */
  overflow-x: clip;
}
/* the root's value goes to the viewport: no sideways panning on phones, even if something pokes out */
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.025em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 0.95; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
h3 { font-size: 23px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
.lede { color: var(--muted); font-size: clamp(17.5px, 1.6vw, 20.5px); max-width: 36em; }
.fine { font-size: 13.5px; color: var(--faint); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.chip-label {
  display: inline-flex; align-items: center; gap: 9px; justify-self: start;
  font: 600 13px/1 var(--body); letter-spacing: 0.02em; color: var(--accent-hi);
  padding: 9px 14px; border-radius: 999px; background: rgba(255, 181, 71, 0.12); border: 1px solid rgba(255, 181, 71, 0.28);
}
.chip-label.rose { color: var(--rose); background: rgba(247, 161, 188, 0.12); border-color: rgba(247, 161, 188, 0.3); }
.chip-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- 3D layers ---------- */
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#items { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 30; pointer-events: none; }
#tags { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.tag {
  position: absolute; left: 0; top: 0; white-space: nowrap; display: flex; align-items: center; gap: 7px;
  font: 600 12.5px/1 var(--body); color: var(--fg); padding: 7px 11px; border-radius: 999px;
  background: rgba(18, 25, 54, 0.78); border: 1px solid var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease; will-change: transform;
}
.tag.on { opacity: 1; }
.tag .st:empty { display: none; }
.tag .st { font-weight: 500; color: var(--muted); padding-left: 7px; border-left: 1px solid var(--line-2); }
.tag[data-status="ok"] .st { color: var(--ok); }
.tag[data-status="help"] .st { color: var(--help); }
.tag[data-status="res"] .st { color: var(--res); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 60; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1120px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 20px;
  background: rgba(20, 27, 61, 0.55); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: background .3s ease, box-shadow .3s ease;
}
.scrolled .nav { background: rgba(20, 27, 61, 0.82); box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.6); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; justify-self: start; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 9px 14px; border-radius: 12px; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.nav .get { justify-self: end; display: flex; }
@media (max-width: 880px) { .nav { grid-template-columns: 1fr auto; } .nav-links { display: none; } }

/* ---------- download buttons ---------- */
/* Apple's badge: black, grey keyline, white type, no animation or effects */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px;
  background: var(--badge-bg); color: var(--badge-fg); border: 1px solid var(--badge-line); border-radius: 12px; text-decoration: none;
}
.store-badge svg { width: 28px; height: 28px; flex: none; margin-top: -3px; }
.store-badge span { display: grid; line-height: 1; text-align: left; font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.store-badge small { font-size: 11.5px; font-weight: 500; }
.store-badge b { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.store-badge.sm { height: 40px; padding: 0 13px 0 10px; gap: 7px; border-radius: 9px; }
.store-badge.sm svg { width: 19px; height: 19px; margin-top: -2px; }
.store-badge.sm small { font-size: 8.5px; }
.store-badge.sm b { font-size: 17px; margin-top: 1px; }
.store-badge.lg { height: 64px; padding: 0 26px 0 18px; border-radius: 14px; }
.store-badge.lg svg { width: 32px; height: 32px; }
.store-badge.lg small { font-size: 13px; }
.store-badge.lg b { font-size: 29px; }
.soon-btn {
  display: none; align-items: center; height: 56px; padding: 0 22px; border-radius: 14px; text-decoration: none;
  font: 650 16px/1 var(--body); color: var(--ink); background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 10px 30px -10px rgba(255, 181, 71, 0.7);
}
.soon-btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.soon-btn.lg { height: 64px; padding: 0 26px; font-size: 17px; }
.prelaunch .store-badge { display: none; }
.prelaunch .soon-btn { display: inline-flex; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 600px; touch-action: pan-y;
  display: grid; grid-template-rows: 1fr auto; padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) 28px;
}
.hero-copy { position: relative; display: grid; justify-items: center; gap: 20px; text-align: center; align-content: start; max-width: 980px; margin-inline: auto; }
/* a soft pool of sky behind the copy so it stays readable over rooftops. It reaches past the copy on purpose, so on
   a phone (copy as wide as the screen) the hero clips it at the screen edge rather than widening the page. */
.hero { overflow-x: clip; }
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -60px -12% -40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 58, 120, 0.55), rgba(52, 58, 120, 0.25) 60%, transparent); filter: blur(10px); pointer-events: none; }
.hero-copy .chip-label { justify-self: center; background: rgba(20, 27, 61, 0.45); }
.hero h1 { text-shadow: 0 2px 30px rgba(40, 30, 80, 0.35); }
.hero h1 em { font-style: normal; color: var(--accent-hi); background: linear-gradient(180deg, #fff1cf, var(--accent) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #f4eef8; text-shadow: 0 1px 14px rgba(30, 24, 70, 0.7); max-width: 40em; }
.switch {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 8px; border-radius: 999px; cursor: pointer;
  background: rgba(20, 27, 61, 0.55); border: 1px solid var(--line-2); font-weight: 600; font-size: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s ease, transform .15s ease;
}
.switch:hover { background: rgba(20, 27, 61, 0.8); transform: translateY(-1px); }
.switch .knob { width: 54px; height: 40px; border-radius: 999px; background: var(--accent); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 20px -2px rgba(255,181,71,.7); transition: background .3s ease, box-shadow .3s ease; }
.switch .knob::after { content: ""; position: absolute; top: 4px; left: 18px; width: 32px; height: 32px; border-radius: 50%; background: #fffaf0; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: left .3s cubic-bezier(.3,1.4,.5,1); }
.cut .switch .knob { background: #3a4270; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cut .switch .knob::after { left: 4px; }
.hint { display: flex; justify-content: center; gap: 22px; margin: 0; font: 500 13px/1 var(--body); color: rgba(251, 245, 234, 0.75); transition: opacity .4s ease; }
.hint span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(20, 27, 61, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hint .drag::before { content: "↔"; }
.hint .scroll::before { content: "↓"; animation: nudge 1.8s ease-in-out infinite; display: inline-block; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.cut .hint { opacity: 0; }
@media (pointer: coarse) { .hint .drag::before { content: "↔"; } }

/* ---------- story ---------- */
.step { height: 100svh; min-height: 600px; display: flex; align-items: center; padding-inline: var(--gutter); touch-action: pan-y; }
.story-card {
  width: min(440px, 100%); margin-left: max(0px, calc((100vw - 1200px) / 2));
  padding: 30px; border-radius: var(--r); display: grid; gap: 16px;
  background: var(--glass); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.story-card h2 { font-size: clamp(34px, 3.8vw, 48px); }
.story-card p { color: var(--muted); }
.kicker { font: 500 13px/1 var(--body); color: var(--faint); display: flex; align-items: center; gap: 10px; }
.kicker b { font: 500 12px/1 var(--mono); color: var(--accent); padding: 5px 7px; border-radius: 7px; background: rgba(255, 181, 71, 0.12); }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nosvc { font: 500 12.5px/1 var(--mono); color: var(--help); padding: 7px 10px; border-radius: 8px; background: rgba(255, 123, 123, 0.1); border: 1px solid rgba(255, 123, 123, 0.3); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mini-stats div { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); text-align: center; }
.mini-stats dt { font: 700 26px/1 var(--display); color: var(--accent-hi); letter-spacing: -0.02em; }
.mini-stats dd { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); }
.logline { font: 400 13px/1.6 var(--mono); padding: 14px 16px; border-radius: 16px; background: rgba(10, 14, 34, 0.55); border: 1px solid var(--line); color: var(--fg) !important; }
.logline span { color: var(--faint); }
b.help { color: var(--help); } b.ok { color: var(--ok); } b.res { color: var(--res); } b.text { color: var(--accent); }
.dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick {
  height: 52px; border-radius: 16px; cursor: pointer; font: 700 14px/1.1 var(--body); padding: 0 6px;
  border: 1px solid; background: transparent; transition: transform .12s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.pick:active { transform: scale(0.96); }
.pick.ok { color: var(--ok); border-color: rgba(126, 226, 168, 0.5); background: rgba(126, 226, 168, 0.1); }
.pick.help { color: var(--help); border-color: rgba(255, 123, 123, 0.5); background: rgba(255, 123, 123, 0.1); }
.pick.res { color: var(--res); border-color: rgba(116, 200, 245, 0.5); background: rgba(116, 200, 245, 0.1); }
.pick.ok:hover { background: var(--ok); color: var(--bg); box-shadow: 0 8px 26px -8px var(--ok); }
.pick.help:hover { background: var(--help); color: var(--bg); box-shadow: 0 8px 26px -8px var(--help); }
.pick.res:hover { background: var(--res); color: var(--bg); box-shadow: 0 8px 26px -8px var(--res); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 120px; align-content: start; }
.log li { font: 400 12.5px/1.5 var(--mono); padding: 10px 12px; border-radius: 12px; background: rgba(10, 14, 34, 0.5); border: 1px solid var(--line); animation: pop .35s cubic-bezier(.2,.9,.3,1.2); }
.log li span { display: block; color: var(--faint); font-size: 11.5px; }
.log li.empty { color: var(--faint); border-style: dashed; background: transparent; }
@keyframes pop { from { transform: translateY(-6px) scale(.98); opacity: .3; } }

.progress {
  position: fixed; z-index: 20; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.in-story .progress { opacity: 1; pointer-events: auto; }
.progress a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; font: 500 12.5px/1 var(--body); color: var(--faint); }
.progress a::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); transition: all .25s ease; }
.progress a span { opacity: 0; transform: translateX(6px); transition: all .25s ease; }
.progress a:hover span, .progress a.on span { opacity: 1; transform: none; }
.progress a.on { color: var(--fg); }
.progress a.on::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scale(1.25); }

@media (max-width: 899px) {
  .step { align-items: flex-end; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .story-card { margin: 0 auto; padding: 22px; gap: 12px; }
  .story-card h2 { font-size: 32px; }
  .story-card p { font-size: 15.5px; }
  .log { min-height: 0; }
  .log li:nth-child(n+3) { display: none; }
  .progress { display: none; }
  .hint .drag { display: none; }
}

/* ---------- the sheet ---------- */
.sheet {
  position: relative; z-index: 5; border-radius: 44px 44px 0 0; overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 158, 122, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 30%);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.6);
  padding-top: clamp(40px, 6vw, 80px);
}
.sheet::before { content: ""; display: block; width: 52px; height: 5px; border-radius: 3px; background: var(--line-2); margin: -20px auto 0; }
section.wrap { padding-block: clamp(64px, 9vw, 120px); }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head.center .chip-label { justify-self: center; }

/* three buttons */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
  --c: var(--ok);
  position: relative; display: grid; gap: 12px; align-content: start; padding: 0 26px 28px; border-radius: var(--r);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--card)), var(--card) 55%);
  border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2,.9,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.feature.help { --c: var(--help); } .feature.res { --c: var(--res); }
.feature .model { aspect-ratio: 1 / 0.86; margin-inline: -26px; }
.feature .key {
  justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 12px;
  font: 700 13.5px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.feature .key::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.feature p { color: var(--muted); font-size: 16px; }
.feature .fine { padding-top: 10px; border-top: 1px dashed var(--line-2); }
@media (max-width: 900px) { .three { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.card p { color: var(--muted); font-size: 16px; }
.card.wide { grid-column: span 2; }
.fig { font: 800 clamp(56px, 6vw, 80px)/0.9 var(--display); letter-spacing: -0.04em; color: var(--accent-hi); margin-bottom: 8px; }
.fig small { font-size: 0.3em; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-left: 6px; }
.cycle { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.cycle i { height: 40px; border-radius: 8px; background: var(--card-2); }
.cycle i.on { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 0 20px -4px var(--accent); }
.cycle-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); }
.cycle-legend b { color: var(--accent-hi); font-weight: 600; }
.lockcard { background: radial-gradient(120% 100% at 100% 100%, rgba(255, 123, 123, 0.14), transparent 60%), var(--card); }
.lock { display: grid; gap: 12px; margin-top: 4px; }
.clock { font: 700 52px/1 var(--display); letter-spacing: -0.03em; text-align: center; opacity: 0.9; }
.notif { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); }
.notif img { width: 38px; height: 38px; border-radius: 10px; }
.notif .t { display: flex; justify-content: space-between; font-weight: 650; font-size: 14px; }
.notif .t span { font-weight: 400; color: var(--faint); font-size: 12.5px; }
.notif p { font-size: 14.5px; color: var(--fg); line-height: 1.45; }
.notif b { color: var(--help); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .card.wide { grid-column: auto; } }

/* household */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 18px 20px 18px 56px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--bg); background: var(--rose); }
.ticks b { color: var(--fg); font-weight: 650; }
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 161, 188, 0.25), transparent); }
.phone { position: relative; width: 340px; max-width: 100%; border-radius: 54px; padding: 12px; background: linear-gradient(145deg, #3a4370, #1b2148 45%, #2a3160); box-shadow: 0 0 0 1px #4a5488, var(--shadow), 0 0 90px -30px rgba(247, 161, 188, 0.5); transform: rotate(-3deg); }
.screen { border-radius: 43px; background: #0f1430; overflow: hidden; padding: 14px 18px 16px; display: grid; gap: 13px; }
.island { width: 108px; height: 32px; border-radius: 20px; background: #000; margin: 0 auto -4px; }
.sbar { display: flex; justify-content: space-between; align-items: center; height: 32px; margin-top: -32px; padding: 0 8px; font: 600 13px/1 -apple-system, "SF Pro Text", sans-serif; }
.sbar .ns { color: var(--faint); font-weight: 500; }
.app-title { display: flex; justify-content: space-between; align-items: end; margin-top: 8px; gap: 8px; }
.app-title b { font: 700 28px/1 var(--display); letter-spacing: -0.02em; }
.lockpill { font: 500 10.5px/1 var(--mono); color: var(--rose); border: 1px solid rgba(247, 161, 188, 0.4); padding: 5px 8px; border-radius: 7px; }
.hh { font: 700 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }
.members { border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.member { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; }
.member + .member { border-top: 1px solid var(--line); }
.member .st { display: flex; align-items: center; gap: 7px; font: 400 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.member i { width: 8px; height: 8px; border-radius: 50%; }
.member i.ok { background: var(--ok); } .member i.res { background: var(--res); }
.bubble { max-width: 92%; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: var(--card-2); font-size: 14.5px; line-height: 1.45; }
.bubble.me { justify-self: end; border-radius: 18px 18px 6px 18px; background: rgba(247, 161, 188, 0.2); }
.bubble small { display: block; margin-top: 5px; font: 400 10.5px/1 var(--mono); color: var(--faint); }
.mini-dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-dock span { height: 38px; border-radius: 11px; display: grid; place-items: center; font: 700 11.5px/1 var(--body); letter-spacing: .06em; border: 1px solid; }
.mini-dock .ok { color: var(--ok); } .mini-dock .help { color: var(--help); } .mini-dock .res { color: var(--res); }
.homebar { width: 120px; height: 5px; border-radius: 3px; background: var(--fg); opacity: 0.45; margin: 2px auto 0; }

.head.flush { margin-bottom: 0; }

/* private messages: the same split, phone on the left on wide screens, violet like the app's private tab */
.chip-label.violet { color: var(--violet); background: rgba(185, 162, 255, 0.12); border-color: rgba(185, 162, 255, 0.32); }
@media (min-width: 901px) { .split.flip > :first-child { order: 2; } }
.ticks.violet li::before { background: var(--violet); }
.phone-stage.violet::before { background: radial-gradient(closest-side, rgba(185, 162, 255, 0.25), transparent); }
.phone.violet .lockpill { color: var(--violet); border-color: rgba(185, 162, 255, 0.45); }
.phone.violet .bubble.me { background: rgba(185, 162, 255, 0.22); }
.screen .only { justify-self: center; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); padding-top: 4px; }

/* the street's growth, and a report as Messages would carry it */
.tiers { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: tier; }
.tiers li { counter-increment: tier; }
.tiers button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); font: 600 14px/1 var(--body); color: var(--fg); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.tiers button::before { content: counter(tier); font: 500 11px/1 var(--mono); color: var(--accent-hi); }
.tiers button small { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.tiers button:hover { border-color: rgba(255, 181, 71, 0.45); }
.tiers button[aria-pressed="true"] { background: rgba(255, 181, 71, 0.16); border-color: rgba(255, 181, 71, 0.7); color: var(--accent-hi); }
.tiers button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
/* "Your street, in 3D": the app's own renders of the street at each size */
.grow { margin: 6px 0 10px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0f1430; aspect-ratio: 3 / 2; }
.grow img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.grow img.swap { opacity: 0; }
/* "A second radio": how each way of reaching people compares */
.radios { display: grid; gap: 10px; margin: 8px 0 0; }
.radios > div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2); }
.radios dt { font: 500 12px/1.6 var(--mono); color: var(--accent-hi); text-transform: uppercase; letter-spacing: .06em; }
.radios .wa dt { color: var(--violet, #b9a2ff); }
.radios .sat dt { color: #74c8f5; }
.radios dd { margin: 0; display: grid; gap: 3px; }
.radios dd b { font: 600 15px/1.35 var(--body); color: var(--fg); }
.radios dd span { font: 400 13.5px/1.5 var(--body); color: var(--muted); }
@media (max-width: 580px) { .radios > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.report { padding: 14px 16px; border-radius: 16px; background: #0f1430; border: 1px solid var(--line-2); font: 400 13.5px/1.55 var(--mono); color: var(--fg); }

/* Apple Watch: one full-width card with three quick facts */
.card.full { grid-column: 1 / -1; }
.watchcard { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.watch-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.watch-facts li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2); }
.watch-facts b { font-weight: 650; color: var(--fg); }
.watch-facts span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 800px) { .watchcard { grid-template-columns: minmax(0, 1fr); } }

/* privacy */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust > div { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.trust .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--accent-hi); background: rgba(255, 181, 71, 0.12); border: 1px solid rgba(255, 181, 71, 0.25); }
.trust .ic svg { width: 24px; height: 24px; }
.trust h3 { margin-top: 4px; }
.trust p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1040px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* setup */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 0 22px 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.9,.3,1), border-color .3s; }
.steps li:hover { transform: translateY(-6px); border-color: rgba(255, 181, 71, 0.35); }
.steps .model { aspect-ratio: 1 / 0.9; margin-inline: -22px; }
.steps .n { position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--display); color: var(--ink); background: var(--accent); box-shadow: 0 0 20px -4px var(--accent); }
.steps b { font: 650 22px/1.15 var(--display); letter-spacing: -0.015em; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details { border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: background .25s, border-color .25s; }
.faq details[open] { background: var(--card-2); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font: 650 20px/1.25 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 22px/1 var(--body); color: var(--ink); background: var(--accent); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); max-width: 64ch; }

/* final */
.final {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 20px;
  border-radius: 44px; padding: clamp(28px, 5vw, 64px); overflow: hidden;
  background: radial-gradient(60% 80% at 22% 50%, rgba(255, 181, 71, 0.24), transparent 70%), linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid rgba(255, 181, 71, 0.25);
}
.final .lantern { aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.final-copy { display: grid; gap: 20px; justify-items: start; }
.final-copy .cta-row { justify-content: flex-start; }
@media (max-width: 860px) { .final { grid-template-columns: minmax(0, 1fr); text-align: center; } .final .lantern { max-width: 300px; } .final-copy { justify-items: center; } .final-copy .cta-row { justify-content: center; } }

footer.wrap { padding-block: 40px 48px; color: var(--faint); font-size: 14.5px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--fg); }
.tag-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 22px; font-size: 13.5px; }

/* ---------- motion: rise-in and pointer tilt ---------- */
.rv { transform: translateY(28px); transition: transform .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.rv.in { transform: none; }
.tilt { position: relative; transition: transform .25s ease-out, border-color .3s ease, box-shadow .3s ease; will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 236, 200, 0.09), transparent 45%); }
.tilt:hover::after { opacity: 1; }

/* the small models couldn't start (no WebGL for them): drop their boxes rather than leave holes */
.no-items .model { display: none; }
.no-items .feature, .no-items .steps li { padding-top: 26px; }
.no-items .steps .n { position: static; }

/* ---------- without WebGL: a painted dusk instead of the village ---------- */
.no3d #world, .no3d #items, .no3d #tags { display: none; }
.no3d .hero { background: linear-gradient(180deg, #3d4d92, #a58cc0 60%, #ffbb92); }
.no3d .story { background: linear-gradient(180deg, #1b2458, #0b1130); }
.no3d .model { display: none; }
.no3d .feature, .no3d .steps li { padding-top: 26px; }
.no3d .steps .n { position: static; }
