/* ---------------------------------------------------------------------------
   The marketing site.
   Built on the design system's tokens rather than its React components: this is
   one static page and pulling in React, Babel and a bundle to render four
   sections would cost a second of load for nothing anybody can see.
   --------------------------------------------------------------------------- */
* { box-sizing: border-box; }

/*
 * The canvas, stated rather than inherited.
 *
 * With no background on `html`, the browser propagates BODY's to the canvas —
 * so the page colour beyond the document was arriving by a rule nobody wrote.
 * Saying it here changes nothing visually and stops the propagation being load
 * bearing.
 */
html { background: var(--bg-page); }

/*
 * The footer holds the bottom of the window, WITHOUT touching normal flow.
 *
 * `top: 100vh` means "stick once you would sit above the bottom of the viewport"
 * — so on a page shorter than the screen the footer is pinned to the bottom, and
 * on a longer one it never moves, because its natural place is already below
 * that line. Sticky elements keep their slot in flow, so nothing above shifts.
 *
 * The obvious answers both cost more than they look. `display: flex` on the body
 * makes every child a flex ITEM, and a flex item is a block-formatting-context
 * root: the section margins that used to collapse out through `main` are then
 * trapped inside it, and this page grew 161px taller with no rule changing to
 * explain it. `display: grid` does the same. Sticky changes paint, not layout.
 */
.ft { position: sticky; top: 100vh; }

/*
 * A footer that reaches the bottom.
 *
 * Nothing here made the page fill the viewport, so on any screen taller than the
 * content — a large monitor, a rotated tablet, the short legal pages — the ink
 * footer stopped where its own text ran out and left a band of page colour under
 * it, down to the bottom of the window. It looked like a rendering fault because
 * that is exactly what it was.
 *
 * `100svh` alongside `100vh`: on mobile `100vh` is the viewport with the browser
 * chrome RETRACTED, so a footer pinned to it sits below the fold until you
 * scroll. `svh` is the smallest viewport and is the honest one; `vh` stays first
 * as the fallback for anything that does not know the unit.
 */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-page);
  color: var(--text-body);
  font: var(--type-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* The brand mark: a card with its top-right corner trimmed. */
.mark {
  width: 18px; height: 20px; display: inline-block; background: var(--orange-500);
  clip-path: polygon(0 0, 72% 0, 100% 31%, 100% 100%, 0 100%);
}
.wm {
  font: var(--type-display); font-size: var(--text-lg);
  letter-spacing: var(--tracking-display); color: var(--text-strong);
  text-transform: lowercase;
}
.wm b { color: var(--orange-500); font-weight: inherit; }
.wm--inv { color: var(--kraft-50); }

.hd {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) var(--gutter-desktop);
  max-width: var(--container-max); margin: 0 auto;
}
.hd__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

/* The two header items sit together on the right, so the language link does not
   push the sign-in button off a narrow screen. */
.hd__right { display: flex; align-items: center; gap: var(--space-4); }
/* Reads as a switch rather than a second call to action: the page you are NOT on
   is the one offered, which is why it is one word and not a menu. */
.hd__lang {
  font: var(--type-ui); font-weight: var(--weight-semibold);
  font-size: var(--text-sm); letter-spacing: .04em;
  color: var(--text-muted); text-decoration: none; white-space: nowrap;
}
.hd__lang:hover { color: var(--text-strong); text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: var(--radius-sm); text-decoration: none;
  font: var(--type-ui); font-weight: var(--weight-semibold);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.btn--primary { background: var(--orange-500); color: var(--kraft-50); }
.btn--primary:hover { background: var(--orange-600); }
.btn--lg { padding: 14px 26px; font-size: var(--text-base); }

main { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter-desktop); }

.hero { padding: var(--space-10) 0 var(--space-9); }
.hero h1 {
  font: var(--type-display); font-size: clamp(40px, 7vw, 84px); line-height: 0.95;
  letter-spacing: var(--tracking-display); color: var(--text-strong); text-transform: lowercase;
}
.lede {
  margin-top: var(--space-6); max-width: var(--container-prose);
  font-size: var(--text-lg); color: var(--text-body);
}
.cta { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-7); }
.cta__note { font: var(--type-meta); color: var(--text-muted); }

/* Corrugated fluting: the second brand motif, used as a section boundary. */
.flute {
  margin-top: var(--space-9); height: 10px;
  background: repeating-linear-gradient(90deg, var(--orange-500) 0 2px, transparent 2px 9px);
}

section + section { padding-top: var(--space-9); }
section h2 {
  font: var(--type-h2); font-size: var(--text-xl); color: var(--text-strong);
  margin-bottom: var(--space-6);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: var(--space-6); }
.steps__n { font: var(--type-price); font-size: var(--text-lg); color: var(--orange-500); }
.steps h3 { margin: var(--space-3) 0 6px; font: var(--type-h3); color: var(--text-strong); }
.steps p { font-size: var(--text-sm); color: var(--text-muted); }

.facts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); max-width: var(--container-prose); }
.facts__list li { padding-left: var(--space-5); border-left: 3px solid var(--orange-500); font-size: var(--text-sm); }
.facts__list b { color: var(--text-strong); }

.games__lede { font-size: var(--text-sm); color: var(--text-muted); max-width: var(--container-prose); }
.games__list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.games__list li {
  padding: 7px 14px; border: 1px solid var(--border-hairline); border-radius: var(--radius-pill);
  background: var(--white); font: var(--type-ui); font-size: var(--text-sm); color: var(--text-strong);
}

.ft { margin-top: var(--space-10); background: var(--ink-900); }
.ft__in {
  max-width: var(--container-max); margin: 0 auto;
  padding: var(--space-9) var(--gutter-desktop);
  display: flex; gap: var(--space-9); justify-content: space-between; flex-wrap: wrap;
}
.ft__blurb { margin-top: 10px; max-width: 320px; font-size: var(--text-sm); color: var(--ink-300); }
.ft__links { display: flex; flex-direction: column; gap: 8px; }
.ft__links a { color: var(--kraft-200); text-decoration: none; font: var(--type-ui); font-size: var(--text-sm); }
.ft__links a:hover { color: var(--kraft-50); }

@media (max-width: 760px) {
  .hd, main, .ft__in { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); }
}


/* ---------------------------------------------------------------------------
   Legal documents.
   Long prose, read start to finish rather than scanned — the opposite of the
   landing page, so it gets a measure and a hierarchy of its own.
   --------------------------------------------------------------------------- */
.doc { max-width: var(--container-prose); padding: var(--space-9) 0; }
.doc h1 { font: var(--type-h1); font-size: var(--text-2xl); color: var(--text-strong); margin-bottom: var(--space-5); }
.doc h2 {
  font: var(--type-h2); font-size: var(--text-lg); color: var(--text-strong);
  margin: var(--space-9) 0 var(--space-4);
  padding-top: var(--space-5); border-top: 1px solid var(--border-hairline);
}
.doc h3 { font: var(--type-h3); color: var(--text-strong); margin: var(--space-6) 0 var(--space-3); }
.doc p { margin: 0 0 var(--space-4); font-size: var(--text-sm); }
.doc ul { margin: 0 0 var(--space-5); padding-left: var(--space-6); display: flex; flex-direction: column; gap: 6px; }
.doc li { font-size: var(--text-sm); }
.doc code { font: var(--type-price); font-size: var(--text-xs); background: var(--surface-sunken); padding: 1px 5px; border-radius: var(--radius-sm); }
.doc blockquote {
  margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--orange-500); background: var(--surface-sunken); font-size: var(--text-sm);
}
.doc__alt { margin-top: var(--space-9); padding-top: var(--space-5); border-top: 1px solid var(--border-hairline); }
.doc__alt a { color: var(--text-link); }
.tablewrap { overflow-x: auto; margin: 0 0 var(--space-6); }
.tablewrap table { border-collapse: collapse; width: 100%; min-width: 460px; }
.tablewrap th, .tablewrap td {
  text-align: left; padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-hairline);
  font-size: var(--text-xs); vertical-align: top;
}
.tablewrap th { color: var(--text-muted); white-space: nowrap; }

/* The page for an address that is not one.
 *
 * It borrows the hero's voice rather than the document's: this is a wrong
 * turning, not a policy, and the job is to say so and get somebody moving.
 *
 * The mark is the brand's clipped corner at a size you can actually see — the
 * same shape as the one in the header, which is a torn cardboard corner, and
 * the only illustration this page needs.
 */
/* `padding-block`, NOT the `padding` shorthand. This element IS the <main>, and
 * the shorthand wiped the horizontal gutters that `main` and the mobile media
 * query set — so on a phone the mark, the heading and the button all sat flush
 * against the left edge. `.hero` can use the shorthand because it is a section
 * INSIDE main; this is not. */
.nf { padding-block: var(--space-10) var(--space-9); max-width: var(--container-prose); }
.nf__mark {
  display: block; width: 56px; height: 62px; margin-bottom: var(--space-6);
  background: var(--orange-500);
  clip-path: polygon(0 0, 72% 0, 100% 31%, 100% 100%, 0 100%);
}
.nf h1 {
  font: var(--type-display); font-size: clamp(34px, 6vw, 64px); line-height: 0.98;
  letter-spacing: var(--tracking-display); color: var(--text-strong);
  text-transform: lowercase; margin: 0;
}
.nf p { margin-top: var(--space-6); font-size: var(--text-lg); color: var(--text-body); }
/* The list of what IS here, as a plain column rather than bullets: every line is
   a destination, and a bullet in front of a link is furniture. */
.nf ul { margin-top: var(--space-7); padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.nf ul a { color: var(--text-strong); }
.nf__back { margin-top: var(--space-7); }
.nf .flute { margin-top: var(--space-9); }

/* ---------------------------------------------------------------------------
   The giveaway landing page.

   TWO COLUMNS ON A WIDE SCREEN, STACKED ON A PHONE — which is not a compromise
   between the two social creatives but the same content in each one's
   arrangement. The 1:1 creative is copy beside a grid; the 4:5 is copy above
   one. A page is read at both widths, so it is both.
   --------------------------------------------------------------------------- */
.gw { max-width: var(--container-max); margin: 0 auto; padding: var(--space-7) var(--gutter-desktop) var(--space-8); }
.gw__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); align-items: start; }
.gw__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--ink-900); color: var(--kraft-50);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font: var(--type-ui); font-weight: var(--weight-semibold);
  font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase;
}
.gw h1 {
  margin: var(--space-5) 0 0; font-family: var(--font-display);
  font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .98;
  letter-spacing: -0.035em; color: var(--ink-900); text-wrap: balance;
}
.gw__lede { margin: var(--space-5) 0 0; font: var(--type-body); font-size: var(--text-lg); color: var(--ink-700); text-wrap: pretty; }
/* The dates, in the mono face the creative uses for anything countable. */
.gw__when {
  margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-500);
}
.gw__when b { color: var(--ink-900); font-weight: 700; }
.gw__cta { margin: var(--space-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.gw__rules { font: var(--type-ui); font-size: var(--text-sm); color: var(--text-muted); text-decoration: underline; }

.gw__gridhead {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  font: var(--type-ui); font-weight: var(--weight-semibold); font-size: var(--text-xs);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-900);
}
.gw__gridhead span:last-child { font-family: var(--font-mono); letter-spacing: .02em; color: var(--ink-500); text-transform: none; }
.gw__boxes {
  margin: var(--space-4) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4);
}
/* THREE ACROSS ONCE THERE IS ROOM, which is the 4:5 creative's own arrangement
   and not only a taste: two columns beside a shorter copy column left a hole
   under the call to action about the height of the grid itself. Three makes the
   two columns end near each other. */
@media (min-width: 1100px) { .gw__boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gw__box {
  background: #fff; border: 1px solid var(--kraft-200); border-radius: var(--radius-sm);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  padding: 0;
}
/* A FIXED FRAME, NOT THE PICTURE'S OWN SHAPE. These six come from six
   publishers and arrive at six aspect ratios — a tuckbox is tall, a collector
   box is square — so the frame is the constant and `contain` lets each one sit
   inside it whole. Sized in advance, because an unsized image is a layout that
   jumps the moment it lands. */
.gw__shot { aspect-ratio: 4 / 3; background: var(--kraft-100); position: relative; }
.gw__shot img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.gw__box > b, .gw__box > i, .gw__box > code { padding-inline: var(--space-5); }
.gw__box > b { padding-top: var(--space-4); }
.gw__box > code { padding-bottom: var(--space-5); }
.gw__box > i { margin: 4px 0 2px; }
.gw__box b { font: var(--type-ui); font-weight: 700; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.gw__box i {
  font-style: normal; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-lg); line-height: 1.1; letter-spacing: -.02em; color: var(--ink-900);
  overflow-wrap: anywhere;
}
.gw__box code { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-500); }

/* The dark bar the creative ends on, with its cut corner. */
.gw__how {
  margin: var(--space-8) 0 0; background: var(--ink-900); color: var(--kraft-50);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  padding: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-7); align-items: flex-start;
}
.gw__step { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gw__step b { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-2xl); color: var(--orange-500); }
.gw__step span { font: var(--type-body-sm); color: var(--kraft-200); text-wrap: pretty; }

@media (max-width: 900px) {
  .gw { padding: var(--space-6) var(--gutter-mobile) var(--space-7); }
  .gw__top { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 480px) {
  .gw__boxes { grid-template-columns: 1fr; }
}
