/* =========================================================================
   mygamingpc.ca — site.css
   Single global stylesheet. Organised:
     1. Tokens (custom properties)
     2. Reset / base
     3. Typography & prose
     4. Layout primitives
     5. Honeycomb / decorative motif
     6. Components
     7. Page archetypes (A homepage · B product · C best-for ·
        D parental-controls guide · E education · F hub · G tool · H legal)
     8. Forms & lead capture
     9. Utilities
    10. Reduced-motion / print

   Tokens are the only source of truth. No raw hex codes below :root.
   Last updated: 2026-05-05
   ========================================================================= */

/* 1. TOKENS ============================================================== */
:root {
  /* Brand */
  --c-purple:        #5B2BD9;
  --c-purple-deep:   #2D1B6B;
  --c-purple-tint:   #F5F2FF;
  --c-gold:          #F5B800;

  /* Ink */
  --c-ink:           #0F0B1F;
  --c-body:          #2A2438;
  --c-muted:         #6B6582;

  /* Surfaces */
  --c-surface:       #FFFFFF;
  --c-surface-alt:   #FBF9FF;
  --c-border:        #E5E0F0;

  /* Semantic (kept thin — we only need a few) */
  --c-warn:          #B45309;
  --c-warn-bg:       #FFF7E6;
  --c-success:       #146C43;
  --c-success-bg:    #E8F5EE;

  /* Build accents (B archetype subtle hierarchy) */
  --c-build-starter: #8A6BE6;
  --c-build-family:  #5B2BD9;
  --c-build-plus:    #2D1B6B;

  /* Type */
  --font-display: "Bricolage Grotesque", "Archivo Black",
                   ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system,
                   "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular",
                   Menlo, Consolas, monospace;

  /* Fluid type scale */
  --step--1: clamp(0.875rem, 0.85rem + 0.13vw, 0.95rem);
  --step-0:  clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.4vw,  1.35rem);
  --step-2:  clamp(1.35rem,  1.2rem  + 0.75vw, 1.7rem);
  --step-3:  clamp(1.65rem,  1.4rem  + 1.25vw, 2.2rem);
  --step-4:  clamp(2rem,     1.6rem  + 2vw,    2.85rem);
  --step-5:  clamp(2.5rem,   1.9rem  + 3vw,    3.75rem);

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.25rem;
  --space-xl:  3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  /* Layout */
  --measure:        65ch;
  --container:      72rem;     /* 1152px */
  --container-narrow: 48rem;   /* 768px  */
  --container-wide:   80rem;   /* 1280px */
  --gutter:         clamp(1rem, 4vw, 2rem);

  /* Radii */
  --radius-xs: 4px;
  --radius-s:  8px;
  --radius-m:  12px;
  --radius-l:  20px;
  --radius-pill: 999px;

  /* Elevation — restrained, never glassmorphic */
  --shadow-1: 0 1px 2px rgba(15, 11, 31, 0.06),
              0 1px 3px rgba(15, 11, 31, 0.04);
  --shadow-2: 0 4px 12px rgba(15, 11, 31, 0.08),
              0 2px 4px rgba(15, 11, 31, 0.04);
  --shadow-3: 0 12px 32px rgba(45, 27, 107, 0.12),
              0 4px 8px rgba(15, 11, 31, 0.06);
  --shadow-focus: 0 0 0 3px rgba(91, 43, 217, 0.35);

  /* Motion */
  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur:      200ms;
  --dur-slow: 360ms;

  /* Z */
  --z-base:    1;
  --z-sticky:  10;
  --z-overlay: 100;
  --z-modal:   1000;
}

/* 2. RESET / BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, picture { display: block; max-width: 100%; height: auto; }
img, picture { background: var(--c-surface-alt); }
svg { fill: currentColor; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

a {
  color: var(--c-purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--c-purple-deep); }
a:focus-visible {
  outline: 2px solid var(--c-purple);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--c-purple); color: #fff; }

hr {
  border: 0;
  height: 1px;
  background: var(--c-border);
  margin: var(--space-l) 0;
}

/* Skip link — paired with header.php skip-to-content */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: #fff;
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-s);
  z-index: var(--z-modal);
}
.skip-link:focus {
  left: var(--space-s); top: var(--space-s);
  outline: 2px solid var(--c-gold);
}

/* 3. TYPOGRAPHY ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }
h6 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.06em; }

p, ul, ol, dl, blockquote {
  margin: 0 0 var(--space-m);
}

p { text-wrap: pretty; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--space-3xs); }

blockquote {
  border-left: 3px solid var(--c-purple);
  padding: var(--space-2xs) var(--space-m);
  color: var(--c-ink);
  font-size: var(--step-1);
  font-style: normal;
}

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }
code {
  background: var(--c-purple-tint);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-xs);
}
pre {
  background: var(--c-ink);
  color: #EDE9FE;
  padding: var(--space-m);
  border-radius: var(--radius-m);
  overflow-x: auto;
}

small, .text-small { font-size: var(--step--1); color: var(--c-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: var(--space-xs);
}

.lede {
  font-size: var(--step-1);
  color: var(--c-ink);
  max-width: var(--measure);
  margin-bottom: var(--space-m);
}

.prose {
  max-width: var(--measure);
}
.prose > * + * { margin-top: var(--space-m); }
.prose > h2 { margin-top: var(--space-xl); }
.prose > h3 { margin-top: var(--space-l); }
.prose img,
.prose figure {
  margin: var(--space-l) 0;
  border-radius: var(--radius-m);
  border: 1px solid var(--c-border);
}
.prose figcaption {
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-top: var(--space-2xs);
}

/* 4. LAYOUT PRIMITIVES =================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.section {
  padding-block: var(--space-2xl);
}
.section--tight { padding-block: var(--space-xl); }
.section--loose { padding-block: var(--space-3xl); }

.section--tint  { background: var(--c-purple-tint); }
.section--ink   { background: var(--c-ink); color: #EDE9FE; }
.section--ink :is(h1,h2,h3,h4,h5,h6) { color: #fff; }

.stack > * + * { margin-top: var(--space-m); }
.stack-s > * + * { margin-top: var(--space-s); }
.stack-l > * + * { margin-top: var(--space-l); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  align-items: center;
}

.grid {
  display: grid;
  gap: var(--space-m);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.split {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .split--reverse > :first-child { order: 2; }
}

/* 5. HONEYCOMB MOTIF ===================================================== */
.honeycomb-bg {
  position: relative;
  isolation: isolate;
}
.honeycomb-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/assets/img/honeycomb-pattern.svg");
  background-size: 240px 208px;
  background-repeat: repeat;
  color: var(--c-purple);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.honeycomb-bg--dark::before { color: var(--c-gold); opacity: 0.06; }

.hex-bullet {
  list-style: none;
  padding-left: 0;
}
.hex-bullet > li {
  position: relative;
  padding-left: 1.6rem;
}
.hex-bullet > li + li { margin-top: var(--space-xs); }
.hex-bullet > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.7rem; height: 0.8rem;
  background: var(--c-purple);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-bullet--gold > li::before { background: var(--c-gold); }

.hex-divider {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  justify-content: center;
  margin-block: var(--space-l);
  color: var(--c-purple);
  opacity: 0.5;
}
.hex-divider::before,
.hex-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
  max-width: 6rem;
}
.hex-divider span {
  width: 0.8rem; height: 0.9rem;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: inline-block;
}

/* 6. COMPONENTS ========================================================== */

/* 6.1 Site header / footer */
.site-header {
  position: sticky; top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand__hex {
  width: 1.5rem; height: 1.7rem;
  background: var(--c-purple);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.brand strong { color: var(--c-purple); }

.nav-primary {
  display: none;
  margin-left: auto;
  gap: var(--space-m);
  align-items: center;
}
.nav-primary a:not(.btn) {
  color: var(--c-body);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2xs) 0;
  border-bottom: 2px solid transparent;
}
.nav-primary a:not(.btn):hover,
.nav-primary a:not(.btn)[aria-current="page"] {
  color: var(--c-ink);
  border-bottom-color: var(--c-purple);
}
.nav-primary a.btn--primary,
.nav-primary a.btn--primary:visited {
  color: #fff;
  padding: 0.55rem 1.1rem;
  font-size: var(--step-0);
}
.nav-primary a.btn--primary:hover {
  color: #fff;
}
@media (min-width: 56rem) {
  .nav-primary { display: flex; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  margin-left: auto;
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  border: 1px solid var(--c-border);
  background: none;
  cursor: pointer;
}
.nav-toggle:focus-visible { box-shadow: var(--shadow-focus); outline: 0; }
@media (min-width: 56rem) {
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--c-border);
  padding: var(--space-s) 0;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--c-border);
}

.site-footer {
  background: var(--c-ink);
  color: #C4BBE0;
  padding-block: var(--space-2xl) var(--space-l);
  margin-top: var(--space-3xl);
}
.site-footer a { color: #EDE9FE; }
.site-footer h2,
.site-footer h3 { color: #fff; font-size: var(--step-0); margin-bottom: var(--space-s); }
.site-footer__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin-bottom: var(--space-l);
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--step--1);
  color: #9C95B5;
  align-items: center;
  justify-content: space-between;
}

/* 6.2 Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:hover { border-color: var(--c-purple); color: var(--c-purple); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 0; box-shadow: var(--shadow-focus); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}

.btn--primary {
  background: var(--c-purple);
  border-color: var(--c-purple);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-purple-deep);
  border-color: var(--c-purple-deep);
  color: #fff;
}

.btn--secondary {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--c-purple-deep);
  border-color: var(--c-purple-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--c-purple);
  padding-inline: var(--space-2xs);
}
.btn--ghost:hover { color: var(--c-purple-deep); background: var(--c-purple-tint); }

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: var(--step-1);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Arrow affordance — pure CSS */
.btn--arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.btn--arrow:hover::after { transform: translateX(3px); }

/* 6.3 Cards */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--c-purple);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card a { text-decoration: none; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--c-body); }
.card__meta {
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-top: auto;
}

/* card variants */
.card--build {
  border-radius: var(--radius-l);
  border-width: 2px;
  padding: var(--space-l);
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.card--build[data-tier="starter"] { border-color: var(--c-build-starter); }
.card--build[data-tier="family"]  { border-color: var(--c-build-family); }
.card--build[data-tier="plus"]    { border-color: var(--c-build-plus); }
.card--build .card__price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--c-ink);
  line-height: 1;
}
.card--build .card__tier {
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-purple);
}
.card--build[data-tier="plus"] .card__tier { color: var(--c-purple-deep); }

.card--guide {
  border-color: var(--c-border);
}
.card--guide .card__platform {
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

.card--learn { background: var(--c-surface-alt); }

/* 6.4 Callouts */
.callout {
  border-radius: var(--radius-m);
  padding: var(--space-m);
  border-left: 4px solid var(--c-purple);
  background: var(--c-purple-tint);
  color: var(--c-ink);
  margin-block: var(--space-l);
}
.callout > :last-child { margin-bottom: 0; }
.callout__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-purple);
  margin-bottom: var(--space-2xs);
}

.callout--parent { border-left-color: var(--c-purple); background: var(--c-purple-tint); }
.callout--parent .callout__label::before { content: "For parents · "; }

.callout--kid { border-left-color: var(--c-gold); background: #FFF8E1; }
.callout--kid .callout__label { color: #8C6500; }
.callout--kid .callout__label::before { content: "For your kid · "; }

.callout--warning { border-left-color: var(--c-warn); background: var(--c-warn-bg); }
.callout--warning .callout__label { color: var(--c-warn); }

.callout--verified {
  border-left-color: var(--c-success);
  background: var(--c-success-bg);
}
.callout--verified .callout__label { color: var(--c-success); }

/* 6.5 Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: var(--space-s) var(--space-m);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  font-family: var(--font-display);
  font-weight: 800;
  width: 30%;
  color: var(--c-ink);
  background: var(--c-surface-alt);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spec-table td .spec__note {
  display: block;
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-top: var(--space-3xs);
}

/* 6.6 Compare strip — the 3-build comparison row */
.compare-strip {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .compare-strip { grid-template-columns: repeat(3, 1fr); }
}
.compare-strip__col {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  position: relative;
}
.compare-strip__col[data-tier="starter"] { border-color: var(--c-build-starter); }
.compare-strip__col[data-tier="family"] {
  border-color: var(--c-build-family);
  box-shadow: var(--shadow-3);
}
.compare-strip__col[data-tier="plus"]    { border-color: var(--c-build-plus); }
.compare-strip__col[data-recommended="true"]::before {
  content: "Most parents pick this";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  /* Never wider than the card minus a small inset — prevents the pill
     from spilling past either card edge at narrower viewports. */
  max-width: calc(100% - 1rem);
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(15, 11, 31, 0.12);
}
/* On tight viewports allow the pill to wrap to two lines instead of
   overflowing — kept readable, never wider than the card. */
@media (max-width: 64rem) {
  .compare-strip__col[data-recommended="true"]::before {
    white-space: normal;
    text-align: center;
  }
}
.compare-strip__price {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--c-ink);
  line-height: 1;
}
.compare-strip__price small {
  font-size: var(--step-0);
  color: var(--c-muted);
  font-family: var(--font-body);
  font-weight: 400;
}
.compare-strip__list { margin: 0; }

/* 6.7 Lead form */
.lead-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  box-shadow: var(--shadow-1);
}
.lead-form--inline { background: var(--c-purple-tint); }
.lead-form h2,
.lead-form h3 { margin-top: 0; }

.lead-form__row {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .lead-form__row--two { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}
.field label {
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--c-ink);
}
.field input,
.field select,
.field textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-s);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--c-purple);
  box-shadow: var(--shadow-focus);
}
.field--error input,
.field--error select,
.field--error textarea { border-color: var(--c-warn); }
.field__hint { font-size: var(--step--1); color: var(--c-muted); }
.field__error { font-size: var(--step--1); color: var(--c-warn); }
.field__check { display: flex; flex-direction: row; align-items: flex-start; gap: var(--space-2xs); }
.field__check input { margin-top: 0.25rem; }
.field__check label { font-weight: 400; color: var(--c-body); }

/* 6.8 Breadcrumbs */
.breadcrumbs {
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-bottom: var(--space-m);
}
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: var(--space-3xs);
  list-style: none; padding: 0; margin: 0;
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: var(--space-3xs);
  color: var(--c-muted);
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-purple); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-ink); font-weight: 500; }

/* 6.9 FAQ */
.faq { display: flex; flex-direction: column; gap: var(--space-2xs); }
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  background: var(--c-surface);
  padding: 0;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--c-purple); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: var(--space-s) var(--space-m);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--c-purple);
  font-size: var(--step-2);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a {
  padding: 0 var(--space-m) var(--space-m);
  color: var(--c-body);
}
.faq__a > :last-child { margin-bottom: 0; }

/* 6.10 Last-verified stamp — demoted to a muted footer line.
   Was a green pill that overlapped card text; now a quiet meta string. */
.last-verified {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-muted);
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: var(--space-xs);
}
.last-verified::before { content: none; }

/* 6.11 Founder card */
.founder-card {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  position: relative;
  overflow: hidden;
}
@media (min-width: 48rem) {
  .founder-card { grid-template-columns: 14rem 1fr; }
}
.founder-card__avatar {
  width: 12rem; height: auto;
  margin-inline: auto;
}
.founder-card__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--c-ink);
  margin-bottom: var(--space-2xs);
}
.founder-card__role {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: var(--space-s);
  font-weight: 600;
}

/* 6.12 Game tile grid (product B archetype: "what it runs well") */
.game-tiles {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}
.game-tile {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: var(--space-s);
  text-align: center;
}
.game-tile__name {
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--c-ink);
  margin-bottom: var(--space-3xs);
}
.game-tile__perf {
  font-size: var(--step--1);
  color: var(--c-muted);
  font-weight: 500;
}
.game-tile__perf strong { color: var(--c-purple); font-weight: 700; }

/* 6.13 Trust signals row */
.trust-row {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  text-align: left;
}
.trust-row__item {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
}
.trust-row__hex {
  flex: 0 0 auto;
  width: 2.25rem; height: 2.5rem;
  background: var(--c-purple-tint);
  color: var(--c-purple);
  display: inline-flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-family: var(--font-display);
}
.trust-row__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--c-ink);
  margin-bottom: var(--space-3xs);
}
.trust-row__text { font-size: var(--step--1); color: var(--c-muted); margin: 0; }

/* 7. PAGE ARCHETYPES ===================================================== */

/* A — Homepage */
.arch-home__hero {
  position: relative;
  padding-block: var(--space-2xl) var(--space-xl);
}
.arch-home__hero h1 {
  font-size: var(--step-5);
  max-width: 18ch;
}
.arch-home__hero .lede { max-width: 48ch; }
.arch-home__hero-cta {
  display: flex; flex-wrap: wrap; gap: var(--space-s);
  margin-top: var(--space-l);
}
.arch-home__compare { padding-block: var(--space-xl); }

/* B — Product page */
.arch-product__hero {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  padding-block: var(--space-xl);
}
@media (min-width: 56rem) {
  .arch-product__hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}
.arch-product__price {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--c-ink);
  line-height: 1;
  margin-block: var(--space-s) var(--space-2xs);
}
.arch-product__price-note {
  display: block;
  font-size: var(--step--1);
  color: var(--c-muted);
}
.arch-product__photo {
  background: var(--c-surface-alt);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-border);
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.arch-product[data-tier="starter"] .arch-product__price { color: var(--c-build-starter); }
.arch-product[data-tier="family"]  .arch-product__price { color: var(--c-build-family); }
.arch-product[data-tier="plus"]    .arch-product__price { color: var(--c-build-plus); }

/* C — Best-for lander */
.arch-best__hero {
  padding-block: var(--space-xl);
}
.arch-best__answer {
  background: var(--c-purple-tint);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  border-left: 4px solid var(--c-purple);
}
.arch-best__answer h2 { margin-top: 0; }

/* D — Parental control guide */
.arch-guide {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  padding-block: var(--space-l);
}
@media (min-width: 64rem) {
  .arch-guide { grid-template-columns: minmax(0, 1fr) 16rem; }
}
.arch-guide__main { max-width: var(--measure); }
.arch-guide__main h2 { margin-top: var(--space-xl); }
.arch-guide__aside {
  position: sticky; top: 5rem;
  align-self: start;
  font-size: var(--step--1);
}
.arch-guide__toc {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: var(--space-m);
}
.arch-guide__toc h2 {
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-2xs);
  color: var(--c-purple);
}
.arch-guide__toc ol { list-style: none; padding: 0; margin: 0; }
.arch-guide__toc a { color: var(--c-body); text-decoration: none; display: block; padding: var(--space-3xs) 0; }
.arch-guide__toc a:hover,
.arch-guide__toc a[aria-current="true"] { color: var(--c-purple); }

.arch-guide__steps { counter-reset: step; padding-left: 0; list-style: none; }
.arch-guide__steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--space-l);
}
.arch-guide__steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2.25rem;
  background: var(--c-purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step-0);
  display: inline-flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.arch-guide__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-s);
  align-items: center;
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-bottom: var(--space-m);
}

/* E — Education article */
.arch-learn {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  padding-block: var(--space-l);
}
@media (min-width: 64rem) {
  .arch-learn { grid-template-columns: minmax(0, 1fr) 16rem; }
}
.arch-learn__main { max-width: var(--measure); }
.arch-learn__main .lede { font-size: var(--step-2); color: var(--c-ink); }
.arch-learn__main h2 { margin-top: var(--space-xl); }
.arch-learn__main h2::before {
  content: "";
  display: block;
  width: 1.2rem; height: 0.25rem;
  background: var(--c-gold);
  margin-bottom: var(--space-2xs);
  border-radius: 2px;
}

/* F — Hub */
.arch-hub__intro {
  max-width: var(--measure);
  margin-bottom: var(--space-xl);
}
.arch-hub__grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

/* G — Tool */
.arch-tool__panel {
  background: var(--c-surface);
  border: 2px solid var(--c-purple);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  box-shadow: var(--shadow-2);
}
.arch-tool__panel h2 { margin-top: 0; }
.arch-tool__steps {
  display: grid; gap: var(--space-m);
}
.arch-tool__result {
  background: var(--c-purple-tint);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  border-left: 4px solid var(--c-purple);
}
.arch-tool__limits {
  margin-top: var(--space-l);
  font-size: var(--step--1);
  color: var(--c-muted);
}

/* H — Legal / utility */
.arch-legal {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-block: var(--space-xl);
}
.arch-legal h1 { font-size: var(--step-3); }
.arch-legal h2 { font-size: var(--step-2); margin-top: var(--space-xl); }
.arch-legal__updated {
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-bottom: var(--space-l);
}

/* 8. UTILITIES =========================================================== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.text-muted { color: var(--c-muted); }
.text-ink { color: var(--c-ink); }
.text-purple { color: var(--c-purple); }

.bg-tint { background: var(--c-purple-tint); }
.bg-surface-alt { background: var(--c-surface-alt); }
.bg-ink { background: var(--c-ink); color: #EDE9FE; }

.rounded { border-radius: var(--radius-m); }
.rounded-l { border-radius: var(--radius-l); }
.shadow-1 { box-shadow: var(--shadow-1); }
.shadow-2 { box-shadow: var(--shadow-2); }

.mt-0 { margin-top: 0; }
.mt-s { margin-top: var(--space-s); }
.mt-m { margin-top: var(--space-m); }
.mt-l { margin-top: var(--space-l); }
.mb-0 { margin-bottom: 0; }
.mb-s { margin-bottom: var(--space-s); }
.mb-m { margin-bottom: var(--space-m); }
.mb-l { margin-bottom: var(--space-l); }

.hidden { display: none !important; }
@media (max-width: 47.99rem) { .hidden-sm { display: none !important; } }
@media (min-width: 48rem)    { .hidden-md { display: none !important; } }

/* 9. REDUCED-MOTION / PRINT ============================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   v2 layout repairs — learn archetype + FAQ markup fallbacks.
   Pages render <article class="arch-learn"> directly under <main> with
   no .container wrapper and no .arch-learn__main child. The original
   archetype rule turned this into a broken 2-col grid edge-to-edge.
   These rules make the archetype self-contained and forgiving.
   ========================================================================= */

.arch-learn {
  display: block;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--space-xl);
}

/* Re-enable the two-column variant only when the inner main wrapper is
   actually present. Pages that don't use it stay single-column. */
@supports (selector(:has(*))) {
  .arch-learn:has(> .arch-learn__main) {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
  }
  @media (min-width: 64rem) {
    .arch-learn:has(> .arch-learn__main) {
      grid-template-columns: minmax(0, 1fr) 16rem;
    }
  }
}

.arch-learn > * {
  max-width: var(--measure);
}
.arch-learn > .spec-table,
.arch-learn .learn-section > .spec-table,
.arch-learn .learn-section .spec-table {
  max-width: 100%;
}

.learn-hero {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--c-border);
}
.learn-hero h1 {
  font-size: var(--step-4);
  margin-bottom: var(--space-m);
}
.arch-learn .lede,
.learn-hero .lede {
  font-size: var(--step-1);
  color: var(--c-ink);
  max-width: var(--measure);
}

.learn-section {
  margin-top: var(--space-xl);
  scroll-margin-top: 6rem;
}
.learn-section + .learn-section {
  margin-top: var(--space-2xl);
}
.learn-section h2 {
  font-size: var(--step-3);
  margin-bottom: var(--space-m);
  padding-top: var(--space-s);
  position: relative;
}
.learn-section h2::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 0.25rem;
  background: var(--c-gold);
  border-radius: 2px;
  margin-bottom: var(--space-s);
}
.learn-section h3 {
  font-size: var(--step-2);
  margin-top: var(--space-l);
  margin-bottom: var(--space-xs);
}
.learn-section p,
.learn-section ul,
.learn-section ol {
  max-width: var(--measure);
}
.learn-section .spec-table {
  max-width: 100%;
  margin-block: var(--space-m);
}

/* Tables on narrow viewports — keep them readable. */
.arch-learn .spec-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* FAQ markup tolerance — pages emit bare <details> without .faq__item. */
.faq > details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  background: var(--c-surface);
  padding: 0 var(--space-m);
  transition: border-color 0.15s ease;
}
.faq > details + details {
  margin-top: var(--space-xs);
}
.faq > details[open] {
  border-color: var(--c-purple);
}
.faq > details > summary.faq__q {
  list-style: none;
  cursor: pointer;
  padding-block: var(--space-s);
  font-weight: 600;
  color: var(--c-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
}
.faq > details > summary.faq__q::-webkit-details-marker { display: none; }
.faq > details > summary.faq__q::after {
  content: "+";
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--c-purple);
  line-height: 1;
}
.faq > details[open] > summary.faq__q::after { content: "−"; }
.faq > details > .faq__a {
  padding-block: 0 var(--space-m);
  color: var(--c-body);
}
.faq > details > .faq__a > :last-child { margin-bottom: 0; }

/* Helpful muted/small utilities used by /learn pages. */
.text-small { font-size: var(--step--1); }
.text-muted { color: var(--c-muted); }

/* =========================================================================
   v2 layout repairs — tool archetype (/tools/*).
   Same root cause as .arch-learn: <article class="arch-tool"> renders
   directly under <main> with no .container wrapper, and several inner
   classes (.tool-hero, .tool-section, .pledge-*) are referenced in
   markup but never defined in the stylesheet. The block below fills
   in the entire archetype.
   ========================================================================= */

.arch-tool {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--space-l) var(--space-2xl);
}

.tool-hero {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--c-border);
}
.tool-hero h1 {
  font-size: var(--step-4);
  margin-bottom: var(--space-m);
}
.tool-hero .lede {
  font-size: var(--step-1);
  color: var(--c-ink);
  max-width: var(--measure);
}

/* Tool sections often already carry `class="container"` which gives them
   gutter; add only the vertical rhythm here. */
.tool-section {
  margin-top: var(--space-xl);
  scroll-margin-top: 6rem;
}
.tool-section + .tool-section {
  margin-top: var(--space-2xl);
}
.tool-section h2 {
  font-size: var(--step-3);
  margin-bottom: var(--space-m);
}
.tool-section h2::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 0.25rem;
  background: var(--c-gold);
  border-radius: 2px;
  margin-bottom: var(--space-s);
}
.tool-section p,
.tool-section ul,
.tool-section ol {
  max-width: var(--measure);
}

/* Tool-form panels — keep them readable, not full-bleed. */
.will-it-run__form,
.quiz__form {
  display: grid;
  gap: var(--space-m);
}
.will-it-run__results,
.quiz__result {
  margin-top: var(--space-l);
  padding: var(--space-m);
  border-left: 4px solid var(--c-purple);
  background: var(--c-purple-tint);
  border-radius: var(--radius-m);
}
.will-it-run__results > :last-child,
.quiz__result > :last-child { margin-bottom: 0; }

/* Print-control utility — hides the chrome around the printable doc. */
.no-print { /* default visible */ }
@media print {
  .no-print { display: none !important; }
  .site-header,
  .site-footer,
  .breadcrumbs { display: none !important; }
  body { background: #fff; }
  .arch-tool { padding-block: 0; }
}

/* ---- Family screen-time pledge document ---- */

.pledge-page {
  margin-block: var(--space-l) var(--space-xl);
  display: flex;
  justify-content: center;
}

.pledge {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  padding: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 48rem;
  font-family: var(--font-body);
  color: var(--c-body);
  /* Mimic an 8.5 × 11 page proportion at print, but be flexible on screen. */
}
.pledge[contenteditable="false"] *[contenteditable="true"] {
  outline: 1px dashed transparent;
  border-radius: 4px;
  padding: 0 0.15rem;
  transition: outline-color 0.15s ease, background 0.15s ease;
}
.pledge[contenteditable="false"] *[contenteditable="true"]:hover {
  outline-color: var(--c-purple);
  background: var(--c-purple-tint);
}
.pledge[contenteditable="false"] *[contenteditable="true"]:focus {
  outline: 2px solid var(--c-purple);
  outline-offset: 0;
  background: var(--c-purple-tint);
}

.pledge__header {
  text-align: center;
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-m);
  border-bottom: 2px solid var(--c-ink);
}
.pledge__header h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin: 0 0 var(--space-xs);
  color: var(--c-ink);
}
.pledge__header p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--c-muted);
}

.pledge__field {
  display: inline-block;
  min-width: 6rem;
  border-bottom: 1px dotted var(--c-muted);
  font-weight: 600;
  color: var(--c-ink);
}

.pledge__section {
  margin-bottom: var(--space-l);
  padding: var(--space-m);
  border-radius: var(--radius-m);
  border-left: 4px solid var(--c-border);
}
.pledge__section h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 0 0 var(--space-s);
  color: var(--c-ink);
}
.pledge__section ol,
.pledge__section ul {
  margin: 0;
  padding-left: 1.25rem;
}
.pledge__section li + li {
  margin-top: var(--space-2xs);
}

.pledge__kid    { border-left-color: var(--c-purple); background: var(--c-purple-tint); }
.pledge__parent { border-left-color: var(--c-gold);   background: rgba(245, 184, 0, 0.06); }
.pledge__shared { border-left-color: var(--c-ink);    background: #FAFAFC; }

.pledge__signatures {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  margin-top: var(--space-xl);
}
@media (min-width: 36rem) {
  .pledge__signatures { grid-template-columns: 1fr 1fr 1fr; }
}
.pledge__sig {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.pledge__sig-line {
  border-bottom: 1.5px solid var(--c-ink);
  height: 1.75rem;
}
.pledge__sig-label {
  font-size: var(--step--1);
  color: var(--c-muted);
}

.pledge__footer {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: var(--step--1);
  color: var(--c-muted);
}

/* When printing the pledge, drop shadows/borders that would waste ink and
   force a clean page. Hide everything outside the pledge-page section. */
@media print {
  .pledge-page {
    margin: 0;
  }
  .pledge {
    box-shadow: none;
    border: 0;
    padding: 0;
    max-width: none;
  }
  .pledge[contenteditable="false"] *[contenteditable="true"] {
    outline: none;
    background: none;
  }
}

@media print {
  .site-header, .site-footer, .lead-form, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: inherit; text-decoration: underline; }
  .honeycomb-bg::before { display: none; }
  .card, .callout, .faq__item { break-inside: avoid; }
}
