/* Prastix website. One stylesheet, no framework, no third-party requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------
   Prastix orange carries navy text (5.3:1). Orange text on light
   backgrounds uses --orange-ink (5.5:1 on white). */
:root {
  --orange: #ff6b1a;
  --orange-hover: #ff8340;
  --orange-ink: #b8420a;
  --peach: #ffd9c2;
  --tint: #fff4eb;
  --navy: #13283c;
  --navy-2: #1c3650;
  --slate: #4a5b6c;
  --line: #e7dcd3;
  --white: #ffffff;

  /* Product colours: white text on each is 5.7:1 or better. */
  --teal: #0b6f6b;
  --teal-tint: #e3f3f1;
  --violet: #5b3fd0;
  --violet-tint: #eeeaff;
  --blue: #1d64c4;
  --blue-tint: #e6f0fc;

  --bg: var(--white);
  --surface: var(--white);
  --raised: var(--white);
  --soft: var(--tint);
  --ink: var(--navy);
  --muted: var(--slate);
  --link: var(--orange-ink);
  --rule: var(--line);
  --shadow: 0 1px 2px rgb(19 40 60 / 0.06), 0 8px 24px -6px rgb(19 40 60 / 0.14);
  --shadow-lg: 0 2px 4px rgb(19 40 60 / 0.06), 0 24px 48px -12px rgb(19 40 60 / 0.28);

  --display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 1.3rem + 2.6vw, 2.9rem);
  --step-4: clamp(2.7rem, 1.4rem + 5.2vw, 5rem);

  --measure: 38rem;
  --wide: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 2rem + 6vw, 7rem);
  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1e2c;
    --surface: #152739;
    --raised: #1b3047;
    --soft: #13283c;
    --ink: #eef2f6;
    --muted: #b3c1ce;
    --link: #ff9a5c;
    --rule: #284259;
    --teal-tint: #12302f;
    --violet-tint: #241d45;
    --blue-tint: #142a45;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -6px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / 0.6);
  }
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 750; line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance;
}
h1 { font-size: var(--step-4); font-stretch: 82%; }
h2 { font-size: var(--step-3); font-stretch: 88%; }
h3 { font-size: var(--step-1); font-stretch: 95%; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: 1rem; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: currentColor; }
/* Font Awesome duotone: the primary layer takes the text colour, the
   secondary layer takes --icon-2 (default: the same colour, faded). */
.icon .fa-secondary { fill: var(--icon-2, currentColor); opacity: var(--icon-2-opacity, 0.4); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 0.75rem 2rem; padding-block: 0.85rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 780 1.6rem/1 var(--display); font-stretch: 82%; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark svg { width: 1.7rem; height: 1.7rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.35rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; padding-block: 0.35rem; display: inline-block; }
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
@media (max-width: 56rem) {
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; justify-content: space-between; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; }
}

/* ---- Buttons ----------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  background: var(--orange); color: var(--navy);
  font-weight: 750; text-decoration: none; line-height: 1.2;
  box-shadow: 0 2px 0 rgb(19 40 60 / 0.18);
  transition: background-color 0.15s, transform 0.15s;
}
.button:hover { background: var(--orange-hover); transform: translateY(-1px); }
.button--dark { background: var(--navy); color: var(--white); }
.button--dark:hover { background: var(--navy-2); }
.button--small { padding: 0.6rem 1.1rem; font-size: 0.95rem; white-space: nowrap; }
.text-link { font-weight: 750; }
.on-orange .text-link, .on-orange a:not(.button) { color: var(--navy); }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--orange); color: var(--navy);
  padding-block: clamp(3rem, 1.5rem + 5vw, 6rem) clamp(4rem, 2rem + 6vw, 7.5rem);
}
/* Two soft discs give the orange depth without an image. */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
}
.hero::before {
  width: 46rem; height: 46rem; right: -12rem; top: -18rem;
  background: radial-gradient(circle at 35% 40%, #ff9a5c 0%, rgb(255 154 92 / 0) 68%);
}
.hero::after {
  width: 30rem; height: 30rem; left: -10rem; bottom: -16rem;
  background: radial-gradient(circle, rgb(255 217 194 / 0.55) 0%, rgb(255 217 194 / 0) 70%);
}
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 62rem) { .hero .wrap { grid-template-columns: 1fr 1.02fr; } }
.hero h1 { max-width: 11ch; font-stretch: 78%; }
.hero .lead { color: var(--navy); }
.hero .button { background: var(--navy); color: var(--white); }
.hero .button:hover { background: var(--navy-2); }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 2rem 0 0;
  font-weight: 650; font-size: 1rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points .icon { width: 1.2rem; height: 1.2rem; --icon-2: var(--white); --icon-2-opacity: 0.9; }

/* The platform stack: the hero's drawn element. */
.stack { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; font-family: var(--body); }
.stack-layers { display: grid; gap: 8px; }
.layer {
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); padding: 0.95rem 1.15rem 1.05rem;
  box-shadow: var(--shadow-lg);
}
.layer h3 { font-size: 1rem; font-family: var(--body); font-weight: 750; letter-spacing: 0; margin: 0 0 0.55rem; }
.layer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.layer li {
  font-size: 0.85rem; line-height: 1.2; padding: 0.35rem 0.6rem; border-radius: 999px;
  background: var(--tint); color: var(--navy); border: 1px solid #ffd9c2;
}
/* The cards stay white in dark mode, so their pills use the light tints
   directly rather than the theme's (which turn dark). */
.layer:nth-child(2) li { background: #e6f0fc; border-color: #c9ddf6; }
.layer:nth-child(3) li { background: #eeeaff; border-color: #d9d1ff; }
.layer--core { background: var(--navy); color: var(--white); }
.layer--core li { background: rgb(255 255 255 / 0.1); color: var(--white); border-color: rgb(255 255 255 / 0.25); }
.assurance {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--teal); color: var(--white); border-radius: var(--radius);
  padding: 1rem 0.7rem; box-shadow: var(--shadow-lg);
}
.assurance strong { font: 780 1.05rem/1 var(--display); letter-spacing: 0.01em; }
.assurance span { font-size: 0.85rem; }
.stack figcaption { grid-column: 1 / -1; font-size: var(--step--1); margin-top: 0.5rem; color: var(--navy); }
@media (prefers-reduced-motion: no-preference) {
  .layer, .assurance { animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
  .layer:nth-child(1) { animation-delay: 0.05s; }
  .layer:nth-child(2) { animation-delay: 0.15s; }
  .layer:nth-child(3) { animation-delay: 0.25s; }
  .layer:nth-child(4) { animation-delay: 0.35s; }
  .assurance { animation-name: grow; animation-delay: 0.5s; animation-duration: 0.7s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes grow { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---- Strip of standards under the hero ---------------------------------- */
.strip { background: var(--navy); color: var(--white); }
.strip ul {
  list-style: none; margin: 0; padding: 1.15rem 0;
  display: grid; gap: 0.9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.strip li { display: flex; align-items: center; gap: 0.7rem; font-weight: 650; font-size: 1rem; }
.strip .icon { color: var(--orange); --icon-2: var(--white); --icon-2-opacity: 0.55; }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: var(--space); }
.section--tint { background: var(--soft); }
.section--rule { border-top: 1px solid var(--rule); }
/* Close up the gap only when the section above is also plain white. */
.section:not(.section--tint):not(.section--navy) + .section--flush { padding-top: 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy a:not(.button) { color: #ff9a5c; }
.section--navy .muted, .section--navy .lead { color: #c7d3de; }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-inline: inherit; }
.kicker {
  display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--peach); color: var(--navy); font-weight: 750; font-size: 0.9rem;
}
.split { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* ---- Cards -------------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin: 1.1rem 0 0.5rem; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 1.1rem; font-weight: 750; }
a.card { text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.card:hover h3 { color: var(--link); }
.tile {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
  background: var(--orange); color: var(--navy);
}
.tile .icon { width: 1.6rem; height: 1.6rem; }
.tile { --icon-2: var(--white); --icon-2-opacity: 0.85; }
.tile--teal, .tile--violet, .tile--blue, .tile--navy { --icon-2: var(--orange); --icon-2-opacity: 1; }
.tile--teal { background: var(--teal); color: var(--white); }
.tile--violet { background: var(--violet); color: var(--white); }
.tile--blue { background: var(--blue); color: var(--white); }
.tile--navy { background: var(--navy); color: var(--white); }

/* Definition-list facts: an open list, each item marked with a small lottery ball. */
.facts { display: grid; gap: 0 2.5rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.split .facts { grid-template-columns: 1fr; }
@media (min-width: 46rem) { .split .facts { grid-template-columns: 1fr 1fr; } }
.facts > div { --c: var(--orange); position: relative; padding: 1.25rem 0 1.4rem 2.75rem; border-top: 1px solid var(--rule); }
.facts > div:nth-child(6n+2) { --c: #0b6f6b; }
.facts > div:nth-child(6n+3) { --c: #ffd23f; }
.facts > div:nth-child(6n+4) { --c: #5b3fd0; }
.facts > div:nth-child(6n+5) { --c: #1d64c4; }
.facts > div:nth-child(6n+6) { --c: #ff9fbd; }
.facts > div::before {
  content: ""; position: absolute; left: 0; top: 1.3rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0) 45%), var(--c);
  box-shadow: 0 4px 8px -3px rgb(19 40 60 / 0.4);
}
.facts dt { font-weight: 750; margin-bottom: 0.3rem; font-size: var(--step-0); }
.facts dd { margin: 0; color: var(--muted); font-size: 1rem; }
.section--navy .facts > div { border-top-color: #2b4a66; }
.section--navy .facts dd { color: #c7d3de; }

/* An icon on a lottery ball: coloured ball, white centre, icon in the middle. */
.ball-icon {
  --c: var(--orange);
  display: inline-grid; place-items: center; flex: none; width: 4.75rem; height: 4.75rem; border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 50%, transparent 51%),
    radial-gradient(circle at 32% 26%, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0) 42%),
    var(--c);
  box-shadow: 0 10px 18px -8px rgb(19 40 60 / 0.5);
}
.ball-icon .icon { width: 1.75rem; height: 1.75rem; color: #13283c; --icon-2: var(--c); --icon-2-opacity: 1; }
.ball-icon--teal { --c: #0b6f6b; }
.ball-icon--yellow { --c: #ffd23f; }
.ball-icon--violet { --c: #5b3fd0; }
.ball-icon--blue { --c: #1d64c4; }
.ball-icon--pink { --c: #ff9fbd; }
.ball-icon--navy { --c: #13283c; }
.ball-icon--yellow .icon, .ball-icon--pink .icon { --icon-2: #ff6b1a; }
/* A few balls together, for page heads without a drawing. */
.head-balls { display: flex; align-items: flex-end; justify-content: center; gap: 0.25rem; }
.head-balls .ball-icon { width: 7rem; height: 7rem; }
.head-balls .ball-icon .icon { width: 2.6rem; height: 2.6rem; }
.head-balls .ball-icon:nth-child(2) { width: 8.5rem; height: 8.5rem; translate: 0 -1.5rem; }
.head-balls .ball-icon:nth-child(2) .icon { width: 3.1rem; height: 3.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .head-balls .ball-icon { animation: drop 0.7s cubic-bezier(.3,1.4,.5,1) both; }
  .head-balls .ball-icon:nth-child(2) { animation-delay: 0.12s; }
  .head-balls .ball-icon:nth-child(3) { animation-delay: 0.24s; }
}

/* ---- Numbered steps (a real sequence) ------------------------------------ */
/* Drawn as one strip of ticket stubs, torn along the perforations. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step;
  background: #fff8d6; color: #13283c; border-radius: 14px; }
@media (min-width: 60rem) { .steps--row { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.5rem 1.4rem 1.6rem; color: #3c4d5e; font-size: 1rem;
  border-top: 2px dashed rgb(19 40 60 / 0.3);
}
.steps li:first-child { border-top: 0; }
@media (min-width: 60rem) {
  .steps--row li { border-top: 0; border-left: 2px dashed rgb(19 40 60 / 0.3); }
  .steps--row li:first-child { border-left: 0; }
}
.steps li::before {
  content: "No. " counter(step); display: block; margin-bottom: 0.6rem;
  font: 800 1.9rem/1 var(--display); font-stretch: 75%; color: #b8420a;
}
.steps strong { display: block; color: #13283c; font-size: var(--step-0); margin-bottom: 0.3rem; }

/* Vertical timeline used for example journeys. */
.path { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 3px solid var(--peach); display: grid; gap: 1.75rem; }
.path li { position: relative; color: var(--muted); }
.path li::before {
  content: ""; position: absolute; left: calc(-2rem - 10px); top: 0.3rem;
  width: 17px; height: 17px; border-radius: 50%; background: var(--orange); border: 3px solid var(--bg);
}
.path strong { display: block; color: var(--ink); font-size: var(--step-1); font-family: var(--display); font-stretch: 92%; margin-bottom: 0.2rem; }

/* ---- Product spotlights --------------------------------------------------- */
.spotlights { display: grid; gap: 1.5rem; }
.spotlight {
  display: grid; gap: 2rem; align-items: center; overflow: hidden;
  border-radius: calc(var(--radius) * 1.5); padding: clamp(1.75rem, 4vw, 3.25rem);
}
@media (min-width: 60rem) {
  .spotlight { grid-template-columns: 1fr 1fr; }
  .spotlight:nth-child(even) > :first-child { order: 2; }
}
.spotlight h3 { font-size: var(--step-3); font-stretch: 85%; margin-top: 0.6rem; }
.spotlight p { max-width: 34rem; }
.spotlight .domain { font-weight: 750; font-size: 0.95rem; }
.spotlight--teal { background: var(--teal-tint); }
.spotlight--violet { background: var(--violet-tint); }
.spotlight--blue { background: var(--blue-tint); }
.spotlight--teal .button { background: var(--teal); color: var(--white); }
.spotlight--violet .button { background: var(--violet); color: var(--white); }
.spotlight--blue .button { background: var(--blue); color: var(--white); }

/* Illustrations, drawn in HTML so they stay sharp and readable. */
.mock { display: grid; gap: 0.6rem; margin: 0; }
.mock-panel {
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem;
}
.mock-title { font-weight: 750; font-size: 0.95rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; gap: 1rem; }
.mock-row {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem;
  padding: 0.55rem 0; border-top: 1px solid #edf0f3;
}
.mock-row .icon { width: 1.2rem; height: 1.2rem; }
.pass { color: var(--teal); }
/* Badges and the phone screen sit on white mock-ups in both themes, so they
   use the light tints directly. */
.badge { margin-left: auto; font-size: 0.78rem; font-weight: 750; padding: 0.2rem 0.55rem; border-radius: 999px; background: #e3f3f1; color: var(--teal); white-space: nowrap; }
.badge--live { background: var(--teal); color: var(--white); }
.mock-form { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; }
.paper {
  background: #fffdf8; color: var(--navy); border-radius: 6px; padding: 1rem; box-shadow: var(--shadow-lg);
  transform: rotate(-3deg); font-size: 0.85rem;
}
.paper .line { border-bottom: 1px dashed #c9c2b8; padding: 0.45rem 0 0.2rem; }
.paper .hand { font-style: italic; color: #2346a0; }
.arrow { color: var(--violet); }
.arrow .icon { width: 2rem; height: 2rem; }
.record dl { margin: 0; font-size: 0.85rem; }
.record dt { color: var(--slate); font-size: 0.78rem; margin-top: 0.4rem; }
.record dd { margin: 0; font-weight: 700; }
.record .badge { background: #eeeaff; color: var(--violet); }
.mock-phone {
  justify-self: center; width: min(15rem, 100%); aspect-ratio: 9 / 16.5; background: var(--navy);
  border-radius: 2.2rem; padding: 0.7rem; box-shadow: var(--shadow-lg);
}
.screen {
  height: 100%; border-radius: 1.6rem; background: var(--white); color: var(--navy);
  padding: 1.6rem 1rem 1rem; display: grid; align-content: start; gap: 0.6rem; overflow: hidden;
}
.screen .org { font: 780 1.15rem/1.1 var(--display); }
.screen .result { background: var(--orange); border-radius: 12px; padding: 0.8rem; font-size: 0.85rem; }
.screen .result b { display: block; font: 780 1.6rem/1.1 var(--display); letter-spacing: 0.04em; margin-top: 0.2rem; }
.screen .item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; padding: 0.55rem 0.65rem; border-radius: 10px; background: #e6f0fc; }
.screen .item .icon { width: 1.1rem; height: 1.1rem; color: var(--blue); }

/* ---- Illustrations (inline SVG in src/art) -------------------------------- */
/* Text inside the drawings always sits on light paper, so it keeps fixed colours. */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art text { font-family: var(--body); fill: #13283c; }
.art-serial { font: 800 30px var(--display); font-stretch: 75%; letter-spacing: 0.02em; }
.art-serial-sm { font: 800 19px var(--display); font-stretch: 75%; }
.art-title { font: 800 34px var(--display); font-stretch: 80%; letter-spacing: -0.01em; }
.art-title-sm { font: 800 21px var(--display); font-stretch: 82%; }
.art-title-xs { font: 800 15px var(--display); font-stretch: 85%; }
.art-body { font: 600 15px var(--body); }
.art-strong { font: 800 17px var(--body); }
.art-small { font: 700 13px var(--body); }
.art-small-ink { font: 700 12px var(--body); }
.art-tiny { font: 600 10.5px var(--body); }
.art-ball { font: 800 24px var(--display); }
.art-ball-sm { font: 800 17px var(--display); }
.art-ball-xs { font: 800 12px var(--display); }
.art-digit { font: 800 20px var(--display); }
.art-rosette { font: 800 18px var(--display); }
.art .art-on-dark { font: 800 14px var(--body); fill: #fff; }
.art .art-pill { font: 800 10px var(--body); fill: #fff; }
.art-card-title { font: 800 15px var(--body); }
.art .art-hand { font: italic 600 16px var(--body); fill: #2346a0; }
.art-field { font: 800 16px var(--body); }
.art .art-pill-lg { font: 800 12.5px var(--body); fill: #fff; }
.art-pill-ink { font: 800 12.5px var(--body); }
.art .art-on-dark-sm { font: 600 11.5px var(--body); fill: #fff; opacity: 0.85; }
.art .art-on-dark-lg { font: 800 27px var(--display); font-stretch: 82%; fill: #fff; }
.art-fan { font: 800 16px var(--display); font-stretch: 80%; }
.art .art-card-body { font: 600 12.5px var(--body); fill: #4a5b6c; }

.hero-art { justify-self: center; width: min(100%, 36rem); }
/* The page's one moment of motion: this week's balls drop in, one by one. */
@media (prefers-reduced-motion: no-preference) {
  .art--hero .balls > g { animation: drop 0.7s cubic-bezier(.3,1.4,.5,1) both; }
  .art--hero .balls > g:nth-child(2) { animation-delay: 0.12s; }
  .art--hero .balls > g:nth-child(3) { animation-delay: 0.24s; }
  .art--hero .balls > g:nth-child(4) { animation-delay: 0.36s; }
  .art--hero .balls > g:nth-child(5) { animation-delay: 0.48s; }
  .art--hero .balls > g:nth-child(6) { animation-delay: 0.6s; }
}
@keyframes drop { from { opacity: 0; translate: 0 -120px; } }

/* ---- Who it's for --------------------------------------------------------- */
.vignettes { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.vignette h3 { margin: 1.4rem 0 0.5rem; }
.vignette p { margin: 0; color: var(--muted); }
.stage {
  display: grid; place-items: center; aspect-ratio: 16 / 11;
  border-radius: 28px; padding: 1.25rem 1.5rem;
}
.stage .art { max-width: 20rem; }
.stage--teal { background: var(--teal-tint); }
.stage--pink { background: #ffe8ef; }
.stage--violet { background: var(--violet-tint); }
@media (prefers-color-scheme: dark) { .stage--pink { background: #3b1f2b; } }

/* ---- A week of the lottery (a real sequence: days in order) ---------------- */
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
@media (min-width: 72rem) {
  .week { grid-template-columns: repeat(6, 1fr); background: linear-gradient(var(--peach), var(--peach)) 0 1.65rem / 100% 3px no-repeat; }
}
.week li { --c: var(--orange); }
.week li:nth-child(2) { --c: #0b6f6b; }
.week li:nth-child(3) { --c: #ffd23f; }
.week li:nth-child(4) { --c: #5b3fd0; }
.week li:nth-child(5) { --c: #1d64c4; }
.week li:nth-child(6) { --c: #ff9fbd; }
.day {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  font: 800 1.35rem/1 var(--display); color: #13283c;
  background:
    radial-gradient(circle, #fff 0 45%, transparent 46%),
    radial-gradient(circle at 32% 26%, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0) 42%),
    var(--c);
  box-shadow: 0 8px 14px -6px rgb(19 40 60 / 0.45);
}
.week h3 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-0); font-family: var(--body); font-weight: 750; letter-spacing: 0; margin: 1.1rem 0 0.4rem; }
.week h3 .icon { width: 1.3rem; height: 1.3rem; color: var(--link); }
.week p { margin: 0; color: var(--muted); font-size: 1rem; }
.after-week { margin: 2.5rem 0 0; }

/* ---- Modules as raffle tickets: stub, perforation, notches ---------------- */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); }
.ticket {
  --stub: 5.25rem; --c: #ff6b1a; --paper: #fff1e6; --on-c: #13283c;
  position: relative; display: grid; grid-template-columns: var(--stub) 1fr;
  background: var(--paper); color: #13283c; border-radius: 12px;
  -webkit-mask: radial-gradient(circle at var(--stub) 0, #0000 10px, #000 10.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--stub) 100%, #0000 10px, #000 10.5px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at var(--stub) 0, #0000 10px, #000 10.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--stub) 100%, #0000 10px, #000 10.5px) bottom / 100% 51% no-repeat;
  transition: translate 0.15s;
}
.ticket:hover { translate: 0 -3px; }
.ticket-stub {
  display: grid; place-items: center; background: var(--c); color: var(--on-c);
  border-right: 2px dashed rgb(19 40 60 / 0.4);
  --icon-2: #fff; --icon-2-opacity: 0.85;
}
.ticket-stub .icon { width: 2.2rem; height: 2.2rem; }
.ticket-body { padding: 1.3rem 1.5rem 1.4rem; }
.ticket h3 { margin: 0 0 0.35rem; font-size: var(--step-1); }
.ticket h3 a { color: inherit; text-decoration: none; }
.ticket h3 a::after { content: ""; position: absolute; inset: 0; }
.ticket:hover h3 a { text-decoration: underline; }
.ticket p { margin: 0; color: #3c4d5e; font-size: 1rem; }
.ticket:focus-within { box-shadow: inset 0 0 0 3px #13283c; }
.ticket h3 a:focus-visible { outline: none; }
.ticket--yellow { --c: #ffd23f; --paper: #fff8d6; }
.ticket--blue { --c: #1d64c4; --paper: #e6f0fc; --on-c: #fff; }
.ticket--teal { --c: #0b6f6b; --paper: #e3f3f1; --on-c: #fff; }
.ticket--pink { --c: #ff9fbd; --paper: #ffe8ef; }
.ticket--violet { --c: #5b3fd0; --paper: #eeeaff; --on-c: #fff; }
.ticket--blue .ticket-stub, .ticket--teal .ticket-stub, .ticket--violet .ticket-stub { --icon-2: #ffd23f; --icon-2-opacity: 1; border-right-color: rgb(255 255 255 / 0.55); }

/* ---- Included in the subscription ------------------------------------------ */
.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 46rem) { .included { grid-template-columns: 1fr 1fr; } }
.included li { display: flex; gap: 1rem; align-items: flex-start; }
.included li > .icon { width: 2.2rem; height: 2.2rem; color: var(--link); margin-top: 0.1rem; }
.included h3 { font-size: var(--step-0); font-family: var(--body); font-weight: 750; letter-spacing: 0; margin: 0 0 0.3rem; }
.included p { margin: 0; color: var(--muted); font-size: 1rem; }

.split--center { align-items: center; }
@media (min-width: 60rem) { .split--center { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.section--navy .stack figcaption { color: #c7d3de; }

/* ---- Lottery page ---------------------------------------------------------- */
.spotlight-plain { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 60rem) { .spotlight-plain { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks .icon { width: 1.35rem; height: 1.35rem; color: var(--teal); margin-top: 0.15rem; --icon-2: var(--teal); }
.mock-row .icon { color: var(--slate); }
.mock-value { margin-left: auto; font-weight: 750; white-space: nowrap; }
.draw-balls { display: flex; gap: 0.4rem; justify-content: center; padding-top: 1rem; border-top: 1px solid #edf0f3; }
.draw-balls span {
  --c: #ff6b1a; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font: 800 1.05rem/1 var(--display); color: #13283c;
  background: radial-gradient(circle, #fff 0 44%, transparent 45%),
              radial-gradient(circle at 32% 26%, rgb(255 255 255 / 0.65), rgb(255 255 255 / 0) 42%), var(--c);
}
.draw-balls span:nth-child(2) { --c: #0b6f6b; }
.draw-balls span:nth-child(3) { --c: #ffd23f; }
.draw-balls span:nth-child(4) { --c: #5b3fd0; }
.draw-balls span:nth-child(5) { --c: #1d64c4; }
.draw-balls span:nth-child(6) { --c: #ff9fbd; }
.draw-balls--big { border: 0; padding: 0; gap: 0.75rem; }
.draw-balls--big span { width: 8rem; height: 8rem; font-size: 3.2rem; box-shadow: 0 12px 20px -8px rgb(19 40 60 / 0.45); }
.draw-balls--big span:nth-child(2) { translate: 0 -1.25rem; }
.game-chips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.game-chips li { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--rule); font-weight: 650; font-size: 0.95rem; }
.tickets + .note { margin-top: 2rem; }

/* ---- Page heads -------------------------------------------------------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--soft); padding-block: clamp(3rem, 1.5rem + 5vw, 5.5rem);
}
.page-head::after {
  content: ""; position: absolute; z-index: -1; right: -8rem; top: -10rem;
  width: 28rem; height: 28rem; border-radius: 50%;
  background: radial-gradient(circle, var(--peach) 0%, rgb(255 217 194 / 0) 70%);
}
.page-head h1 { max-width: 16ch; }
.page-head .tile { margin-bottom: 1.25rem; width: 3.5rem; height: 3.5rem; }
.page-head--orange { background: var(--orange); color: var(--navy); }
.page-head--orange::after { background: radial-gradient(circle, #ff9a5c 0%, rgb(255 154 92 / 0) 70%); }
.page-head--teal { background: var(--teal); color: var(--white); }
.page-head--violet { background: var(--violet); color: var(--white); }
.page-head--blue { background: var(--blue); color: var(--white); }
.page-head--teal::after, .page-head--violet::after, .page-head--blue::after {
  background: radial-gradient(circle, rgb(255 255 255 / 0.18) 0%, rgb(255 255 255 / 0) 70%);
}
.page-head--teal .tile, .page-head--violet .tile, .page-head--blue .tile { background: var(--white); color: var(--navy); --icon-2: var(--orange); --icon-2-opacity: 1; }

/* Page heads with a drawing or balls on the right. */
.head-split { display: grid; gap: 2.5rem 3rem; align-items: center; }
@media (min-width: 60rem) { .head-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.head-art { justify-self: center; width: min(100%, 32rem); }
.page-head .ball-icon { margin-bottom: 1.25rem; }

/* ---- Modules page: each family is a large ticket ------------------------- */
.families { display: grid; gap: 1.5rem; }
.family {
  --c: #ff6b1a; --on-c: #13283c; --stub: 19rem;
  display: grid; background: var(--raised); border: 1px solid var(--rule); border-radius: 16px;
  overflow: hidden; scroll-margin-top: 6rem;
}
.family > div:first-child {
  background: var(--c); color: var(--on-c); padding: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 2px dashed rgb(19 40 60 / 0.35);
}
.family > div:first-child p { margin: 0; }
.family h3 { font-size: var(--step-2); margin: 1rem 0 0.4rem; }
.family h3 a { color: inherit; }
.family .modules { padding: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 60rem) {
  .family {
    grid-template-columns: var(--stub) 1fr;
    -webkit-mask: radial-gradient(circle at var(--stub) 0, #0000 12px, #000 12.5px) top / 100% 51% no-repeat,
                  radial-gradient(circle at var(--stub) 100%, #0000 12px, #000 12.5px) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle at var(--stub) 0, #0000 12px, #000 12.5px) top / 100% 51% no-repeat,
                  radial-gradient(circle at var(--stub) 100%, #0000 12px, #000 12.5px) bottom / 100% 51% no-repeat;
  }
  .family > div:first-child { border-bottom: 0; border-right: 2px dashed rgb(19 40 60 / 0.35); }
}
.family--yellow { --c: #ffd23f; }
.family--blue { --c: #1d64c4; --on-c: #fff; }
.family--teal { --c: #0b6f6b; --on-c: #fff; }
.family--pink { --c: #ff9fbd; }
.family--violet { --c: #5b3fd0; --on-c: #fff; }
.family--navy { --c: #13283c; --on-c: #fff; }
.family--blue > div:first-child, .family--teal > div:first-child, .family--violet > div:first-child, .family--navy > div:first-child { border-color: rgb(255 255 255 / 0.5); }
.modules { margin: 0; display: grid; gap: 1.4rem 2rem; }
@media (min-width: 40rem) { .modules { grid-template-columns: 1fr 1fr; } }
.modules dt { font-weight: 750; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.modules dt .icon { width: 1.25rem; height: 1.25rem; color: var(--link); }
.modules dd { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---- Prose and notes ------------------------------------------------------ */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.note {
  margin-top: 1.75rem; padding: 1.15rem 1.3rem; border-radius: var(--radius);
  background: var(--soft); border-left: 5px solid var(--orange);
}
.note p { margin: 0; }
.section--tint .note { background: var(--raised); }

/* ---- Call to action band ------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white); border-radius: calc(var(--radius) * 1.8);
  padding: clamp(2rem, 5vw, 4rem);
}
.cta > * { max-width: 34rem; }
/* The disc sits to the right of the text column, never behind it. */
.cta::before {
  content: "7"; display: grid; place-items: center; font: 800 6.5rem/1 var(--display); color: #13283c;
  position: absolute; z-index: -1; right: -5rem; top: 50%; translate: 0 -50%;
  width: 24rem; height: 24rem; border-radius: 50%;
  /* A lottery ball: white disc for the number, a highlight, then orange. */
  background:
    radial-gradient(circle, #fff 0 30%, transparent 30.5%),
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0) 40%),
    var(--orange);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; right: 15rem; top: -3rem;
  width: 7rem; height: 7rem; border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 30%, transparent 30.5%),
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0) 40%),
    var(--teal);
}
@media (max-width: 64rem) { .cta::before, .cta::after { display: none; } }
.cta h2 { margin: 0 0 1rem; max-width: 18ch; }
.cta .lead { color: #c7d3de; margin: 0; }
.cta .actions { margin-top: 1.75rem; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #c7d3de; padding-block: 3.5rem 3rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer .wordmark { color: var(--white); font-size: 1.4rem; }
.site-footer p { margin: 0.6rem 0 0; max-width: 40rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--white); }

/* ---- Print -------------------------------------------------------------- */
@media print {
  .site-header nav, .header-cta, .skip, .actions, .cta::before, .hero::before, .hero::after { display: none; }
  .hero, .page-head, .section--navy, .strip, .site-footer { background: none; color: #000; }
  body { font-size: 11pt; }
}
