/*
 * I'm Bloody Late! — the public site, in ADR-023's identity (D-73).
 * Tokens are the app's (android/.../core/design/Tokens.kt). Berry means
 * late, here as in the app: only where lateness is the subject. The offset
 * shadow means "you can press this" (ADR-023, 24 October 2026).
 * Fonts are bundled, never fetched: the privacy policy names no font service.
 * Pages link this file with a version query; bump it on every change, or a
 * browser's cached copy breaks the page (seen 24 October 2026).
 */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ground: #fff8f4;
  --surface: #ffffff;
  --ink: #2a2330;
  --muted: #665b66;
  --rose: #f8e4e9;
  --rule: #e0cfd3;
  --outline: #2a2330;
  --late: #8e2f57;
  --late-text: #8e2f57;
  --on-late: #ffffff;
  --shadow: #2a2330;
  --band-strong: #2a2330;
  --on-band-strong: #fff8f4;
  --on-band-muted: #d9cfd6;
  --edge: 2.5px;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17141a;
    --surface: #231f27;
    --ink: #f3ecef;
    --muted: #b3a7b1;
    --rose: #3a2a33;
    --rule: #3a333f;
    --outline: #756b7b;
    --late: #a63d6c;
    --late-text: #e07aa6;
    --shadow: transparent;
    --band-strong: #0f0d11;
    --on-band-strong: #f3ecef;
    --on-band-muted: #b3a7b1;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif; font-weight: 500;
  font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word;
}
svg { display: block; }
.display, h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 40px; } }

/* -- stickers and buttons --------------------------------------------------- */

.outlined { background: var(--surface); border: var(--edge) solid var(--outline); border-radius: 24px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 26px;
  font: 800 1.0625rem/1.2 "Nunito", system-ui, sans-serif; text-decoration: none;
  border-radius: 18px; border: var(--edge) solid var(--outline);
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
/* The ink button is rimmed in the ground's cream so its ink shadow shows (ADR-023). */
.button-ink { background: var(--ink); color: var(--ground); border-color: var(--ground); }
.button-plain { background: var(--surface); color: var(--ink); }
.button-small { min-height: 48px; padding: 8px 18px; font-size: 1rem; }
@media (prefers-color-scheme: dark) { .button-ink { border-color: var(--outline); } }

.wordmark {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 4px 14px 4px 5px; background: var(--rose); color: var(--ink);
  border: var(--edge) solid var(--outline); border-radius: 999px;
  transform: rotate(-2deg); text-decoration: none;
  font: 800 1.125rem/1 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1;
}
.wordmark svg { width: 30px; height: 30px; }

.tag {
  display: inline-block; padding: 5px 14px; background: var(--rose);
  border: var(--edge) solid var(--outline); border-radius: 999px;
  font-weight: 800; font-size: 0.95rem; transform: rotate(-1.5deg);
}

.late-sticker {
  display: inline-block; padding: 6px 16px 8px;
  background: var(--late); color: var(--on-late);
  border: var(--edge) solid var(--outline); border-radius: 18px; transform: rotate(7deg);
  font: 800 2.4rem/1 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1;
}
.late-sticker small { display: block; font: 800 0.9rem/1.2 "Nunito", sans-serif; }

/* -- navigation -------------------------------------------------------------- */

.nav { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 2px solid transparent; transition: border-color 150ms ease; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nav-links { display: none; gap: 28px; margin-left: auto; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav .button { margin-left: auto; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .button { margin-left: 8px; }
}
@media (max-width: 479px) { .nav .button { display: none; } }

/* -- bands -------------------------------------------------------------------- */

.band { padding-block: 88px; }
@media (min-width: 900px) { .band { padding-block: 120px; } }
.band-white { background: var(--surface); border-block: var(--edge) solid var(--outline); }
.band-rose { background: var(--rose); border-block: var(--edge) solid var(--outline); }
.band-strong { background: var(--band-strong); color: var(--on-band-strong); }
.band-head { max-width: 46rem; margin-bottom: 56px; }
.band-head p { margin-top: 18px; font-size: 1.2rem; color: var(--muted); }
.band-strong .band-head p { color: var(--on-band-muted); }

/* -- hero -------------------------------------------------------------------- */

.hero { padding-block: 48px 96px; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-block: 72px 120px; } }
.hero h1 { margin-top: 22px; max-width: 12ch; }
.hero .lede { margin-top: 26px; font-size: 1.3rem; line-height: 1.55; max-width: 34ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero .actions a:not(.button) { font-weight: 800; }

/* the drawn phone: an illustration of the first preview, not a screenshot */
.stage { position: relative; justify-self: center; width: min(320px, 78vw); padding: 24px 0 40px; }
.stage::before {
  content: ""; position: absolute; inset: 6% -14% 8% -10%;
  background: var(--rose); border: var(--edge) solid var(--outline); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  transform: rotate(-6deg);
}
.phone {
  position: relative; background: var(--ground);
  border: 3px solid var(--outline); border-radius: 42px; padding: 14px 12px 18px;
  box-shadow: 0 0 0 7px var(--surface), 0 0 0 9.5px var(--outline);
}
.phone-notch { width: 70px; height: 18px; border-radius: 0 0 12px 12px; background: var(--outline); margin: -14px auto 6px; }
.phone-bar { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 800; padding: 0 14px 10px; }
.phone-screen { padding: 6px 8px 4px; display: grid; gap: 12px; }
.phone-screen .figure { font: 800 1.9rem/1.05 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--late-text); }
.phone-screen .sub { color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-top: -6px; }
.mini-list { background: var(--surface); border: 2px solid var(--outline); border-radius: 16px; padding: 2px 12px; }
.mini-row { padding: 9px 0; border-top: 2px dashed var(--rule); font-size: 0.82rem; line-height: 1.35; }
.mini-row:first-child { border-top: 0; }
.mini-row b { display: block; font-size: 0.9rem; }
.mini-row .t { color: var(--muted); }
.mini-row .t em { font-style: normal; color: var(--late-text); font-weight: 800; }
.mini-button {
  display: block; text-align: center; padding: 11px; border-radius: 14px;
  background: var(--late); color: var(--on-late); border: 2px solid var(--outline);
  box-shadow: 3px 3px 0 var(--shadow); font-weight: 800; font-size: 0.9rem;
}
.mini-note { text-align: center; color: var(--muted); font-size: 0.72rem; }
.stage .peek { position: absolute; width: 104px; height: 104px; left: -34px; bottom: -36px; transform: rotate(-12deg); }
.stage .late-sticker { position: absolute; right: -20px; top: 0; }

/* -- the ripple -------------------------------------------------------------- */

.ripple { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .ripple { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.ripple .band-head { margin-bottom: 0; }
.ripple-points { margin-top: 32px; display: grid; gap: 18px; }
.ripple-points div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.ripple-points svg { width: 40px; height: 40px; }
.ripple-points b { display: block; font-size: 1.1rem; }
.ripple-points p { color: var(--muted); }

.day { padding: 24px; background: var(--ground); }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.day-head h3 { font-size: 1.25rem; }
.day-head .late-sticker { font-size: 1.7rem; transform: rotate(5deg); }
.slot { display: grid; grid-template-columns: 5.4rem 1fr; gap: 4px 12px; padding: 16px 4px; border-top: 2px dashed var(--rule); }
.slot:first-of-type { border-top: 0; }
.slot time { font: 800 1.4rem/1.2 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1; }
.slot .who { font-weight: 800; font-size: 1.1rem; }
.slot .then { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.slot .moved { font: 800 1.12rem/1.2 "Fraunces", Georgia, serif; color: var(--late-text); }
.slot .moved s { color: var(--muted); font-weight: 600; text-decoration-thickness: 2px; margin-right: 6px; }
.slot .note { color: var(--muted); font-size: 0.98rem; }
.slot.gap { color: var(--muted); font-style: italic; }
.slot.gap time { font-style: normal; color: var(--muted); font-weight: 600; font-size: 1.15rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .day .moved, .js .day .late-sticker { opacity: 0; transition: opacity 450ms ease, transform 450ms ease; }
  .js .day .late-sticker { transform: rotate(5deg) scale(1.5); }
  .js .day.played .late-sticker { opacity: 1; transform: rotate(5deg) scale(1); }
  .js .day.played .moved { opacity: 1; }
  .js .day.played .slot:nth-of-type(2) .moved { transition-delay: 350ms; }
  .js .day.played .slot:nth-of-type(3) .moved { transition-delay: 600ms; }
}

/* -- how it works: a real sequence, so numbered ------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 24px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 34px 24px 30px; display: grid; gap: 14px; align-content: start; position: relative; }
.step .art { height: 88px; display: flex; align-items: end; }
.step .art svg { height: 84px; width: auto; }
.step .n {
  position: absolute; top: -20px; left: 22px; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--rose); border: var(--edge) solid var(--outline); border-radius: 50%;
  font: 800 1.2rem/1 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1;
}
.step p { color: var(--muted); }

/* -- who it's for ------------------------------------------------------------ */

.fit { display: grid; gap: 24px; }
@media (min-width: 860px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit .outlined { padding: 34px; background: var(--ground); }
.fit h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 14px; font-size: 1.5rem; }
.fit h3 svg { width: 52px; height: 52px; flex: none; }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.fit li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.fit li svg { width: 22px; height: 22px; margin-top: 3px; }

/* -- promises, on the strong band ------------------------------------------- */

.promises { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.promise { display: grid; gap: 12px; align-content: start; }
.promise .icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rose); border: var(--edge) solid var(--on-band-strong);
}
.promise .icon svg { width: 34px; height: 34px; }
.promise h3 { font-size: 1.3rem; }
.promise p { color: var(--on-band-muted); }

/* -- faq --------------------------------------------------------------------- */

.faq-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.faq-layout .band-head { margin-bottom: 0; }
.faq-layout .band-head .button { margin-top: 28px; }
.faq { display: grid; gap: 12px; }
.faq details { border: var(--edge) solid var(--outline); border-radius: 18px; background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; min-height: 56px; position: relative; font-weight: 800; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: var(--edge) solid var(--ink); border-bottom: var(--edge) solid var(--ink);
  transform: rotate(45deg); transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }

/* -- early access ------------------------------------------------------------ */

.early { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .early { grid-template-columns: auto 1fr auto; gap: 48px; } }
.early svg { width: 140px; height: 140px; transform: rotate(-8deg); }
.early h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.early p { margin-top: 12px; font-size: 1.15rem; max-width: 34rem; }

/* -- footer ------------------------------------------------------------------ */

.footer { background: var(--band-strong); color: var(--on-band-muted); padding-block: 72px 40px; font-size: 0.98rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.footer h2 { font: 800 1rem/1.3 "Nunito", sans-serif; color: var(--on-band-strong); margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--on-band-strong); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .wordmark { color: var(--ink); }
.footer .about { margin-top: 20px; max-width: 26ch; }
.footer address { font-style: normal; display: grid; gap: 4px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--muted); }

/* -- the privacy policy ------------------------------------------------------ */

.policy { padding-block: 56px 96px; display: grid; gap: 40px; }
@media (min-width: 960px) { .policy { grid-template-columns: 16rem 1fr; gap: 72px; } }
.policy-head { grid-column: 1 / -1; max-width: 46rem; }
.policy-head h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.policy-head .meta { margin-top: 14px; color: var(--muted); }
.policy-head .tag { margin-top: 14px; }
.toc { align-self: start; }
@media (min-width: 960px) { .toc { position: sticky; top: 100px; } }
.toc h2 { font-size: 1.2rem; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.toc a { text-decoration: none; font-weight: 700; }
.toc a:hover { text-decoration: underline; }
.legal { max-width: 46rem; display: grid; gap: 52px; }
.plain { padding: 30px; background: var(--rose); }
.plain h2 { font-size: 1.7rem; margin-bottom: 16px; }
.plain ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal section { scroll-margin-top: 100px; }
.legal section h2 { font-size: 1.85rem; margin-bottom: 16px; }
.legal section h3 { font: 800 1.15rem/1.3 "Nunito", sans-serif; margin: 26px 0 8px; }
.legal section p + p, .legal section ul + p, .legal section p + ul, .intro p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 12px 0 0; }
.legal code { font-size: 0.9em; overflow-wrap: anywhere; background: var(--rose); padding: 1px 6px; border-radius: 6px; }

mark.todo { background: #fff1a8; color: #3b3000; padding: 0 4px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.plain-note { margin-top: 16px; }
