/* Proguessive marketing site. The 2c "Planes" design language (docs/design/handoff-2c), with the
   token values copied from apps/web/src/theme/app.scss. Edit the handoff first, then the app,
   then here.

   Light comes from above: every coloured object has three faces (top / front / side). No
   border-radius, box-shadow, glow or gradient except the hard 50/50 button split and the cube
   conic fill. Paper (#F3F2EF) for the inviting parts, the ink stage for the game itself. */

/* ---- Font: Bricolage Grotesque, self-hosted (fonts/, SIL OFL 1.1: fonts/OFL.txt) ---------
   The variable build Google Fonts serves (v9, wght 400–800, wdth 75–100), Latin and Latin
   Extended subsets split by unicode-range. Fonts are cached as immutable: give an updated
   file a new name. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Faces: top / front / side per ramp */
  --blaze-top: #ffc04d;
  --blaze-front: #ff6b1a;
  --blaze-side: #e8431c;
  --cobalt-top: #93a8ff;
  --cobalt-front: #3d5cff;
  --cobalt-side: #2033ae;
  --cobalt-join-side: #2b44e0;
  --mint-top: #8debb5;
  --mint-front: #1fcb6b;
  --mint-side: #12a955;
  --coral-top: #ff9aa4;
  --coral-front: #ff3b4e;
  --coral-side: #e0243a;
  --sun-top: #ffd27a;
  --sun-front: #ffb020;
  --sun-side: #e8961a;
  --ink-top: #3a4066;
  --ink-front: #272c4d;
  --ink-side: #1b1f3a;

  /* The A2 mark's four planes */
  --mark-top: #ffc04d;
  --mark-left: #ff6b1a;
  --mark-stem: #ff8a1f;
  --mark-right: #e8431c;

  --blaze-400: #ff8636;
  --blaze-600: #ec4f0c;
  --blaze-700: #c23a06;

  /* Ink: the stage */
  --ink-950: #0b0d18;
  --ink-900: #12152a;
  --ink-800: #1b1f3a;
  --ink-700: #272c4d;
  --ink-500: #4a5180;
  --ink-400: #7a7fa3;
  --ink-300: #a7abc6;
  --ink-50: #f7f7fb;

  /* Paper: setup */
  --white: #ffffff;
  --paper-100: #f3f2ef;
  --paper-200: #e8e6e1;
  --paper-300: #dddad4;
  --paper-500: #8e8a82;
  --paper-700: #55524c;

  /* Block field faces */
  --field-paper-top: #fbfaf8;
  --field-paper-left: #e9e6e0;
  --field-paper-right: #dedad3;
  --field-paper-floor: #edeae5;
  --field-stage-top: #252a4e;
  --field-stage-left: #1c2040;
  --field-stage-right: #151933;
  --field-stage-floor: #171a33;

  /* Type */
  --font: 'Bricolage Grotesque', system-ui, sans-serif;
  --fs-hero: 90px;
  --fs-wordmark: 58px;
  --fs-winner: 56px;
  --fs-phrase: 50px;
  --fs-title: 44px;
  --fs-headline: 40px;
  --fs-wins: 30px;
  --fs-btn-xl: 27px;
  --fs-numeral: 24px;
  --fs-btn-md: 22px;
  --fs-btn-sm: 21px;
  --fs-row: 19px;
  --fs-lg: 18px;
  --fs-body: 17px;
  --fs-eyebrow-lg: 16px;
  --fs-eyebrow: 15px;
  --fs-label: 13px;

  /* Sizes */
  --btn-h-hero: 66px;
  --btn-h-secondary: 52px;
  --tap-min: 44px;
  --topbar-h: 64px;
  --screen-pad: 24px;
  --screen-pad-wide: 28px;
  --site-max: 1120px;

  --ease-assemble: cubic-bezier(0.2, 0.9, 0.3, 1);
  --dur-press: 100ms;
  --dur-assemble: 700ms;
}

/* ---- Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-900);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--ink-900);
  outline-offset: 3px;
}
.on-stage :focus-visible {
  outline-color: var(--ink-50);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink-900);
  color: var(--ink-50);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--screen-pad));
  margin: 0 auto;
  padding: 0 var(--screen-pad);
}

/* ---- Type roles ---------------------------------------------------------- */
/* Display = Bricolage at 75% width, uppercase. */
.display {
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
}
.eyebrow {
  display: block;
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--blaze-700);
}
.on-stage .eyebrow {
  color: var(--blaze-400);
}
.section-title {
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-title);
  line-height: 0.95;
  text-wrap: balance;
  margin-top: 12px;
}
.section-lede {
  margin-top: 16px;
  max-width: 34em;
  font-size: var(--fs-lg);
  color: var(--paper-700);
  text-wrap: pretty;
}
.on-stage .section-lede {
  color: var(--ink-300);
}
.accent {
  color: var(--blaze-600);
}
.nowrap {
  white-space: nowrap;
}

/* ---- Icons (Lucide, stroke 2.25; 2.5 inside buttons) ---------------------- */
.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Buttons: chamfered, lit two-tone (front | side) ---------------------- */
/* The cut lives on an inner layer so the link itself stays rectangular: the focus outline is
   never clipped away (as GameButton.vue does). */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
  transition: transform var(--dur-press);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );
}
.btn:active {
  transform: scale(0.97);
}
.btn .ic {
  stroke-width: 2.5;
}
.btn-hero {
  height: var(--btn-h-hero);
  font-size: var(--fs-btn-xl);
  letter-spacing: 0.03em;
}
.btn-sm {
  height: var(--btn-h-secondary);
  padding: 0 20px;
  gap: 8px;
  font-size: var(--fs-btn-sm);
  letter-spacing: 0.06em;
}
.btn-sm .ic {
  width: 20px;
  height: 20px;
}
.btn-blaze {
  color: var(--ink-950);
}
.btn-blaze::before {
  background-image: linear-gradient(90deg, var(--blaze-front) 50%, var(--blaze-side) 50%);
}
.btn-paper {
  color: var(--ink-900);
}
.btn-paper::before {
  background-image: linear-gradient(90deg, var(--paper-200) 50%, var(--paper-300) 50%);
}

/* ---- Cuts & cubes --------------------------------------------------------- */
.iso {
  clip-path: polygon(
    16px 0,
    calc(100% - 16px) 0,
    100% 9px,
    100% calc(100% - 9px),
    calc(100% - 16px) 100%,
    16px 100%,
    0 calc(100% - 9px),
    0 9px
  );
}
.iso-lg {
  clip-path: polygon(
    32px 0,
    calc(100% - 32px) 0,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 32px) 100%,
    32px 100%,
    0 calc(100% - 18px),
    0 18px
  );
}
.cube {
  display: grid;
  place-items: center;
  flex: none;
  aspect-ratio: 1 / 1.155;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cube-blaze {
  background-image: conic-gradient(
    from -60deg at 50% 50%,
    var(--blaze-top) 0deg 120deg,
    var(--blaze-side) 120deg 240deg,
    var(--blaze-front) 240deg 360deg
  );
}
.cube-cobalt {
  background-image: conic-gradient(
    from -60deg at 50% 50%,
    var(--cobalt-top) 0deg 120deg,
    var(--cobalt-side) 120deg 240deg,
    var(--cobalt-front) 240deg 360deg
  );
}
.cube-mint {
  background-image: conic-gradient(
    from -60deg at 50% 50%,
    var(--mint-top) 0deg 120deg,
    var(--mint-side) 120deg 240deg,
    var(--mint-front) 240deg 360deg
  );
}
.cube-sun {
  background-image: conic-gradient(
    from -60deg at 50% 50%,
    var(--sun-top) 0deg 120deg,
    var(--sun-side) 120deg 240deg,
    var(--sun-front) 240deg 360deg
  );
}

/* ---- Block field (handoff › Block field; generated by js/site.js) --------- */
.has-field {
  position: relative;
  isolation: isolate;
}
.field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.field svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  max-width: none;
  transform: translateX(-50%);
}

/* ---- The mark (inline, so the round cards can light it plane by plane) --- */
.mark path {
  stroke-linejoin: round;
}

/* ---- Top bar --------------------------------------------------------------- */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-min);
  text-decoration: none;
}
.lockup-word {
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-wins);
  line-height: 1;
  letter-spacing: 0.01em;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav-link {
  display: none;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-900);
}
.topnav-link:hover {
  color: var(--blaze-600);
}
.topnav .btn {
  margin-left: 10px;
}

/* ---- Hero (paper) --------------------------------------------------------- */
.hero {
  padding-bottom: 120px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  padding-top: 32px;
}
.hero-title {
  margin-top: 14px;
  font-size: var(--fs-wordmark);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 20px;
  max-width: 30em;
  font-size: var(--fs-btn-sm);
  line-height: 1.4;
  color: var(--paper-700);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-actions .btn {
  flex: 1 1 100%;
}
.hero-note {
  margin-top: 18px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--paper-700);
}
/* A real capture of the game (the clue-giver's turn), cut like the phrase card: no device frame. */
.hero-shot {
  justify-self: center;
  width: min(100%, 280px);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ink-900);
  clip-path: polygon(
    32px 0,
    calc(100% - 32px) 0,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 32px) 100%,
    32px 100%,
    0 calc(100% - 18px),
    0 18px
  );
}

/* ---- How it works (paper) -------------------------------------------------- */
.section {
  padding: 72px 0;
}
.steps {
  display: grid;
  gap: 8px;
  margin-top: 36px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 24px 24px 26px;
  background: var(--white);
}
.step .cube {
  width: 52px;
  font-stretch: 75%;
  font-weight: 900;
  font-size: var(--fs-numeral);
  color: var(--ink-950);
}
.step-title {
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-wins);
  line-height: 1;
  margin-top: 6px;
}
.step p {
  margin-top: 8px;
  color: var(--paper-700);
}

/* ---- The stage (ink) ------------------------------------------------------- */
.on-stage {
  background: var(--ink-900);
  color: var(--ink-50);
}

/* Two stage sections in a row read as one stretch of stage. */
.on-stage + .on-stage {
  padding-top: 0;
}

/* Rounds */
.rounds {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.round {
  display: flex;
  flex-direction: column;
  background: var(--ink-800);
}
.round-plane {
  position: relative;
  padding: 24px 24px 72px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 48px));
}
.round-1 .round-plane {
  background: var(--blaze-front);
  color: var(--ink-950);
}
.round-2 .round-plane {
  background: var(--cobalt-front);
  color: var(--white);
}
.round-3 .round-plane {
  background: var(--sun-front);
  color: var(--ink-950);
}
.round-plane .ic {
  width: 34px;
  height: 34px;
}
.round-of {
  display: block;
  margin-top: 14px;
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-eyebrow-lg);
  letter-spacing: 0.16em;
}
.round-name {
  margin-top: 4px;
  font-size: var(--fs-winner);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.round-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 8px 24px 26px;
}
.round-rule {
  font-size: var(--fs-lg);
  line-height: 1.4;
  color: var(--ink-50);
  text-wrap: pretty;
}
.round-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  color: var(--ink-300);
}

/* Phone views: the clue-giver's card and everyone else's */
.views {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}
.view figcaption {
  margin-bottom: 14px;
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  color: var(--ink-300);
}
.phrase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 190px;
  padding: 28px 36px;
  text-align: center;
}
.phrase-card-you {
  background: var(--white);
  color: var(--ink-900);
}
.phrase-card-you .eyebrow {
  color: var(--blaze-700);
}
.phrase-card-others {
  background: var(--ink-800);
  color: var(--ink-400);
}
.phrase-card-others .eyebrow {
  color: var(--ink-300);
}
.phrase-card-others .ic {
  width: 52px;
  height: 52px;
}
.phrase {
  font-size: var(--fs-phrase);
  line-height: 0.95;
  text-wrap: balance;
}
.view-note {
  margin-top: 14px;
  color: var(--ink-300);
}

.perks {
  display: grid;
  gap: 28px;
  margin-top: 56px;
}
.perk {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  align-items: start;
}
.perk .cube {
  width: 52px;
  color: var(--ink-950);
}
.perk-title {
  font-size: var(--fs-row);
  font-weight: 700;
  line-height: 1.25;
}
.perk p {
  margin-top: 4px;
  color: var(--ink-300);
}

/* ---- FAQ (paper) ----------------------------------------------------------- */
.faq {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}
.faq-item {
  padding: 22px 24px 24px;
  background: var(--white);
}
.faq-item dt {
  font-size: var(--fs-row);
  font-weight: 700;
  line-height: 1.25;
}
.faq-item dd {
  margin-top: 8px;
  color: var(--paper-700);
}

/* ---- Closing call (paper, block field) ------------------------------------- */
.closer {
  padding: 72px 0 230px;
}
.closer .btn {
  margin-top: 32px;
}
@media (max-width: 639px) {
  .closer .btn {
    width: 100%;
  }
}

/* ---- Footer (stage) --------------------------------------------------------- */
.footer {
  padding: 40px 0 44px;
}
.footer-inner {
  display: grid;
  gap: 24px;
}
.footer .lockup-word {
  color: var(--ink-50);
}
.motto {
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  color: var(--ink-300);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-left: -12px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 12px;
  font-weight: 700;
  color: var(--ink-300);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink-50);
}
.copyright {
  font-size: var(--fs-eyebrow);
  color: var(--ink-300);
}

/* ---- Plain pages (policies, 404) ------------------------------------------ */
.page {
  padding: 40px 0 220px;
}
.page .wrap {
  max-width: calc(720px + 2 * var(--screen-pad));
}
.prose h2 {
  margin-top: 36px;
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-wins);
  line-height: 1;
}
.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--paper-700);
}
.prose ul {
  padding-left: 1.2em;
  list-style: square;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--blaze-700);
  font-weight: 700;
}

/* ---- Wider screens ---------------------------------------------------------- */
@media (min-width: 640px) {
  .wrap {
    padding: 0 var(--screen-pad-wide);
  }
  .hero-actions .btn {
    flex: 0 0 auto;
  }
  .steps,
  .faq {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .topnav-link {
    display: inline-flex;
  }
  .hero {
    padding-bottom: 96px;
  }
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding-top: 56px;
  }
  .hero-title {
    font-size: var(--fs-hero);
    line-height: 0.85;
    letter-spacing: -0.01em;
  }
  .hero-shot {
    width: 300px;
  }
  .section {
    padding: 104px 0;
  }
  .section-title {
    font-size: var(--fs-winner);
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .step {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .rounds {
    grid-template-columns: repeat(3, 1fr);
  }
  .views {
    grid-template-columns: 1fr 1fr;
  }
  .perks {
    grid-template-columns: repeat(3, 1fr);
  }
  .closer {
    padding-top: 104px;
  }
}

/* ---- Reduced motion: everything is already in place ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
