/* =========================================================================
   SEOEra — platform design system, v2
   Concept: "the product studio for the AI-era web". Warm editorial paper,
   deep violet ink, chunky bordered cards with hard offset shadows — precise
   but friendly. The dark terminal panel survives from v1 as the signature
   object: the machine-readable artifact sitting on a human page.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* ground */
  --paper:      #fbf9f4;
  --paper-deep: #f4f0e8;
  --card:       #ffffff;
  --lilac:      #f2edfe;
  --lilac-deep: #e5dcfc;

  /* night — terminal panels, dark bands, footer */
  --night:        #150e2b;
  --night-raised: #1e1540;
  --night-line:   rgba(167, 139, 250, 0.22);

  /* ink — --ink-faint carries real content (crawler vendors, captions,
     row keys), so it has to clear 4.5:1 rather than merely look quiet. */
  --ink:       #1d1433;
  --ink-soft:  #4c4468;
  --ink-faint: #6e6788; /* 5.3:1 on --card, 5.0:1 on --paper */

  /* brand */
  --violet: #6d28d9;
  --indigo: #4338ca;
  --purple: #9333ea;

  /* semantic — allowed/blocked, from the product itself.
     Light-ground values are picked to clear WCAG AA (4.5:1) as small text. */
  --allow:      #0d9464;
  --allow-dark: #34d399;
  --block:      #d9265c;
  --block-dark: #fb7185;
  --amber:      #92400e; /* 6.2:1 on the amber note and chip grounds */
  --amber-dark: #fbbf24;

  /* dark-panel text — each clears 4.5:1 on both night surfaces */
  --on-night:       #ece9f7;
  --on-night-dim:   #a49ec2;
  --on-night-faint: #8b83b0; /* 5.2:1 on --night, 4.8:1 on --night-raised */
  --on-night-brand: #a78bfa; /* --violet is 2.6:1 on night; use this instead */

  /* structure */
  --border: 1.5px solid var(--ink);
  --shadow:    5px 5px 0 var(--lilac-deep);
  --shadow-up: 7px 7px 0 var(--lilac-deep);
  --r: 18px;
  --r-sm: 12px;

  /* type */
  --display: "Fraunces", "Hoefler Text", Georgia, serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shell: 1180px;
  --measure: 64ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Baseline focus ring for everything interactive. Individual components may
   override the offset, but nothing may end up with no visible focus at all. */
:where(a, button, [role="switch"], [role="tab"], input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}
/* On the night surfaces the violet ring goes muddy — brighten it. */
.band-dark :where(a, button):focus-visible,
.foot :where(a, button):focus-visible,
.panel :where(a, button, [role="tab"]):focus-visible {
  outline-color: var(--on-night-brand);
}

/* Anchor links must clear the sticky masthead (79px) instead of landing under it. */
:target, [id] { scroll-margin-top: 100px; }

::selection { background: var(--lilac-deep); color: var(--ink); }
.band-dark ::selection, .foot ::selection, .panel ::selection {
  background: rgba(167, 139, 250, 0.35); color: #fff;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint dot grid gives the paper a drafting-table texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(29, 20, 51, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
}
main, header, footer { position: relative; z-index: 1; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 480;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 90;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 24; letter-spacing: -0.012em; line-height: 1.2; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

h1 em, h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 120;
  background: linear-gradient(100deg, var(--violet), var(--purple) 55%, var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { text-wrap: pretty; }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.prose { max-width: var(--measure); color: var(--ink-soft); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }

/* section marker — a config-comment label, the v1 DNA kept */
.marker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}
.marker::before { content: "#"; color: var(--violet); }
.marker::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--lilac-deep), transparent);
}

/* ---------- links & buttons ---------- */
.link {
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--lilac-deep);
  transition: border-color 0.2s var(--ease);
}
.link:hover { border-bottom-color: var(--violet); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--lilac-deep);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lilac-deep); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--lilac-deep); }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.btn--primary {
  background: var(--violet);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover { box-shadow: 6px 6px 0 var(--ink); background: #7c3aed; }
.btn--primary:active { box-shadow: 2px 2px 0 var(--ink); }

.btn--ghost { background: transparent; box-shadow: none; border-color: transparent; padding-inline: 0.9rem; }
.btn--ghost:hover { box-shadow: none; transform: none; color: var(--violet); }

.btn__arrow { transition: transform 0.22s var(--ease); font-weight: 400; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* on dark bands */
.btn--night { background: var(--night-raised); color: var(--on-night); border-color: var(--night-line); box-shadow: 4px 4px 0 rgba(0,0,0,0.5); }
.btn--night:hover { box-shadow: 6px 6px 0 rgba(0,0,0,0.5); }

/* ---------- header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--ink); }
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--ink); }
.brand__name { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.brand__name em { font-style: normal; color: var(--violet); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--lilac); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--lilac); }
.nav .btn { margin-left: 0.6rem; padding: 0.55rem 1.15rem; font-size: 0.85rem; }

.nav__toggle {
  display: none;
  margin-left: auto;
  background: var(--card);
  border: var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; border-radius: 2px; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0.9rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav .btn { margin: 0.6rem 0 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3.2rem, 8vw, 6.2rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero p.lede { margin-top: 1.4rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--card);
  border: var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.5rem;
  box-shadow: 3px 3px 0 var(--lilac-deep);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--allow);
  box-shadow: 0 0 0 0 rgba(13, 148, 100, 0.5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(13, 148, 100, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(13, 148, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 100, 0); }
}

/* ---------- terminal panel: v1's signature, now an object on paper ---------- */
.panel {
  background: var(--night);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--lilac-deep);
  overflow: hidden;
  position: relative;
}
.panel--tilt { transform: rotate(0.8deg); }
@media (max-width: 960px) { .panel--tilt { transform: none; } }
.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--night-line);
  background: var(--night-raised);
}
.panel__dots { display: flex; gap: 6px; margin-right: 0.4rem; }
.panel__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(167, 139, 250, 0.35); }
.panel__path {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--on-night-faint);
  margin-left: auto;
}
.tabs { display: flex; gap: 0.15rem; }
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--on-night-faint);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { color: var(--on-night-dim); }
.tab[aria-selected="true"] { color: var(--allow-dark); border-bottom-color: var(--allow-dark); }

.code {
  margin: 0;
  padding: 1.1rem 1.2rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.85;
  color: var(--on-night);
  overflow-x: auto;
  min-height: 330px;
  white-space: pre;
  tab-size: 2;
}
.code::-webkit-scrollbar { height: 6px; }
.code::-webkit-scrollbar-thumb { background: var(--night-line); }
.c-cm  { color: var(--on-night-faint); font-style: italic; }
.c-key { color: #a78bfa; }
.c-val { color: var(--on-night); }
.c-ok  { color: var(--allow-dark); }
.c-no  { color: var(--block-dark); }
.c-url { color: #7dd3fc; }
.c-h   { color: var(--amber-dark); }

.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  background: #a78bfa;
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ---------- sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.section--tight { padding: clamp(2.2rem, 4.5vw, 3.6rem) 0; }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: 0.9rem; color: var(--ink-soft); }
.section__head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ---------- stats band ---------- */
.stats {
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--lilac);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
  text-align: center;
}
.stat + .stat { border-left: 1.5px solid var(--ink); }
@media (max-width: 860px) {
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
}
.stat__n {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__n sub { font-size: 0.45em; vertical-align: baseline; color: var(--violet); }
.stat__l {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.45rem;
}

/* ---------- product cards ---------- */
.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.product {
  background: var(--card);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
}
.product:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-up); }
.product--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: center;
  background: linear-gradient(135deg, var(--card) 55%, var(--lilac));
}
@media (max-width: 900px) { .product--featured { grid-template-columns: 1fr; } }
.product--soon { background: var(--paper-deep); box-shadow: none; border-style: dashed; border-width: 1.5px; }
.product--soon:hover { transform: none; box-shadow: none; }

.product__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: var(--border);
  background: var(--lilac);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.product__icon img { width: 100%; height: 100%; }
.product__top { display: flex; align-items: center; gap: 0.9rem; justify-content: space-between; }
.product p { color: var(--ink-soft); font-size: 0.95rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: auto; padding-top: 0.4rem; }

.chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip--live   { background: #d8f5e8; color: var(--allow); border-color: var(--allow); }
.chip--review { background: #fdeed3; color: var(--amber); border-color: var(--amber); }
.chip--dev    { background: var(--lilac); color: var(--violet); border-color: var(--violet); }
.chip--idea   { border-style: dashed; }

/* ---------- filter pills ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.pill {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: var(--border);
  background: var(--card);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pill:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.is-filtered-out { display: none !important; }

/* ---------- principle cards ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principle {
  border: var(--border);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.principle::before {
  content: attr(data-n);
  position: absolute;
  top: -0.45em; right: 0.1em;
  font-family: var(--display);
  font-size: 5.2rem;
  font-weight: 600;
  color: var(--lilac);
  line-height: 1;
  z-index: 0;
}
.principle > * { position: relative; }
.principle h3 { margin-bottom: 0.7rem; }
.principle p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- dark band ---------- */
.band-dark {
  background: var(--night);
  color: var(--on-night);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}
.band-dark .marker { color: var(--on-night-faint); }
.band-dark .marker::after { background: linear-gradient(90deg, var(--night-line), transparent); }
.band-dark .lede, .band-dark .prose, .band-dark p { color: var(--on-night-dim); }
.band-dark .prose strong { color: var(--on-night); }
.band-dark .panel { box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55); border-color: var(--night-line); }

.receipts { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.receipts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.8rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--on-night-dim);
}
.receipts li::before {
  content: "";
  width: 15px; height: 15px;
  margin-top: 0.32em;
  border: 1.5px solid var(--allow-dark);
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.15);
}

/* checks on light ground */
.checks { list-style: none; padding: 0; display: grid; gap: 0.9rem; max-width: var(--measure); }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.8rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.checks li::before {
  content: "";
  width: 15px; height: 15px;
  margin-top: 0.32em;
  border: 1.5px solid var(--allow);
  border-radius: 4px;
  background: #d8f5e8;
}

/* ---------- crawler control (product page) ---------- */
.bots { border: var(--border); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.bots__group + .bots__group { border-top: 1.5px solid var(--ink); }
.bots__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  background: var(--lilac);
  border-bottom: 1px solid var(--lilac-deep);
}
.bots__head .bots__k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.bots__bulk { margin-left: auto; display: flex; gap: 0.35rem; }
.mini {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.mini:hover { background: var(--ink); color: var(--paper); }

.bot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  transition: background 0.2s var(--ease);
}
.bot + .bot { border-top: 1px solid var(--paper-deep); }
.bot:hover { background: var(--paper); }
.bot__name { font-weight: 600; font-size: 0.88rem; }
.bot__note { color: var(--ink-faint); font-size: 0.78rem; margin-left: auto; text-align: right; }

.sw {
  position: relative;
  width: 42px; height: 23px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #fbdae4;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.28s var(--ease);
  padding: 0;
}
.sw::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--block);
  border: 1px solid var(--ink);
  transition: transform 0.3s var(--ease), background 0.28s var(--ease);
}
.sw[aria-checked="true"] { background: #c9f0e0; }
.sw[aria-checked="true"]::after { transform: translateX(19px); background: var(--allow); }
.sw:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 104px; }
@media (max-width: 940px) { .sticky { position: static; } }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.shot {
  border: var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.shot:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-up); }
.shot img { width: 100%; height: auto; border-bottom: 1.5px solid var(--ink); }
.shot figcaption {
  padding: 0.7rem 0.95rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ---------- callouts ---------- */
.note {
  border: var(--border);
  border-radius: var(--r-sm);
  border-left-width: 6px;
  border-left-color: var(--amber);
  background: #fdf6e9;
  padding: 1.15rem 1.4rem;
  max-width: var(--measure);
}
/* A label, not a heading — using <h4> here skipped heading levels. */
.note__k {
  font-family: var(--mono);
  color: var(--amber);
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.note p { color: var(--ink-soft); font-size: 0.93rem; }
.note--violet { border-left-color: var(--violet); background: var(--lilac); }
.note--violet .note__k { color: var(--violet); }

/* ---------- definition rows ---------- */
.rows { border-top: var(--border); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.3rem, 2.5vw, 1.9rem) 0;
  border-bottom: 1.5px solid var(--lilac-deep);
}
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 0.6rem; } }
.row__k {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  padding-top: 0.2rem;
}
.row__v { color: var(--ink-soft); }
.row__v p + p { margin-top: 0.8rem; }

/* ---------- CTA band ---------- */
.band {
  background: var(--violet);
  color: #fff;
  border-top: var(--border);
  border-bottom: var(--border);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.band > .shell { position: relative; }
.band h2 { max-width: 20ch; margin-inline: auto; color: #fff; }
.band h2 em { background: none; -webkit-text-fill-color: currentColor; color: #d8c9ff; }
.band p { margin: 1.1rem auto 2rem; max-width: 52ch; color: #e6ddff; }
.band .hero__actions { justify-content: center; margin-top: 0; }
.band .btn { border-color: var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night-dim); font-size: 0.9rem; padding: clamp(2.6rem, 5vw, 4rem) 0 2.4rem; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--night-line);
}
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot .brand__name { color: var(--on-night); }
/* The brand violet is only 2.6:1 on the night ground — swap it in the footer. */
.foot .brand__name em { color: var(--on-night-brand); }
.foot .brand img { border-color: var(--night-line); }
.foot__h {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-night);
  margin-bottom: 1rem;
  font-weight: 500;
}
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.foot a { text-decoration: none; transition: color 0.2s var(--ease); }
.foot a:hover { color: #c7b4ff; }
.foot__tag { max-width: 34ch; line-height: 1.7; margin-top: 0.9rem; color: var(--on-night-faint); }
.foot__base {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--on-night-faint);
}

/* ---------- scroll reveal (scoped to .js — page legible without JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- utilities ---------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100; text-decoration: none; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; top: 0; }
.stack > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.small { font-size: 0.83rem; }
.mono { font-family: var(--mono); }

/* Visually hidden but read aloud — used for headings that keep the document
   outline intact without adding visual noise. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- WordPress core classes (page.php renders the_content) ---------- */
.prose img, .prose iframe { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.alignleft  { float: left;  margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wp-caption-text, .wp-element-caption {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.5rem;
}
.prose blockquote {
  border-left: 4px solid var(--lilac-deep);
  padding-left: 1.2rem; margin: 1.4rem 0; font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.3rem; margin: 1rem 0; }
.prose li + li { margin-top: 0.4rem; }
.prose code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--lilac); padding: 0.1em 0.4em; border-radius: 5px;
}
.prose h2, .prose h3 { margin-top: 2rem; margin-bottom: 0.8rem; color: var(--ink); }

.pagination { margin-top: 2.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 0.5rem 0.8rem;
  border: var(--border); border-radius: 999px;
  background: var(--card); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
