/* Hallmark · system: Reroll app (docs/design.md, locked) · shape: hero beside the product, three screens, footer · signature: the app's real screens, nothing drawn */
/* critique: the first version had no pictures and three identical text boxes; this one lets the screens carry the page. */
/* waive 59: phone screenshots already give each section ~760px of height; wider gaps read as empty. */
/* waive 77: the share section shows the real 4:5 card at its true size; widening it misstates what users share. */
:root {
  color-scheme: dark;
  --ground: #120D09;
  --ground-top: #2A1C12;
  --surface: #211710;
  --line: #5A4128;
  --text: #F2E3C2;
  --muted: #B39C7A;
  --gold: #F0C24B;
  --gold-ink: #2A1A05;
  --crimson: #D9553F;
  --glow: rgba(240, 194, 75, .16);
  --shadow: rgba(0, 0, 0, .55);
  --shadow-deep: rgba(0, 0, 0, .7);
  --f-display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
/* The gradient lives on html with no-repeat so a page shorter than the
   screen doesn't tile it into bands. */
html {
  min-height: 100%;
  overflow-x: clip;
  background: var(--ground) linear-gradient(180deg, var(--ground-top) 0, var(--ground) 520px) no-repeat;
}
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font: 18px/1.55 var(--f-body);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Site chrome */
.top, .foot, .band { max-width: var(--wrap); margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; }
.mark { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; }
.mark svg { color: var(--gold); }
.top nav { display: flex; gap: 24px; font-size: 17px; }
.top nav a { text-decoration: none; }
.foot { border-top: 1px solid var(--line); padding-block: 28px 48px; display: grid; gap: 16px; color: var(--muted); font-size: 15px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot p { margin: 0; max-width: 70ch; }

/* Landing */
.band { display: grid; gap: 40px; align-items: center; padding-block: 56px; }
.band h1, .band h2 { font-family: var(--f-display); font-weight: 700; line-height: 1; margin: 0 0 16px; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.band h1 { font-size: clamp(48px, 7vw, 76px); }
.band h2 { font-size: clamp(36px, 4.6vw, 50px); }
.band p { margin: 0; font-size: 20px; color: var(--muted); max-width: 34ch; }
.band .copy { min-width: 0; }
.shot { justify-self: center; width: min(340px, 82vw); filter: drop-shadow(0 30px 40px var(--shadow)); }
.hero { padding-top: 24px; }
.hero .shot { background: radial-gradient(closest-side, var(--glow), transparent) center / 160% 80% no-repeat; }
.store { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 28px; margin-top: 28px; border-radius: 14px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 18px; text-decoration: none; }
.store:hover { background: var(--text); }
.store:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.store:active { scale: .98; }
.fine { margin-top: 16px !important; font-size: 16px !important; }
.share { justify-items: center; text-align: center; }
.share p { margin-inline: auto; }
.share .card { width: min(380px, 86vw); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -20px var(--shadow-deep); }

@media (min-width: 860px) {
  .band { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 72px; padding-block: 40px; }
  .band.flip { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .band.flip .shot { order: -1; }
  .share { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 32px 72px; }
}

/* Policy and support pages */
.doc { max-width: 680px; margin: 0 auto; padding-block: 16px 48px; }
.doc h1 { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1.05; margin: 0 0 8px; text-wrap: balance; }
.doc h2 { font-size: 19px; color: var(--crimson); margin: 32px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 24px; }
.doc li { margin-bottom: 4px; }
.meta { color: var(--muted); font-size: 16px; }
code { font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 4px; }
.email { user-select: all; font-weight: 700; }
