@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* daylog landing: palette from lib/theme/app_theme.dart */
:root {
  --bg: #0C0C11;
  --surface: #18181F;
  --surface-hi: #22222C;
  --stroke: #2C2C38;
  --pink: #FF38C7;
  --pink-soft: #FF7AD9;
  --pink-deep: #B8128C;
  --lime: #5BF675;
  --violet: #9B6BFF;
  --cyan: #22D3EE;
  --amber: #FFB020;
  --text: #F6F4FB;
  --dim: #A6A6BC;
  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pink-soft); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
::selection { background: rgba(255, 56, 199, .35); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--bg); font-weight: 700;
  padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 360px) { :root { --gutter: 16px; } }

.kicker { font: 700 .8rem/1.4 var(--mono); color: var(--lime); letter-spacing: .01em; margin-bottom: 14px; display: block; }
.hl { color: var(--pink); }
.dim { color: var(--dim); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 12, 17, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 44, 56, .6);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.6rem/1 var(--display); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--text); }
.lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); }
.lang button {
  font: 700 .8rem/1 var(--mono); color: var(--dim); background: none; border: 0;
  border-radius: 999px; min-width: 44px; min-height: 36px; padding: 0 10px; cursor: pointer;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--pink); color: var(--bg); }

/* ---------- buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  flex: 1 1 210px; max-width: 280px; min-height: 64px;
  padding: 10px 18px 10px 16px; border-radius: 20px;
  background: var(--pink); color: var(--bg); text-decoration: none;
  box-shadow: 0 5px 0 var(--pink-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.store:hover { color: var(--bg); transform: translateY(-2px); box-shadow: 0 7px 0 var(--pink-deep); }
.store:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-deep); }
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store small { display: block; font: 700 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.store strong { display: block; font: 800 1.4rem/1.05 var(--display); white-space: nowrap; }
.store.is-soon {
  background: var(--surface); color: var(--text);
  border: 2px dashed var(--pink); box-shadow: none;
}
.store.is-soon:hover { color: var(--text); background: var(--surface-hi); box-shadow: none; }
/* "Coming soon" with no channel to link to yet: a badge, not a button. */
.store.is-soon:not([href]) { cursor: default; pointer-events: none; }
.store.is-soon small { color: var(--lime); }
[data-platform="android"] .store[data-store="android"] { order: -1; }
.stores-note { margin-top: 14px; color: var(--dim); font-size: .95rem; max-width: 34em; }
.stores-note[hidden] { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 1.15rem/1 var(--display); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { color: var(--text); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--stroke); }
.btn-ghost:hover { border-color: var(--pink); color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 72px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
}
.hero::before { width: 620px; height: 620px; right: -220px; top: -160px; background: radial-gradient(closest-side, rgba(255, 56, 199, .30), transparent); }
.hero::after { width: 520px; height: 520px; left: -260px; bottom: 0; background: radial-gradient(closest-side, rgba(155, 107, 255, .22), transparent); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.45rem, 1.5rem + 4.6vw, 4.6rem); margin-bottom: 20px; }
.hero h1 .hl { display: inline; }
.lede { font-size: 1.125rem; color: var(--dim); max-width: 33em; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.chips li {
  font: 700 .76rem/1 var(--mono); padding: 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke); color: var(--text);
}
.chips li:first-child { border-color: var(--lime); color: var(--lime); }
@media (min-width: 920px) {
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* ---------- phone mock (split-screen vlog) ---------- */
.mock { position: relative; width: min(100%, 330px); margin-inline: auto; padding: 0; }
.phone {
  position: relative; aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 11px;
  background: #050507; border: 2px solid #34343f;
  box-shadow: 0 0 0 7px #15151c, 0 40px 90px -30px rgba(255, 56, 199, .55);
  transform: rotate(2.5deg);
}
.screen { height: 100%; border-radius: 36px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; padding: 16px 9px 12px; }
.screen-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 10px; }
.screen-head .wm { font: 800 1.2rem/1 var(--display); }
.live-pill { font: 700 .7rem/1 var(--mono); color: var(--bg); background: var(--lime); padding: 5px 9px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); animation: blink 1.2s steps(2, start) infinite; }
.vgrid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 4px; border-radius: 20px; overflow: hidden; }
.tile {
  --a: var(--pink); --b: var(--pink-soft);
  position: relative; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .38), transparent 42%),
    linear-gradient(160deg, var(--a), var(--b));
}
.tile .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.tile.pop .shot { animation: clip 3s ease-out both; }
@keyframes clip { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1.02) translate(-1%, -1%); } }
.tile .scene { position: relative; font-size: clamp(2.1rem, 11vw, 2.9rem); line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.tile.pop .scene { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both, drift 3.4s ease-in-out .45s infinite alternate; }
.tile .who {
  position: absolute; left: 6px; bottom: 9px; max-width: calc(100% - 12px);
  font: 700 .64rem/1 var(--mono); color: #fff; background: rgba(12, 12, 17, .78);
  padding: 4px 7px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(12, 12, 17, .35); }
.tile .bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.tile.pop .bar::after { animation: fill 2.8s linear forwards; }
.tile.sleep { background: repeating-linear-gradient(135deg, #15151c 0 10px, #191921 10px 20px); }
.tile.sleep .scene { filter: none; opacity: .95; }
.tile.sleep .zz { position: absolute; top: 10px; right: 10px; font: 700 .7rem/1 var(--mono); color: var(--dim); }
.tile.sleep .bar { display: none; }
.rail { display: flex; justify-content: space-between; gap: 2px; padding: 12px 6px 2px; font: 700 .62rem/1 var(--mono); color: #6E6E84; }
.rail span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rail span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rail .on { color: var(--lime); }
.rail .done { color: var(--pink); }

.sticker {
  position: absolute; z-index: 2; font: 700 .74rem/1 var(--mono); white-space: nowrap;
  padding: 9px 12px; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
}
.sticker-rec { left: -6%; top: 14%; background: var(--lime); color: var(--bg); transform: rotate(-6deg); }
.sticker-sleep { right: -6%; top: 52%; background: var(--surface-hi); color: var(--text); border: 1px solid var(--stroke); transform: rotate(5deg); }
.sticker-four { left: 10%; bottom: -2.5%; background: var(--violet); color: var(--bg); transform: rotate(-3deg); }
@media (max-width: 380px) { .sticker { font-size: .66rem; padding: 7px 9px; } .sticker-rec { left: 0; } .sticker-sleep { right: 0; } .sticker-four { left: 8%; } }

@keyframes pop { from { transform: scale(.4) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes drift { from { transform: translateY(0) scale(1); } to { transform: translateY(-5px) scale(1.06); } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes blink { to { visibility: hidden; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section h2 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.3rem); }
.section-head p { margin-top: 14px; color: var(--dim); font-size: 1.1rem; }
@media (min-width: 920px) { .section { padding: 88px 0; } }

/* how it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  --accent: var(--pink);
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.step:nth-child(2) { --accent: var(--lime); }
.step:nth-child(3) { --accent: var(--violet); }
.step-num {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent); color: var(--bg); font: 800 1.6rem/1 var(--display);
}
.step h3 { font-size: 1.7rem; }
.step p { color: var(--dim); }
.step-visual { margin-top: auto; padding-top: 6px; }
.codebox { display: flex; gap: 6px; }
.codebox span {
  flex: 1 1 0; min-width: 0; max-width: 46px; aspect-ratio: 4 / 5; display: grid; place-items: center;
  font: 700 1.25rem/1 var(--mono); border-radius: 10px; background: var(--bg); border: 2px solid var(--stroke); color: var(--pink);
}
.notif {
  display: flex; gap: 12px; align-items: center; background: rgba(246, 244, 251, .08);
  border: 1px solid var(--stroke); border-radius: 18px; padding: 12px;
}
.notif img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.notif em { font-style: normal; }
.notif b { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--dim); font-weight: 600; }
.notif span { display: block; font-weight: 600; font-size: .95rem; color: var(--text); }
.minigrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 14px; overflow: hidden; max-width: 240px; }
.minigrid i { aspect-ratio: 1; display: grid; place-items: center; font-style: normal; font-size: 1.5rem; background: linear-gradient(160deg, var(--a, var(--pink)), var(--b, var(--violet))); }
.minigrid i.z { background: #1b1b23; }
.minigrid .g2 { --a: var(--violet); --b: var(--pink); }
.minigrid .g3 { --a: var(--cyan); --b: var(--violet); }
.minigrid .g4 { --a: var(--amber); --b: var(--pink); }
.minigrid .g5 { --a: var(--lime); --b: var(--cyan); }

/* 4am */
.night { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg), #120f1f 50%, var(--bg)); }
.night-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 920px) { .night-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.clock {
  font: 700 clamp(4.6rem, 25vw, 10rem)/.9 var(--mono); letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--pink), var(--violet) 60%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.clock-sub { font: 700 .85rem/1.4 var(--mono); color: var(--lime); margin-top: 10px; }
.night p.body { color: var(--dim); font-size: 1.1rem; margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 14px 16px; font-weight: 600; }
.ticks li span:first-child { font-size: 1.3rem; line-height: 1.2; }

/* privacy */
.cards { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 24px; padding: 22px; }
.card .emo { font-size: 1.9rem; line-height: 1; display: block; margin-bottom: 12px; }
.card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.card p { color: var(--dim); }
.card.big { background: var(--pink); color: var(--bg); border-color: var(--pink); }
.card.big p { color: var(--bg); }

/* faq */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font: 700 1.3rem/1.2 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-hi); color: var(--pink); font: 700 1.3rem/1 var(--mono);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; background: var(--pink); color: var(--bg); }
.faq summary:hover { color: var(--pink-soft); }
.faq .answer { padding: 0 0 22px; color: var(--dim); max-width: 42rem; }

/* final cta */
.cta {
  position: relative; overflow: hidden;
  background: var(--pink); color: var(--bg); border-radius: 36px; padding: 40px 24px;
}
.cta::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent); pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta-art { display: none; }
@media (min-width: 1000px) {
  .cta-art {
    display: grid; grid-template-columns: repeat(3, 104px); grid-auto-rows: 128px; gap: 6px;
    position: absolute; right: 64px; top: 60px; padding: 8px; border-radius: 30px;
    background: var(--bg); transform: rotate(5deg); box-shadow: 0 30px 60px -20px rgba(12, 12, 17, .6);
  }
  .cta-art i {
    display: grid; place-items: center; font-style: normal; font-size: 2.6rem; border-radius: 16px;
    background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .38), transparent 45%), linear-gradient(160deg, var(--a), var(--b));
  }
  .cta-art .c1 { --a: var(--pink); --b: var(--pink-soft); }
  .cta-art .c2 { --a: var(--violet); --b: var(--pink); }
  .cta-art .c3 { --a: var(--cyan); --b: var(--violet); }
  .cta-art .c4 { --a: var(--amber); --b: var(--pink); }
  .cta-art .c5 { --a: #FF7A00; --b: #FFD000; }
  .cta-art i.z { background: repeating-linear-gradient(135deg, #15151c 0 10px, #191921 10px 20px); }
}
.cta h2 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.8rem); max-width: 14ch; }
.cta p { margin-top: 12px; font-size: 1.1rem; font-weight: 600; max-width: 32em; }
.cta .stores { margin-top: 26px; position: relative; z-index: 1; }
.cta .store, .cta .store.is-soon { background: var(--bg); color: var(--text); border: 2px solid var(--bg); box-shadow: 0 5px 0 rgba(12, 12, 17, .45); }
.cta .store:hover { color: var(--text); }
.cta .store.is-soon { border-style: dashed; border-color: var(--text); }
.cta .store.is-soon small { color: var(--lime); }
.cta .stores-note { color: var(--bg); font-weight: 600; }
.cta :focus-visible { outline-color: var(--bg); }
.community { margin-top: 28px; padding-top: 24px; border-top: 2px dashed rgba(12, 12, 17, .35); position: relative; z-index: 1; }
.community p { margin: 0 0 14px; font-weight: 700; font-size: 1rem; }
.community .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 760px) { .cta { padding: 64px; border-radius: 44px; } }

/* footer */
.foot { padding: 48px 0 40px; margin-top: 24px; border-top: 1px solid var(--stroke); }
.foot .wrap { display: grid; gap: 20px; }
.foot nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--pink); }
.foot .tag { font: 700 .8rem/1.5 var(--mono); color: var(--lime); }
.foot small { color: var(--dim); font-size: .85rem; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: auto 1fr; align-items: center; } .foot nav ul { justify-content: flex-end; } }

/* ---------- invite page ---------- */
.invite { position: relative; overflow: hidden; padding: 28px 0 24px; }
.invite::before {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: 50%; top: -280px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 56, 199, .32), transparent);
}
.invite .wrap { max-width: 580px; }
.invite h1 { font-size: clamp(2.2rem, 1.5rem + 3.6vw, 3.4rem); margin-bottom: 12px; }
.invite .lede { margin-bottom: 20px; color: var(--text); font-weight: 600; font-size: 1.2rem; }
.code-btn {
  display: flex; gap: 6px; width: 100%; padding: 0; margin: 0; background: none; border: 0; cursor: pointer;
  border-radius: 20px;
}
.code-btn span {
  flex: 1 1 0; min-width: 0; aspect-ratio: 3 / 4; max-height: 96px; display: grid; place-items: center;
  font: 700 clamp(1.9rem, 10vw, 3.2rem)/1 var(--mono); color: var(--text);
  background: var(--surface); border: 2px solid var(--stroke); border-bottom-width: 5px; border-radius: 16px;
  transition: border-color .2s, transform .2s;
}
.code-btn span:nth-child(odd) { border-color: var(--pink); }
.code-btn span:nth-child(even) { border-color: var(--violet); }
.code-btn:hover span { transform: translateY(-2px); }
.code-btn.copied span { border-color: var(--lime); }
.copy-row { display: grid; gap: 10px; margin-top: 16px; }
.btn-copy {
  width: 100%; min-height: 60px; font-size: 1.3rem; background: var(--pink); color: var(--bg);
  box-shadow: 0 5px 0 var(--pink-deep); border-radius: 20px;
}
.btn-copy:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-deep); }
.btn-copy.copied { background: var(--lime); box-shadow: 0 5px 0 #2a9a3d; }
.status { min-height: 1.5em; font: 700 .85rem/1.5 var(--mono); color: var(--lime); text-align: center; }
.jsteps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; counter-reset: js; }
.jsteps > li {
  counter-increment: js; position: relative; background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 24px; padding: 18px 18px 18px 64px; font-weight: 600; font-size: 1.05rem;
}
.jsteps > li::before {
  content: counter(js); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; background: var(--pink); color: var(--bg); font: 800 1.2rem/1 var(--display);
}
.jsteps > li:nth-child(2)::before { background: var(--lime); }
.jsteps > li:nth-child(3)::before { background: var(--violet); }
.jsteps .stores { margin-top: 14px; }
.jsteps .store { flex-basis: 100%; max-width: none; }
@media (min-width: 520px) { .jsteps .store { flex-basis: 180px; } }
.tip { margin-top: 12px; font-size: .9rem; color: var(--dim); font-weight: 400; }
.about { margin-top: 28px; padding: 22px; border-radius: 24px; border: 2px dashed var(--stroke); }
.about h2 { font-size: 1.6rem; margin-bottom: 8px; }
.about p { color: var(--dim); }
.about a { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--pink); }
.bad-code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font: 700 1rem/1.4 var(--mono); background: var(--surface); border: 1px solid var(--stroke); color: var(--amber); padding: 4px 10px; border-radius: 8px; margin-top: 10px; }
.join-form { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.join-form label { font: 700 .85rem/1.4 var(--mono); color: var(--lime); }
.join-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.join-form input {
  flex: 1 1 180px; min-width: 0; min-height: 60px; padding: 0 16px; border-radius: 18px;
  background: var(--surface); border: 2px solid var(--stroke); color: var(--text);
  font: 700 1.6rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
}
.join-form input::placeholder { color: #6E6E84; }
.join-form input:focus { border-color: var(--pink); outline: none; }
.join-form input[aria-invalid="true"] { border-color: var(--amber); }
.join-form .btn { flex: 1 0 120px; background: var(--pink); color: var(--bg); min-height: 60px; border-radius: 18px; }
.join-form .hint { font-size: .9rem; color: var(--dim); }
.join-form .err { font-weight: 700; color: var(--amber); }
.join-form .err:empty { display: none; }
[hidden] { display: none !important; }

/* ---------- legal pages ---------- */
.draft {
  background: var(--amber); color: var(--bg); font-weight: 700;
  padding: 12px 0; font-size: .95rem;
}
.draft .wrap { display: flex; gap: 10px; align-items: flex-start; }
.legal { padding: 40px 0 24px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin-bottom: 10px; }
.legal .updated { font: 700 .82rem/1.5 var(--mono); color: var(--lime); margin-bottom: 28px; }
.prose { color: #D9D7E3; font-size: 1.02rem; }
.prose h2 { font-size: 1.75rem; margin: 40px 0 12px; color: var(--text); scroll-margin-top: 84px; }
.prose h3 { font-size: 1.3rem; margin: 26px 0 8px; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .summary { background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px; padding: 18px 22px; }
.prose .summary ul { margin: 0; }
.prose .note { border-left: 4px solid var(--amber); background: rgba(255, 176, 32, .08); padding: 10px 14px; border-radius: 0 12px 12px 0; color: var(--text); font-size: .95rem; }
.prose .tbl { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--stroke); border-radius: 16px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--stroke); }
.prose th { background: var(--surface); color: var(--text); font-family: var(--mono); font-size: .78rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose .ph { background: rgba(255, 176, 32, .16); color: var(--amber); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.back { display: inline-block; margin-top: 32px; font-weight: 700; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf .big { font-size: 5rem; line-height: 1; margin-bottom: 12px; }
.nf h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin-bottom: 12px; }
.nf p { color: var(--dim); margin-bottom: 24px; }
.nf .btn { background: var(--pink); color: var(--bg); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tile.pop .shot { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .live-pill::before { animation: none; }
}
