/* Brightside Intelligence — buildless stylesheet */

:root {
  --ivory: #f5efe3;
  --paper: #fbf8f1;
  --sand: #ebe2d0;
  --ink: #14182b;
  --navy: #1c2552;
  --cobalt: #2a46f5;
  --cobalt-deep: #1f35c4;
  --orange: #ff6a2b;
  --orange-ink: #b8400c;
  --lime: #c8f53a;
  --muted: #565b6e;
  --line: rgba(20, 24, 43, .16);

  --f-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --f-hand: "Marker Felt", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* fine paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -.03em; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

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

/* focus */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}
.cta-band :focus-visible, .manifesto :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* buttons */
.btn {
  --bg: var(--ink); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .8em 1.4em;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 750; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: center;
  box-shadow: 0 0 0 var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn .arrow { display: inline-block; transition: transform .3s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: .6em 1.1em; font-size: .95rem; }
.btn-ink { --bg: var(--ink); --fg: var(--ivory); }
.btn-cobalt { --bg: var(--cobalt); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); }
.btn-ghost:hover { --bg: var(--paper); }
.btn-lime { --bg: var(--lime); --fg: var(--ink); }
.btn-lime:hover { box-shadow: 4px 4px 0 var(--ivory); }

.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--orange); }
.link-btn {
  background: none; border: 0; padding: .4em .2em; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--orange-ink); }

.tag-illus {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .25em .7em; border: 1.5px dashed currentColor; border-radius: 999px; color: var(--muted);
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(20, 24, 43, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-word em { color: var(--cobalt); font-size: 1.1em; }
/* Brightside Intelligence wordmark: keep the longer name on one line where there is room, stack it on narrow screens */
.brand { flex: none; min-width: 0; }
.brand-mark { flex: none; }
.brand-word { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1201px) {
  .header-inner { gap: 18px; }
  .site-nav { gap: 12px; }
  .site-nav ul a { padding-inline: 10px; }
}
@media (max-width: 560px) {
  .brand { gap: 8px; font-size: 1.02rem; flex: 0 1 auto; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { display: grid; line-height: .98; white-space: normal; }
  .brand-word em { font-size: 1.06em; }
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-block; padding: 10px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: .95rem;
  transition: background-color .2s;
}
.site-nav ul a:hover { background: var(--sand); }
.site-nav ul a.is-active { background: var(--ink); color: var(--ivory); }

.nav-toggle {
  display: none; margin-left: auto;
  align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--ivory); border: 0; border-radius: 999px; font-weight: 750;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bars span:first-child { top: 2px; }
.nav-toggle-bars span:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1200px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px var(--gutter) 28px;
    background: var(--ivory); border-bottom: 2px solid var(--ink);
    max-height: calc(100dvh - 72px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
  }
  .js .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s, visibility 0s; }
  .js .site-nav ul { flex-direction: column; gap: 2px; }
  .js .site-nav ul a { display: block; padding: 14px 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; border-radius: 12px; }
  .js .site-nav .btn { width: 100%; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
}

/* eyebrow & kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .45em .9em; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 43, .25); }
.kicker {
  display: flex; align-items: center; gap: .8em;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.kicker .num {
  display: inline-grid; place-items: center; width: 2.4em; height: 2.4em;
  border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700;
}

.h-xl { font-size: clamp(2.3rem, 5.6vw, 5.2rem); font-weight: 850; }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 850; }
.h-xl em, .h-lg em { color: var(--cobalt); }

.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section-head { max-width: 980px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.split { max-width: none; display: grid; gap: 0 48px; grid-template-columns: 1fr; }
.section-head .section-lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin-top: 1.2rem; }
@media (min-width: 1024px) {
  .section-head.split { grid-template-columns: 1.35fr 1fr; align-items: end; }
  .section-head.split .kicker { grid-column: 1 / -1; }
  .section-head.split .section-lede { margin: 0; padding-bottom: .4em; }
}

/* HERO */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 32px; }
}
.hero-copy { min-width: 0; }
.hero-title {
  font-size: clamp(3rem, 11vw, 6.6rem);
  font-weight: 900; letter-spacing: -.055em; line-height: .92;
  margin: 1.4rem 0 2rem;
}
@media (min-width: 1024px) { .hero-title { font-size: clamp(4rem, 6vw, 6.4rem); } }
.hero-title .line { display: block; }
.js .hero-title .line { opacity: 0; transform: translateY(.35em); animation: rise .9s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) { animation-delay: .14s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.swash { position: relative; color: var(--cobalt); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.swash svg { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .22em; overflow: visible; z-index: -1; }
.swash path { fill: none; stroke: var(--lime); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.js .swash path { stroke-dashoffset: 320; animation: draw 1.1s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 40ch; color: #2c3046; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 650; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .5em; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--lime) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.5l2.6 2.6L13 6.5' fill='none' stroke='%2314182b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/100% no-repeat;
  border: 1.5px solid var(--ink);
}

.hero-visual { margin: 0; min-width: 0; position: relative; }
.scene-frame {
  position: relative; border: 2px solid var(--ink); border-radius: 28px; background: var(--sand);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.2deg);
}
.hero-visual::before {
  content: "fix bench"; position: absolute; top: -18px; left: 24px; z-index: 2;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink); padding: 4px 12px; border-radius: 999px;
  transform: rotate(-3deg);
}
.scene { display: block; width: 100%; height: auto; }
.scene-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.scene-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-weight: 750; font-size: .92rem;
}
.scene-toggle .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); position: relative; }
.scene-toggle .ico::before, .scene-toggle .ico::after {
  content: ""; position: absolute; top: 9px; width: 3px; height: 10px; background: var(--ivory); border-radius: 1px;
}
.scene-toggle .ico::before { left: 10px; }
.scene-toggle .ico::after { left: 15px; }
.scene-toggle[aria-pressed="true"] .ico::before {
  left: 11px; top: 8px; width: 0; height: 0; background: none; border-radius: 0;
  border-left: 9px solid var(--ivory); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.scene-toggle[aria-pressed="true"] .ico::after { display: none; }
.scene-toggle:hover { background: var(--lime); }

/* SVG text */
.svg-mono { font-family: var(--f-mono); fill: var(--ink); letter-spacing: .04em; }
.svg-sans { font-family: var(--f-sans); fill: var(--ink); }
.svg-display { font-family: var(--f-sans); font-weight: 900; fill: var(--ink); letter-spacing: -.03em; }
.svg-hand { font-family: var(--f-hand); fill: var(--ink); }
.scene .muted { fill: var(--muted); }
.scene .row-bg { fill: var(--ivory); }
.scene .row-flash { fill: var(--lime); opacity: 0; }
.scene .tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* scene positions (static default) */
.scene .in { transform-box: fill-box; transform-origin: center; }
.scene .wob { transform-box: fill-box; transform-origin: center; }
.scene .i1 { --x: 34px;  --y: 30px;  --r: -8deg; }
.scene .i2 { --x: 162px; --y: 14px;  --r: 7deg;  }
.scene .i3 { --x: 262px; --y: 34px;  --r: -4deg; }
.scene .i4 { --x: 22px;  --y: 118px; --r: 5deg;  }
.scene .i5 { --x: 150px; --y: 112px; --r: -10deg;}
.scene .i6 { --x: 262px; --y: 122px; --r: 8deg;  }
.scene .in { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.scene .token { transform: translate(272px, 409px); opacity: 0; }
.scene .gear { transform-box: fill-box; transform-origin: center; }
.scene .spark { transform-box: fill-box; transform-origin: bottom; }

/* animated state */
.scene.is-live .in { animation: feed 9s var(--ease) infinite; }
.scene.is-live .wob { animation: wobble 1.4s ease-in-out infinite alternate; }
.scene.is-live .i1, .scene.is-live .r1 .row-flash { animation-delay: 0s; }
.scene.is-live .i2, .scene.is-live .r2 .row-flash { animation-delay: -1.5s; }
.scene.is-live .i3, .scene.is-live .r3 .row-flash { animation-delay: -3s; }
.scene.is-live .i4, .scene.is-live .r4 .row-flash { animation-delay: -4.5s; }
.scene.is-live .i5, .scene.is-live .r5 .row-flash { animation-delay: -6s; }
.scene.is-live .i6, .scene.is-live .r6 .row-flash { animation-delay: -7.5s; }
.scene.is-live .i2 .wob { animation-delay: -.4s; }
.scene.is-live .i3 .wob { animation-delay: -.8s; }
.scene.is-live .i5 .wob { animation-delay: -1.1s; }
.scene.is-live .row-flash { animation: flash 9s linear infinite; }
.scene.is-live .gear { animation: spin 4s linear infinite; }
.scene.is-live .lamp { animation: blink 1.5s steps(2, jump-none) infinite; }
.scene.is-live .scan { animation: scan 1.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: left; }
.scene.is-live .scan.s2 { animation-delay: -.6s; }
.scene.is-live .scan.s3 { animation-delay: -1.2s; }
.scene.is-live .belt-dash { animation: belt 1s linear infinite; }
.scene.is-live .token { animation: token 3s linear infinite; }
.scene.is-live .token.t2 { animation-delay: -1s; }
.scene.is-live .token.t3 { animation-delay: -2s; }
.scene.is-live .spark { animation: bars 2.4s ease-in-out infinite alternate; }
.scene.is-live .spark.b2 { animation-delay: -.6s; }
.scene.is-live .spark.b3 { animation-delay: -1.2s; }
.scene.is-live .spark.b4 { animation-delay: -1.8s; }
.scene.is-paused *, .scene.is-paused { animation-play-state: paused !important; }

@keyframes feed {
  0%   { transform: translate(var(--x), calc(var(--y) - 40px)) rotate(var(--r)) scale(.9); opacity: 0; }
  8%   { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 1; }
  46%  { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 1; }
  60%  { transform: translate(145px, 222px) rotate(0deg) scale(.42); opacity: 1; }
  66%  { transform: translate(145px, 262px) rotate(0deg) scale(.15); opacity: 0; }
  100% { transform: translate(145px, 262px) rotate(0deg) scale(.15); opacity: 0; }
}
@keyframes wobble { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes flash { 0%, 64% { opacity: 0; } 68% { opacity: .95; } 82% { opacity: 0; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes scan { from { transform: scaleX(.35); } to { transform: scaleX(1); } }
@keyframes belt { to { stroke-dashoffset: -16; } }
@keyframes token {
  0% { transform: translate(272px, 409px); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(398px, 409px); opacity: 0; }
}
@keyframes bars { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* symptoms */
.symptoms { margin-top: clamp(48px, 7vw, 88px); }
.symptoms-title { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted); }
.symptoms-title span { color: var(--ink); font-weight: 700; }
.symptom-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.symptom {
  position: relative; min-height: 48px; padding: .65em 1.1em .65em 2.6em;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--paper);
  font-weight: 700; font-size: 1rem; text-align: left;
  transition: transform .35s var(--spring), background-color .25s, color .25s;
}
.symptom::before {
  content: "✕"; position: absolute; left: .85em; top: 50%; transform: translateY(-50%);
  width: 1.2em; height: 1.2em; display: grid; place-items: center; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-size: .8em; font-weight: 900;
}
.symptom-list li:nth-child(odd) .symptom { transform: rotate(-1.2deg); }
.symptom-list li:nth-child(even) .symptom { transform: rotate(1deg); }
.symptom:hover { transform: rotate(0) translateY(-3px); }
.symptom[aria-pressed="true"] { background: var(--cobalt); color: #fff; transform: rotate(0); }
.symptom[aria-pressed="true"]::before { content: "✓"; background: var(--lime); }
.symptom.pop { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.92); } 100% { transform: scale(1); } }

/* LEDGER */
.problems { border-top: 2px solid var(--ink); }
.ledger { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.ledger-row {
  position: relative; display: grid; align-items: center; gap: 6px 20px;
  grid-template-columns: 3rem 3rem 1fr auto;
  grid-template-areas: "num ico title go" "num ico text go";
  padding: 22px 8px; border-bottom: 1.5px solid var(--ink);
  text-decoration: none; overflow: hidden; isolation: isolate;
}
.ledger-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cobalt);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.ledger-row:hover::before, .ledger-row:focus-visible::before { transform: scaleY(1); }
.ledger-row:hover, .ledger-row:focus-visible { color: #fff; }
.ledger-row:focus-visible { outline-offset: -3px; border-radius: 0; outline-color: var(--lime); }
.ledger-num { grid-area: num; font-family: var(--f-mono); font-size: .9rem; opacity: .7; }
.ledger-ico { grid-area: ico; width: 3rem; height: 3rem; }
.ledger-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--spring); }
.ledger-ico .accent { stroke: var(--orange); }
.ledger-ico .accent-fill { fill: var(--orange); stroke: currentColor; }
.ledger-ico .fill { fill: var(--paper); }
.ledger-row:hover .ledger-ico svg { transform: rotate(-8deg) scale(1.1); }
.ledger-row:hover .ledger-ico .fill { fill: var(--cobalt-deep); }
.ledger-row:hover .accent { stroke: var(--lime); }
.ledger-row:hover .accent-fill { fill: var(--lime); }
.ledger-title { grid-area: title; font-size: clamp(1.5rem, 3.4vw, 2.9rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.05; }
.ledger-text { grid-area: text; color: inherit; opacity: .78; max-width: 60ch; }
.ledger-go {
  grid-area: go; width: 52px; height: 52px; border-radius: 50%; border: 2px solid currentColor;
  display: grid; place-items: center; font-size: 1.4rem; transition: transform .4s var(--spring), background-color .3s;
}
.ledger-row:hover .ledger-go { transform: rotate(-45deg); background: var(--lime); color: var(--ink); border-color: var(--ink); }
@media (min-width: 900px) {
  .ledger-row { grid-template-columns: 4rem 3.5rem minmax(0, 1.1fr) minmax(0, 1fr) auto; grid-template-areas: "num ico title text go"; padding: 28px 12px; }
  .ledger-ico { width: 3.5rem; height: 3.5rem; }
}
@media (max-width: 560px) {
  .ledger-row { grid-template-columns: 2.6rem 1fr auto; grid-template-areas: "ico title go" "ico text go"; }
  .ledger-num { display: none; }
  .ledger-ico { width: 2.6rem; height: 2.6rem; }
  .ledger-go { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* MANIFESTO */
.manifesto { background: var(--navy); color: var(--ivory); padding-block: clamp(72px, 10vw, 130px); position: relative; overflow: hidden; }
.manifesto::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 2px dashed rgba(200, 245, 58, .35); pointer-events: none;
}
.manifesto-inner { display: grid; gap: 40px; }
@media (min-width: 1024px) { .manifesto-inner { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.manifesto-text { font-size: clamp(2rem, 4.8vw, 4.4rem); font-weight: 850; letter-spacing: -.04em; line-height: 1.04; margin: 0; }
.manifesto-text s { text-decoration-color: var(--orange); text-decoration-thickness: .08em; opacity: .7; }
.manifesto-text mark { background: var(--lime); color: var(--ink); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.manifesto-side { font-size: 1.1rem; color: rgba(245, 239, 227, .85); }
.text-link.light, .manifesto .text-link { color: var(--ivory); }

/* EXPLORER */
.explorer { background: var(--paper); border-block: 2px solid var(--ink); }
.explorer-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .explorer-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; } }
.ex-tabs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 1023px) {
  .ex-tabs { flex-direction: row; overflow-x: auto; padding: 4px 4px 12px; margin-inline: -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .ex-tab { flex: none; scroll-snap-align: start; }
}
.ex-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px;
  background: transparent; border: 2px solid var(--ink); border-radius: 16px; text-align: left; font-weight: 750; font-size: 1.02rem;
  transition: background-color .2s, color .2s, transform .3s var(--spring);
}
@media (max-width: 1023px) { .ex-tab { width: auto; } }
.ex-tab .n { font-family: var(--f-mono); font-size: .8rem; opacity: .7; }
.ex-tab:hover { background: var(--sand); transform: translateX(4px); }
.ex-tab[aria-selected="true"] { background: var(--ink); color: var(--ivory); transform: translateX(8px); }
@media (max-width: 1023px) { .ex-tab:hover, .ex-tab[aria-selected="true"] { transform: none; } }
.ex-tab[aria-selected="true"] .n { color: var(--lime); opacity: 1; }

.ex-stage { min-width: 0; }
.ex-panel {
  border: 2px solid var(--ink); border-radius: 26px; background: var(--ivory);
  padding: clamp(20px, 3vw, 40px); box-shadow: 8px 8px 0 var(--ink);
}
.ex-panel:focus-visible { outline-offset: 6px; border-radius: 26px; }
.ex-top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.ex-top > div:first-child { flex: 1 1 320px; min-width: 0; }
.ex-label { margin-bottom: .6rem; }
.ex-title { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 850; }
.ex-scenario { margin: .8rem 0 0; color: var(--muted); max-width: 58ch; font-size: 1.05rem; }

.ba-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); flex: none;
}
.ba-btn {
  position: relative; z-index: 1; min-height: 44px; min-width: 96px; padding: 0 18px;
  border: 0; background: transparent; border-radius: 999px; font-weight: 800; transition: color .3s;
}
.ba-btn[aria-pressed="true"] { color: var(--ivory); }
.ba-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--orange-ink); transition: transform .45s var(--spring), background-color .3s;
}
.ex-panel[data-mode="after"] .ba-thumb { transform: translateX(100%); background: var(--cobalt); }

.flow-wrap { margin: 28px 0; display: grid; gap: 18px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: flow; position: relative; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.flow-node {
  position: relative; min-height: 112px; padding: 14px 14px 16px; border-radius: 14px;
  border: 2px dashed var(--orange-ink); background: #fff3ea;
  font-weight: 650; font-size: .98rem; line-height: 1.35;
  transition: transform .5s var(--spring), background-color .35s, border-color .35s, opacity .2s;
  perspective: 600px;
}
.flow-node:nth-child(odd) { transform: rotate(-1.6deg); }
.flow-node:nth-child(even) { transform: rotate(1.4deg) translateY(6px); }
.flow-node .step-k { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.flow-node .badge { display: inline-flex; align-items: center; gap: .35em; padding: .15em .55em; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.flow-node .badge.manual { background: var(--orange); color: var(--ink); }
.flow-node .badge.auto { background: var(--lime); color: var(--ink); border: 1px solid var(--ink); }
.flow-node .badge.human { background: var(--sand); color: var(--ink); border: 1px solid var(--ink); }
.flow-node .pain { display: block; margin-top: 8px; font-family: var(--f-hand); color: var(--orange-ink); font-size: .95rem; font-weight: 400; }
.ex-panel[data-mode="after"] .flow-node { border: 2px solid var(--ink); background: var(--paper); transform: none; }
.ex-panel[data-mode="after"] .flow-node::after {
  content: ""; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cobalt) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/100% no-repeat;
  border: 2px solid var(--ink);
}
@media (min-width: 760px) {
  .ex-panel[data-mode="after"] .flow-node:not(:last-child)::before {
    content: ""; position: absolute; top: 50%; right: -16px; width: 18px; height: 2px; background: var(--ink);
  }
}
.flow-node.flip-out { animation: flipOut .22s ease-in forwards; }
.flow-node.flip-in { animation: flipIn .42s var(--spring); }
@keyframes flipOut { to { transform: rotateX(90deg); opacity: .2; } }
@keyframes flipIn { from { transform: rotateX(-90deg); opacity: .2; } }

.flow-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: 14px; background: var(--sand); }
.meter-label { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.meter-val { font-size: 1.6rem; font-weight: 900; line-height: 1; min-width: 1ch; }
.meter-pips { display: inline-flex; gap: 6px; }
.meter-pips i { width: 26px; height: 10px; border-radius: 4px; background: var(--paper); border: 1.5px solid var(--ink); transition: background-color .3s; }
.meter-pips i.on { background: var(--orange); }
.meter-checks { font-weight: 700; font-size: .92rem; }
.meter-checks:empty { display: none; }
.ex-panel[data-mode="after"] .meter-pips i.on { background: var(--cobalt); }

.ex-bottom { display: grid; gap: 24px; }
@media (min-width: 760px) { .ex-bottom { grid-template-columns: 1.3fr 1fr; } }
.ex-bottom h4 { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.ex-outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ex-outcomes li { display: flex; gap: 12px; align-items: flex-start; font-weight: 650; font-size: 1.05rem; }
.ex-outcomes li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: .4em; border-radius: 4px; background: var(--lime); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.ex-kit { padding: 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.ex-kit p { color: var(--muted); }

/* COMPARE */
.cmp {
  --pos: 50%;
  position: relative; border: 2px solid var(--ink); border-radius: 26px; overflow: hidden;
  aspect-ratio: 16 / 9.5; background: var(--paper); container-type: inline-size;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
@media (max-width: 760px) { .cmp { aspect-ratio: 3 / 4; } }
.cmp-layer { position: absolute; inset: 0; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #efe4d1; }
.cmp-badge {
  position: absolute; top: 14px; z-index: 3; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); pointer-events: none;
}
.cmp-badge-b { left: 14px; background: var(--orange); }
.cmp-badge-a { right: 14px; background: var(--lime); }
.cmp-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4; opacity: 0; cursor: ew-resize; touch-action: pan-y;
  -webkit-appearance: none; appearance: none;
}
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.cmp-range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 3px; margin-left: -1.5px;
  background: var(--ink); pointer-events: none;
}
.cmp-knob {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime);
  font-size: 1.4rem; font-weight: 900; box-shadow: 0 0 0 4px var(--ivory); transition: transform .3s var(--spring);
}
.cmp:hover .cmp-knob { transform: translate(-50%, -50%) scale(1.08); }
.cmp-range:focus-visible ~ .cmp-handle .cmp-knob { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.cmp.is-dragging .cmp-knob { transform: translate(-50%, -50%) scale(.92); }
.cmp-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.cmp-summary { margin: 0 0 0 auto; color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .cmp-summary { margin: 0; width: 100%; } }

/* compare: before mess */
.mess { position: absolute; inset: 0; font-size: clamp(10px, 1.7cqw, 17px); }
.m-tabs { position: absolute; left: 3%; right: 3%; top: 13%; display: flex; gap: .4em; flex-wrap: wrap; }
.m-tabs span { background: var(--paper); border: 1.5px solid var(--ink); border-radius: .5em .5em 0 0; padding: .3em .7em; font-weight: 700; font-size: .85em; white-space: nowrap; }
.m-tabs span:nth-child(2), .m-tabs span:nth-child(3) { background: #d9f0df; }
.m-note { position: absolute; width: 11em; padding: .8em; background: #ffe46b; border: 1.5px solid var(--ink); font-family: var(--f-hand); font-size: 1.05em; line-height: 1.25; box-shadow: 3px 4px 0 rgba(20,24,43,.2); }
.m-note.n1 { left: 6%; top: 34%; transform: rotate(-6deg); }
.m-note.n2 { left: 36%; top: 58%; transform: rotate(4deg); background: #ffd0e0; }
.m-note.n3 { right: 8%; top: 30%; transform: rotate(7deg); background: #cfe6ff; }
.m-toast { position: absolute; padding: .6em .9em; background: var(--ink); color: var(--ivory); border-radius: .7em; font-size: .9em; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); max-width: 22em; }
.m-toast b { color: var(--orange); }
.m-toast.t1 { right: 5%; top: 56%; }
.m-toast.t2 { right: 10%; top: 66%; transform: rotate(-2deg); }
.m-toast.t3 { left: 4%; bottom: 6%; }
.m-sheet { position: absolute; left: 8%; top: 58%; width: 24%; display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: var(--paper); transform: rotate(-3deg); }
.m-sheet span { height: 1.7em; border: .5px solid rgba(20,24,43,.25); font-family: var(--f-mono); font-size: .72em; display: grid; place-items: center; }
.m-sheet .bad { background: #ffc2a8; color: var(--orange-ink); font-weight: 800; }
.m-cal { position: absolute; right: 30%; top: 30%; width: 9em; height: 6.4em; padding: .5em; background: var(--paper); border: 1.5px solid var(--ink); border-radius: .5em; transform: rotate(3deg); }
.m-cal b { display: block; font-size: .8em; }
.m-cal i { position: absolute; left: .5em; right: 2em; height: 1.4em; border: 1.5px solid var(--ink); border-radius: .3em; }
.m-cal .c1 { top: 2.2em; background: var(--lime); }
.m-cal .c2 { top: 3.1em; left: 1.8em; right: .5em; background: #ffb38f; }
.m-cal em { position: absolute; bottom: .2em; right: .5em; font-size: .8em; color: var(--orange-ink); font-weight: 700; }
@media (max-width: 760px) {
  .m-note { width: 9.5em; }
  .m-note.n1 { left: 4%; top: 30%; }
  .m-note.n3 { right: 4%; top: 40%; }
  .m-cal { right: auto; left: 46%; top: 22%; }
  .m-sheet { width: 44%; left: 6%; top: 52%; }
  .m-note.n2 { left: 46%; top: 66%; }
  .m-toast.t1 { right: 4%; top: 56%; }
  .m-toast.t2 { display: none; }
  .m-tabs { top: 11%; }
  .m-tabs span:nth-child(n+4) { display: none; }
}

/* compare: after board */
.cmp-after { background: var(--paper); display: flex; }
.after-board { flex: 1; margin: 12% 5% 5%; display: flex; flex-direction: column; gap: 3cqw; font-size: clamp(11px, 1.6cqw, 17px); min-height: 0; }
@media (min-width: 761px) { .after-board { margin: 8% 5% 4%; gap: 2cqw; } }
.ab-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.ab-title { font-size: 2.2em; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.ab-chip { font-family: var(--f-mono); font-size: .8em; padding: .3em .8em; border-radius: 999px; background: var(--cobalt); color: #fff; }
.ab-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; flex: 1; min-height: 0; }
@media (max-width: 760px) {
  .ab-cols { grid-template-columns: 1fr; gap: .6em; flex: none; }
  .ab-col { padding: .6em .7em; gap: .4em; }
  .ab-col .ab-card ~ .ab-card { display: none; }
  .after-board { margin-top: 16%; }
}
.ab-col { background: var(--ivory); border: 1.5px solid var(--ink); border-radius: .9em; padding: .8em; display: flex; flex-direction: column; gap: .5em; min-width: 0; }
.ab-col-h { margin: 0; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.ab-col-h b { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ink); color: var(--ivory); font-size: .85em; }
.ab-card { background: #fff; border: 1.5px solid var(--ink); border-radius: .6em; padding: .5em .7em; font-weight: 600; font-size: .92em; display: flex; align-items: center; gap: .5em; line-height: 1.25; }
.dot-c, .dot-l, .dot-o { flex: none; width: .7em; height: .7em; border-radius: 50%; border: 1px solid var(--ink); }
.dot-c { background: var(--cobalt); } .dot-l { background: var(--lime); } .dot-o { background: var(--orange); }
.ab-foot { display: flex; align-items: center; gap: 1.2em; padding: .7em 1em; border-radius: .9em; background: var(--navy); color: var(--ivory); }
.ab-foot p { margin: 0; font-size: .9em; line-height: 1.35; }
.ab-bars { display: flex; align-items: flex-end; gap: .3em; height: 2.6em; flex: none; }
.ab-bars i { width: .8em; height: var(--h); background: var(--lime); border-radius: .2em .2em 0 0; }

/* CALC */
.calc-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .calc-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 72px; } }
.calc-intro p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin-top: 1.2rem; }
.calc-how { margin-top: 20px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.calc-how summary { font-weight: 750; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.calc-how p { font-family: var(--f-mono); font-size: .9rem; color: var(--ink); }
.calc-card { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border: 2px solid var(--ink); border-radius: 26px; background: var(--paper); box-shadow: -8px 8px 0 var(--cobalt); transform: rotate(-.6deg); }
.calc-out { display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: 18px; background: var(--ivory); border: 1.5px dashed var(--ink); }
.clock { position: relative; width: 112px; height: 112px; flex: none; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock-track { fill: none; stroke: var(--sand); stroke-width: 14; }
.clock-fill { fill: none; stroke: var(--cobalt); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset .8s var(--ease); }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 1.35rem; letter-spacing: -.03em; }
.calc-result { margin: 0; font-size: 1rem; }
.calc-result b { font-size: 1.15em; }
.calc-note { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 480px) { .calc-out { flex-direction: column; align-items: flex-start; } }

/* forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, legend { font-weight: 750; font-size: 1rem; }
.hint { margin: 0; font-size: .88rem; color: var(--muted); }
.opt { font-weight: 500; font-size: .85rem; color: var(--muted); margin-left: .3em; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px;
  background: #fff; font-size: 1rem; transition: box-shadow .2s, border-color .2s;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%2314182b' stroke-width='2'/></svg>") right 14px center/14px no-repeat; }
input[type="text"]:focus-visible, input[type="number"]:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(42, 70, 245, .25);
}
input[type="range"] { width: 100%; accent-color: var(--cobalt); min-height: 32px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }

/* BRIEF */
.brief { background: var(--sand); border-top: 2px solid var(--ink); }
.brief-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .brief-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; } }
.brief-form { display: grid; gap: 22px; padding: clamp(20px, 3vw, 36px); background: var(--ivory); border: 2px solid var(--ink); border-radius: 26px; min-width: 0; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .radio { position: relative; display: inline-flex; }
.chip input, .radio input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span, .radio span {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .5em 1em;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 650; font-size: .95rem;
  transition: background-color .2s, color .2s, transform .3s var(--spring);
}
.chip span::before { content: "+"; font-weight: 900; width: 1em; text-align: center; transition: transform .3s var(--spring); }
.chip input:checked + span { background: var(--cobalt); color: #fff; }
.chip input:checked + span::before { content: "✓"; transform: rotate(360deg); }
.chip input:hover + span, .radio input:hover + span { transform: translateY(-2px); }
.chip input:focus-visible + span, .radio input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; transition: background-color .2s, box-shadow .2s; }
.radio input:checked + span { background: var(--ink); color: var(--ivory); }
.radio input:checked + span::before { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); border-color: var(--lime); }
.chip.flash span { animation: chipFlash .9s var(--ease); }
@keyframes chipFlash { 0% { box-shadow: 0 0 0 0 rgba(200,245,58,1); } 100% { box-shadow: 0 0 0 14px rgba(200,245,58,0); } }

.calc-attached { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--lime); border: 2px solid var(--ink); font-size: .95rem; }
.calc-attached[hidden] { display: none; }

.brief-preview { min-width: 0; }
@media (min-width: 1024px) { .brief-preview { position: sticky; top: 92px; } }
.ticket {
  position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 64px; padding: 12px 20px; background: var(--ink); color: var(--ivory); border-bottom: 3px dashed var(--lime); }
.ticket-kicker { margin: 0; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.strength { display: flex; align-items: center; gap: 10px; }
.strength-label { font-size: .82rem; font-weight: 700; color: var(--lime); }
.strength-bar { width: 96px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 6px; transition: width .5s var(--spring); }
.ticket-body { padding: 22px 20px 8px; max-height: 520px; overflow-y: auto; font-size: .96rem; overflow-wrap: anywhere; }
.pv-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
.pv-date { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.pv-sec { padding: 10px 0; border-top: 1px solid var(--line); }
.pv-sec h4 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.pv-sec p { margin: 0; white-space: pre-wrap; }
.pv-sec ul { margin: 0; padding-left: 1.1em; }
.pv-empty { color: var(--muted); font-style: italic; }
.pv-sec.is-new { animation: pvIn .5s var(--ease); }
@keyframes pvIn { from { background: rgba(200,245,58,.6); } to { background: transparent; } }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 20px; border-top: 2px solid var(--ink); }
.ticket-note { margin: 0; padding: 0 20px 20px; font-size: .88rem; color: var(--muted); }
.ticket-note a { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }

/* PROCESS */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 40px; } }
.steps-path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; display: none; overflow: visible; }
@media (min-width: 900px) { .steps-path { display: block; } }
.steps-path path { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-dasharray: 8 10; vector-effect: non-scaling-stroke; }
.step { position: relative; padding: 28px 24px 24px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); }
.step:nth-child(2) { transform: rotate(-.8deg); }
.step:nth-child(3) { background: var(--ink); color: var(--ivory); }
.step:nth-child(4) { transform: rotate(.8deg); background: var(--cobalt); color: #fff; }
@media (min-width: 900px) { .step:nth-child(3) { margin-top: 48px; } .step:nth-child(4) { margin-top: 16px; } }
.step-n { display: block; font-size: clamp(4rem, 8vw, 7rem); font-weight: 900; line-height: .8; letter-spacing: -.06em; margin-bottom: 16px; color: transparent; -webkit-text-stroke: 2px currentColor; }
.step:nth-child(2) .step-n { -webkit-text-stroke-color: var(--ink); }
.step:nth-child(3) .step-n { -webkit-text-stroke-color: var(--lime); }
.step:nth-child(4) .step-n { -webkit-text-stroke-color: var(--lime); }
@supports not (-webkit-text-stroke: 2px black) { .step-n { color: currentColor; } }
.step h3 { font-size: 1.7rem; font-weight: 850; margin-bottom: 12px; }
.step p { opacity: .9; }
.step-out { margin: 0; padding-top: 12px; border-top: 1.5px dashed currentColor; font-size: .95rem; }
.promises { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { padding: 16px 18px; border-left: 6px solid var(--orange); background: var(--paper); border-radius: 0 14px 14px 0; }

/* PRICING */
.pricing { background: var(--paper); border-top: 2px solid var(--ink); }
.price-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .price-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px; }
  .price-main { grid-row: 1 / span 2; }
}
.price-card { position: relative; min-width: 0; padding: clamp(22px, 3vw, 36px); border: 2px solid var(--ink); border-radius: 24px; background: var(--ivory); }
.price-label {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.price-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 1.5px solid currentColor; }
.price-figure { margin: 0 0 .9rem; font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 900; letter-spacing: -.05em; line-height: .95; }
.price-figure em { font-size: .42em; font-weight: 500; letter-spacing: -.01em; vertical-align: .55em; margin-right: .12em; }
.price-figure-sm { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.04em; }
.price-figure-sm em { font-size: 1em; vertical-align: baseline; margin: 0; color: var(--cobalt); }
.price-text { margin: 0; max-width: 52ch; font-size: 1.05rem; }

.price-main { background: var(--navy); color: var(--ivory); box-shadow: 8px 8px 0 var(--cobalt); }
.price-main .price-label::before { background: var(--lime); }
.price-main .price-figure em { color: var(--lime); }
.price-main .price-text { color: rgba(245, 239, 227, .88); }
.price-examples { margin-top: clamp(22px, 3vw, 32px); padding-top: 18px; border-top: 2px dashed rgba(245, 239, 227, .35); }
.price-examples-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; font-size: 1.05rem; }
.price-examples .tag-illus { color: rgba(245, 239, 227, .7); }
.price-examples ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-examples li {
  position: relative; padding: 12px 14px 12px 50px;
  background: rgba(245, 239, 227, .07); border: 1.5px solid rgba(245, 239, 227, .22); border-radius: 14px;
}
.price-examples li::before { content: "✓"; position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 900; font-size: .8rem; }
.price-examples li b { color: #fff; }

.price-care { background: var(--sand); }
.price-care-lead { margin: 0 0 .8rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.price-care-lead b { background: var(--lime); padding: 0 .2em; border-radius: .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.price-foot { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .price-foot { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; } }
.price-costs { padding: 18px 20px; border-left: 6px solid var(--orange); background: var(--ivory); border-radius: 0 16px 16px 0; }
.price-costs h3 { font-size: 1.2rem; font-weight: 850; letter-spacing: -.015em; margin-bottom: 8px; }
.price-costs p { margin: 0; color: #2c3046; }
.price-chat { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 20px; border: 2px dashed var(--ink); border-radius: 18px; }
.price-chat-text { margin: 0; font-size: 1.05rem; }
.price-chat-text b { font-size: 1.1em; }
.price-vat { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .price-chat .btn { width: 100%; } }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-head { position: sticky; top: 100px; align-self: start; } }
.faq-head p:not(.kicker) { color: var(--muted); margin-top: 1rem; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1.5px solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 4px; font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--ink); font-size: 1.4rem; font-weight: 500; transition: transform .35s var(--spring), background-color .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq-list summary:hover::after { background: var(--sand); }
.faq-list details[open] summary:hover::after { background: var(--lime); }
.faq-list details > div { padding: 0 4px 20px; max-width: 64ch; color: #2c3046; }
.faq-list details[open] > div { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq-list a { font-weight: 700; color: var(--cobalt-deep); overflow-wrap: anywhere; }

/* CTA band */
.cta-band { background: var(--cobalt); color: #fff; padding-block: clamp(64px, 9vw, 120px); border-top: 2px solid var(--ink); }
.cta-inner { display: grid; gap: 32px; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.cta-title { font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 900; letter-spacing: -.045em; }
.cta-title em { color: var(--lime); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-actions .text-link { overflow-wrap: anywhere; }
.cta-band .btn-lime { border-color: var(--ink); }

/* FOOTER */
.site-footer { background: var(--ink); color: var(--ivory); padding-block: 64px 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer-small { grid-column: 1 / -1; } }
.footer-word { font-size: clamp(2.2rem, 5vw, 4.4rem); overflow-wrap: break-word; font-weight: 900; letter-spacing: -.05em; line-height: .95; margin-bottom: 14px; }
.footer-word em { color: var(--lime); }
.footer-brand p:not(.footer-word) { color: rgba(245,239,227,.75); max-width: 40ch; }
.footer-h { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-nav a, .footer-contact a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 650; overflow-wrap: anywhere; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
.footer-small { padding-top: 24px; border-top: 1px solid rgba(245,239,227,.2); font-size: .88rem; color: rgba(245,239,227,.7); display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.footer-small p { margin: 0; }
.to-top { margin-left: auto; font-weight: 700; color: var(--ivory); text-decoration: none; padding: 10px 0; }
.to-top:hover { color: var(--lime); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-weight: 700;
  border: 2px solid var(--lime); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--spring), opacity .3s; pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .step.reveal.is-in:nth-child(2) { transform: rotate(-.8deg); }
.js .step.reveal.is-in:nth-child(4) { transform: rotate(.8deg); }
.js .promise.reveal:nth-child(2) { transition-delay: .1s; }
.js .promise.reveal:nth-child(3) { transition-delay: .2s; }
.js .price-card.reveal:nth-child(2) { transition-delay: .1s; }
.js .price-card.reveal:nth-child(3) { transition-delay: .2s; }
.js .steps-path path { stroke-dashoffset: 0; }
.js .steps.draw .steps-path path { animation: dashMove 1.6s var(--ease) both; }
@keyframes dashMove { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* the hero scene is excluded: it never auto-plays under reduced motion and only runs if the visitor presses Play */
  *:not(.scene, .scene *), *:not(.scene, .scene *)::before, *:not(.scene, .scene *)::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  }
  .js .hero-title .line { opacity: 1; transform: none; animation: none; }
  .js .swash path { stroke-dashoffset: 0; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* print */
@media print {
  .site-header, .hero-visual, .cmp, .toast, .cta-band { display: none; }
  body::before { display: none; }
}
