/* ==========================================================================
   Cartouche — design system
   Palette  A-11 Gallery Mono (porcelain monochrome, tonally adapted)
   Fonts    B-8  Exo 2 + Noto Sans
   Bearing  C-5  Aurora / mesh — rendered in the palette's own greige tones
   Edges    E2-6 Editorial soft-drop
   Header   E1-4 Card header
   Gate     D-5  Quiet Sonar
   Accent strategy 1 — colour lives on the CTA and on links, nowhere else.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  --bg:            #F7F7F5;
  --surface:       #FFFFFF;
  --surface-2:     #F1F1EE;
  --text:          #1C1C1A;
  --muted:         #5F5F5A;
  --accent:        #2E2E2A;
  --accent-hover:  #121210;
  --on-accent:     #FFFFFF;
  --accent-2:      #C9C9C2;
  --line:          rgba(28, 28, 26, .12);
  --line-strong:   rgba(28, 28, 26, .22);

  /* the gate wash is a gradient: its ink needs its own token in both themes,
     because a gradient reports rgba(0,0,0,0) and inherits nothing useful. */
  --gate-wash:     linear-gradient(135deg, #F5F5F1, #ECECE6 50%, #E2E2DA);
  --on-gate:       #1A1A18;
  --on-gate-muted: #55554F;

  /* aurora blobs, kept inside the monochrome palette: one cool, one warm,
     one neutral. Static — the only thing that moves up there is the sonar. */
  --blob-1:        #E4E7EE;
  --blob-2:        #F1EAE1;
  --blob-3:        #E1E3DE;
  --blob-alpha:    .85;

  --illus-skin:    #8E8E86;
  --illus-bar:     #6E6E66;
  --illus-key:     #FFFFFF;
  --illus-rim:     #FFFFFF;
  --illus-fig:     #373732;
  --illus-glow-a:  rgba(196, 204, 220, .80);
  --illus-glow-b:  rgba(196, 204, 220, 0);

  --shadow:        0 24px 48px -16px rgba(31, 36, 48, .14);
  --shadow-sm:     0 10px 22px -12px rgba(31, 36, 48, .18);
  --radius:        10px;
  --radius-lg:     16px;
  --radius-pill:   999px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --step--1: clamp(.82rem, .8rem + .12vw, .89rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.45rem);
  --step-2:  clamp(1.44rem, 1.3rem + .68vw, 1.94rem);
  --step-3:  clamp(1.73rem, 1.5rem + 1.14vw, 2.58rem);

  --font-head: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --column: 44rem;
  --head-h: 76px;
  --sticky-h: 0px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:            #161616;
  --surface:       #1F1F1E;
  --surface-2:     #262625;
  --text:          #EDEDEA;
  --muted:         #A8A8A2;
  --accent:        #E6E6E0;
  --accent-hover:  #FFFFFF;
  --on-accent:     #161616;
  --accent-2:      #4A4A45;
  --line:          rgba(237, 237, 234, .14);
  --line-strong:   rgba(237, 237, 234, .26);

  --gate-wash:     linear-gradient(135deg, #23231F, #1D1D1B 50%, #191917);
  --on-gate:       #F2F2EE;
  --on-gate-muted: #B6B6AF;

  --blob-1:        #1E212A;
  --blob-2:        #262019;
  --blob-3:        #1A1C19;
  --blob-alpha:    1;

  --illus-skin:    #6E6E66;
  --illus-bar:     #8A8A82;
  --illus-key:     #1F1F1E;
  --illus-rim:     #3A3A34;
  --illus-fig:     #D8D8D2;
  --illus-glow-a:  rgba(226, 232, 246, .34);
  --illus-glow-b:  rgba(226, 232, 246, 0);

  --shadow:        0 24px 48px -16px rgba(0, 0, 0, .55);
  --shadow-sm:     0 10px 22px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* max-width belongs on img only. An <svg> that inherits it collapses to zero
   width inside a shrink-to-fit flex button on iOS Safari. */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.012em;
  /* margin-block only — a `margin` shorthand would zero margin-inline and
     knock the block out of the centred reading column. */
  margin-block: 0 var(--space-4);
  scroll-margin-top: calc(var(--head-h) + var(--space-5));
}
p { margin-block: 0 var(--space-5); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.crt-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Aurora ground + grain ------------------------------------- */

.crt-aurora, .crt-grain {
  position: fixed;
  inset: -20vh -20vw;
  z-index: -1;
  pointer-events: none;
}
.crt-aurora::before, .crt-aurora::after, .crt-aurora > span {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-alpha);
}
.crt-aurora::before { width: 52vmax; height: 52vmax; top: -8vmax; left: -10vmax; background: var(--blob-1); }
.crt-aurora::after  { width: 46vmax; height: 46vmax; top: 34vmax; right: -8vmax; background: var(--blob-2); }
.crt-aurora > span  { width: 40vmax; height: 40vmax; bottom: -6vmax; left: 26vmax; background: var(--blob-3); }

/* F-14 — grain over the flat fills, so the porcelain reads as paper. */
.crt-grain {
  inset: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="dark"] .crt-grain { opacity: .07; mix-blend-mode: screen; }

/* ---------- 4. Header — E1-4 card ---------------------------------------- */

/* Stacking order, written down once so nothing has to be guessed:
   sticky CTA 30 · back-to-top 33 · cookie 35 · header (and the drawer it
   contains) 40. The drawer lives inside the header element, so it shares the
   header's stacking context and cannot be painted through by it. */
.crt-head {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: var(--space-3) var(--space-4);
  transition: padding .22s ease, background-color .22s ease;
}
/* An inset sticky header must paint its own inset once it is stuck, or the
   article scrolls through the transparent strip above the card and the bar
   looks torn off the top of a phone screen. */
.crt-head.is-stuck {
  background-color: var(--bg);
  padding-block: var(--space-2);
  box-shadow: 0 1px 0 var(--line);
}
.crt-head__card {
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: padding .22s ease;
}
.crt-head.is-stuck .crt-head__card { padding-block: var(--space-2); }

.crt-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.crt-brand__mark { width: 30px; height: 30px; flex: 0 0 30px; }
.crt-brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(.98rem, .86rem + .5vw, 1.18rem);
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crt-head__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }

/* icon-only controls: fixed box, grid-centred, never shrink-to-fit */
.crt-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.crt-icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.crt-icon-btn svg { width: 20px; height: 20px; display: block; }

/* Both of these need the extra class in the selector. `.crt-icon-btn svg` is
   (0,1,1) and would otherwise outrank a bare `.crt-toggle__moon` at (0,1,0),
   which paints the sun and the moon on top of each other in light mode. */
.crt-toggle .crt-toggle__moon { display: none; }
[data-theme="dark"] .crt-toggle .crt-toggle__sun { display: none; }
[data-theme="dark"] .crt-toggle .crt-toggle__moon { display: block; }

/* Language — desktop dropdown */
.crt-lang { position: relative; }
.crt-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 42px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-size: var(--step--1);
  white-space: nowrap;
}
.crt-lang__btn:hover { background: var(--surface-2); }
.crt-lang__btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.crt-lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.crt-lang__panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 190px;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  z-index: 5;
}
.crt-lang__panel[data-open="true"] { display: block; }
.crt-lang__panel ul { list-style: none; margin: 0; padding: 0; }
.crt-lang__panel li a,
.crt-lang__panel .trp-language-switcher-container a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--step--1);
}
.crt-lang__panel li a:hover { background: var(--surface-2); }
.crt-lang__panel img { width: 18px; height: auto; display: inline-block; }
.crt-lang__panel .trp-language-switcher-container > div { display: block; }

/* TranslatePress ships its own floating picker switched on. Two controls on
   one screen is the defect this kills; INSTALL.md turns it off in settings too. */
#trp-floater-ls, .trp-floater, #trp-floater-ls-current-language { display: none !important; }

/* Burger + in-card accordion panel (E1-4 expands downward, no scrim needed) */
.crt-burger { display: none; }
.crt-burger__bars { position: relative; width: 18px; height: 12px; }
.crt-burger__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .22s ease, opacity .18s ease;
}
.crt-burger__bars span:nth-child(1) { top: 0; }
.crt-burger__bars span:nth-child(2) { top: 5px; }
.crt-burger__bars span:nth-child(3) { top: 10px; }
.crt-burger[aria-expanded="true"] .crt-burger__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.crt-burger[aria-expanded="true"] .crt-burger__bars span:nth-child(2) { opacity: 0; }
.crt-burger[aria-expanded="true"] .crt-burger__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.crt-drawer {
  max-width: 1160px;
  margin-inline: auto;
  margin-block: var(--space-2) 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: none;
}
.crt-drawer[data-open="true"] { display: block; }
.crt-drawer__title {
  font-family: var(--font-head);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-block: 0 var(--space-2);
  padding-inline: var(--space-3);
}
.crt-drawer ul { list-style: none; margin: 0; padding: 0; }
.crt-drawer a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0 var(--space-3);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}
.crt-drawer a:hover { background: var(--surface-2); }
.crt-drawer img { width: 18px; height: auto; display: inline-block; }
.crt-drawer__links { margin-top: var(--space-2); border-top: 1px solid var(--line); padding-top: var(--space-2); }

/* ---------- 5. Reading column -------------------------------------------- */

.crt-main { padding-block: var(--space-6) var(--space-8); }
.crt-entry { padding-inline: clamp(16px, 4vw, 32px); }

/* Zero-specificity floor: every direct child shares one centred column, so
   the whole article has exactly ONE left edge. Component rules always win. */
.crt-entry > :where(*:not(.crt-gate)) {
  max-width: var(--column);
  margin-inline: auto;
}
/* Belt and braces at class specificity for the two blocks that historically
   reset their margins with a shorthand and fall out of the column. */
.crt-entry > .crt-figure,
.crt-entry > .crt-cards,
.crt-entry > .crt-compare,
.crt-entry > .crt-faq {
  max-width: var(--column);
  margin-inline: auto;
}

.crt-h1 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -.028em;
  margin-block: var(--space-6) var(--space-5);
}
.crt-entry h2 {
  font-size: var(--step-2);
  margin-block: var(--space-8) var(--space-4);
}
.crt-entry h3 { font-size: var(--step-1); }
/* No `.crt-entry p` colour rule on purpose: at (0,1,1) it outranks the
   component rules `.crt-card__p` and `.crt-compare__label` at (0,1,0) and
   repaints every secondary blurb at full text colour, flattening the
   hierarchy. Paragraphs inherit --text from body, which is the same result
   without the collision. */

/* Accent strategy 1: links carry colour, buttons carry it as a fill.
   The `:not([class])` guard keeps this rule off the CTA — an accent-on-accent
   button is an invisible button. F-9 draws the underline on hover. */
.crt-entry a:not([class]) {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size .28s ease;
}
.crt-entry a:not([class]):hover,
.crt-entry a:not([class]):focus-visible { background-size: 100% 1.5px; }
[data-theme="dark"] .crt-entry a:not([class]) { color: var(--text); }

/* Gutenberg lists carry .wp-block-list, so a bare ul selector misses them. */
.crt-entry .wp-block-list { padding-left: 1.3em; margin-block: 0 var(--space-5); }
.crt-entry .wp-block-list li { margin-block: var(--space-2); }

/* ---------- 6. Buttons --------------------------------------------------- */

.crt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  background-image: none;
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.crt-btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.crt-btn:active { transform: translateY(0); }
/* Shipped default endpoint — kept here so the path lives in main.css too and
   a stale second endpoint cannot hide in the stylesheet. */
.crt-entry a[href="/chat.html"] { -webkit-tap-highlight-color: transparent; }

/* ---------- 7. Age gate — D-5 Quiet Sonar -------------------------------- */

.crt-gate {
  max-width: 1000px;
  margin-inline: auto;
  margin-block: 0 var(--space-7);
}
.crt-gate__card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: var(--space-5);
  padding: clamp(24px, 4vw, 44px);
  background: var(--gate-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--on-gate);
}
.crt-gate.is-compact .crt-gate__card { padding-block: var(--space-4); }
.crt-gate__badge {
  display: inline-block;
  margin-block: 0 var(--space-3);
  padding: 4px var(--space-3);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: .08em;
  color: var(--on-gate);
  border: 1.5px solid var(--on-gate);
  border-radius: 6px;
}
.crt-gate__q {
  font-size: var(--step-2);
  color: var(--on-gate);
  margin-block: 0 var(--space-3);
  scroll-margin-top: 0;
}
.crt-gate__note {
  color: var(--on-gate-muted);
  font-size: var(--step--1);
  margin-block: 0 var(--space-5);
  max-width: 34rem;
}
.crt-gate.is-compact .crt-gate__note { display: none; }
.crt-gate__btn { min-height: 54px; }

.crt-gate__sonar { position: relative; height: 170px; display: grid; place-items: center; }
.crt-gate__dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--on-gate); opacity: .8;
}
.crt-gate__ring {
  position: absolute;
  width: 70px; height: 70px;
  border: 1.5px solid var(--on-gate);
  border-radius: 50%;
  opacity: .28;
  transform: scale(1);
}
.crt-gate__ring--2 { width: 118px; height: 118px; opacity: .18; }
.crt-gate__ring--3 { width: 168px; height: 168px; opacity: .1; }

@media (prefers-reduced-motion: no-preference) {
  .crt-gate__ring { animation: crt-sonar 8s ease-out infinite; opacity: 0; }
  .crt-gate__ring--2 { animation-delay: 2.6s; }
  .crt-gate__ring--3 { animation-delay: 5.2s; }
  @keyframes crt-sonar {
    0%   { transform: scale(.55); opacity: 0; }
    18%  { opacity: .34; }
    100% { transform: scale(2.2); opacity: 0; }
  }
}

/* ---------- 8. Illustration ---------------------------------------------- */

.crt-figure {
  margin-block: var(--space-7);
  margin-inline: auto;
  max-width: var(--column);
}
.crt-illus {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.crt-figure__cap {
  margin-block: var(--space-3) 0;
  font-size: var(--step--1);
  color: var(--muted);
  text-align: center;
}
/* :where() floor keeps any unclassed shape off the UA default black; the
   classed rules below outrank it. */
.crt-illus :where(path, circle, rect, ellipse) { fill: var(--accent-2); }
.crt-illus__bg     { fill: var(--surface); }
.crt-illus__blob--1 { fill: var(--blob-1); }
.crt-illus__blob--2 { fill: var(--blob-2); }
.crt-illus__glow-a { stop-color: var(--illus-glow-a); }
.crt-illus__glow-b { stop-color: var(--illus-glow-b); }
.crt-illus__glow   { fill: url(#crt-illus-glow); }
.crt-illus__fig    { fill: var(--illus-fig); }
.crt-illus__rim    { fill: var(--illus-rim); }
.crt-illus__arm    { fill: var(--illus-fig); }
.crt-illus__phone  { fill: var(--text); }
.crt-illus__screen { fill: var(--surface-2); }
.crt-illus__face   { fill: var(--illus-skin); }
.crt-illus__bar    { fill: var(--illus-bar); }
.crt-illus__key    { fill: var(--illus-key); }

/* ---------- 9. Feature cards --------------------------------------------- */

.crt-cards {
  list-style: none;
  padding: 0;
  margin-block: var(--space-5) var(--space-6);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.crt-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.crt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.crt-card__ico {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
}
.crt-card__ico svg { width: 19px; height: 19px; display: block; }
.crt-card__h { font-size: var(--step-0); margin-block: 0 var(--space-2); }
.crt-card__p { font-size: var(--step--1); color: var(--muted); margin-block: 0; line-height: 1.65; }

/* ---------- 10. Comparison ----------------------------------------------- */

.crt-compare {
  margin-block: var(--space-5) var(--space-6);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.crt-compare__col {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.crt-compare__col--b { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.crt-compare__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-block: 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.crt-compare__list { margin: 0; }
.crt-compare__list dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step--1);
  margin-block: var(--space-4) 2px;
}
.crt-compare__list dt:first-of-type { margin-top: 0; }
.crt-compare__list dd {
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 11. FAQ ------------------------------------------------------ */

.crt-faq { margin-block: var(--space-5) var(--space-6); margin-inline: auto; }
.crt-faq__item { border-bottom: 1px solid var(--line); }
.crt-faq__item:first-child { border-top: 1px solid var(--line); }
.crt-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding-block: var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.crt-faq__item summary::-webkit-details-marker { display: none; }
.crt-faq__item summary::after {
  content: "";
  flex: 0 0 10px;
  width: 10px; height: 10px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.crt-faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.crt-faq__a { padding-bottom: var(--space-4); }
.crt-faq__a p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------- 12. Cookie notice -------------------------------------------- */

/* Bottom-pinned, always. Where it would sit over the 18+ button on a short
   screen it shrinks and the gate loses a little padding — it never moves to
   the top, because a card over the header was reported as a bug in its own
   right. The decision is one-way so it cannot oscillate on scroll. */
.crt-cookie {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 130%);
  width: min(680px, calc(100vw - 2 * var(--space-4)));
  z-index: 35;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.crt-cookie[data-shown="true"] { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.crt-cookie__text {
  margin: 0;
  flex: 1 1 320px;
  min-width: 0;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.6;
}
.crt-cookie__text a { color: var(--text); text-underline-offset: 3px; }
.crt-cookie.is-tight { padding: var(--space-3) var(--space-4); }
.crt-cookie.is-tight .crt-cookie__text { font-size: .8rem; line-height: 1.5; }
.crt-cookie.is-tight .crt-cookie__extra { display: none; }
.crt-cookie__btn { min-height: 44px; padding-inline: var(--space-5); flex: 0 0 auto; }

/* ---------- 13. Sticky mobile CTA + back to top (F-3) -------------------- */

.crt-sticky {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.crt-sticky .crt-btn { width: 100%; min-height: 50px; }

/* Both bottom layers stand down while the drawer is open. */
body.crt-drawer-open .crt-sticky,
body.crt-drawer-open .crt-cookie,
body.crt-drawer-open .crt-top { opacity: 0; pointer-events: none; }

.crt-top {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  z-index: 33;
  width: 44px; height: 44px;
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.crt-top[data-shown="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.crt-top svg { width: 18px; height: 18px; display: block; }

/* ---------- 14. Footer --------------------------------------------------- */

.crt-foot {
  margin-top: var(--space-8);
  padding: var(--space-6) clamp(16px, 4vw, 32px) calc(var(--space-6) + var(--sticky-h));
  border-top: 1px solid var(--line);
}
.crt-foot__inner {
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--step--1);
  color: var(--muted);
}
.crt-foot__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.crt-foot__nav a { color: var(--muted); text-decoration: none; text-underline-offset: 3px; }
.crt-foot__nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 15. Inner pages + 404 ---------------------------------------- */

.crt-page { padding-inline: clamp(16px, 4vw, 32px); }
.crt-page > * { max-width: var(--column); margin-inline: auto; }
.crt-page h1 { font-size: var(--step-3); margin-block: var(--space-6) var(--space-5); }
.crt-page h2 { font-size: var(--step-2); margin-block: var(--space-7) var(--space-4); }
.crt-page a { color: var(--accent); }
[data-theme="dark"] .crt-page a { color: var(--text); }

.crt-404 { text-align: center; padding: var(--space-8) clamp(16px, 4vw, 32px); }
.crt-404__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: .9;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--line-strong);
  margin-block: 0 var(--space-5);
}
.crt-404 p { color: var(--muted); max-width: 34rem; margin-inline: auto; }

/* ---------- 16. Reveal — Bank O-3, transform only ------------------------ */

/* Scroll-driven, and it moves nothing but transform: a block can never be
   invisible because a timeline failed to run. No observer ships in this build. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .crt-entry > h2,
    .crt-entry > .crt-figure,
    .crt-entry > .crt-cards,
    .crt-entry > .crt-compare,
    .crt-entry > .crt-faq {
      animation: crt-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
    @keyframes crt-rise {
      from { transform: translateY(16px); }
      to   { transform: translateY(0); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 17. Breakpoints ---------------------------------------------- */

@media (max-width: 1024px) {
  .crt-gate__card { grid-template-columns: minmax(0, 1fr) 150px; }
  .crt-gate__sonar { height: 140px; }
}

@media (max-width: 768px) {
  /* Scoped so only the DESKTOP dropdown goes: an unscoped .crt-lang rule
     would take the copy inside the drawer with it and open an empty menu. */
  .crt-head__actions .crt-lang { display: none; }
  .crt-burger { display: inline-grid; }
  .crt-head__card { gap: var(--space-2); padding: var(--space-2) var(--space-3); }
  .crt-head { padding: var(--space-2) var(--space-3); }
  .crt-brand__mark { width: 26px; height: 26px; flex-basis: 26px; }
  .crt-icon-btn { width: 40px; height: 40px; }

  .crt-gate__card { grid-template-columns: minmax(0, 1fr); }
  .crt-gate__sonar { display: none; }
  .crt-cards, .crt-compare { grid-template-columns: minmax(0, 1fr); }
  .crt-sticky { display: block; }
  .crt-entry h2 { margin-block: var(--space-7) var(--space-4); }
}

@media (min-width: 769px) {
  /* the other half of the pair — without this the desktop shows a dropdown
     AND a burger holding a second copy of the same list. */
  .crt-burger { display: none; }
  .crt-drawer { display: none !important; }
}

@media (max-width: 480px) {
  .crt-brand__name { font-size: clamp(.9rem, .7rem + 1vw, 1.02rem); }
  .crt-head__card { padding-inline: var(--space-3); }
  .crt-cookie { width: calc(100vw - 2 * var(--space-3)); padding: var(--space-4); }
  .crt-cookie__btn { width: 100%; }
}

/* WordPress admin bar: fixed above 783px, absolute below it. Holding a 46px
   offset at phone widths leaves a permanent transparent gap at the top that
   the article scrolls through — the "torn off the top" report. */
@media screen and (min-width: 783px) {
  body.admin-bar .crt-head { top: 32px; }
}
@media screen and (max-width: 782px) {
  body.admin-bar .crt-head { top: 0; }
}
