/* SaaSVeer — design system and page styles.
   Paper and night. Vermilion marks a reason to leave. Jade marks a fix. */

/* ---------- Tokens ---------- */
:root {
  --bg: #f4efe5;
  --bg-2: #ebe3d4;
  --card: #fffcf6;
  --ink: #17130e;
  --ink-2: #4a4337;
  --ink-3: #776e5f;
  --line: #ddd3c1;
  --line-2: #cbbfa9;
  --leave: #e4472a;
  --leave-ink: #b1351b;
  --leave-soft: #f9e0d6;
  --fix: #11795a;
  --fix-ink: #0d684d;
  --fix-soft: #d4ede1;
  --dot-off: #ddd3c1;
  --shadow: 0 1px 0 rgba(23, 19, 14, .04), 0 10px 30px -18px rgba(23, 19, 14, .28);
  --shadow-lift: 0 1px 0 rgba(23, 19, 14, .05), 0 26px 50px -24px rgba(23, 19, 14, .4);

  /* Night: header, heroes, switchboards and footer stay dark in both themes. */
  --night: #0c1512;
  --night-2: #121e1a;
  --night-3: #192824;
  --night-line: #263a33;
  --cream: #f3ede0;
  --cream-2: #b8c1b8;
  --cream-3: #86928a;
  --coral: #ff7a5c;
  --mint: #5fe0a8;
  --focus: #f2b940;

  --f-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 22px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d1210;
  --bg-2: #121916;
  --card: #151d1a;
  --ink: #eee8dc;
  --ink-2: #c1baac;
  --ink-3: #8f897d;
  --line: #24302b;
  --line-2: #33413a;
  --leave: #ff6a4a;
  --leave-ink: #ff8f76;
  --leave-soft: #33190f;
  --fix: #4bd69c;
  --fix-ink: #74e3b4;
  --fix-soft: #11301f;
  --dot-off: #2c3833;
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 34px -20px rgba(0, 0, 0, .7);
  --shadow-lift: 0 1px 0 rgba(0, 0, 0, .25), 0 28px 54px -24px rgba(0, 0, 0, .85);
  --night: #080d0b;
  --night-2: #0f1714;
  --night-3: #16211d;
  --night-line: #22322c;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1210;
    --bg-2: #121916;
    --card: #151d1a;
    --ink: #eee8dc;
    --ink-2: #c1baac;
    --ink-3: #8f897d;
    --line: #24302b;
    --line-2: #33413a;
    --leave: #ff6a4a;
    --leave-ink: #ff8f76;
    --leave-soft: #33190f;
    --fix: #4bd69c;
    --fix-ink: #74e3b4;
    --fix-soft: #11301f;
    --dot-off: #2c3833;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 34px -20px rgba(0, 0, 0, .7);
    --shadow-lift: 0 1px 0 rgba(0, 0, 0, .25), 0 28px 54px -24px rgba(0, 0, 0, .85);
    --night: #080d0b;
    --night-2: #0f1714;
    --night-3: #16211d;
    --night-line: #22322c;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--leave); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .8em; letter-spacing: -.01em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--focus); color: #17130e; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Icons */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-arrow { width: 24px; height: 12px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.i-out { width: 14px; height: 14px; display: inline-block; vertical-align: -1px; margin-left: 2px; }
.i-veer { width: 18px; height: 18px; }

/* The mark */
.mark { width: 32px; height: 32px; flex: none; }
.mark-bg { fill: var(--leave); }
.mark-ghost { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .1 4.3; }
.mark-line { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 15.5px; line-height: 1.1; text-decoration: none; letter-spacing: -.005em;
  transition: background-color .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover .i-arrow, .ticket:hover .i-arrow, .sec-link:hover .i-arrow, .hero-all:hover .i-arrow { transform: translateX(4px); }
.btn-leave { background: var(--leave); color: #fff; box-shadow: 0 10px 24px -12px rgba(228, 71, 42, .8); }
.btn-leave:hover { background: #cf3b20; transform: translateY(-1px); }
.btn-ghost { border-color: var(--night-line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream-3); }
.btn-lg { padding: 16px 24px; font-size: 17px; }

.fchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font-size: 14px; font-weight: 560; color: var(--ink-2); transition: all .18s;
}
.fchip b { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.fchip:hover { border-color: var(--ink-3); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fchip[aria-pressed="true"] b { color: var(--bg); opacity: .7; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, transform .2s;
}
.chip b { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; color: var(--leave-ink); }
.chip:hover { border-color: var(--leave); transform: translateY(-1px); }

/* Logo tiles: favicon over a letter that shows if the image fails. */
.lg { --s: 40px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 28%; background: #fff; box-shadow: inset 0 0 0 1px rgba(23, 19, 14, .09); overflow: hidden; }
.lg b { font-weight: 800; font-size: calc(var(--s) * .48); line-height: 1; color: hsl(var(--h) 52% 38%); }
.lg img { position: absolute; inset: 17%; width: 66%; height: 66%; object-fit: contain; }
.lg-xs { --s: 22px; border-radius: 7px; }
.lg-s { --s: 32px; }
.lg-m { --s: 42px; }
.lg-l { --s: 54px; }
.lg.is-fallback { background: hsl(var(--h) 60% 92%); }

/* Review dots: one per review studied, lit when the review names the reason. */
.dots { --d: 8px; display: grid; grid-template-columns: repeat(auto-fill, var(--d)); gap: calc(var(--d) * .55); width: 100%; max-width: calc(var(--d) * 1.55 * 26); }
.dots i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--dot-off); }
.dots i.on { background: var(--leave); }
.dots-sm { --d: 6px; max-width: calc(6px * 1.55 * 20); }
.dots-hero { --d: 11px; }
.dots.is-anim i.on { animation: lit .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes lit { from { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.25); } to { transform: scale(1); opacity: 1; } }

.lbl { display: flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); }
.lbl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 122, 92, .18); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--night-line); color: var(--cream); }
.hdr-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.wm { font-size: 21px; font-weight: 780; letter-spacing: -.035em; line-height: 1; }
.wm em { font-family: var(--f-serif); font-style: italic; font-weight: 520; color: var(--coral); letter-spacing: -.015em; margin-left: -.06em; }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--cream-2); font-size: 15px; font-weight: 550; text-decoration: none; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--cream); background: var(--night-3); }
.nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--coral); }
.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; min-width: 230px; padding: 0 8px 0 13px; border-radius: 12px; border: 1px solid var(--night-line); background: var(--night-3); color: var(--cream-2); font-size: 14.5px; transition: border-color .2s; }
.search-btn:hover { border-color: var(--cream-3); color: var(--cream); }
.search-btn .i { width: 18px; height: 18px; }
kbd { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--night-line); color: var(--cream-3); background: transparent; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--night-line); background: transparent; color: var(--cream); transition: border-color .2s; }
.icon-btn:hover { border-color: var(--cream-3); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
.menu-btn { display: none; }
.m-nav { border-top: 1px solid var(--night-line); background: var(--night); }
.m-nav .wrap { display: grid; padding-block: 8px 16px; }
.m-nav a { padding: 14px 2px; font-size: 18px; font-weight: 600; color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--night-line); }

/* ---------- Night sections (heroes) ---------- */
.hero, .phero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(255, 122, 92, .17), transparent 62%),
    radial-gradient(760px 420px at -8% 112%, rgba(95, 224, 168, .11), transparent 62%),
    var(--night);
}
.hero::before, .phero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 75%);
}
.hero > .wrap, .phero > .wrap { position: relative; }
.hero-art { position: absolute; right: -2%; top: 52px; width: min(44vw, 600px); pointer-events: none; }
.swoop path { fill: none; stroke: var(--coral); stroke-width: .35; stroke-linecap: round; stroke-linejoin: round; opacity: .45; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.6s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
.swoop path:last-child { animation-delay: 1.4s; animation-duration: .5s; }
.swoop { overflow: visible; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-2); }
.eyebrow i { font-style: normal; color: var(--coral); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(95, 224, 168, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(95, 224, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 224, 168, 0); } }

/* ---------- Home hero ---------- */
.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(56px, 8vw, 104px); }
.hero-q {
  margin: 22px 0 26px; max-width: 13.5ch;
  font-size: clamp(2.75rem, 1.1rem + 6.4vw, 6.9rem); font-weight: 800; line-height: .93; letter-spacing: -.045em;
  text-wrap: balance;
}
.pick {
  display: inline-flex; align-items: baseline; gap: .08em; padding: 0 .06em; margin: 0 -.02em; border: 0; background: none;
  font-family: var(--f-serif); font-style: italic; font-weight: 480; letter-spacing: -.03em; color: var(--coral);
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 100% .055em; background-position: 0 94%;
  transition: background-size .3s, color .2s;
}
.pick:hover { background-size: 100% .1em; }
.pick .i-chev { width: .42em; height: .42em; stroke-width: 2.4; transform: translateY(-.08em); opacity: .85; }
.pick.is-swap span { animation: swap .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(.18em); filter: blur(4px); } }

.hero-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; }
.hero-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px 6px 6px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-3); color: var(--cream-2); font-size: 15px; font-weight: 600; transition: all .2s; }
.hero-tabs [role="tab"]:hover { border-color: var(--coral); color: var(--cream); }
.hero-tabs [role="tab"][aria-selected="true"] { background: var(--cream); border-color: var(--cream); color: #17130e; }
.hero-tabs [data-extra] { animation: chip-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes chip-in { from { opacity: 0; transform: translateX(-10px) scale(.94); } }
.hero-pickbtn { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 6px; border-radius: 999px; border: 1px dashed rgba(255, 122, 92, .6); background: transparent; color: var(--cream); font-size: 15px; font-weight: 600; transition: all .2s; }
.hero-pickbtn:hover, .hero-pickbtn:focus-visible { border-style: solid; border-color: var(--coral); background: rgba(255, 122, 92, .12); }
.hero-pickbtn .pk-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--coral); color: #17130e; }
.hero-pickbtn .pk-ic .i { width: 13px; height: 13px; stroke-width: 2.6; }
.hero-pickbtn .i-chev { width: 15px; height: 15px; color: var(--coral); transition: transform .2s; }
.hero-pickbtn:hover .i-chev { transform: translateY(2px); }
.hero-pickbtn[aria-busy="true"] { cursor: progress; opacity: .7; }
.hero-all { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; color: var(--cream-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.hero-all:hover { color: var(--cream); }

/* The answer: a ticket with a perforation between the reasons and the fixes. */
.ans {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 30px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75);
  animation: rise .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.ans-l { padding: clamp(22px, 3.2vw, 42px); min-width: 0; }
.ans-r { position: relative; padding: clamp(22px, 3.2vw, 42px); min-width: 0; border-radius: 0 30px 30px 0; background: linear-gradient(180deg, rgba(95, 224, 168, .06), transparent 55%); display: flex; flex-direction: column; }
.ans-perf { position: absolute; left: -1px; top: 0; bottom: 0; border-left: 2px dashed var(--night-line); }
.ans-perf::before, .ans-perf::after { content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--night); border: 1px solid var(--night-line); }
.ans-perf::before { top: -15px; clip-path: inset(50% 0 0 0); }
.ans-perf::after { bottom: -15px; clip-path: inset(0 0 50% 0); }
.ans-lead { margin: 14px 0 20px; font-size: clamp(1.7rem, .9rem + 2.3vw, 2.75rem); font-weight: 720; line-height: 1.04; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.ans-proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 26px; margin-bottom: 22px; border-bottom: 1px solid var(--night-line); }
.ans-proof .dots, .t-count .dots, .reason-proof .dots { min-width: 0; }
.ans-proof .mono, .reason-proof .mono { font-size: 13px; color: var(--cream-2); }
.ans-proof b { color: var(--coral); font-weight: 600; }
.ans .dots, .board .dots { --dot-off: var(--night-line); }
.ans .dots i.on { background: var(--coral); box-shadow: 0 0 10px rgba(255, 122, 92, .45); }
.lbl-sub { margin-bottom: 10px; }
.lbl-fix { color: var(--mint); }
.lbl-fix .i-veer { width: 16px; height: 16px; }
.ans-fixfor { margin: 6px 0 16px; font-family: var(--f-serif); font-style: italic; font-weight: 450; font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); line-height: 1.15; color: var(--mint); letter-spacing: -.01em; }
.ans-r .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Switchboard (shared) ---------- */
.board-reasons { display: grid; gap: 4px; align-content: start; }
.b-reason {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px;
  width: 100%; padding: 11px 12px 13px; border-radius: 14px; border: 1px solid transparent; background: transparent; text-align: left; color: var(--cream-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.b-reason:hover { background: var(--night-3); color: var(--cream); }
.b-reason[aria-pressed="true"] { background: var(--night-3); border-color: rgba(255, 122, 92, .45); color: #fff; }
.b-rank { font-family: var(--f-mono); font-size: 12px; color: var(--cream-3); }
.b-reason[aria-pressed="true"] .b-rank { color: var(--coral); }
.b-title { font-size: 15.5px; font-weight: 620; line-height: 1.25; }
.b-count { font-family: var(--f-mono); font-size: 12px; color: var(--cream-3); }
.b-count b { color: var(--cream); font-weight: 600; }
.b-bar { grid-column: 2 / -1; height: 3px; border-radius: 3px; background: var(--night-line); overflow: hidden; }
.b-bar::after { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--cream-3); transition: background-color .2s; }
.b-reason[aria-pressed="true"] .b-bar::after { background: var(--coral); }

.board-alts { display: grid; gap: 8px; }
.b-alt a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 16px; border: 1px solid var(--night-line); background: var(--night-3);
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.b-alt a:hover { border-color: var(--mint); transform: translateX(2px); }
.b-alt-main { display: grid; gap: 2px; min-width: 0; }
.b-alt-name { color: #fff; font-weight: 680; font-size: 15.5px; }
.b-alt-fact { display: none; color: var(--cream-2); font-size: 13.5px; line-height: 1.35; }
.b-alt-fact.is-cur { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-alt-price { font-family: var(--f-mono); font-size: 11.5px; white-space: nowrap; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--cream-2); }
.board-note { margin: 10px 0 18px; font-family: var(--f-mono); font-size: 12px; color: var(--cream-3); }
[data-limit="4"] .b-alt:not(.is-on) { display: none; }
.b-alt.is-on { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k, 0) * 60ms); }
.board-full .b-alt:not(.is-on) a { opacity: .38; border-color: transparent; background: transparent; }
.board-full .b-alt:not(.is-on) .b-alt-fact { display: none; }

.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.wires path { fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; opacity: .85; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s cubic-bezier(.6, 0, .2, 1) forwards; animation-delay: calc(var(--k, 0) * 60ms); }
.wires circle { fill: var(--mint); }
.wires .head { fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; animation: fade .3s forwards; animation-delay: calc(var(--k, 0) * 60ms + .55s); }
@keyframes fade { to { opacity: .9; } }

.board-full {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px 84px;
  padding: clamp(18px, 2.6vw, 30px); border-radius: 26px; background: var(--night); color: var(--cream); border: 1px solid var(--night-line);
  background-image: radial-gradient(600px 300px at 100% 0, rgba(95, 224, 168, .08), transparent 60%);
}
.board-right .lbl-fix { margin: 4px 0 14px; gap: 8px; flex-wrap: wrap; }
.board-right .lbl-fix b { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 480; font-size: 17px; color: var(--mint); }

/* ---------- Sections ---------- */
.sec { padding: clamp(60px, 8vw, 108px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 28px; margin-bottom: clamp(26px, 3vw, 40px); }
.sec-head .kicker { grid-column: 1 / -1; }
.sec-head h2, .block h2 { font-size: clamp(1.95rem, 1.15rem + 2.5vw, 3.2rem); font-weight: 780; line-height: 1.02; letter-spacing: -.038em; text-wrap: balance; }
.sec-sub { grid-column: 1 / -1; max-width: 62ch; color: var(--ink-2); }
.sec-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; color: var(--ink); white-space: nowrap; }
.sec-link:hover { color: var(--leave-ink); }
.kicker { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kicker span { font-family: var(--f-serif); font-style: italic; font-size: 18px; letter-spacing: 0; color: var(--leave); }

/* Boarding pass cards */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 20px; }
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 172px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.ticket:hover { transform: translateY(-4px) rotate(-.25deg); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.t-main { padding: 22px 24px 22px; min-width: 0; }
.t-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-lbl { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.t-cat { font-family: var(--f-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.t-tool { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; font-size: 27px; font-weight: 780; letter-spacing: -.03em; line-height: 1; }
.t-reason { margin: 6px 0 16px; font-size: 19px; font-weight: 660; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.t-count { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-count .dots { width: auto; flex: 1 1 120px; }
.t-count .mono { color: var(--ink-3); font-size: 12px; }
.t-stub {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px;
  border-left: 2px dashed var(--line-2); border-radius: 0 var(--r) var(--r) 0;
  background: color-mix(in srgb, var(--fix-soft) 38%, var(--card));
}
.t-stub::before, .t-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.t-stub::before { top: -13px; clip-path: inset(50% 0 0 0); }
.t-stub::after { bottom: -13px; clip-path: inset(0 0 50% 0); }
.t-n { margin-top: 6px; font-family: var(--f-serif); font-style: italic; font-weight: 450; font-size: 64px; line-height: .9; letter-spacing: -.03em; color: var(--fix-ink); }
.t-sub { font-size: 14px; color: var(--ink-2); }
.t-logos { display: flex; margin: 14px 0 16px; }
.t-logos .lg { margin-right: -9px; box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1px rgba(23, 19, 14, .09); }
.t-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 680; font-size: 15px; color: var(--leave-ink); }

/* Patterns across tools */
.sec-themes { background: var(--bg-2); border-block: 1px solid var(--line); }
.themes { display: grid; }
.theme { display: grid; grid-template-columns: 64px minmax(160px, 260px) minmax(0, 1fr); align-items: center; gap: 12px 20px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.theme:last-child { border-bottom: 1px solid var(--line-2); }
.theme-no { font-family: var(--f-serif); font-style: italic; font-size: 30px; color: var(--leave); line-height: 1; }
.theme-name { font-size: 21px; font-weight: 720; letter-spacing: -.02em; line-height: 1.15; }
.theme-tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* How the count works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 28px; }
.steps li { position: relative; padding: 28px 26px 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -21px; top: 50%; width: 20px; height: 12px; transform: translateY(-50%); z-index: 1;
  background: var(--leave);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h16M13 1.5 17.5 6 13 10.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h16M13 1.5 17.5 6 13 10.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.step-no { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 450; font-size: 58px; line-height: .9; color: var(--leave); margin-bottom: 16px; }
.steps h3 { font-size: 21px; font-weight: 720; letter-spacing: -.02em; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* ---------- Tool page hero ---------- */
.phero { padding: 28px 0 clamp(44px, 6vw, 72px); }
.phero .hero-art { top: 70px; width: min(36vw, 480px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--cream-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--night-line); }
.crumbs a { color: var(--cream-2); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.phero-id { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.phero-h { margin: 18px 0 32px; max-width: 22ch; font-size: clamp(2.15rem, 1.15rem + 3.7vw, 4.6rem); font-weight: 790; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.phero-sub { max-width: 56ch; color: var(--cream-2); font-size: 19px; margin-top: -14px; }
.phero-s .phero-h { margin-bottom: 18px; }
.phero-s .phero-sub { margin-top: 0; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr); gap: 18px; align-items: start; }
.short { padding: 24px 28px 22px; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--night-line); }
.short ul { margin-top: 12px; }
.short li { position: relative; padding: 9px 0 9px 32px; font-size: 17.5px; line-height: 1.42; color: var(--cream); border-top: 1px solid var(--night-line); }
.short li:first-child { border-top: 0; font-size: 19.5px; font-weight: 650; color: #fff; }
.short li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; background: var(--coral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 19v-6.5C5 8 8 5 12.5 5H18M14.5 1.6 18 5l-3.5 3.4' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 19v-6.5C5 8 8 5 12.5 5H18M14.5 1.6 18 5l-3.5 3.4' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.short li:first-child::before { top: 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats div { padding: 16px 18px; border-radius: 18px; background: var(--night-2); border: 1px solid var(--night-line); }
.stats dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--cream-3); }
.stats dd { margin-top: 4px; font-size: 36px; font-weight: 760; letter-spacing: -.04em; line-height: 1; color: #fff; }
.stats .stats-wide { grid-column: 1 / -1; }
.stats .stats-wide dd { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--cream-2); margin-top: 8px; line-height: 1.4; }
.stats dd i { font-style: normal; color: var(--coral); }

/* ---------- Tool page body ---------- */
.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; padding-block: 56px 88px; }
.toc { position: relative; }
.toc-box { position: sticky; top: 92px; }
.toc-box summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); padding: 4px 10px 12px; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary .i { width: 16px; height: 16px; transition: transform .2s; }
.toc-box[open] summary .i { transform: rotate(180deg); }
.toc-box ol { display: grid; gap: 2px; }
.toc-box a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 560; line-height: 1.3; transition: background-color .2s, color .2s; }
.toc-box a .mono { color: var(--ink-3); font-size: 11.5px; padding-top: 2px; }
.toc-box a:hover { color: var(--ink); background: var(--bg-2); }
.toc-box a.is-cur { color: var(--ink); background: var(--card); box-shadow: inset 3px 0 0 var(--leave), var(--shadow); }
.toc-box a.is-cur .mono { color: var(--leave); }
.toc-box a.is-done .mono { color: var(--fix); }
.toc-bar { display: block; height: 3px; margin: 14px 10px 0; border-radius: 3px; background: var(--line); overflow: hidden; }
.toc-bar i { display: block; width: var(--p, 0%); height: 100%; background: var(--leave); transition: width .15s; }

.doc-main { min-width: 0; }
.block { margin-bottom: 84px; scroll-margin-top: 90px; }
.block h2 { margin: 10px 0 12px; font-size: clamp(1.8rem, 1.1rem + 2vw, 2.7rem); }
.block-sub { max-width: 68ch; color: var(--ink-2); margin-bottom: 26px; }
.out { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--leave); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.out:hover { color: var(--leave-ink); }

/* Reason cards */
.reasons { display: grid; gap: 16px; }
.reason { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-content: start; gap: 6px 18px; padding: 26px 28px 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.reason::before { content: ""; position: absolute; left: -1px; top: 26px; bottom: 26px; width: 3px; border-radius: 0 3px 3px 0; background: var(--leave); }
.reason-no { font-family: var(--f-serif); font-style: italic; font-weight: 420; font-size: 62px; line-height: .82; color: var(--leave); letter-spacing: -.04em; }
.reason h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.55rem); font-weight: 730; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.reason-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 14px; }
.reason-proof .dots { width: auto; flex: 0 1 auto; }
.reason-proof .mono { color: var(--ink-3); font-size: 12.5px; }
.reason-proof b { color: var(--leave-ink); font-weight: 600; }
.evidence li { position: relative; padding: 10px 0 10px 20px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.evidence li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.fact { margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: var(--leave-soft); font-size: 15.5px; line-height: 1.45; }
.fact-tag { display: inline-block; margin-right: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--leave-ink); }
.fixed-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.fixed-by > span { margin-right: 4px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.fixed-by a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--fix-soft); color: var(--fix-ink); font-size: 13.5px; font-weight: 650; text-decoration: none; transition: transform .2s; }
.fixed-by a:hover { transform: translateY(-1px); }

/* Filters and alternative cards */
.filters { position: sticky; top: 78px; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 12px 14px; margin-bottom: 18px; border-radius: 18px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.filters-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.sort select { appearance: none; -webkit-appearance: none; padding: 7px 30px 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23776e5f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 8px center / 16px no-repeat; color: var(--ink); font-size: 14px; font-weight: 560; }
.filters-count { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
.alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.alt { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: 150px; transition: border-color .3s, box-shadow .3s; }
.alt:target, .alt.is-flash { border-color: var(--fix); box-shadow: 0 0 0 3px var(--fix-soft), var(--shadow-lift); }
.alt-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.alt-meter { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.meter { display: flex; gap: 3px; }
.meter i { width: 16px; height: 6px; border-radius: 3px; background: var(--line-2); }
.meter i.on { background: var(--fix); }
.alt-meter .mono { color: var(--ink-3); font-size: 11.5px; }
.alt-id h3 { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 760; letter-spacing: -.025em; line-height: 1.1; }
.alt-no { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--leave); letter-spacing: 0; }
.alt-best { margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.alt-best b { margin-right: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.alt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.alt-facts div { padding: 10px 12px; background: var(--bg); }
.alt-facts dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.alt-facts dd { margin-top: 3px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.alt-fixes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-top: 1px dashed var(--line); }
.alt-fixes li:first-child { border-top: 0; padding-top: 0; }
.fx-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--fix-soft); color: var(--fix-ink); font-size: 12.5px; font-weight: 680; text-decoration: none; white-space: nowrap; }
.fx-tag .i { width: 14px; height: 14px; stroke-width: 2.4; }
.alt-fixes span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.alt-catch { padding: 11px 13px; border-radius: 14px; background: color-mix(in srgb, var(--leave-soft) 70%, transparent); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.alt-catch b { display: block; margin-bottom: 2px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--leave-ink); }
.alt-read { margin-top: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.empty { padding: 28px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* Tables */
.tbl-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); background: var(--bg); white-space: nowrap; }
tbody th { font-weight: 680; white-space: nowrap; }
tbody th a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
tbody th a:hover span { color: var(--leave-ink); }
tbody tr:hover > * { background: color-mix(in srgb, var(--bg-2) 45%, transparent); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-tags span { padding: 2px 8px; border-radius: 999px; background: var(--fix-soft); color: var(--fix-ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
.limits { margin-top: 20px; padding: 18px 20px; border-radius: 18px; background: var(--bg-2); }
.limits .lbl { color: var(--ink-3); margin-bottom: 8px; }
.limits li { position: relative; padding: 6px 0 6px 22px; color: var(--ink-2); font-size: 15.5px; }
.limits li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 2px; border-radius: 2px; background: var(--leave); }
.src { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; list-style: none; cursor: pointer; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); font-weight: 680; letter-spacing: -.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; flex: none; color: var(--leave); transition: transform .25s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq p { max-width: 70ch; padding: 0 2px 22px; color: var(--ink-2); }

/* Author and note */
.author, .team { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.author-mark .mark { width: 60px; height: 60px; }
.author-name { font-size: 18px; font-weight: 740; margin-bottom: 4px; }
.author p:not(.author-name), .team p:not(.author-name) { color: var(--ink-2); font-size: 15.5px; }
.author a { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 650; text-decoration: none; color: var(--leave-ink); }
.note { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }
.sec-more { background: var(--bg-2); border-top: 1px solid var(--line); }

/* ---------- Prose pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 60px 0 100px; }
.prose h2 { margin: 42px 0 12px; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.prose p, .prose li { color: var(--ink-2); font-size: 17.5px; }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 2px; border-radius: 2px; background: var(--leave); }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--leave); text-underline-offset: 3px; }
.lede { font-size: clamp(1.25rem, 1rem + .8vw, 1.55rem) !important; line-height: 1.4; color: var(--ink) !important; font-weight: 520; letter-spacing: -.01em; }
.big-mail { margin: 18px 0 10px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
.big-mail a { color: var(--leave-ink) !important; }
.team { margin-top: 10px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.nf-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero-404 { min-height: 62vh; display: flex; align-items: center; }

/* ---------- Footer ---------- */
.ftr { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--night); color: var(--cream-2); }
.ftr::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 300px at 10% 0, rgba(255, 122, 92, .12), transparent 60%); }
.ftr .wrap { position: relative; }
.ftr-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.ftr-big { max-width: 16ch; font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.9rem); font-weight: 790; line-height: .98; letter-spacing: -.04em; color: var(--cream); text-wrap: balance; }
.ftr-big em { font-family: var(--f-serif); font-style: italic; font-weight: 460; color: var(--coral); letter-spacing: -.025em; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0; }
.ftr-brand p { margin-top: 14px; max-width: 34ch; font-size: 15px; }
.ftr-h { margin-bottom: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.ftr li { margin: 8px 0; }
.ftr li a { color: var(--cream); text-decoration: none; font-size: 15.5px; opacity: .86; transition: opacity .2s, color .2s; }
.ftr li a:hover { opacity: 1; color: var(--coral); }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 13.5px; color: var(--cream-3); }
.ftr-bot nav { display: flex; gap: 18px; }
.ftr-bot a { color: var(--cream-2); text-decoration: none; }
.ftr-bot a:hover { color: var(--cream); }

/* ---------- Search dialog ---------- */
.pal { width: min(640px, calc(100vw - 24px)); max-height: min(72vh, 580px); margin: 11vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); overflow: hidden; }
.pal[open] { display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.pal::backdrop { background: rgba(8, 13, 11, .58); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.pal-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-top input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 19px; font-weight: 520; color: var(--ink); outline: none; }
.pal-top input::placeholder { color: var(--ink-3); }
.pal-top input::-webkit-search-cancel-button { display: none; }
.pal-x { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.pal-list { flex: 1; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.pal-group { padding: 12px 12px 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.pal-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 13px; text-decoration: none; color: var(--ink); }
.pal-item[aria-selected="true"] { background: var(--bg-2); }
.pal-item strong { display: block; font-weight: 680; font-size: 15.5px; }
.pal-item small { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .i-arrow { color: var(--ink-3); opacity: 0; transition: opacity .15s, transform .2s; }
.pal-item[aria-selected="true"] .i-arrow { opacity: 1; transform: translateX(2px); color: var(--leave); }
.pal-none { padding: 26px 14px; text-align: center; color: var(--ink-3); }
.pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-foot kbd { margin: 0 3px 0 0; border-color: var(--line-2); color: var(--ink-3); }

/* "Pick tool" dialog on the homepage: same shell as search, but picking a tool swaps the hero answer. */
.pick-h { display: flex; align-items: center; gap: 9px; padding: 16px 18px 2px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
button.pal-item { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.pick-item[hidden] { display: none; }
.pal-none a { color: var(--leave-ink); font-weight: 600; }

/* ---------- Rotated layouts (data/rotation-log.json) ---------- */
/* H1: "<Tool> alternatives:" on its own line, then the answer. */
.h1-kw { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 480; letter-spacing: -.03em; color: var(--coral); }
.h1-rest { display: block; }

/* B2: the numbers first, then the answer across the full width. */
.phero-B2 .phero-grid { grid-template-columns: minmax(0, 1fr); }
.phero-B2 .stats { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); }
.phero-B2 .stats .stats-wide { grid-column: auto; }

/* F2: the answer as numbered tiles. */
.short.short-F2 ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; counter-reset: sa; }
.short.short-F2 li { counter-increment: sa; padding: 14px 16px; border: 1px solid var(--night-line); border-radius: 16px; background: var(--night-3); font-size: 16px; }
.short.short-F2 li::before { content: counter(sa, decimal-leading-zero); position: static; display: block; width: auto; height: auto; margin-bottom: 6px; background: none; -webkit-mask: none; mask: none; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--coral); }
.short.short-F2 li:first-child { grid-column: 1 / -1; border-top: 1px solid var(--night-line); font-size: 19px; }

/* D2: reasons in two columns. */
.reasons-D2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reasons-D2 .reason { grid-template-columns: minmax(0, 1fr); padding: 22px 22px 20px; }
.reasons-D2 .reason-no { font-size: 44px; }

/* D3: reasons as ruled rows with big numbers. */
.reasons-D3 { gap: 0; border-top: 1px solid var(--line-2); }
.reasons-D3 .reason { grid-template-columns: 96px minmax(0, 1fr); padding: 30px 0 28px; background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
.reasons-D3 .reason::before { display: none; }
.reasons-D3 .reason-no { font-size: 76px; }

/* E2: one wide card per row, facts on the right. */
.alts-E2 { grid-template-columns: minmax(0, 1fr); }
.alts-E2 .alt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "top facts" "fixes facts" "catch catch" "read read"; gap: 16px 26px; align-items: start; }
.alts-E2 .alt-top { grid-area: top; }
.alts-E2 .alt-facts { grid-area: facts; }
.alts-E2 .alt-fixes { grid-area: fixes; }
.alts-E2 .alt-catch { grid-area: catch; }
.alts-E2 .alt-read { grid-area: read; margin-top: 0; }

/* Featured image and screenshots */
.feat { margin: 0 0 72px; }
.block .feat { margin: 6px 0 34px; }
.feat img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--night); box-shadow: var(--shadow-lift); }
.feat figcaption, .shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.shot { margin: 18px 0 24px; }
.reason .shot { margin: 16px 0 4px; }
.shot > a { display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); vertical-align: top; transition: box-shadow .2s, transform .2s; }
.shot > a:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption .mono { margin-left: 4px; white-space: nowrap; }
.shot-for { margin-right: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--leave-ink); text-decoration: none; }
.shot-for:hover { text-decoration: underline; }
.reasons-D2 + .shot { margin-top: 26px; }
.fixed-by.is-none { color: var(--ink-3); font-size: 14px; }

@media (max-width: 900px) {
  .phero-B2 .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phero-B2 .stats .stats-wide { grid-column: 1 / -1; }
  .reasons-D2 { grid-template-columns: minmax(0, 1fr); }
  .alts-E2 .alt { display: flex; }
}
@media (max-width: 720px) {
  .phero-B2 .stats { grid-template-columns: 1fr 1fr; }
  .short.short-F2 ol { grid-template-columns: minmax(0, 1fr); }
  .reasons-D3 .reason { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
  .reasons-D3 .reason-no { font-size: 50px; }
  .feat { margin-bottom: 48px; }
}

/* ---------- Category pages and the all tools page ---------- */
.home-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: 28px; }
.home-cats .kicker { margin-right: 8px; }
.sec-tight { padding: clamp(44px, 6vw, 76px) 0; }
.sec-tight + .sec-tight { padding-top: 0; }
.phero .crumbs + .eyebrow { margin-top: 16px; }
.phero-h em { font-family: var(--f-serif); font-style: italic; font-weight: 480; color: var(--coral); letter-spacing: -.03em; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.cat-card { position: relative; display: grid; gap: 6px; padding: 22px 22px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--leave); }
.cat-card-logos { display: flex; margin-bottom: 10px; }
.cat-card-logos .lg + .lg { margin-left: -8px; box-shadow: 0 0 0 3px var(--card), inset 0 0 0 1px rgba(23, 19, 14, .09); }
.cat-card-name { font-size: 24px; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.cat-card-meta { font-size: 12.5px; color: var(--ink-3); }
.cat-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 650; color: var(--leave-ink); }
.cat-card:hover .i-arrow { transform: translateX(4px); }
.cat-tools { display: grid; gap: 20px; }
.cat-tool { padding: 24px 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.cat-tool-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.cat-tool-top h3 { font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.cat-tool-top h3 a { color: inherit; text-decoration: none; }
.cat-tool-top h3 a:hover { color: var(--leave-ink); }
.cat-tool-top .mono { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.cat-tool-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.cat-reasons { display: grid; gap: 4px; }
.cat-reasons li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0 13px; }
.cr-no { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.cat-reasons li:first-child .cr-no { color: var(--leave); }
.cr-title { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.3; }
.cr-title:hover { color: var(--leave-ink); }
.cr-count { font-size: 12.5px; color: var(--ink-3); }
.cr-count b { color: var(--leave-ink); font-weight: 600; }
.cr-bar { position: absolute; left: 40px; right: 0; bottom: 4px; height: 3px; border-radius: 3px; background: var(--line); }
.cr-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--leave); opacity: .75; }
.cat-reasons li:first-child .cr-bar::after { opacity: 1; }
.cat-fix { padding: 16px 18px; border-radius: 18px; background: var(--fix-soft); }
.cat-fix .lbl-fix { color: var(--fix-ink); margin-bottom: 10px; }
.cat-fix ul { display: grid; gap: 8px; }
.cat-fix a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color .2s; }
.cat-fix a:hover { border-color: var(--fix); }
.cat-fix a .lg { grid-row: span 2; }
.cat-fix strong { display: block; font-weight: 700; }
.cat-fix small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.cat-fix em { grid-column: 2; font-style: normal; font-size: 11.5px; color: var(--fix-ink); }
.az td a { color: var(--ink); font-weight: 600; }
.az td a:hover { color: var(--leave-ink); }
@media (max-width: 900px) {
  .cat-tool { padding: 20px 18px; }
  .cat-tool-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cat-tool-top { grid-template-columns: auto minmax(0, 1fr); }
  .cat-tool-go { grid-column: 1 / -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .toc-box { position: static; padding: 6px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
  .toc-box summary { padding: 10px 10px; }
  .toc-bar { display: none; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .search-btn { min-width: 0; }
  .ans { grid-template-columns: minmax(0, 1fr); }
  .ans-r { border-radius: 0 0 30px 30px; }
  .ans-perf { left: 0; right: 0; top: -1px; bottom: auto; height: 0; border-left: 0; border-top: 2px dashed var(--night-line); }
  .ans-perf::before { top: -15px; left: -15px; clip-path: inset(0 0 0 50%); }
  .ans-perf::after { top: -15px; bottom: auto; left: auto; right: -15px; clip-path: inset(0 50% 0 0); }
  .board-full { grid-template-columns: minmax(0, 1fr); }
  .wires { display: none; }
  .phero-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:not(:last-child)::after { right: auto; left: 34px; top: auto; bottom: -19px; transform: rotate(90deg); }
  .theme { grid-template-columns: 44px minmax(0, 1fr); }
  .theme-tools { grid-column: 2; }
  .alts { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; grid-template-columns: minmax(0, 1fr); }
  .hero-art { opacity: .5; }
}

@media (max-width: 720px) {
  .cmp thead, .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td, .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: 100%; }
  .cmp tr, .plans tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cmp tbody tr:last-child, .plans tbody tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td, .plans th, .plans td { padding: 3px 0; border: 0; white-space: normal; }
  .cmp tbody th, .plans tbody th { padding-bottom: 8px; font-size: 17px; }
  .cmp td, .plans td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .cmp td::before, .plans td::before { content: attr(data-label); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
  tbody tr:hover > * { background: none; }
  .reason { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .reason-no { font-size: 46px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .hdr-in { gap: 12px; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .t-stub { border-left: 0; border-top: 2px dashed var(--line-2); border-radius: 0 0 var(--r) var(--r); display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 12px; padding: 16px 20px; }
  .t-stub .t-lbl { grid-column: 1 / -1; }
  .t-n { font-size: 46px; margin: 0; }
  .t-logos { margin: 0; justify-self: end; }
  .t-go { grid-column: 1 / -1; margin-top: 12px; }
  .t-stub::before { top: -13px; left: -13px; clip-path: inset(0 0 0 50%); }
  .t-stub::after { top: -13px; bottom: auto; left: auto; right: -13px; clip-path: inset(0 50% 0 0); }
  .alt { padding: 18px; }
  .alt-facts { grid-template-columns: minmax(0, 1fr); }
  .alt-fixes li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .alt-fixes .fx-tag { justify-self: start; }
  .b-alt-price { display: none; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .dots-hero { --d: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .swoop path, .wires path { stroke-dashoffset: 0; }
}
