/* Protoboard — site styles.
   Breadboard cues kept quiet: a faint hole grid, two thin rails under the nav,
   mono coordinates as section markers, and wire colors used only as accents. */

:root {
  color-scheme: dark;
  --ground: #111214;
  --paper: #17181B;
  --ink: #F2F2EE;
  --ink-2: #C9CBCF;
  --muted: #9A9CA0;
  --faint: #6B6D72;
  --line: #222428;
  --line-2: #2E3035;
  --hole: #2B2D31;
  --build: #C2410C;
  --build-soft: rgba(249, 115, 22, 0.12);
  --build-light: #F97316;
  --answers: #1D4ED8;
  --answers-soft: rgba(59, 130, 246, 0.14);
  --answers-light: #60A5FA;
  --dark: #0B0C0D;
  --dark-line: #26282C;
  --dark-text: #B8BABE;
  --radius: 16px;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--answers); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.dim { color: var(--dark-text); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.eyebrow--dark { color: #9A9CA0; }
.t-build { color: var(--build-light); }
.t-answers { color: var(--answers-light); }
.t-build-light { color: var(--build-light); }
.t-answers-light { color: var(--answers-light); }
.display { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.045em; max-width: 14ch; }
.display--sm { font-size: clamp(40px, 5.5vw, 68px); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.035em; line-height: 1.1; }
.h2--sm { font-size: clamp(30px, 3.4vw, 40px); }
.h2--xl { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.05; max-width: 820px; }
.h3 { font-size: clamp(28px, 3vw, 34px); letter-spacing: -0.03em; }
.h4 { font-size: 22px; letter-spacing: -0.02em; }
.body-lg { font-size: 18px; line-height: 1.55; }
.statement { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.2; margin-top: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 960px; }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section--flush { padding-left: 0; padding-right: 0; }
.section--flush-top { padding-top: 0; }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section__head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.section__head--row > div { display: flex; flex-direction: column; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--start { align-items: flex-start; gap: 24px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px; align-items: start; }
.split--center { align-items: center; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }

/* ---------- breadboard ---------- */
.holes {
  background-image: radial-gradient(circle, var(--hole) 1.2px, transparent 1.6px);
  background-size: 16px 16px;
}
.holes--fade { position: relative; }
.holes--fade::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 30% 40%, transparent 30%, var(--ground) 95%);
  pointer-events: none;
}
.rail { display: flex; height: 2px; }
.rail span { flex: 1; opacity: 0.55; }
.rail span:first-child { background: #DC2626; }
.rail span:last-child { background: var(--answers); }
[data-page="build"] .rail span { background: var(--build); opacity: 0.7; }
[data-page="answers"] .rail span { background: var(--answers); opacity: 0.7; }

/* LEDs: small lit accents, never background. Scattered by hand so they read as
   random. --led sets the color, --led-t / --led-d vary the flicker per LED. */
.led {
  --led: var(--ink);
  position: relative; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%;
  vertical-align: 0.08em;
  background: var(--led);
  box-shadow: 0 0 5px 1px color-mix(in srgb, var(--led) 60%, transparent), 0 0 12px 3px color-mix(in srgb, var(--led) 25%, transparent);
}
.led--red { --led: #DC2626; }
.led--build { --led: var(--build-light); }
.led--answers { --led: #3B82F6; }
.led--off { background: var(--hole); box-shadow: none; }
.led--blink { animation: pb-led var(--led-t, 5.3s) steps(1, end) var(--led-d, 0s) infinite; }
@keyframes pb-led {
  0%, 100% { opacity: 1; }
  91% { opacity: 0.25; }
  93% { opacity: 1; }
  96% { opacity: 0.25; }
}
.eyebrow .led { margin-right: 10px; }
.btn .led, .link .led { margin-right: 2px; }
.link .led { margin-right: 8px; }

/* corner status LED on live embeds */
.has-led { position: relative; }
.has-led > .led--corner { position: absolute; top: 14px; right: 14px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(17, 18, 20, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.logo__mark { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; }
.logo__mark i { width: 4px; height: 4px; border-radius: 1px; background: var(--ink); transition: transform 0.3s var(--ease); }
.logo__mark i.b { background: var(--build); }
.logo__mark i.a { background: var(--answers); }
.logo:hover .logo__mark i.b { transform: translateY(-2px); }
.logo:hover .logo__mark i.a { transform: translateY(2px); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav__link { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__link:hover { color: var(--muted); }
[data-page="build"] .nav__link--build { color: var(--build-light); font-weight: 500; }
[data-page="answers"] .nav__link--answers { color: var(--answers-light); font-weight: 500; }
.nav__cta { text-decoration: none; background: var(--ink); color: var(--ground); padding: 0 16px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; font-weight: 500; transition: background 0.3s var(--ease); }
.nav__cta--build, [data-path="build"] .js-nav-cta { background: var(--build); color: #fff; }
.nav__cta--answers, [data-path="answers"] .js-nav-cta { background: var(--answers); color: #fff; }
.nav__cta-label--build, .nav__cta-label--answers { display: none; }
[data-path="build"] .nav__cta-label--default, [data-path="answers"] .nav__cta-label--default { display: none; }
[data-path="build"] .nav__cta-label--build { display: inline; }
[data-path="answers"] .nav__cta-label--answers { display: inline; }
@media (max-width: 720px) {
  .nav__links { gap: 16px; }
  .nav__link--hide-sm { display: none; }
}
@media (max-width: 440px) {
  .nav__link--build, .nav__link--answers { display: none; }
}

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__inner { position: relative; padding-top: clamp(80px, 12vw, 128px); padding-bottom: clamp(72px, 10vw, 112px); display: flex; flex-direction: column; gap: 28px; }

/* home hero: dark, centered, a breadboard in perspective underneath */
.hero--board { position: relative; border-bottom: 0; isolation: isolate; }
.hero--board .lede { color: var(--dark-text); }
.hero__inner--center { align-items: center; text-align: center; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(220px, 24vw, 300px); }
.hero__inner--center .display { max-width: none; }
.hero__inner--center .choice { align-items: center; width: 100%; }
.hero__inner--center .choice__grid { width: 100%; margin: 0 auto; text-align: left; }
.hero--board .choice .muted { color: #9A9CA0; }
.hero--board .choice__btn { background: rgba(17, 18, 20, 0.72); border-color: var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero--board .choice__btn small { color: #9A9CA0; }
.board { position: absolute; z-index: -1; left: -30%; right: -30%; bottom: -4%; height: 110%; pointer-events: none;
  transform: perspective(1400px) rotateX(50deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 60%), radial-gradient(ellipse 60% 100% at 50% 100%, #000 50%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 10%, #000 60%), radial-gradient(ellipse 60% 100% at 50% 100%, #000 50%, transparent 100%); mask-composite: intersect; }
.board__svg { width: 100%; height: 100%; display: block; }
/* fade the board into the next section instead of a hard edge */
.hero--board::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--ground)); pointer-events: none; }
.board__channel { fill: #0A0B0C; }
.board__rails line { stroke-width: 2; opacity: 0.35; }
.board__rails .r { stroke: #DC2626; }
.board__rails .b { stroke: var(--answers); }
.board__wires path { fill: none; stroke: #33363B; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.board__chip rect { fill: #15171C; stroke: #3B82F6; stroke-opacity: 0.55; stroke-width: 2; filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35)); }
.board__chip path { stroke: #55575C; stroke-width: 3; }
.board__notch { fill: var(--ground); stroke: #3B82F6; stroke-opacity: 0.55; stroke-width: 2; }
.board__mark rect { fill: #5A5D63; }
.board__mark .b { fill: var(--build-light); filter: drop-shadow(0 0 6px var(--build-light)); animation: pb-node 3.6s ease-in-out infinite; }
.board__mark .a { fill: #3B82F6; filter: drop-shadow(0 0 6px #3B82F6); animation: pb-node 3.6s ease-in-out -1.8s infinite; }
.board__lit path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.board__lit--build { --c: var(--build-light); }
.board__lit--answers { --c: #3B82F6; }
.board__lit path { stroke: var(--c); }
.board__lit circle { fill: var(--c); animation: pb-node 3.6s ease-in-out infinite; }
.board__lit--answers circle { animation-delay: -1.8s; }
.board__lit .board__pulse { stroke: #fff; stroke-dasharray: 10 90; animation: pb-current 3.2s linear var(--d, 0s) infinite; }
@keyframes pb-current { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pb-node { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

/* edge ruler: the breadboard's coordinates, with an LED that tracks where you are */
.ruler { position: fixed; z-index: 15; top: 96px; bottom: 40px; right: 22px; width: 9px; pointer-events: none; }
.ruler::before { content: ""; position: absolute; inset: 0; opacity: 0.45;
  background: repeating-linear-gradient(to bottom, var(--faint) 0 1px, transparent 1px 16px) right top / 5px 100% no-repeat,
              repeating-linear-gradient(to bottom, var(--faint) 0 1px, transparent 1px 80px) right top / 9px 100% no-repeat; }
.ruler__mark { position: absolute; top: -4px; right: 14px; display: none; align-items: center; gap: 8px; will-change: transform; }
.ruler.is-live .ruler__mark { display: inline-flex; }
.ruler__label { font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
@media (max-width: 1259px) { .ruler { display: none; } }

.choice { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.choice__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; max-width: 760px; }
.choice__btn {
  text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.choice__btn strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.choice__btn small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.choice__arrow { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; color: #fff; display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.choice__btn--build .choice__arrow { background: var(--build); }
.choice__btn--answers .choice__arrow { background: var(--answers); }
.choice__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(17, 18, 20, 0.35); }
.choice__btn--build:hover, [data-dim="build"] .choice__btn--build { border-color: var(--build); }
.choice__btn--answers:hover, [data-dim="answers"] .choice__btn--answers { border-color: var(--answers); }
.choice__btn:hover .choice__arrow { transform: translateY(4px); }

/* ---------- path tree ---------- */
.tree { list-style: none; margin: 32px 0 0; padding: 0; }
.stage { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 24px; transition: opacity 0.6s var(--ease); }
.stage__rail { position: relative; display: flex; justify-content: center; }
.stage__body { padding-bottom: 96px; display: flex; flex-direction: column; gap: 14px; }
.stage--end .stage__body { padding-bottom: 0; margin-top: 2px; }
.stage__num { font-size: 12px; color: var(--faint); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.stage__num.t-build { color: var(--build-light); font-weight: 500; }
.stage__num.t-answers { color: var(--answers-light); font-weight: 500; }
.node { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--faint); background: var(--ground); }
/* lit nodes: solid color with a soft glow around it */
.node--build { --glow: var(--build-light); border: 0; background: var(--build); }
.node--answers { --glow: #3B82F6; border: 0; background: var(--answers); }
.node--build, .node--answers {
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--glow) 60%, transparent), 0 0 22px 4px color-mix(in srgb, var(--glow) 30%, transparent);
}
.node--build::after, .node--answers::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, transparent 0 8px, color-mix(in srgb, var(--glow) 30%, transparent) 9px, transparent 68%);
  animation: pb-breathe 3.6s ease-in-out infinite;
}
.line { position: absolute; top: 26px; bottom: -6px; width: 2px; background: var(--ink); transform-origin: top; }
.loop { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.leaves { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.leaves li { display: flex; align-items: center; gap: 12px; }
.leaves li::before { content: ""; width: 28px; height: 1px; background: var(--line-2); flex-shrink: 0; transform-origin: left; transition: transform 0.6s var(--ease); }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.tag { display: none; font-family: var(--mono); font-size: 11px; color: #fff; border-radius: 999px; padding: 3px 9px; letter-spacing: 0.02em; }
.tag--build { background: var(--build); }
.tag--answers { background: var(--answers); }
[data-dim="build"] .tag--build, [data-dim="answers"] .tag--answers { display: inline-block; animation: pb-pop-in 0.4s var(--ease) both; }
[data-dim="build"] .stage--side-answers, [data-dim="answers"] .stage--side-build { opacity: 0.38; }
.reset { display: none; color: var(--muted); min-height: 44px; align-items: center; text-decoration: none; }
[data-dim] .reset { display: inline-flex; }
/* home: Build and Answers side by side */
.tree--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 56px; }
.tree--split .stage__body { padding-bottom: 0; }
/* arriving at a stage pulses its node */
.stage:target .node--build::after, .stage:target .node--answers::after { animation: pb-flare 1.4s var(--ease) 0.6s 2; }

/* ---------- buttons & links ---------- */
.btn { text-decoration: none; color: #fff; border: 0; border-radius: 10px; padding: 0 20px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: transform 0.2s var(--ease), background 0.3s var(--ease), box-shadow 0.2s var(--ease); }
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -14px rgba(17, 18, 20, 0.5); }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn--build { background: var(--build); }
.btn--answers { background: var(--answers); }
.btn--ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }
.btn--submit { background: var(--ink); color: var(--ground); min-height: 50px; font-size: 16px; width: 100%; }
[data-path="build"] .btn--submit { background: var(--build); color: #fff; }
[data-path="answers"] .btn--submit { background: var(--answers); color: #fff; }
.link { font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.75em) / 0 1px no-repeat; transition: background-size 0.3s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- cards, posts ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(17, 18, 20, 0.4); }
.card__media { height: 220px; border-bottom: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.card__media--tall { height: 260px; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.posts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post { text-decoration: none; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.post .mono { font-size: 12px; text-transform: uppercase; }
.post__title { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.post:hover { padding-left: 8px; }
@media (max-width: 600px) { .post { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- bands ---------- */
.band, .panel { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; }
.panel > .wrap { padding-top: 96px; padding-bottom: 96px; }
.dark { background: var(--dark); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark > .wrap { padding-top: 96px; padding-bottom: 96px; }
.cta-band { border-top: 1px solid var(--line); }
.cta-band > .wrap { padding-top: 96px; padding-bottom: 96px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 32px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .mono { font-size: 12px; text-transform: uppercase; }
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.spec--plain li { display: block; font-size: 17px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid4 > div { background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.grid4 .mono { font-size: 12px; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.embed { background-color: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-height: 360px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.booking { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price { border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.price__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.price__row strong { font-size: 20px; color: var(--ink); }
.price__big { font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -0.04em; }
.price__big small { font-size: 20px; color: #9A9CA0; letter-spacing: 0; font-weight: 500; }
.price hr { border: 0; height: 1px; background: var(--dark-line); margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-size: 19px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; font-size: 16px; line-height: 1.6; }

/* ---------- contact form ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__inner { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -45px rgba(17, 18, 20, 0.35); }
.form__error { background: rgba(220, 38, 38, 0.12); color: #FCA5A5; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.form__note { text-align: center; font-size: 12px; }
.seg { border: 0; margin: 0; padding: 0; }
.seg legend { font-size: 14px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.seg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg__opt { border: 1px solid var(--line); border-radius: 8px; min-height: 44px; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500; text-align: center; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.seg__opt input { margin: 0; }
.seg__opt--build input { accent-color: var(--build); }
.seg__opt--answers input { accent-color: var(--answers); }
.seg__opt--unsure input { accent-color: var(--ink); }
.seg__opt--build:has(input:checked) { border-color: var(--build-light); color: var(--build-light); background: var(--build-soft); }
.seg__opt--answers:has(input:checked) { border-color: var(--answers-light); color: var(--answers-light); background: var(--answers-soft); }
.seg__opt--unsure:has(input:checked) { border-color: var(--ink); }
@media (max-width: 420px) { .seg__grid { grid-template-columns: 1fr; } }
.q { display: none; flex-direction: column; gap: 14px; }
[data-path="build"] .q--build, [data-path="answers"] .q--answers { display: flex; animation: pb-rise-in 0.45s var(--ease) both; }
body:not([data-path="build"]):not([data-path="answers"]) .q--generic { display: flex; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; min-height: 44px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 242, 238, 0.1); }
.field--error input, .field--error select, .field--error textarea { border-color: #B91C1C; }
.field__error { color: #B91C1C; font-size: 13px; font-weight: 400; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- motion ---------- */
@keyframes pb-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pb-rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pb-pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes pb-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pb-pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pb-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pb-breathe { 0%, 100% { opacity: 0.75; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pb-flare { 0%, 100% { opacity: 1; transform: scale(1); } 45% { opacity: 1; transform: scale(1.9); } }

/* hero intro: staggered on load */
.intro > * { animation: pb-in 0.9s var(--ease) both; }
.intro > *:nth-child(2) { animation-delay: 0.08s; }
.intro > *:nth-child(3) { animation-delay: 0.18s; }
.intro > *:nth-child(4) { animation-delay: 0.3s; }

/* scroll-driven: the tree grows as you scroll (Chromium, Safari 26+) */
@supports (animation-timeline: view()) {
  .grow { animation: pb-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 60%; }
  .pop { animation: pb-pop linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
  .rise { animation: pb-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  .stage__body .leaves li::before { animation: pb-leaf linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  @keyframes pb-leaf { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
/* fallback: site.js adds .is-in via IntersectionObserver */
.no-sda .grow { transform: scaleY(0); transition: transform 1.1s var(--ease); }
.no-sda .pop { opacity: 0; transform: scale(0.3); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.no-sda .rise { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.no-sda .is-in.grow { transform: scaleY(1); }
.no-sda .is-in.pop, .no-sda .is-in.rise { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .no-sda .grow, .no-sda .pop, .no-sda .rise { opacity: 1; transform: none; }
}
