/* ==========================================================================
   Conscious Focus — shared design system
   Theme: deep-space midnight, aurora violet/cyan, glass panels
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:            #05060f;
  --bg-2:          #080b1c;
  --surface:       rgba(20, 26, 56, 0.55);
  --surface-solid: #111634;
  --surface-2:     rgba(30, 38, 80, 0.45);
  --line:          rgba(140, 160, 255, 0.16);
  --line-strong:   rgba(150, 170, 255, 0.32);

  --text:          #eaeeff;
  --text-soft:     #b9c2e6;
  --muted:         #8b95bd;

  --violet:        #7c5cff;
  --violet-soft:   #a18cff;
  --cyan:          #2fd6f0;
  --magenta:       #ff5cf0;
  --gold:          #ffc861;
  --green:         #4ade9b;

  --grad-aurora:   linear-gradient(120deg, #7c5cff 0%, #2fd6f0 50%, #ff5cf0 100%);
  --grad-aurora-2: linear-gradient(120deg, #2fd6f0 0%, #7c5cff 100%);
  --grad-warm:     linear-gradient(120deg, #ffc861 0%, #ff5cf0 100%);
  --grad-text:     linear-gradient(100deg, #ffffff 0%, #a8b8ff 40%, #2fd6f0 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow:    0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.25), 0 22px 60px -22px rgba(124, 92, 255, 0.65);

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --nav-h: 72px;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient aurora backdrop — fixed, painted once, no scroll cost */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(124, 92, 255, 0.30), transparent 62%),
    radial-gradient(820px 560px at 92% 4%, rgba(47, 214, 240, 0.20), transparent 60%),
    radial-gradient(760px 620px at 50% 108%, rgba(255, 92, 240, 0.16), transparent 62%),
    linear-gradient(180deg, #05060f 0%, #070a1c 45%, #05060f 100%);
}

/* Faint star dust */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.2px 1.2px at 72% 12%, rgba(200,220,255,0.8), transparent),
    radial-gradient(1.6px 1.6px at 40% 68%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.1px 1.1px at 88% 74%, rgba(190,210,255,0.75), transparent),
    radial-gradient(1.3px 1.3px at 8% 84%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1.1px 1.1px at 60% 40%, rgba(255,255,255,0.55), transparent);
  background-size: 620px 620px, 520px 520px, 700px 700px, 480px 480px, 640px 640px, 560px 560px;
}

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

a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #fff; }

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.15rem, 5.6vw, 3.85rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05em; color: var(--text-soft); }
p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d5dcff; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aurora-text {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.serif-quote { font-family: var(--font-display); font-weight: 300; font-style: italic; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.wrap-narrow { max-width: 820px; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: 1.35rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}

.stack-sm > * + * { margin-top: 0.6rem; }

/* ---------- Panels ---------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.panel--pad-lg { padding: clamp(1.6rem, 3.4vw, 2.6rem); }
.panel--hover:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}
.panel--glow { box-shadow: var(--shadow-glow); }
.panel--solid { background: linear-gradient(160deg, rgba(26,32,68,0.9), rgba(12,16,38,0.9)); }

/* Accent top-edge strip */
.card-accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-aurora);
  opacity: 0.9;
}

.icon-badge {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(140deg, rgba(124,92,255,0.9), rgba(47,214,240,0.75));
  box-shadow: 0 8px 22px -10px rgba(124,92,255,0.9);
  margin-bottom: 1rem;
}
.icon-badge--gold { background: linear-gradient(140deg, rgba(255,200,97,0.95), rgba(255,92,240,0.8)); }
.icon-badge--green { background: linear-gradient(140deg, rgba(74,222,155,0.95), rgba(47,214,240,0.8)); }

.pill {
  display: inline-block;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(124, 92, 255, 0.12);
  color: var(--violet-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.pill--cyan  { background: rgba(47,214,240,0.12);  color: var(--cyan); }
.pill--gold  { background: rgba(255,200,97,0.13);  color: var(--gold); }
.pill--green { background: rgba(74,222,155,0.13);  color: var(--green); }
.pill--mag   { background: rgba(255,92,240,0.13);  color: var(--magenta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-aurora);
  color: #06070f;
  box-shadow: 0 14px 34px -14px rgba(124, 92, 255, 0.95);
}
.btn-primary:hover { color: #06070f; box-shadow: 0 20px 44px -14px rgba(47, 214, 240, 0.9); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(124, 92, 255, 0.16); border-color: var(--violet); color: #fff; }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.84rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-stuck {
  background: rgba(6, 8, 20, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  color: #fff;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad-aurora);
  color: #05060f;
  font-size: 0.95rem;
  box-shadow: 0 0 22px -4px rgba(124, 92, 255, 0.85);
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  /* Seven items: never break a label across two lines. */
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(124, 92, 255, 0.14); color: #fff; }
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(124, 92, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(160, 145, 255, 0.35);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero-actions { margin-top: 1.9rem; }

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Rotating quote under hero */
.quote-rotator {
  margin-top: 2.2rem;
  padding-left: 1.1rem;
  border-left: 2px solid;
  border-image: var(--grad-aurora) 1;
  min-height: 4.6rem;
}
#rotating-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: #dbe2ff;
  margin: 0 0 0.35rem;
  transition: opacity 0.5s var(--ease);
}
#rotating-quote-author { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }
.is-fading { opacity: 0; }

/* Brain orb visual */
.orb-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orb-stage::before,
.orb-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(140, 160, 255, 0.22);
  animation: spin 26s linear infinite;
}
.orb-stage::before { inset: 0; border-style: dashed; }
.orb-stage::after { inset: 11%; animation-duration: 40s; animation-direction: reverse; }

.orb {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(180, 195, 255, 0.35);
  box-shadow: 0 0 90px -18px rgba(124, 92, 255, 0.95), inset 0 0 60px -20px rgba(47, 214, 240, 0.7);
  animation: float 9s ease-in-out infinite;
}
.orb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.94; }
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 32% 26%, rgba(47,214,240,0.28), transparent 58%),
              radial-gradient(circle at 72% 78%, rgba(255,92,240,0.24), transparent 60%);
  mix-blend-mode: screen;
}

.orb-chip {
  position: absolute;
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 34, 0.86);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.orb-chip i { color: var(--cyan); margin-right: 0.35rem; }
.orb-chip--1 { top: 4%;  left: -4%; animation-delay: -1s; }
.orb-chip--2 { top: 44%; right: -6%; animation-delay: -3s; }
.orb-chip--3 { bottom: 4%; left: 6%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(124, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
}

/* ---------- Section heading ---------- */
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.7rem; }
.section-head p { margin-bottom: 0; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: rgba(10, 14, 34, 0.72);
  padding: 1.5rem 1.2rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- Media cards ---------- */
.media-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.media-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}
.media-card:hover img { transform: scale(1.06); opacity: 0.62; }
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,15,0.15) 0%, rgba(5,6,15,0.82) 62%, rgba(5,6,15,0.97) 100%);
}
.media-card-body { position: relative; z-index: 2; padding: 1.4rem; }
.media-card-body h3 { margin-bottom: 0.35rem; }
.media-card-body p { margin-bottom: 0; font-size: 0.9rem; }

/* ---------- Feature split rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.feature-row.reverse .feature-visual { order: 2; }
.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.feature-visual figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.2rem;
  font-size: 0.78rem;
  color: #cfd6f5;
  background: linear-gradient(180deg, transparent, rgba(5,6,15,0.92));
}

.check-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.65rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.78rem;
  color: var(--green);
}

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.tab {
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.tab:hover { color: #fff; border-color: var(--violet); }
.tab[aria-selected="true"] {
  background: var(--grad-aurora);
  color: #06070f;
  border-color: transparent;
  box-shadow: 0 10px 26px -12px rgba(124, 92, 255, 0.9);
}
.tab-panel[hidden] { display: none; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 2rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan), transparent);
  border-radius: 2px;
}
.timeline li { position: relative; padding-bottom: 1.9rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px -2px rgba(47, 214, 240, 0.9);
}
.timeline time {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { margin-bottom: 0; font-size: 0.93rem; }

/* ---------- Comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
}
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
table.compare th, table.compare td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
table.compare thead th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(10, 14, 34, 0.85);
}
table.compare tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  width: 32%;
}
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover { background: rgba(124, 92, 255, 0.07); }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: background 0.2s;
}
.acc-trigger:hover { background: rgba(124, 92, 255, 0.09); }
.acc-trigger i.chev { margin-left: auto; transition: transform 0.3s var(--ease); color: var(--cyan); font-size: 0.85rem; }
.acc-trigger[aria-expanded="true"] i.chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.42s var(--ease); }
.acc-body-inner { padding: 0 1.3rem 1.3rem; }
.acc-body-inner p:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: var(--line-strong); transform: translateX(4px); }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #06070f;
  background: var(--grad-aurora);
  box-shadow: 0 10px 24px -12px rgba(47, 214, 240, 0.9);
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin-bottom: 0; font-size: 0.93rem; }
.step .step-meta { margin-top: 0.5rem; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.05em; }

/* ---------- Checklist / routine tracker ---------- */
.routine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.routine-head h3 { margin: 0; }
.progress-ring {
  --pct: 0;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--cyan) calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
  transition: background 0.4s var(--ease);
  margin-left: auto;
}
.progress-ring span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a0e22;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.task-list li { margin: 0; }
.task {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  font-size: 0.93rem;
}
.task:hover { border-color: var(--line-strong); background: rgba(124, 92, 255, 0.09); }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.task .box {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 0.14rem;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.22s var(--ease);
}
.task .label strong { display: block; font-weight: 600; color: #fff; font-family: var(--font-display); font-size: 0.94rem; }
.task .label em { font-style: normal; color: var(--muted); font-size: 0.83rem; }
.task input:checked ~ .box {
  background: var(--grad-aurora);
  border-color: transparent;
  color: #06070f;
}
.task input:checked ~ .label strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(140,160,255,0.5); }
.task:has(input:checked) { border-color: rgba(74, 222, 155, 0.4); background: rgba(74, 222, 155, 0.06); }

/* ---------- Timer ---------- */
.timer-shell { text-align: center; }
.mode-switch { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-bottom: 1.8rem; }
.timer-dial {
  --pct: 0;
  width: min(320px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--violet) 0deg, var(--cyan) calc(var(--pct) * 3.6deg), rgba(255,255,255,0.07) 0);
  transition: background 0.5s linear;
  position: relative;
}
.timer-dial::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #131a3e, #070a18 72%);
  border: 1px solid var(--line);
}
.timer-readout { position: relative; z-index: 2; }
#timer-display {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 11vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#timer-label { display: block; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.45rem; }
.timer-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.timer-state.is-running .dot { animation: pulse-ring 1.8s infinite; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* ---------- Charts ---------- */
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 380px; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.35rem; }

.video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.video-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #171d44, #0a0e22);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; transition: transform 0.6s var(--ease), opacity 0.3s; }
.video-thumb:hover img { transform: scale(1.06); opacity: 0.95; }
.video-thumb .fallback-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: rgba(160, 180, 255, 0.35);
}
.video-thumb .play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-aurora);
  color: #06070f;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.9);
  font-size: 0.85rem;
}
.video-duration {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(5, 6, 15, 0.85);
  font-size: 0.7rem;
  color: #dbe2ff;
  letter-spacing: 0.04em;
}
.video-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.video-body h3 { font-size: 1.03rem; margin-bottom: 0.45rem; }
.video-body p { font-size: 0.88rem; margin-bottom: 0.9rem; }
.video-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.video-meta strong { color: var(--violet-soft); font-weight: 600; }

/* Player modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(0.8rem, 4vw, 2.5rem);
  background: rgba(3, 4, 12, 0.88);
  backdrop-filter: blur(10px);
}
.modal[hidden] { display: none; }
.modal-frame {
  position: relative;
  width: min(1050px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-player { aspect-ratio: 16 / 9; background: #000; }
.modal-player iframe,
.modal-player #yt-mount { width: 100%; height: 100%; border: 0; display: block; }

/* Shown when a video's owner has disabled embedding (player error 101/150). */
.modal-fallback {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  background:
    radial-gradient(500px 260px at 30% 20%, rgba(124, 92, 255, 0.28), transparent 65%),
    radial-gradient(420px 240px at 80% 85%, rgba(47, 214, 240, 0.18), transparent 62%),
    #0a0e22;
}
.modal-fallback[hidden] { display: none; }
.modal-fallback .icon-badge { margin-bottom: 0.5rem; }
.modal-fallback h3 { margin-bottom: 0.2rem; }
.modal-fallback p { max-width: 46ch; margin-bottom: 1rem; }
.modal-info { padding: 1.2rem 1.4rem 1.5rem; }
.modal-info h3 { margin-bottom: 0.4rem; }
.modal-info p { margin-bottom: 0.9rem; font-size: 0.92rem; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 15, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.modal-close:hover { background: var(--magenta); color: #06070f; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.input, select.input, textarea.input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 20, 0.72);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #6b75a0; }
.input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
}
textarea.input { min-height: 96px; resize: vertical; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; }

/* ---------- Feedback / status ---------- */
.status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  border: 1px solid var(--line-strong);
  background: rgba(47, 214, 240, 0.09);
  color: var(--cyan);
}
.status.show { display: block; }
.status.error { background: rgba(255, 92, 240, 0.1); border-color: rgba(255, 92, 240, 0.5); color: #ffb9f5; }

/* ---------- Quote banner ---------- */
.quote-banner {
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 320px at 15% 10%, rgba(124, 92, 255, 0.32), transparent 65%),
    radial-gradient(500px 300px at 88% 90%, rgba(47, 214, 240, 0.22), transparent 62%),
    rgba(10, 14, 34, 0.8);
  text-align: center;
}
.quote-banner blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 2.9vw, 1.75rem);
  line-height: 1.45;
  color: #eef1ff;
}
.quote-banner cite { font-style: normal; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 5, 14, 0.75);
  padding-block: clamp(2.4rem, 5vw, 3.4rem) 1.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 2.2rem;
}
.footer-grid h4 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid ul a { font-size: 0.9rem; color: var(--text-soft); }
.footer-grid ul a:hover { color: var(--cyan); }
.footer-about p { font-size: 0.9rem; max-width: 42ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.disclaimer {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: #6f7899;
  max-width: 90ch;
  line-height: 1.6;
}

/* ---------- Related practice / cross-link ---------- */
.footer-related {
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}
.footer-related a { color: var(--text-soft); border-bottom: 1px solid var(--line-strong); }
.footer-related a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.footer-related i { color: var(--gold); font-size: 0.72rem; }

.partner-banner {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.partner-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.partner-banner img { width: 100%; height: auto; display: block; }
.btn-row.justify-center { justify-content: center; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4.4rem) clamp(1.8rem, 4vw, 2.6rem);
  overflow: hidden;
}
.page-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 88%);
}
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb span { margin-inline: 0.45rem; opacity: 0.5; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.hide { display: none !important; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }
.flex-between { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  background: var(--violet);
  color: #fff;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ==========================================================================
   Printable worksheet
   On screen: paper-like white sheets on the dark site background, so the
   visitor sees exactly what will come out of the printer.
   In print: all site chrome is removed and only the sheets are printed.
   ========================================================================== */

.worksheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.6rem;
}

.worksheet-toolbar .note { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* The printed sheet itself */
.sheet {
  background: #ffffff;
  color: #14182b;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  margin-bottom: 1.6rem;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.10);
  /* Keep sheets a sane printed width regardless of screen size */
  max-width: 210mm;
  margin-inline: auto;
}

.sheet + .sheet { margin-top: 1.6rem; }

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid #14182b;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}
.sheet-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: #14182b;
  margin: 0;
  letter-spacing: -0.01em;
}
.sheet-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a6180;
}

/* Date / name fields */
.sheet-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem 1.4rem;
  margin-bottom: 1.3rem;
}
.sheet-field { display: block; }
.sheet-field span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a6180;
  margin-bottom: 0.3rem;
}
.sheet-field .rule { display: block; border-bottom: 1px solid #9aa2bd; height: 1.4em; }

/* Section blocks inside a sheet */
.sheet-block { margin-bottom: 1.3rem; break-inside: avoid; }
.sheet-block:last-child { margin-bottom: 0; }

.sheet-block h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #14182b;
  margin: 0 0 0.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.sheet-block h3 .mins {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6180;
  margin-left: auto;
}
.sheet-block > .hint {
  font-size: 0.78rem;
  color: #5a6180;
  margin: 0 0 0.6rem;
}

/* Checklist rows with a printable box */
.sheet-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}
.sheet-check li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 0.6rem;
  align-items: start;
  break-inside: avoid;
  padding-bottom: 0.42rem;
  border-bottom: 1px dotted #c8cee0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #232840;
}
.sheet-check li:last-child { border-bottom: 0; padding-bottom: 0; }
.sheet-check .tick {
  width: 15px;
  height: 15px;
  border: 1.5px solid #14182b;
  border-radius: 3px;
  margin-top: 0.12em;
}
.sheet-check .t { display: block; }
.sheet-check .t em { display: block; font-style: normal; font-size: 0.76rem; color: #5a6180; }

/* Lined writing areas */
.sheet-lines { display: grid; gap: 0; margin-top: 0.5rem; }
.sheet-lines .line { border-bottom: 1px solid #b7bed4; height: 1.85em; }
.sheet-lines .line--tall { height: 2.6em; }

/* Numbered prompt list */
.sheet-prompts {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: q;
}
.sheet-prompts li {
  break-inside: avoid;
  font-size: 0.86rem;
  color: #232840;
  counter-increment: q;
}
.sheet-prompts li::before {
  content: counter(q) ".";
  font-weight: 700;
  margin-right: 0.4rem;
  color: #5a6180;
}
.sheet-prompts .write {
  border-bottom: 1px solid #b7bed4;
  height: 1.85em;
  margin-top: 0.25rem;
}

/* Small two-column idea row */
.sheet-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.sheet-foot {
  margin-top: 1.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid #c8cee0;
  font-size: 0.68rem;
  color: #5a6180;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orb-stage { max-width: 360px; margin-top: 1rem; }
  .split, .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }

  /* Two-column tool layouts (timer page, log page, add-video) collapse. */
  #timer-layout,
  #log-layout,
  #add-layout { grid-template-columns: 1fr !important; }
  #stats { margin-top: 0.4rem; }
}

@media (max-width: 1180px) {
  :root { --nav-h: 64px; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.8rem;
    background: rgba(6, 8, 20, 0.97);
    border-bottom: 1px solid var(--line-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 0.8rem 1rem; font-size: 1rem; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stat { padding: 1.15rem 0.8rem; }
  .orb-chip { font-size: 0.66rem; padding: 0.34rem 0.62rem; }
  .orb-chip--1 { left: 0; }
  .orb-chip--2 { right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.6rem; }
  .timeline li::before { left: -1.6rem; width: 13px; height: 13px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .modal-info { padding: 1rem 1.05rem 1.3rem; }

  /* Paired worksheet fields stack on phones; the printed sheet is still A4. */
  .sheet-two { grid-template-columns: 1fr; gap: 0.7rem; }
  .sheet { padding: 1.25rem 1.1rem; }
  .sheet-fields { grid-template-columns: 1fr; }
}

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

/* ==========================================================================
   Print: the worksheet only
   Loaded on every page but scoped to .sheet, so printing any other page of the
   site is unaffected. All navigation, hero art, footers and on-screen tools are
   removed; each sheet becomes a clean white page with black text.
   ========================================================================== */
@media print {
  @page {
    margin: 13mm 12mm;
  }

  /* Ink-friendly: let backgrounds and borders actually render. */
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #14182b !important;
    font-size: 10.5pt;
    line-height: 1.45;
    margin: 0;
    padding: 0;
  }

  /* Strip site chrome: header, nav, footer, hero art, interactive toolbars. */
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle,
  .nav-links,
  .page-hero,
  .page-hero-art,
  .breadcrumb,
  .footer-related,
  .footer-bottom,
  .worksheet-toolbar,
  .no-print,
  .modal,
  .modal-backdrop {
    display: none !important;
  }

  /* The ambient aurora and star dust are fixed-position and would either print
     as a grey wash or repeat on every page. Remove them for print. */
  body::before,
  body::after {
    display: none !important;
    content: none !important;
  }

  /* Neutralise the page container spacing left over from screen layout. */
  .wrap,
  .wrap-narrow {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  main,
  section,
  section.tight,
  .section {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
  }

  /* Reveal-on-scroll must not leave content invisible on paper. */
  .reveal,
  .reveal-d1,
  .reveal-d2,
  .reveal-d3,
  .reveal-d4 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Every sheet is a plain page of paper. */
  .sheet {
    background: #ffffff !important;
    color: #14182b !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: none !important;
    width: 100% !important;
    page-break-after: always;
    break-after: page;
  }
  .sheet:last-of-type,
  .sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .sheet + .sheet { margin-top: 0 !important; }

  .sheet-head {
    border-bottom: 1.5pt solid #14182b !important;
    padding-bottom: 2mm;
    margin-bottom: 4mm;
  }
  .sheet-block {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 4mm;
  }
  .sheet-check li,
  .sheet-prompts li,
  .sheet-field {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Lines need to be visible in monochrome. */
  .sheet-check li { border-bottom-color: #b7bed4 !important; }
  .sheet-check .tick { border-color: #14182b !important; }
  .sheet-lines .line,
  .sheet-prompts .write,
  .sheet-field .rule { border-bottom-color: #8e96ae !important; }
  .sheet-foot { border-top-color: #b7bed4 !important; }

  /* Keep headings with the content that follows. */
  h1, h2, h3, h4 {
    page-break-after: avoid;
    break-after: avoid;
    color: #14182b !important;
  }

  /* Any stray gradient text on a printable page reads as black on paper. */
  .gradient-text {
    -webkit-text-fill-color: #14182b !important;
    color: #14182b !important;
    background: none !important;
  }

  a { color: #14182b !important; text-decoration: none !important; }

  /* Hide any trailing spacer so we do not emit a blank second page. */
  .print-spacer { display: none !important; }
}
