/* ==========================================================================
   BookAndWaive design system
   Arcade in daylight: soft violet white, electric violet, hot pink.
   Display: Righteous. Body: Heebo. Cabinet frames, saturated neon edges,
   glitch snap. Neon is carried by colour, never by a glow on a dark ground.
   ========================================================================== */

:root {
  /* core palette from the brand book */
  --bg: #F8F6FE;
  --surface: #FFFFFF;
  --ink: #171331;
  --primary: #5B21B6;
  --accent: #DB2777;
  --muted: #625C86;

  /* derived shades and tints, every one built for a light ground */
  --bg-deep: #EDE7FA;   /* recessed violet white band */
  --bg-lift: #FBF9FF;   /* the lifted face of a cabinet */
  --surface-2: #FFFFFF;
  --surface-3: #F1ECFD;
  --ink-dim: #3A3358;   /* secondary copy, 10.9:1 on the ground */
  --primary-soft: color-mix(in srgb, var(--primary) 10%, transparent);
  --primary-line: color-mix(in srgb, var(--primary) 34%, transparent);
  --primary-deep: #3D157F;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 40%, transparent);
  --accent-deep: #A61B5B; /* pink dark enough for small copy, 6.7:1 */
  --violet-line: #D8CFEF;   /* hairline, dark on light */
  --violet-line-2: #C0B4E2; /* stronger rule and input edge */
  --night: #1B1540;         /* the one dark surface: the cabinet base */
  --night-2: #251D57;
  --night-ink: #EDE9FB;
  --night-dim: #ADA5D2;
  --night-key: #C6ACFF;

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-cab: 22px 22px 8px 8px;

  /* saturated edges, the daylight stand in for a glow */
  --edge-primary: 0 2px 0 color-mix(in srgb, var(--primary) 28%, transparent);
  --edge-accent: 0 2px 0 color-mix(in srgb, var(--accent) 28%, transparent);
  --lift: 0 16px 34px rgba(23, 19, 49, .09), 0 3px 10px rgba(23, 19, 49, .05);
  --inset-cab: inset 0 1px 0 #FFFFFF,
               inset 0 0 0 1px rgba(23, 19, 49, .035);

  /* type scale */
  --t-xs: .78rem;
  --t-sm: .9rem;
  --t-base: 1.02rem;
  --t-lg: 1.16rem;
  --t-xl: clamp(1.3rem, 1.05rem + .9vw, 1.7rem);
  --t-2xl: clamp(1.42rem, 1.12rem + 1.2vw, 1.95rem);
  --t-3xl: clamp(1.62rem, 1.16rem + 1.9vw, 2.55rem);
  --t-4xl: clamp(1.92rem, 1.28rem + 3.1vw, 3.25rem);

  --display: "Righteous", "Trebuchet MS", "Franklin Gothic Medium", Impact, sans-serif;
  --body: "Heebo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 8% -10%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 62%),
    radial-gradient(820px 560px at 96% 4%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(1100px 700px at 50% 108%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 66%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.68;
  letter-spacing: .002em;
  overflow-x: hidden;
}

/* CRT scanlines, now violet lines printed on daylight rather than a vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background-image:
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--primary) 8%, transparent) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  mix-blend-mode: multiply;
  opacity: .5;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .012em;
  margin: 0 0 var(--s-4);
  text-transform: uppercase;
}

h1 { font-size: var(--t-4xl); text-shadow: 3px 3px 0 color-mix(in srgb, var(--primary) 14%, transparent); }
h2 { font-size: var(--t-3xl); text-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 14%, transparent); }
h3 { font-size: var(--t-xl); text-transform: none; letter-spacing: .01em; }
h4 { font-size: var(--t-lg); text-transform: none; }

p { margin: 0 0 var(--s-4); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.1rem; }
li { margin-bottom: var(--s-2); }

strong { font-weight: 700; color: var(--ink); }

::selection { background: var(--accent); color: #FFFFFF; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -80px;
  z-index: 200;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--display);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: var(--s-4); color: #FFFFFF; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Arcade vocabulary: eyebrow tokens, neon text, cabinet frames
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--s-4);
  padding: 6px 14px 5px;
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  box-shadow: var(--edge-primary);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: blip 1.9s steps(2, end) infinite;
}
.eyebrow--pink { color: var(--accent-deep); border-color: var(--accent-line); box-shadow: var(--edge-accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.eyebrow--pink::before { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }

/* neon as saturated colour with a hard printed offset, no bloom */
.neon { color: var(--primary); text-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 26%, transparent); }
.neon--pink { color: var(--accent); text-shadow: 3px 3px 0 color-mix(in srgb, var(--primary) 26%, transparent); }

.cab {
  position: relative;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface) 46%, var(--bg-lift));
  border: 1px solid var(--violet-line-2);
  border-radius: var(--r-cab);
  box-shadow: var(--inset-cab), var(--lift);
  padding: var(--s-6) var(--s-5) var(--s-5);
  overflow: hidden;
}
/* the marquee light bar across the top of every cabinet */
.cab::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #7C3AED 42%, var(--accent));
}
/* four cabinet bolts */
.cab::after {
  content: "";
  position: absolute;
  inset: 14px 12px auto 12px;
  height: calc(100% - 26px);
  pointer-events: none;
  background-image:
    radial-gradient(circle 3px at 0 0, color-mix(in srgb, var(--muted) 62%, transparent) 60%, transparent 62%),
    radial-gradient(circle 3px at 100% 0, color-mix(in srgb, var(--muted) 62%, transparent) 60%, transparent 62%),
    radial-gradient(circle 3px at 0 100%, color-mix(in srgb, var(--muted) 62%, transparent) 60%, transparent 62%),
    radial-gradient(circle 3px at 100% 100%, color-mix(in srgb, var(--muted) 62%, transparent) 60%, transparent 62%);
  background-repeat: no-repeat;
  opacity: .8;
}

.cab--cyan { border-color: var(--primary-line); }
.cab--pink { border-color: var(--accent-line); }
.cab--pink::before { background: linear-gradient(90deg, var(--accent), #9333EA 50%, var(--primary)); }

/* --------------------------------------------------------------------------
   Buttons: notched arcade caps with a glitch snap on hover
   -------------------------------------------------------------------------- */

.btn {
  --btn-face: linear-gradient(180deg, #6D28D9, var(--primary));
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--display);
  font-size: .96rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFFFF;
  background: var(--btn-face);
  padding: 14px 26px 12px;
  border: 0;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: var(--edge-primary);
  transition: transform .14s steps(2, end), box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  color: #FFFFFF;
  transform: translate(-2px, -2px);
  filter: saturate(1.35);
  box-shadow: 4px 4px 0 var(--accent), var(--edge-primary);
}
.btn:active { transform: translate(1px, 1px); }

.btn--pink { --btn-face: linear-gradient(180deg, var(--accent), #B01B60); color: #FFFFFF; }
.btn--pink:hover { color: #FFFFFF; box-shadow: 4px 4px 0 var(--primary), var(--edge-accent); }

.btn--ghost {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--primary-deep); background: color-mix(in srgb, var(--primary) 12%, transparent); box-shadow: 4px 4px 0 var(--accent-soft); }

.btn--small { font-size: .82rem; padding: 10px 18px 9px; }
.btn--wide { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--violet-line);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  box-shadow: 0 1px 0 var(--violet-line-2), 0 10px 24px rgba(23, 19, 49, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 74px;
  padding-block: var(--s-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.22rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--accent-deep); font-weight: 400; }
.brand:hover { color: var(--ink); }

.nav { margin-left: auto; }
.nav-cta { display: none; }
.nav ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: var(--t-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--display);
  padding: 6px 2px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right .22s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 46px; height: 42px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding: var(--s-9) 0 var(--s-8); overflow: hidden; }
/* the arcade floor grid running to the horizon */
.hero::before {
  content: "";
  position: absolute;
  left: -20%; right: -20%; bottom: -30px;
  height: 320px;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--primary) 34%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 28%, transparent) 1px, transparent 1px);
  background-size: 64px 42px;
  transform: perspective(340px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: var(--s-8);
  align-items: center;
}
.hero h1 {
  margin-bottom: var(--s-5);
  max-width: 22ch;
  text-shadow: 4px 4px 0 color-mix(in srgb, var(--primary) 12%, transparent);
}
.hero h1 .neon--pink { display: inline; }
.lede { font-size: var(--t-lg); color: var(--ink-dim); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0 var(--s-6); }

.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.trust li {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-size: var(--t-sm);
  color: var(--ink-dim);
  margin: 0;
}
.trust svg { width: 22px; height: 22px; flex: none; color: var(--primary); }

/* hero photo inside a cabinet bezel */
.screen {
  position: relative;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--surface-3), var(--bg-deep));
  border: 1px solid var(--primary-line);
  box-shadow: var(--lift);
}
.screen img { border-radius: 10px; filter: saturate(1.12) contrast(1.05); }
.screen::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 10px;
  pointer-events: none;
  background: linear-gradient(200deg, color-mix(in srgb, var(--primary) 26%, transparent), transparent 44%, color-mix(in srgb, var(--accent) 26%, transparent));
  mix-blend-mode: multiply;
}
.screen-tag {
  position: absolute;
  left: 22px; bottom: -18px;
  z-index: 3;
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  padding: 7px 14px 6px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: var(--edge-accent);
}

/* countdown strip under the hero */
.clockbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-8);
  padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--primary-line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  font-size: var(--t-sm);
  color: var(--ink-dim);
}
.digits {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--primary);
  text-shadow: var(--edge-primary);
}
.digits .colon { animation: blip 1.1s steps(2, end) infinite; color: var(--accent); }

/* --------------------------------------------------------------------------
   Sections and grids
   -------------------------------------------------------------------------- */

.section { padding: var(--s-9) 0; position: relative; }
.section--panel {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 45%, transparent));
  border-block: 1px solid var(--violet-line);
}
/* the tinted band. Named dark from the night build, now the deepest violet white
   the daylight scheme allows. */
.section--dark {
  background: linear-gradient(180deg, var(--bg-deep), color-mix(in srgb, var(--bg-deep) 34%, transparent));
  border-block: 1px solid var(--violet-line);
}

.section-head { max-width: 74ch; margin-bottom: var(--s-7); }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; }
.card h3 { margin-bottom: var(--s-3); color: var(--ink); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-dim); font-size: var(--t-sm); }

/* glitch snap on hover, two steps, no easing */
.card:hover, .card:focus-within {
  animation: glitch-snap .26s steps(2, end) 1;
  border-color: var(--primary);
  box-shadow: var(--inset-cab), var(--lift), 4px 4px 0 var(--accent-soft);
}

.cost {
  display: inline-block;
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-top: var(--s-3);
}

/* numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); counter-reset: lane; }
.step { position: relative; padding-left: 76px; }
.step::before {
  counter-increment: lane;
  content: counter(lane, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--primary);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: var(--edge-primary);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-dim); margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--s-8); align-items: center; }

/* feature icons */
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-sm);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--primary) 6%, transparent) 70%);
}
.feature-icon svg {
  width: 26px; height: 26px;
  color: var(--primary);
}
.card:nth-child(even) .feature-icon { border-color: var(--accent-line); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 6%, transparent) 70%); }
.card:nth-child(even) .feature-icon svg { color: var(--accent-deep); }

/* outcome scoreboard */
.score {
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1;
  color: var(--primary);
  text-shadow: 0 4px 0 color-mix(in srgb, var(--primary) 26%, transparent);
  display: block;
  margin-bottom: var(--s-3);
  animation: neon-pulse 4.2s ease-in-out infinite;
}
.score--pink { color: var(--accent); text-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 26%, transparent); }
.score-label { font-family: var(--display); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: var(--s-3); }

/* testimonials */
.testimonial { display: flex; flex-direction: column; height: 100%; }
.testimonial blockquote { margin: 0 0 var(--s-4); font-size: var(--t-lg); color: var(--ink); line-height: 1.5; }
.testimonial blockquote p { color: var(--ink); font-size: inherit; }
.testimonial blockquote p::before { content: "\201C"; color: var(--accent-deep); font-family: var(--display); }
.testimonial blockquote p::after { content: "\201D"; color: var(--accent-deep); font-family: var(--display); }
.who { margin-top: auto; border-top: 1px solid var(--violet-line); padding-top: var(--s-3); }
.who strong { display: block; font-family: var(--display); letter-spacing: .04em; color: var(--primary); font-weight: 400; }
.who span { display: block; font-size: var(--t-sm); color: var(--muted); }
.stars { color: var(--accent-deep); letter-spacing: .18em; font-size: .9rem; margin-bottom: var(--s-3); }

.metrics { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); text-align: center; }
.metrics li { margin: 0; padding: var(--s-5) var(--s-4); border: 1px solid var(--violet-line); border-radius: var(--r-md); background: color-mix(in srgb, var(--bg-deep) 62%, transparent); }
.metrics b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--accent); text-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 24%, transparent); }
.metrics span { font-size: var(--t-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   Pricing cabinets
   -------------------------------------------------------------------------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: stretch; }
.tier { display: flex; flex-direction: column; padding-top: 58px; }
.tier h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.price { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--primary); text-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 24%, transparent); }
.price sub { font-family: var(--body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); bottom: 0; margin-left: 6px; }
.tier ul { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; font-size: var(--t-sm); color: var(--ink-dim); margin: 0; }
.tier li::before { content: "\25B8"; color: var(--accent-deep); flex: none; }
.tier .btn { margin-top: auto; }
.tier--best { border-color: var(--accent); box-shadow: var(--inset-cab), var(--lift), 0 0 0 3px var(--accent-soft); }
.tier--best::before { background: linear-gradient(90deg, var(--accent), var(--primary)); }
.tier--best .price { color: var(--accent); text-shadow: var(--edge-accent); }
.ribbon {
  position: absolute;
  top: 18px; right: -1px;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  padding: 6px 14px 5px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: var(--edge-accent);
}
.billing-note { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq-list { display: grid; gap: var(--s-3); }
.faq-item { border: 1px solid var(--violet-line-2); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.04rem;
  letter-spacing: .02em;
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
}
.faq-q:hover { color: var(--primary); }
.faq-q .plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .2s ease, opacity .2s ease;
}
.faq-q .plus::before { inset: 9px 0 9px 0; height: 2px; }
.faq-q .plus::after { inset: 0 9px 0 9px; width: 2px; }
.faq-q[aria-expanded="true"] { color: var(--primary); }
.faq-q[aria-expanded="true"] .plus::after { transform: scaleY(0); opacity: 0; }
.faq-a { padding: 0 var(--s-5) var(--s-5); color: var(--ink-dim); font-size: var(--t-sm); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: var(--s-8); align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--violet-line-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 26%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.err { font-size: .8rem; color: var(--accent-deep); min-height: 1.1em; }
.consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; grid-column: 1 / -1; font-size: var(--t-sm); color: var(--ink-dim); }
.consent label { flex: 1 1 260px; }
.consent .err { flex-basis: 100%; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--accent); }
.form-note { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-4); }

.hook-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.hook-list li { display: flex; gap: 10px; color: var(--ink-dim); font-size: var(--t-sm); }
.hook-list li::before { content: "\25C6"; color: var(--primary); }

/* --------------------------------------------------------------------------
   Author byline, prose pages, footer
   -------------------------------------------------------------------------- */

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-8);
  padding: var(--s-5);
  border: 1px solid var(--violet-line-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--t-sm);
  color: var(--ink-dim);
}
.byline strong { font-family: var(--display); font-weight: 400; letter-spacing: .04em; }

.prose { max-width: 78ch; }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose li { color: var(--ink-dim); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-5); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--violet-line); font-size: var(--t-sm); }
.prose th { font-family: var(--display); font-weight: 400; color: var(--primary); letter-spacing: .06em; }

.page-head { padding: var(--s-8) 0 var(--s-6); border-bottom: 1px solid var(--violet-line); }
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

.portrait {
  border-radius: var(--r-md);
  border: 2px solid var(--primary-line);
  box-shadow: var(--lift);
}

.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-7); align-items: start; }
.profiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.profiles a { font-size: var(--t-sm); }

.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.map-grid h2 { font-size: var(--t-xl); color: var(--primary); letter-spacing: .06em; }
.map-grid dl { margin: 0; }
.map-grid dt { font-family: var(--display); color: var(--primary); margin-top: var(--s-4); }
.map-grid dd { margin: 0 0 var(--s-2); color: var(--ink-dim); font-size: var(--t-sm); }

/* The single dark element the scheme keeps: the cabinet base under a daylight
   arcade. Everything above it is light. */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--s-9);
  border-top: 5px solid var(--accent);
  background: linear-gradient(180deg, var(--night-2), var(--night));
  color: var(--night-ink);
  padding: var(--s-8) 0 var(--s-5);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-6); }
.footer-grid h2 { font-size: .84rem; letter-spacing: .18em; color: var(--night-key); text-shadow: none; margin-bottom: var(--s-4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid li { font-size: var(--t-sm); color: var(--night-dim); margin: 0; }
.footer-grid a { color: #DCD5F4; text-decoration: none; font-size: var(--t-sm); }
.footer-grid a:hover { color: #FF93C3; }
.footer-brand p { font-size: var(--t-sm); color: var(--night-dim); max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: var(--s-4); }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--r-sm);
  color: var(--night-key);
  transition: transform .14s steps(2, end), border-color .2s ease, box-shadow .2s ease;
}
.socials a:hover { transform: translate(-2px, -2px); border-color: #FF93C3; box-shadow: 3px 3px 0 rgba(219, 39, 119, .5); color: #FF93C3; }
.socials svg { width: 19px; height: 19px; }
.site-footer .brand { color: var(--night-ink); }
.site-footer .brand:hover { color: #FFFFFF; }
.site-footer .brand b { color: #FF93C3; }
.site-footer .brand svg { color: var(--night-key); }
/* the mark is inked for daylight, so it is relit on the dark base: the token
   frame takes the footer key violet, the signature the footer pink */
.site-footer .brand svg path:nth-child(1) { stroke: var(--night-key); }
.site-footer .brand svg path:nth-child(2) { stroke: #FF93C3; }
.site-footer .brand svg circle { fill: var(--night-key); }

.base-bar {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--t-xs);
  color: var(--night-dim);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes blip { 0%, 45% { opacity: 1; } 46%, 100% { opacity: .18; } }

/* the pulse now rides saturation, because brightness would only wash the
   colour out against a light ground */
@keyframes neon-pulse {
  0%, 100% { filter: saturate(1); }
  48% { filter: saturate(1.5); }
}

@keyframes glitch-snap {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3px, 2px); }
  66% { transform: translate(3px, -2px); }
  100% { transform: translate(0, 0); }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.stagger.is-in > *:nth-child(6) { transition-delay: .4s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--violet-line-2);
    box-shadow: 0 14px 28px rgba(23, 19, 49, .12);
    padding: var(--s-4) 1.2rem var(--s-5);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: var(--s-3); }
  .nav-cta { display: block; margin-top: var(--s-2); }
  .nav-cta a { width: 100%; justify-content: center; }
  .header-cta { display: none; }
  .hero-grid, .split, .contact-grid, .author-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .grid--3, .tiers, .metrics, .map-grid { grid-template-columns: 1fr; }
  .section { padding: var(--s-8) 0; }
  .hero { padding-top: var(--s-7); }
}

@media (max-width: 620px) {
  .grid--2, .grid--4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: var(--s-5); }
  .step { padding-left: 62px; }
  .step::before { width: 46px; height: 46px; font-size: 1.1rem; }
  .base-bar { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .wrap { width: min(100% - 1.4rem, var(--wrap)); }
  .brand { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .card:hover, .card:focus-within { animation: none; }
}

@media print {
  body { background: #FFFFFF; color: #171331; }
  .site-header, .site-footer, .btn { display: none; }
}

/* --------------------------------------------------------------------------
   Reset Time, the magazine
   Built from the same tokens as the rest of the cabinet: violet white paper,
   electric violet strip light, pink edge, Righteous over Heebo.
   -------------------------------------------------------------------------- */

.mag-head { padding: var(--s-8) 0 var(--s-6); border-bottom: 1px solid var(--violet-line); }
.mag-head .lede { max-width: 68ch; }
.mag-head h1 { max-width: 22ch; }

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  align-items: stretch;
}

.mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--violet-line-2);
  border-radius: var(--r-cab);
  background: linear-gradient(180deg, var(--surface), var(--bg-lift));
  box-shadow: var(--inset-cab), 0 2px 6px rgba(23, 19, 49, .05);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mag-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 2;
}

.mag-card:hover, .mag-card:focus-within {
  transform: translate(-2px, -2px);
  border-color: var(--primary);
  box-shadow: var(--inset-cab), 4px 4px 0 var(--accent-soft), var(--lift);
}

.mag-card__media { position: relative; overflow: hidden; background: var(--bg-deep); }
.mag-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
  transition: transform .4s ease;
}
.mag-card:hover .mag-card__media img { transform: scale(1.035); }
.mag-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 246, 254, 0) 46%, color-mix(in srgb, var(--bg) 62%, transparent));
  pointer-events: none;
}

.mag-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); gap: var(--s-3); }

.mag-tag {
  align-self: flex-start;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  padding: 4px 11px 3px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.mag-card h2, .mag-card h3 {
  font-size: var(--t-lg);
  line-height: 1.16;
  text-transform: none;
  letter-spacing: .008em;
  margin: 0;
  text-shadow: none;
}
.mag-card h2 a, .mag-card h3 a { color: var(--ink); text-decoration: none; }
.mag-card h2 a:hover, .mag-card h3 a:hover { color: var(--primary); }

.mag-card p { color: var(--ink-dim); font-size: var(--t-sm); margin: 0; }

.mag-meta {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--violet-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--display);
  color: var(--muted);
}
.mag-meta .dot { color: var(--accent-deep); }

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-color: var(--accent-line); }
.mag-card.lead::before { background: linear-gradient(90deg, var(--accent), #9333EA 50%, var(--primary)); }
.mag-card.lead .mag-card__media { flex: 1 1 56%; }
.mag-card.lead .mag-card__media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card__body { flex: 1 1 44%; justify-content: center; padding: var(--s-7) var(--s-6); gap: var(--s-4); }
.mag-card.lead h2, .mag-card.lead h3 { font-size: var(--t-2xl); font-family: var(--display); text-transform: uppercase; letter-spacing: .014em; }
.mag-card.lead p { font-size: var(--t-base); }
.mag-card.lead .mag-tag { color: var(--accent-deep); border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---- article page ---- */

.art-head { padding: var(--s-8) 0 var(--s-5); }
.art-head .wrap > * { max-width: 68ch; }
.art-head h1 { font-size: var(--t-3xl); max-width: 24ch; }

.standfirst {
  font-size: var(--t-lg);
  color: var(--ink-dim);
  line-height: 1.58;
  margin-bottom: var(--s-5);
}

.art-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--violet-line);
  font-size: var(--t-sm);
  color: var(--muted);
}
.art-byline strong { font-family: var(--display); font-weight: 400; letter-spacing: .05em; color: var(--ink); }
.art-byline a { text-decoration: none; }
.art-byline .dot { color: var(--accent-deep); }

.art-figure {
  margin: 0 0 var(--s-6);
  border: 1px solid var(--violet-line-2);
  border-radius: var(--r-cab);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--inset-cab), var(--lift);
}
.art-figure img { width: 100%; filter: saturate(1.1) contrast(1.04); }
.art-figure figcaption {
  padding: var(--s-3) var(--s-5);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--display);
  color: var(--muted);
  border-top: 1px solid var(--violet-line);
}

.art-body { max-width: 68ch; margin-inline: auto; line-height: 1.72; }
.art-body > p { margin: 0 0 var(--s-5); color: var(--ink-dim); }
.art-body > p > strong { color: var(--ink); }
.art-body h2 {
  font-size: var(--t-2xl);
  margin: var(--s-8) 0 var(--s-4);
  padding-left: var(--s-4);
  border-left: 3px solid var(--accent);
  text-shadow: none;
}
.art-body h3 { font-size: var(--t-xl); margin: var(--s-6) 0 var(--s-3); color: var(--primary); }
.art-body ul, .art-body ol { margin: 0 0 var(--s-5); padding-left: 1.3rem; }
.art-body li { color: var(--ink-dim); margin-bottom: var(--s-3); }
.art-body li::marker { color: var(--primary); }
.art-body blockquote {
  margin: 0 0 var(--s-5);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border: 1px solid var(--accent-line);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  color: var(--ink);
  font-size: var(--t-lg);
  line-height: 1.5;
}
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-5); }
.art-body th, .art-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--violet-line); font-size: var(--t-sm); }
.art-body th { font-family: var(--display); font-weight: 400; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; }
.art-body td { color: var(--ink-dim); }
.art-table-scroll { overflow-x: auto; }

.inline-read {
  margin: 0 0 var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--primary-line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  font-size: var(--t-sm);
  font-family: var(--display);
  letter-spacing: .03em;
  color: var(--ink-dim);
}
.inline-read a { color: var(--primary); text-decoration: none; }
.inline-read a:hover { color: var(--accent-deep); text-decoration: underline; }

.mag-cta {
  max-width: 68ch;
  margin: var(--s-8) auto 0;
  padding: var(--s-6);
  border: 2px solid var(--accent-line);
  border-radius: var(--r-cab);
  background:
    radial-gradient(520px 220px at 12% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--surface-3));
  box-shadow: var(--inset-cab), var(--lift);
}
.mag-cta h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.mag-cta p { color: var(--ink-dim); font-size: var(--t-sm); }
.mag-cta .btn { margin-top: var(--s-2); }

.author-box {
  max-width: 68ch;
  margin: var(--s-7) auto 0;
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--s-5);
  align-items: start;
  border: 1px solid var(--violet-line-2);
  border-radius: var(--r-cab);
  background: var(--surface);
  box-shadow: var(--inset-cab), 0 2px 6px rgba(23, 19, 49, .05);
}
.author-box img {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--edge-primary);
}
.author-box h2 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.author-box p { color: var(--ink-dim); font-size: var(--t-sm); }
.author-box p:last-child { margin-bottom: 0; }

.readalso { margin-top: var(--s-9); padding-top: var(--s-7); border-top: 1px solid var(--violet-line); }
.readalso > h2 { font-size: var(--t-2xl); margin-bottom: var(--s-6); }
.ra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.ra-card { display: flex; flex-direction: column; }
.ra-card .mag-card__body { padding: var(--s-4); }
.ra-card h3 { font-size: var(--t-base); }
.ra-card p { font-size: var(--t-xs); line-height: 1.55; }

.mag-more { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (max-width: 900px) {
  .mag-grid, .ra-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card__media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card__body { padding: var(--s-5); }
  .art-head { padding-top: var(--s-7); }
}

@media (max-width: 620px) {
  .mag-grid, .ra-grid { grid-template-columns: 1fr; }
  .art-body h2 { padding-left: var(--s-3); }
  .author-box { grid-template-columns: 1fr; gap: var(--s-4); }
  .author-box img { width: 88px; height: 88px; }
  .mag-cta { padding: var(--s-5); }
  .art-byline { font-size: var(--t-xs); }
  .mag-more .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .mag-card__body { padding: var(--s-4); }
  .art-head h1 { font-size: var(--t-2xl); }
  .mag-meta { letter-spacing: .06em; }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .18); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
