/* ==========================================================================
   Discipline Don: styles
   1. Fonts      2. Tokens      3. Base       4. Layout
   5. Type       6. Components  7. Sections   8. Responsive
   ========================================================================== */

/* 1. Fonts (self-hosted, latin subset) ----------------------------------- */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Colour */
  --ink: #14110F;
  --ink-2: #1E1A17;
  --ink-3: #1A1613;
  --ink-hover: #2E2722;
  --line-dark: #2B2622;
  --line-dark-2: #3A332D;
  --line-phone: #2E2823;
  --cream: #F3EBDD;
  --paper: #FFFDF8;
  --sand: #E9DFCD;
  --spine-cream: #D8CBB4;
  --line-light: #E2D7C3;
  --oxblood: #7A1F1F;
  --oxblood-dark: #5C1616;
  --rose: #F3E3D6;
  --brass: #C9A227;
  --brass-light: #F3D27A;
  --text-on-dark: #CFC5B4;
  --text-on-dark-2: #9C9282;
  --text-on-dark-3: #8F8574;
  --text-on-light: #4A423A;
  --text-on-light-2: #6B6257;
  --dot-idle: #B8AA92;

  /* Type */
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-accent: "Space Mono", ui-monospace, monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  /* Bebas runs small, so display sizes are scaled up 15% */
  --display-k: 1.15;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-11: 56px;
  --space-12: 64px;
  --space-13: 80px;
  --space-14: 88px;
  --space-15: 96px;

  /* Shape and depth */
  --radius: 2px;
  --shadow-card: 0 0 36px rgba(20, 17, 15, 0.16), 0 0 10px rgba(20, 17, 15, 0.06);
  --shadow-phone: 0 44px 80px -20px rgba(20, 17, 15, 0.62), 0 16px 32px rgba(20, 17, 15, 0.28);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.5);

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --header-offset: 88px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, ul { margin: 0; }
a { color: var(--brass); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--oxblood); }
[tabindex="-1"]:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--brass); color: var(--ink); padding: var(--space-3) var(--space-4);
  font-family: var(--font-accent); text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
section[id] { scroll-margin-top: var(--header-offset); }

/* 4. Layout --------------------------------------------------------------- */
.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }

/* Vertical rhythm: children spaced by --stack-gap */
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-4)); }
.stack--xs { --stack-gap: var(--space-1); }
.stack--sm { --stack-gap: var(--space-2); }
.stack--md { --stack-gap: var(--space-3); }
.stack--lg { --stack-gap: var(--space-6); }
.stack--xl { --stack-gap: var(--space-10); }

/* Inline group that wraps */
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-4)); }

/* Two flexible columns that stack when there isn't room */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: var(--split-gap, var(--space-12)); }
.split > * { min-width: 0; }

.section { padding-block: var(--section-pad, var(--space-15)); }
.on-light { background: var(--cream); color: var(--ink); }
.on-oxblood { background: var(--oxblood); color: var(--cream); }

/* 5. Type ----------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow--sm { font-size: 12px; letter-spacing: 0.06em; }
.eyebrow--muted { color: var(--text-on-light-2); }
.eyebrow--oxblood { color: var(--oxblood); }
.eyebrow--gold { color: var(--brass-light); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: pretty;
}
.display--xl { font-size: calc(60px * var(--display-k)); line-height: 1.03; letter-spacing: -0.01em; }
.display--lg { font-size: calc(52px * var(--display-k)); line-height: 1.05; }
.display--md { font-size: calc(48px * var(--display-k)); }
.display--sm { font-size: calc(44px * var(--display-k)); }
.display--xs { font-size: calc(40px * var(--display-k)); line-height: 1.1; }
.display--card { font-size: calc(30px * var(--display-k)); line-height: 1.1; }

.lead { font-size: 19px; color: var(--text-on-dark); }
.text-muted { color: var(--text-on-dark); }
.on-light .text-muted { color: var(--text-on-light); }
.small { font-size: 13px; color: var(--text-on-dark-3); }
.on-light .small { color: var(--text-on-light-2); }

.list { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.list--sm { font-size: 15px; }

/* Currency symbol inside Space Mono text: Space Mono's $ is drawn short */
.sym { font-family: var(--font-body); font-weight: 600; }

/* 6. Components ----------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: scale(0.98); }
.btn--brass { background: var(--brass); color: var(--ink); letter-spacing: 0.01em; font-size: 17px; }
.btn--brass:hover { filter: brightness(1.1); }
.btn--dark { background: var(--ink); color: var(--cream); letter-spacing: 0.04em; font-size: 15px; }
.btn--dark:hover { background: var(--ink-hover); }
.btn--sm { font-size: 15px; padding: 12px 20px; min-height: 44px; }
.btn--lg { padding: 18px 32px; }
.btn--block { display: flex; width: 100%; min-height: 52px; padding: 0 22px; }

/* Save badge (brass outline) */
.badge-save {
  position: relative;
  top: -8px;
  align-self: baseline;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1.5px solid var(--brass);
  border-radius: var(--radius);
  padding: 3px 10px;
}

/* Prices */
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.price { font-family: var(--font-display); font-weight: 400; line-height: 1; }
.price--hero { font-size: calc(52px * var(--display-k)); }
.price--bundle { font-size: calc(60px * var(--display-k)); }
.price--card { font-size: calc(32px * var(--display-k)); }
.price--closing { font-size: calc(34px * var(--display-k)); color: var(--cream); }
.price-was { text-decoration: line-through; color: var(--text-on-dark-2); font-size: 22px; }

/* Underline that draws in from the left and leaves to the right */
.link-uline {
  font-size: 14px;
  color: var(--oxblood);
  text-decoration: none;
  padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0% 1px no-repeat;
  transition: background-size 0.3s ease;
}
.link-uline:hover, .link-uline:focus-visible { background-position: 0 100%; background-size: 100% 1px; }

/* Tick list */
.ticks { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); font-size: 14px; color: var(--text-on-dark-2); }
.ticks li { display: inline-flex; align-items: center; gap: var(--space-2); list-style: none; }
.ticks { padding: 0; }
.ticks svg { width: 16px; height: 16px; flex: none; color: var(--brass); }

/* Book cover (pure CSS). Sizes are relative to the cover's own width:
   the .book element is a size container and .book__face uses cqw. */
.book { container-type: inline-size; aspect-ratio: 3 / 4; }
.book__face {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12.5cqw 11cqw;
  border-radius: 1cqw 2.5cqw 2.5cqw 1cqw;
  box-shadow: 0 7.5cqw 12.5cqw rgba(20, 17, 15, var(--book-shadow, 0.25));
  background: var(--book-bg);
  color: var(--book-ink);
  border-left: 3cqw solid var(--book-spine, transparent);
}
.book__label { font-size: 4cqw; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--book-label); line-height: 1.4; }
.book__title, .book__sub { display: block; }
.book__title { font-family: var(--font-display); font-size: calc(14cqw * var(--display-k)); line-height: 1; }
.book__sub { margin-top: 3cqw; font-size: 4.8cqw; color: var(--book-sub); line-height: 1.4; }
.book__mark { width: 9cqw; height: 9cqw; color: var(--book-label); }
.book--clear-out { --book-bg: var(--cream); --book-ink: var(--ink); --book-label: var(--oxblood); --book-sub: var(--text-on-light); --book-spine: var(--spine-cream); }
.book--ledger { --book-bg: var(--oxblood); --book-ink: var(--cream); --book-label: var(--brass-light); --book-sub: var(--rose); --book-spine: var(--oxblood-dark); }
.book--rules { --book-bg: var(--ink-2); --book-ink: var(--cream); --book-label: var(--brass); --book-sub: var(--text-on-dark); }
.book--rules .book__face { border-left: 0; outline: 1.25cqw solid var(--brass); outline-offset: -6cqw; }
/* Cover artwork (A4 images in place of the CSS face) */
.book:has(.book__img) { aspect-ratio: 1653 / 2339; }
.book__img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1cqw 2.5cqw 2.5cqw 1cqw;
  box-shadow: 0 7.5cqw 12.5cqw rgba(20, 17, 15, var(--book-shadow, 0.25));
}

/* Product card */
.card {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-light);
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-card); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media .book { width: 44%; }
.card__body { flex: 1; padding: var(--space-7); display: flex; flex-direction: column; gap: 14px; }
.card__body p:not([class]), .card__body .list { color: var(--text-on-light); }
.card__buy { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-light); display: flex; flex-direction: column; gap: var(--space-4); }
.card__price-row { gap: 4px 14px; }

/* Eye button: opens the popup */
.look-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.look-btn span {
  width: 32px; height: 32px; border: 1.5px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.look-btn:hover span { background: var(--ink); color: var(--cream); }
.look-btn svg { width: 18px; height: 18px; }

/* Launch banner */
.banner {
  position: relative;
  z-index: 41;
  background: var(--oxblood);
  color: var(--cream);
  text-align: center;
  padding: 9px var(--space-4);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.banner__short { display: none; }
.coupon { position: relative; display: inline-block; }
.coupon__code {
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--brass-light);
  background: transparent;
  border: 1px dashed rgba(243, 210, 122, 0.7);
  border-radius: var(--radius);
  padding: 1px 6px;
}
.coupon__done {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translate(-50%, -4px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.coupon.is-copied .coupon__done { opacity: 1; transform: translate(-50%, 0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.site-header__inner {
  width: max(90%, calc(var(--container) + 2 * var(--gutter)));
  max-width: 100%;
  margin-inline: auto;
  padding: var(--space-4) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.01em;
}
.brand__logo { width: 48px; height: 48px; flex: none; color: var(--brass); }
.brand__name { position: relative; top: calc(0.06em + 1px); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-7); }
.nav__link {
  color: var(--text-on-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--cream); }
.nav__link.is-active { color: var(--brass); }
.nav__divider { width: 1px; height: 16px; background: var(--line-dark); }

/* Currency selector */
.currency { position: relative; }
.currency__toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 44px;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.currency__toggle svg { width: 10px; height: 10px; transition: transform 0.2s ease; }
.currency__toggle[aria-expanded="true"] { color: var(--brass); }
.currency__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.currency__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 220px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  box-shadow: var(--shadow-pop);
}
.currency__option {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--cream);
  text-align: left;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}
.currency__option:hover { background: rgba(243, 235, 221, 0.05); }
.currency__option[aria-current="true"] { color: var(--brass); background: rgba(201, 162, 39, 0.08); }
.currency__option span:last-child { letter-spacing: 0.04em; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 76% 40%, rgba(201, 162, 39, 0.09) 0%, rgba(201, 162, 39, 0.03) 30%, rgba(20, 17, 15, 0) 58%);
}
.hero__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 26px, rgba(243, 235, 221, 0.09) 26px 27px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, #000 85%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, #000 85%);
}
.hero__inner { position: relative; padding-block: 72px 88px; --split-gap: var(--space-11); }
.hero__copy { flex: 1 1 500px; }
.hero__copy .display { max-width: 586px; }
.hero__copy .lead { max-width: 520px; }
.hero__copy .price-row { margin-top: 4px; }
.hero__art { flex: 1 1 400px; display: flex; justify-content: center; }
.hero__ctas { --cluster-gap: var(--space-5); }
.hero__alt { color: var(--cream); font-size: 15px; }

/* Fanned covers */
.fan { position: relative; width: 100%; max-width: 580px; aspect-ratio: 6 / 5; container-type: inline-size; }
.fan__cover {
  position: absolute;
  display: block;
  text-decoration: none;
  transform: rotate(var(--rot)) translateY(0) scale(1);
  transition: transform 0.35s var(--ease-out), filter 0.35s ease;
  --book-shadow: 0.5;
}
.fan__cover .book__face, .fan__cover .book__img { box-shadow: 0 7.5cqw 12.5cqw rgba(0, 0, 0, 0.5); }
.fan__cover--rules { left: 2%; top: 16%; width: 40%; z-index: 1; --rot: -8deg; --rot-hover: -3deg; }
.fan__cover--ledger { left: 56%; top: 16%; width: 40%; z-index: 2; --rot: 8deg; --rot-hover: 3deg; }
.fan__cover--clear-out { left: 29%; top: 4%; width: 42%; z-index: 3; --rot: 0deg; --rot-hover: 0deg; }
.fan__cover--clear-out .book__face, .fan__cover--clear-out .book__img { box-shadow: 0 9.5cqw 14.3cqw rgba(0, 0, 0, 0.55); }
.fan__cover:hover, .fan__cover:focus-visible { z-index: 10; transform: rotate(var(--rot-hover)) translateY(-2%) scale(1.05); }
.fan:has(.fan__cover:hover) .fan__cover:not(:hover),
.fan:has(.fan__cover:focus-visible) .fan__cover:not(:focus-visible) { filter: brightness(0.7); }
.fan__avatar {
  position: absolute; left: 0; bottom: 0; z-index: 20;
  width: 24%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 0.8cqw solid var(--brass);
  box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.5);
}
.fan__avatar img { width: 100%; height: 100%; object-fit: cover; }
.fan__byline {
  position: absolute; left: 26%; bottom: 3%; z-index: 20;
  font-family: var(--font-accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: max(12px, 2.1cqw); line-height: 1;
  color: var(--cream); background: var(--ink); padding: 7px 10px; border-radius: var(--radius);
}

/* Products */
.products { --section-pad: var(--space-14); }
.products__head { max-width: 680px; }
.products__grid { display: flex; flex-wrap: wrap; gap: var(--space-6); }

/* Bundle */
.bundle { --section-pad: var(--space-13); }
.bundle .split { --split-gap: var(--space-10); }
.bundle__copy { flex: 1 1 520px; }
.bundle__copy .text-muted, .bundle__copy .list { color: var(--rose); }
.bundle__copy .lead { color: var(--rose); max-width: 560px; }
.bundle__box { flex: 1 1 320px; background: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.bundle__box .price-row { gap: var(--space-4); }
.bundle__box .price-was { font-size: 20px; }
.bundle__box .btn { padding: 18px 24px; }
.bundle__note { font-size: 13px; color: var(--text-on-dark-3); text-align: center; }

/* The Don */
.don .split { --split-gap: var(--space-12); }
.don__photo { flex: 1 1 340px; margin: 0; }
.don__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; border: 1px solid var(--line-dark-2); }
.don__copy { flex: 1 1 520px; }
.don__copy > .text-muted { font-size: 18px; }
.rules { list-style: none; padding: 0; border-top: 1px solid var(--line-dark-2); }
.rules li { display: flex; gap: var(--space-5); padding: 18px 0; border-bottom: 1px solid var(--line-dark-2); color: var(--text-on-dark); }
.rules__num { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--brass); width: 28px; flex: none; line-height: 1.6; }
.rules strong { color: var(--cream); font-weight: 600; }

/* App */
.app { --section-pad: var(--space-14); }
.app .split { --split-gap: var(--space-12); }
.app__visual { flex: 1 1 280px; display: flex; justify-content: center; perspective: 900px; }
.app__copy { flex: 1 1 520px; --stack-gap: 18px; }
.app__copy > p { max-width: 540px; }
.app__copy > p.text-muted { font-size: 18px; }
.tag-dark {
  align-self: flex-start;
  font-family: var(--font-accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 12px;
  color: var(--cream); background: var(--ink); padding: 6px 12px;
}

/* Phone mockup */
.phone {
  --px: 0px; --py: 0px; --rx: 0deg; --ry: 0deg;
  width: 240px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-phone);
  transform: translate(var(--px), var(--py)) rotateY(var(--ry)) rotateX(var(--rx));
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}
.phone__screen {
  height: 100%;
  background: var(--ink-3);
  border-radius: 24px;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  color: var(--cream);
  line-height: 1.35;
}
.phone__eyebrow { font-family: var(--font-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 8px; color: var(--text-on-dark-3); }
.phone__top { display: flex; justify-content: space-between; align-items: center; }
.phone__top .phone__eyebrow { font-size: 9px; color: var(--brass); }
.phone__top svg { width: 22px; height: 22px; color: var(--brass); }
.phone__block { display: flex; flex-direction: column; gap: 6px; }
.phone__block--rule { border-top: 1px solid var(--line-phone); padding-top: 12px; }
.phone__rule { font-family: var(--font-display); font-size: calc(24px * var(--display-k)); line-height: 1; }
.phone__small { font-size: 10px; color: var(--text-on-dark); }
.phone__done {
  align-self: flex-start; margin-top: 4px; background: var(--brass); color: var(--ink);
  font-family: var(--font-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 9px; padding: 7px 10px; border-radius: var(--radius);
}
.phone__week { display: flex; justify-content: space-between; }
.phone__day { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: var(--text-on-dark-3); }
.phone__box { width: 20px; height: 20px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.phone__box--done { background: var(--brass); }
.phone__box--done svg { width: 12px; height: 12px; color: var(--ink); }
.phone__box--skip { border: 1px dashed var(--text-on-dark-3); font-size: 8px; }
.phone__box--today { border: 1.5px solid var(--brass); }
.phone__box--next { border: 1px solid var(--line-dark-2); }
.phone__day--today { color: var(--cream); }
.phone__plan { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line-phone); border-radius: 4px; padding: 10px; }
.phone__plan .phone__eyebrow { color: var(--brass); }
.phone__progress { margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
.phone__progress-labels { display: flex; justify-content: space-between; font-size: 8px; color: var(--text-on-dark-3); }
.phone__bar { height: 4px; background: var(--line-phone); border-radius: var(--radius); overflow: hidden; }
.phone__bar span { display: block; width: 40%; height: 100%; background: var(--brass); }

/* Waitlist form */
.waitlist { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; max-width: 540px; }
.waitlist__field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.waitlist label { font-size: 14px; font-weight: 600; }
.waitlist input {
  font: inherit; line-height: normal; height: 52px; padding: 0 var(--space-4);
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: var(--radius);
}
.waitlist .btn { height: 52px; padding: 0 26px; }
.form-status { font-size: 14px; color: var(--oxblood); min-height: 1.4em; }
.form-status:empty { display: none; }

/* FAQ */
.faq__inner { --stack-gap: var(--space-9); }
.faq-list { border-top: 1px solid var(--line-dark-2); }
.faq-item { border-bottom: 1px solid var(--line-dark-2); }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  padding: 22px 0; font-size: 19px; font-weight: 600; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--brass); font-size: 26px; font-weight: 400; line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 var(--space-6); color: var(--text-on-dark); max-width: 680px; }

/* Closing band */
.closing { --section-pad: var(--space-12); }
.closing .split { justify-content: space-between; --split-gap: var(--space-8); }
.closing__copy { flex: 1 1 480px; }
.closing__copy p { color: var(--rose); }
.closing__buy { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.closing__price { display: flex; align-items: baseline; line-height: 1; position: relative; top: 4px; font-size: 18px; color: var(--rose); }
.closing__price s { opacity: 0.75; }
.closing__price .price { margin-left: 7px; }
.closing .btn { padding: 18px 30px; }

/* Footer */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line-dark); }
.site-footer__badge {
  position: absolute; right: -180px; top: 50%;
  width: 520px; height: 520px; max-width: none;
  transform: translateY(-50%) rotate(-12deg);
  opacity: 0.1; pointer-events: none;
}
.site-footer__inner { position: relative; padding-block: var(--space-10); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8); align-items: flex-start; }
.site-footer__about { max-width: 420px; }
.site-footer__name { font-family: var(--font-display); font-size: 30px; line-height: 1.6; }
.site-footer__about p:not([class]) { font-size: 14px; color: var(--text-on-dark-2); }
.site-footer__contact { margin-top: var(--space-1); }
.site-footer__about a { text-decoration: none; }
.site-footer__about a:hover { text-decoration: underline; }
.socials { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.socials__label { font-family: var(--font-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--text-on-dark-2); }
.socials a {
  width: 48px; height: 48px; border: 1.5px solid var(--brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--brass);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.socials a:hover { background: var(--brass); color: var(--ink); }
.socials svg { fill: currentColor; }
.site-footer__legal { position: relative; padding-bottom: var(--space-8); font-size: 13px; color: var(--text-on-dark-2); }

/* Mobile buy bar */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--ink); border-top: 1px solid var(--line-dark-2);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  padding: 12px var(--space-4) calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.buy-bar__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.buy-bar__info .eyebrow { color: var(--text-on-dark-2); font-size: 12px; letter-spacing: 0.06em; }
.buy-bar__price { font-size: 20px; font-weight: 600; }
.buy-bar__price s { font-size: 14px; font-weight: 400; color: var(--text-on-dark-2); }
.buy-bar .btn { font-size: 16px; padding: 0 22px; min-height: 48px; flex: none; }

/* Workbook popup */
.modal {
  width: calc(100% - 48px);
  max-width: 1040px;
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}
.modal:focus { outline: none; }
.modal::backdrop { background: rgba(20, 17, 15, 0.78); }
.modal__layout { position: relative; display: flex; flex-wrap: wrap; min-height: 100%; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border: 0; padding: 0; background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__media {
  flex: 1 1 440px; min-width: 0; background: var(--sand);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-4);
  padding: 28px 20px 22px;
}
.carousel { position: relative; width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.carousel__slide { width: 50%; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel__btn:hover { background: var(--ink-hover); }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__dots { display: flex; justify-content: center; gap: 4px; }
.carousel__dot { width: 32px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel__dot span { width: 8px; height: 8px; border-radius: 4px; background: var(--dot-idle); transition: width 0.2s ease, background-color 0.2s ease; }
.carousel__dot[aria-current="true"] span { width: 24px; background: var(--ink); }
.carousel__caption { text-align: center; font-size: 13px; color: var(--text-on-light-2); }

/* Sample page inside the carousel */
.sheet { container-type: inline-size; aspect-ratio: 3 / 4; }
.sheet__face {
  height: 100%; background: var(--paper); color: var(--ink);
  box-shadow: 0 6cqw 12cqw rgba(20, 17, 15, 0.22); border-radius: 1.2cqw;
  padding: 10cqw 9.2cqw; display: flex; flex-direction: column; gap: 4.8cqw; overflow: hidden;
}
.sheet__top { display: flex; justify-content: space-between; align-items: center; }
.sheet__kicker { font-family: var(--font-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 3.4cqw; color: var(--oxblood); }
.sheet__mark { width: 6.5cqw; height: 6.5cqw; color: var(--brass); }
.sheet__heading { font-family: var(--font-display); font-size: calc(9.2cqw * var(--display-k)); line-height: 1; }
.sheet__rows { display: flex; flex-direction: column; gap: 4.4cqw; }
.sheet__row { display: flex; flex-direction: column; gap: 1.8cqw; font-size: 3.2cqw; color: var(--text-on-light); line-height: 1.4; }
.sheet__row::after { content: ""; height: 5.2cqw; border-bottom: 0.5cqw solid var(--text-on-dark); }
.sheet__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.8cqw; }
.sheet__cell { aspect-ratio: 1; border: 0.5cqw solid var(--text-on-dark); border-radius: 0.6cqw; display: flex; align-items: center; justify-content: center; font-size: 2.8cqw; color: var(--text-on-dark-3); }
.sheet__cell--on { background: var(--brass); border-color: var(--brass); }
.sheet__note { font-size: 3cqw; color: var(--text-on-light-2); line-height: 1.4; }

.modal__info { flex: 1 1 380px; min-width: 0; padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 18px; }
.modal__info .display { padding-right: 48px; line-height: 1.05; }
.modal__info > p:not([class]), .modal__info .list { color: var(--text-on-light); }
.modal__meta { font-size: 14px; color: var(--text-on-light-2); }

/* Toast (checkout placeholder message) */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: var(--radius);
  font-size: 14px; box-shadow: var(--shadow-pop); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Order pages (thank-you, downloads, resend) ------------------------------ */
.order-header { border-bottom: 1px solid var(--line-dark); }
.order-header__inner { display: flex; align-items: center; min-height: 80px; }
.order-page { --section-pad: var(--space-13); }
.order-page .lead strong { color: var(--cream); font-weight: 600; }
.order-note { font-size: 15px; }

.download-list { list-style: none; padding: 0; border-top: 1px solid var(--line-dark-2); }
.download-list__item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-6); padding-block: var(--space-4);
  border-bottom: 1px solid var(--line-dark-2);
}
.download-list__name { font-weight: 600; }

.btn--outline { background: transparent; color: var(--cream); border: 1px solid var(--line-dark-2); letter-spacing: 0.04em; }
.btn--outline:hover { border-color: var(--brass); color: var(--brass-light); }

.resend-form { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; max-width: 540px; }
.resend-form__field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.resend-form label { font-size: 14px; font-weight: 600; }
.resend-form input {
  font: inherit; line-height: normal; height: 52px; padding: 0 var(--space-4);
  border: 1px solid var(--line-dark-2); background: var(--paper); color: var(--ink); border-radius: var(--radius);
}
.resend-form input[aria-invalid="true"] { border-color: var(--brass); }

/* Browser autofill: keep our light field and dark text instead of the browser's tint */
.resend-form input:-webkit-autofill,
.resend-form input:-webkit-autofill:hover,
.resend-form input:-webkit-autofill:focus,
.waitlist input:-webkit-autofill,
.waitlist input:-webkit-autofill:hover,
.waitlist input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--paper) inset;
  transition: background-color 9999s ease-out;
}
.resend-form input:autofill,
.waitlist input:autofill { box-shadow: 0 0 0 1000px var(--paper) inset; }
/* Light fields: tell the browser so its autofill colours match. The inset
   shadow paints our background over any tint a password manager adds
   (NordPass sets a see-through background-color with !important). */
.resend-form input, .waitlist input { color-scheme: light; box-shadow: inset 0 0 0 100px var(--paper); }
.resend-form .btn { height: 52px; padding: 0 26px; }
.resend-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { flex-basis: 100%; font-size: 15px; color: var(--brass-light); }

.order-footer { border-top: 1px solid var(--line-dark); padding-block: var(--space-8); font-size: 15px; color: var(--text-on-dark-2); }
.order-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-8); }

/* 8. Responsive ---------------------------------------------------------- */
@media (max-width: 999.98px) {
  .nav__link, .nav__divider { display: none; }
}

@media (max-width: 719.98px) {
  .site-header { position: relative; }
  .brand__name, .nav__link, .nav__divider { display: none; }
  .site-header__inner { flex-wrap: nowrap; gap: var(--space-3); }
  .nav { flex-wrap: nowrap; gap: var(--space-3); }
  .nav .btn--sm { padding: 12px 14px; white-space: nowrap; }
  .banner__long { display: none; }
  .banner__short { display: inline; }
  .hero__inner { padding-block: var(--space-8) var(--space-11); --split-gap: var(--space-9); }
  .display--xl { font-size: calc(40px * var(--display-k)); }
  .hero .lead { font-size: 17px; }
  .buy-bar.is-visible { display: flex; }
  .site-footer { padding-bottom: 84px; }
  .modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .toast { bottom: 96px; }
}

@media (max-width: 400px) {
  .nav-price { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
