/* Shared layout for every look. Uses ONLY custom properties from the look's tokens file:
   no colors, fonts or font sizes are written here. Mobile first: 375px, then 640px, 900px, 1024px. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-page); color: var(--c-text);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-regular);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--c-heading); line-height: var(--lh-head); letter-spacing: var(--track-head); margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: var(--fw-h1); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-h3); }
p { margin: 0 0 var(--space-4); }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--text-max) + 2 * var(--gutter)); }
.lead { font-size: var(--fs-lead); }
.muted { color: var(--c-muted); font-size: var(--fs-small); }
main:focus { outline: none; }

/* Focus: always visible */
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }

/* Skip link */
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--c-btn-primary-bg); color: var(--c-btn-primary-fg);
  padding: var(--space-3) var(--space-4); font-weight: var(--fw-semibold); border-radius: var(--radius-btn); }
.skip-link:focus { top: var(--space-2); }

/* Kickers: SemiBold, ALL CAPS, +20% tracking */
.kicker { font-size: var(--fs-kicker); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--track-kicker);
  color: var(--c-kicker); margin: 0 0 var(--space-3); line-height: 1.4; }

/* Placeholder chips: obvious, readable, never mistaken for final copy */
.ph { display: inline; background: var(--c-ph-bg); color: var(--c-ph-fg); border: 2px dashed var(--c-ph-line);
  border-radius: var(--radius-chip); padding: 0 .3em; font-weight: var(--fw-medium); box-decoration-break: clone; -webkit-box-decoration-break: clone;
  font-size: .85em; letter-spacing: 0; line-height: 1.7; }
.btn .ph, .footer-facts .ph, h1 .ph { font-size: .8em; }
.btn .ph { background: transparent; color: inherit; border-color: currentColor; }

/* Buttons: flat, no shadows, no gradients */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--btn-h); min-width: var(--tap);
  padding: 0 var(--space-5); border-radius: var(--radius-btn); border: 2px solid transparent; font: inherit; font-size: var(--fs-small);
  font-weight: var(--fw-semibold); text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: var(--c-btn-primary-bg); color: var(--c-btn-primary-fg); border-color: var(--c-btn-primary-line); }
.btn-cta { background: var(--c-btn-cta-bg); color: var(--c-btn-cta-fg); box-shadow: var(--cta-glow); }
.btn-ghost { background: transparent; color: var(--c-btn-ghost-fg); border-color: var(--c-btn-ghost-line); }
.btn:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-header-bg); border-bottom: var(--line-w) solid var(--c-header-line); }
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.logo { display: block; flex: none; padding: var(--space-2) 0; }
.logo-img { width: var(--logo-w-phone); height: auto; }
.logo-for-dark { display: none; }
/* hook: a look can show the transparent light logo on a white header/footer (--logo-light-plain: block) */
.logo-for-light-plain { display: none; }
html:not([data-mode="dark"]) .logo-for-light-plain { display: var(--logo-light-plain, none); }
html:not([data-mode="dark"]) .logo-for-light { display: var(--logo-light-boxed, inline); }
[data-mode="dark"] .logo-for-light { display: none; }
[data-mode="dark"] .logo-for-dark { display: block; }
/* Dark mode uses transparent working copies (renamed from TEMP-*, Oct 29 NTH6) of the dark logo/mark (field removed only). See README. */
.nav-desktop { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.hdr-cta { display: none; }

/* Light switch */
.lights { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); min-width: var(--tap); padding: 0 var(--space-2);
  background: transparent; color: var(--c-text); border: 0; font: inherit; font-size: var(--fs-caption); font-weight: var(--fw-semibold); cursor: pointer; border-radius: var(--radius-btn); }
.lights[hidden] { display: none; }
.lights-switch { position: relative; width: 36px; height: 22px; border-radius: 11px; border: 2px solid var(--c-text); flex: none; }
.lights-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-text); transition: left .15s; }
.lights[data-on="true"] .lights-knob { left: 16px; background: var(--c-node); }
.lights-label { display: inline-flex; flex-direction: column; line-height: 1.15; }
.lights-state .is-off { display: none; }
.lights[data-on="false"] .lights-state .is-on { display: none; }
.lights[data-on="false"] .lights-state .is-off { display: inline; }
.lights-state { font-weight: var(--fw-regular); }

/* Menu (phones): one clearly labeled button */
.menu { position: static; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.btn-menu { background: transparent; color: var(--c-text); border-color: var(--c-btn-ghost-line); padding: 0 var(--space-3); min-height: var(--tap); }
.menu-icon { width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu[open] .menu-icon { border-color: transparent; }
.menu[open] .menu-icon::after { top: 3px; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-header-bg); border-bottom: var(--line-w) solid var(--c-header-line);
  padding: var(--space-3) var(--gutter) var(--space-5); }
.menu-panel li a { display: flex; align-items: center; min-height: 48px; font-weight: var(--fw-semibold); text-decoration: none; color: var(--c-text);
  border-bottom: var(--line-w) solid var(--c-header-line); }
.menu-ctas { display: grid; gap: var(--space-3); margin-top: var(--space-4); }

@media (min-width: 640px) {
  .logo-img { width: var(--logo-w); }
  .hdr-cta { display: inline-flex; }
  .header-actions { gap: var(--space-3); }
}
@media (min-width: 960px) {
  .nav-desktop { display: block; margin-left: var(--space-5); }
  .nav-desktop ul { display: flex; gap: var(--space-1); }
  .nav-desktop a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); font-size: var(--fs-small);
    font-weight: var(--fw-medium); color: var(--c-text); text-decoration: none; border-radius: var(--radius-btn); }
  .nav-desktop a:hover { text-decoration: underline; }
  .menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-hero-bg); padding: var(--hero-pad-top) 0 var(--hero-pad-bottom); }
.circuit-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.circuit-bg .grid-line { fill: none; stroke: var(--c-grid); stroke-width: 1; }
.circuit-bg .trace path { fill: none; stroke: var(--c-trace); stroke-width: 2; }
.circuit-bg .node circle { fill: var(--c-node); }
.circuit-bg .node { filter: var(--node-glow); }
.hero-grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
.hero-kicker { color: var(--c-kicker); }
.hero-copy { text-align: var(--hero-text-align); }
.hero h1 { margin-bottom: var(--space-3); max-width: var(--h1-measure); margin-inline: var(--hero-measure-margin); }
.hero .h1-main { display: block; }
.hero .h1-sub { display: block; margin-top: var(--space-3); font-size: var(--fs-h1-sub); font-weight: var(--fw-medium); line-height: 1.4; letter-spacing: 0; max-width: 34ch; margin-inline: var(--hero-measure-margin); }
.tagline { font-size: var(--fs-tagline); font-weight: var(--fw-semibold); letter-spacing: var(--track-head); margin-bottom: var(--space-5); }
.hero .cta-row .btn { flex: 1 1 auto; }

/* Hero node-flow (dark mode art; display/opacity from tokens) */
.hero-flow { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--hero-flow-opacity-phone); }
[data-mode="dark"] .hero-flow { display: var(--hero-flow-display, none); }
[data-mode="dark"] .circuit-bg .trace, [data-mode="dark"] .circuit-bg .node { display: var(--hero-static-traces-display, inline); }
@media (min-width: 900px) { .hero-flow { left: 45%; width: 55%; opacity: 1; } }
.hf-traces path { fill: none; stroke: var(--hf-trace); stroke-width: 1.5; }
.st-hf-core { stop-color: var(--hf-core); } .st-hf-mid { stop-color: var(--hf-mid); } .st-hf-amber { stop-color: var(--amber); }
.hf-node { animation: node-glide calc(var(--hf-d) * var(--hf-speed-scale)) linear var(--hf-delay) infinite; }

/* Journey card (Lit / Found / Booked) */
.journey { margin: 0; background: var(--c-journey-bg); color: var(--c-journey-fg); border: var(--line-w) solid var(--c-journey-line);
  border-radius: var(--radius-card); padding: var(--card-pad); max-width: var(--journey-max); justify-self: center; width: 100%; text-align: left; }
.journey-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.journey-title { display: flex; align-items: center; gap: var(--space-3); font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.journey-mark { width: 52px; height: auto; display: var(--journey-mark-display); border-radius: var(--mark-radius); }
.journey-mark-dark { display: none; }
[data-mode="dark"] .journey-mark-light { display: none; }
[data-mode="dark"] .journey-mark-dark { display: var(--journey-mark-display); }
.mock-badge { font-size: var(--fs-caption); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .08em;
  background: var(--c-badge-bg); color: var(--c-badge-fg); border: 1px dashed currentColor; padding: 2px var(--space-2); border-radius: var(--radius-chip); white-space: nowrap; }
.journey-steps { position: relative; display: grid; gap: var(--space-2); }
.journey-steps::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: -36px; border-left: 2px solid var(--c-journey-line); }
.journey-steps li { position: relative; display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: var(--space-3); min-height: 48px;
  border-bottom: var(--line-w) solid var(--c-journey-line); }
.journey-node { width: 16px; height: 16px; border-radius: 50%; background: var(--c-node); border: 3px solid var(--c-journey-bg); }
.journey-label { font-weight: var(--fw-semibold); }
.journey-metric { font-size: var(--fs-metric); font-weight: var(--fw-semibold); }
.journey-metric small { font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--c-journey-muted); }
.journey-pin { position: relative; margin: var(--space-3) 0 var(--space-2) -5px; }
.journey .pin-sm { width: 26px; height: 34px; }
.journey .pin-body { fill: var(--c-journey-pin); }
.journey .pin-hole { fill: var(--c-journey-pin-hole); }
.journey .pin-dot { fill: var(--c-node); }
.journey-confirm { font-size: var(--fs-caption); line-height: 1.5; margin-top: var(--space-2); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: var(--hero-cols); }
  .hero .cta-row { justify-content: var(--hero-justify); }
  .hero .cta-row .btn { flex: 0 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.panel { background: var(--c-panel); margin-inline: var(--panel-inset); border-radius: var(--radius-panel); }
.panel .card { background: var(--c-panel-card); }
.section + .section { border-top: var(--section-divider); }
.section-head { max-width: var(--text-max); margin-bottom: var(--space-6); }
.card-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .card-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.three { grid-template-columns: repeat(3, 1fr); } body { font-size: var(--fs-body-wide); } }
.card { position: relative; background: var(--c-card); border: var(--line-w) solid var(--c-card-line); border-radius: var(--radius-card); padding: var(--card-pad); }
.card p:last-child { margin-bottom: 0; }
.card .kicker { color: var(--c-card-kicker); }
.card-num { display: block; font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: var(--track-kicker); color: var(--c-muted); margin-bottom: var(--space-3); }
.card-link h3 a { text-decoration: none; color: var(--c-heading); }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.card-link:hover { border-color: var(--c-card-line-hover); }
.card-link:hover h3 a { text-decoration: underline; }
.card-link p { color: var(--c-muted); padding-right: var(--space-5); }
.card-arrow { position: absolute; right: var(--card-pad); bottom: var(--card-pad); font-weight: var(--fw-semibold); }
.more-link { margin-top: var(--space-5); margin-bottom: 0; }
.more-link a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-semibold); }

.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.check-list { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.check-list li { display: flex; align-items: center; gap: var(--space-3); font-weight: var(--fw-medium); }
.check-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-node); }
.image-slot { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: var(--space-5);
  background: var(--c-image-slot); border: 2px dashed var(--c-ph-line); border-radius: var(--radius-card); }

.steps { display: grid; gap: var(--space-5); counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: var(--space-2); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-step-bg); color: var(--c-step-fg);
  font-weight: var(--fw-semibold); margin-bottom: var(--space-4); }
@media (min-width: 900px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--space-2) + 22px); left: 56px; right: calc(-1 * var(--space-5) + 8px);
    border-top: 2px solid var(--c-panel-line); }
}
.promise-text { font-size: var(--fs-promise); font-weight: var(--fw-medium); line-height: 1.4; letter-spacing: var(--track-head); color: var(--c-heading); margin: 0; }

.offers-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .offers-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.pilot { padding: var(--space-6) var(--card-pad); }
.growth { padding: var(--space-2) 0; }
.later { color: var(--c-later); }
.growth-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; padding: var(--space-3) 0;
  border-bottom: var(--line-w) solid var(--c-line); min-height: 52px; }
.growth-name { font-weight: var(--fw-medium); }

.faq-list { border-top: var(--line-w) solid var(--c-panel-line); }
.faq { border-bottom: var(--line-w) solid var(--c-panel-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 60px; padding: var(--space-3) 0;
  cursor: pointer; font-weight: var(--fw-semibold); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 14px; height: 14px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 2px solid currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { display: none; }
.faq-a { padding-bottom: var(--space-4); }
.faq-a p { margin: 0; }

.final-inner { display: grid; gap: var(--space-5); justify-items: start; }
.final-cta { border-top: var(--line-w) solid var(--c-line); }
/* Look hooks (hidden unless a look turns them on): the lantern mark alone in white space; the highlighted H1 word. */
.mark-solo { display: var(--mark-solo-display, none); }
.mark-solo img { width: var(--mark-solo-w, 88px); height: auto; border-radius: var(--mark-solo-radius, 0); }
.mark-solo-dark { display: none; }
[data-mode="dark"] .mark-solo-light { display: none; }
[data-mode="dark"] .mark-solo-dark { display: block; }
.hl { background: var(--hl-bg, none); padding: var(--hl-pad, 0); border-radius: var(--hl-radius, 0); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Lights-on band: original SVG illustration (lantern, traces, pin). Glow, gradients and blur are
   approved for THIS band only. Colors come from --lo-* tokens; timing from --lo-* durations. ---------- */
.lights-on { background: var(--c-lights-bg); color: var(--c-text); padding: var(--section-pad) 0; overflow: hidden;
  border-top: var(--line-w) solid var(--c-line); border-bottom: var(--line-w) solid var(--c-line); }
.lights-grid { display: grid; gap: var(--space-5); align-items: center; }
.lights-copy h2 { font-size: var(--fs-h2); max-width: 18ch; }
@media (min-width: 900px) { .lights-grid { grid-template-columns: 1fr 1.1fr; } }
.lights-art { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.lo-beam { opacity: 1; }
.lo-svg { width: 100%; height: auto; max-height: 92vh; margin: 0 auto; overflow: visible; }
/* gradient stops */
.st-amber { stop-color: var(--lo-amber); } .st-core { stop-color: var(--lo-flame-core); } .st-flame-mid { stop-color: var(--lo-flame-mid); }
.st-navy { stop-color: var(--lo-navy); } .st-navy-hi { stop-color: var(--lo-navy-hi); } .st-navy-dark { stop-color: var(--lo-navy-dark); }
.st-navy-deep { stop-color: var(--lo-navy-deep); } .st-white { stop-color: var(--lo-node-core); } .st-bg { stop-color: var(--c-lights-bg); }
/* background */
.lo-bokeh circle { fill: var(--lo-amber); opacity: var(--lo-bokeh-opacity); }
/* traces */
.lo-bus path { fill: none; stroke: var(--lo-amber); stroke-width: 2; stroke-linejoin: round; opacity: var(--lo-trace-opacity); }
.lo-bus-center path { stroke-width: 2.4; opacity: 1; }
.lo-bus-left path { opacity: var(--lo-trace-opacity-far); }
.lo-bus-right path { opacity: var(--lo-trace-opacity-side); }
.lo-stubs path { stroke-width: 1.6; }
.lo-vias circle { fill: var(--c-lights-bg); stroke: var(--lo-amber); stroke-width: 2; }
.lo-nodes circle { fill: var(--lo-flame-core); }
/* pin */
.lo-pin-shadow { fill: var(--lo-amber); opacity: .22; }
.lo-pin-body { fill: url(#lo-pin-g); stroke: var(--lo-amber); stroke-width: 2; stroke-opacity: .55; }
.lo-pin-rim { fill: none; stroke: var(--lo-flame-core); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.lo-pin-hole-rim { fill: none; stroke: var(--lo-amber); stroke-width: 3; opacity: .7; }
/* lantern */
.lo-ring { fill: none; stroke: var(--lo-navy-hi); stroke-width: 10; }
.lo-vents { stroke: var(--lo-navy-deep); stroke-width: 4; stroke-linecap: round; }
.lo-cap-glint, .lo-base-glint { stroke: var(--lo-amber); stroke-width: 2; opacity: .7; }
.lo-glass-hi { fill: none; stroke: var(--lo-flame-core); stroke-width: 3; stroke-linecap: round; opacity: .35; }
.lo-bars { fill: none; stroke: var(--lo-navy); stroke-width: 9; stroke-linecap: square; }
.lo-flame-core { fill: var(--lo-flame-core); }
.lo-embers circle { fill: var(--lo-flame-core); }
/* motion (all CSS; durations are tokens) */
.lo-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: lo-flicker var(--lo-flicker-speed) steps(1, end) infinite; }
.lo-halo { transform-box: fill-box; transform-origin: center; animation: lo-breathe var(--lo-halo-speed) ease-in-out infinite; }
.lo-mover, .hf-node { offset-rotate: 0deg; offset-distance: var(--rest, 50%); }
.lo-mover { animation: node-glide calc(var(--lo-d) * var(--lo-flow-scale)) linear var(--lo-delay) infinite; }
.lo-embers circle { animation: lo-rise var(--lo-ember-speed) ease-out infinite; }
.lo-embers .e1 { animation-delay: calc(var(--lo-ember-speed) * -.25); } .lo-embers .e2 { animation-delay: calc(var(--lo-ember-speed) * -.5); } .lo-embers .e3 { animation-delay: calc(var(--lo-ember-speed) * -.75); }
@keyframes lo-flicker { 0% { transform: scale(1, 1); opacity: 1; } 20% { transform: scale(.96, 1.05); opacity: .92; } 40% { transform: scale(1.03, .97); opacity: 1; } 60% { transform: scale(.98, 1.04); opacity: .9; } 80% { transform: scale(1.02, .98); opacity: 1; } }
@keyframes lo-breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes node-glide { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes lo-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-46px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lo-mover { opacity: .9; }           /* static lit state: nodes rest along the traces */
  .hf-node { opacity: .9; }
  .lo-embers circle { opacity: .8; }
}

/* ---------- Brand story + verse ---------- */
.story-grid { display: grid; gap: var(--space-5); grid-template-columns: 28px 1fr; max-width: calc(var(--text-max) + 80px + 2 * var(--gutter)); }
.story-echo { display: flex; flex-direction: column; align-items: center; padding-top: var(--space-2); }
.story-node { width: 12px; height: 12px; border-radius: 50%; background: var(--c-node); flex: none; }
.story-trace { flex: 1; min-height: 80px; border-left: 2px solid var(--c-line); }
.pin-story { width: 28px; height: 37px; flex: none; }
.pin-story .pin-body { fill: var(--c-heading); }
.pin-story .pin-hole { fill: var(--c-page); }
.pin-story .pin-dot { fill: var(--c-node); }
.story-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.story-head .kicker { margin: 0; }
.draft-tag { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--c-ph-fg); background: var(--c-ph-bg);
  border: 2px dashed var(--c-ph-line); border-radius: var(--radius-chip); padding: 0 var(--space-2); }
.story-text { font-size: var(--fs-promise); font-weight: var(--fw-medium); line-height: 1.45; letter-spacing: var(--track-head); color: var(--c-heading); }
.verse { margin: var(--space-6) 0 0; max-width: 36rem; color: var(--c-muted); font-size: var(--fs-small); }
.verse blockquote { margin: 0 0 var(--space-2); padding-left: var(--space-4); border-left: 2px solid var(--c-line); }
.verse blockquote p { margin: 0; }
.verse figcaption { padding-left: var(--space-4); }
.verse cite { font-style: normal; font-weight: var(--fw-semibold); }

/* About */
.quote { margin: 0 0 var(--space-5); }
.quote blockquote { margin: 0 0 var(--space-2); font-size: var(--fs-lead); font-weight: var(--fw-medium); color: var(--c-heading); }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: var(--fs-small); color: var(--c-muted); }
.role { font-weight: var(--fw-semibold); color: var(--c-muted); font-size: var(--fs-small); text-transform: none; }
.team h2 { margin-bottom: var(--space-6); }
.team-grid { align-items: start; }
.about-cta { margin-top: var(--space-6); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--c-hero-bg); padding: var(--page-hero-pad-top) 0 var(--page-hero-pad-bottom);
  border-bottom: var(--line-w) solid var(--c-line); }
.page-hero .circuit-bg { opacity: var(--page-circuit-opacity); }
[data-mode="dark"] .page-hero .circuit-bg .trace, [data-mode="dark"] .page-hero .circuit-bg .node { display: inline; }
.page-hero-inner { position: relative; }
.page-kicker { color: var(--c-kicker); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: var(--text-max); margin-bottom: 0; }
.section-title { font-size: var(--fs-h2); margin-bottom: var(--space-5); max-width: 22ch; }
/* card with a short amber trace + node on its top edge (the circuit accent) */
.accent-card { overflow: hidden; }
.accent-trace { position: absolute; top: 0; left: var(--card-pad); width: 72px; height: 2px; background: var(--c-trace); }
.accent-trace::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-node); box-shadow: var(--accent-node-glow); }
/* Thanks */
.thanks-hero h1 { margin: 0; }
.thanks-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-4); border-radius: var(--radius-card);
  background: var(--c-card); border: var(--line-w) solid var(--c-card-line); }
.thanks-pin { width: 22px; height: auto; }
.thanks-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 900px) { .thanks-grid { grid-template-columns: minmax(0, 46rem); } }  /* one column since the call card left (Oct 30) */
.thanks-next h2 { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.thanks-next .lead { margin: 0; }
.thanks-links { margin-top: 0; }
.thanks-body { min-height: 45vh; }
/* About */
.quote-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .quote-grid { grid-template-columns: 1fr 1fr; } }
.quote-card { margin: 0; }
.quote-card blockquote { font-size: var(--fs-h3); }
.close-grid { display: grid; gap: var(--space-5); align-items: stretch; }
@media (min-width: 900px) { .close-grid { grid-template-columns: 1fr 1.4fr; } }
.local-card .section-title { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.local-card .lead { margin: 0; }
.promise-card .kicker { color: var(--c-card-kicker); margin-bottom: var(--space-3); }
.promise-card .about-cta { margin-top: var(--space-5); }
.form-aside.card h2 { margin-top: var(--space-2); }
@media (min-width: 900px) { .form-aside { position: sticky; top: calc(var(--header-h, 72px) + var(--space-4)); } }
.link-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
.link-list a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-semibold); }

.form-section { padding-top: var(--space-5); }
.form-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1.4fr 1fr; } }
.form-card { background: var(--c-card); border: var(--line-w) solid var(--c-card-line); border-radius: var(--radius-card); padding: var(--card-pad); }
.form-card h2 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.mock-note { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--c-muted); margin-bottom: var(--space-2); }
.field { margin: 0 0 var(--space-5); padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: var(--fw-semibold); margin-bottom: var(--space-1); padding: 0; }
.optional { font-weight: var(--fw-regular); color: var(--c-muted); }
.hint { font-size: var(--fs-small); color: var(--c-muted); margin: 0 0 var(--space-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: var(--btn-h); padding: 0 var(--space-4); font: inherit; color: var(--c-text); background: var(--c-field-bg);
  border: 2px solid var(--c-field-line); border-radius: var(--radius-btn); }
.goal-options { display: grid; gap: var(--space-2); }
@media (min-width: 640px) { .goal-options { grid-template-columns: 1fr 1fr; } }
.goal-option { display: flex !important; align-items: center; gap: var(--space-3); min-height: var(--btn-h); padding: 0 var(--space-4); margin: 0 !important;
  border: 2px solid var(--c-field-line); border-radius: var(--radius-btn); font-weight: var(--fw-regular) !important; cursor: pointer; background: var(--c-field-bg); }
.goal-option input { width: 20px; height: 20px; accent-color: var(--c-heading); flex: none; margin: 0; }
.goal-option:has(input:checked) { border-color: var(--c-heading); font-weight: var(--fw-semibold) !important; }
.field-error { display: none; color: var(--c-error); font-weight: var(--fw-semibold); font-size: var(--fs-small); margin: var(--space-2) 0 0; }
.field-error::before { content: "! "; }
.field input:user-invalid { border-color: var(--c-error); }
.field:has(input:user-invalid) .field-error { display: block; }
.privacy-line { font-size: var(--fs-small); color: var(--c-muted); margin: var(--space-3) 0 0; }
.privacy-line a { color: var(--c-text); }
.form-aside h2 { font-size: var(--fs-h3); }
.backup { font-weight: var(--fw-medium); }

/* ---------- Footer (always dark) ---------- */
.site-footer { background: var(--c-page); color: var(--c-text); font-size: var(--fs-small); }
.footer-rule { height: 4px; background: var(--c-rule); }   /* the one amber accent */
.footer-inner { display: grid; gap: var(--space-5); padding-top: var(--space-7); padding-bottom: var(--space-7); }
.footer-logo img { width: var(--logo-w); height: auto; }
.footer-logo .logo-for-dark { display: none; }
[data-mode="dark"] .footer-logo .logo-for-light { display: none; }
[data-mode="dark"] .footer-logo .logo-for-dark { display: block; }
.footer-facts, .footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.footer-facts li, .footer-legal li { display: flex; align-items: center; min-height: var(--tap); }
.footer-facts a, .footer-legal a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer a { color: var(--c-text); }
.footer-legal { border-top: var(--line-w) solid var(--c-line); padding-top: var(--space-3); color: var(--c-muted); }

/* ---------- Dark-mode logo (brand guide, Oct 28 2:08pm) ----------
   The OFFICIAL lamplit-picked-logo-dark.svg on its own navy #122A56, shown as a rounded navy panel (the file's navy field,
   extended): the file's wide side margins are trimmed and its top/bottom extended so the clear space is one flame-height
   (92 of the file's 1200 units) evenly on every side. Artwork untouched; no filter, shadow or glow.
   Per look: --logo-panel-radius. --lw is the logo's normal width (the artwork stays exactly the same size as before). */
.logo-for-dark { --lw: var(--logo-w-phone); box-sizing: content-box; width: calc(var(--lw) * 1022 / 1200); height: calc(var(--lw) * 386 / 1200);
  padding: calc(var(--lw) * 42 / 1200) 0; object-fit: cover; object-position: 50% 50%; background: var(--navy); border-radius: var(--logo-panel-radius, 10px); }
.footer-logo .logo-for-dark { --lw: var(--logo-w); width: calc(var(--lw) * 1022 / 1200); height: calc(var(--lw) * 386 / 1200); }
[data-mode="dark"] .logo:has(.logo-for-dark) { padding-block: 6px; }
@media (min-width: 640px) { .logo .logo-for-dark { --lw: var(--logo-w); width: calc(var(--lw) * 1022 / 1200); } }

/* Placeholder links (page or phone not there yet): inert, no href, look like links but do not jump. */
a[aria-disabled="true"] { cursor: default; }
a[aria-disabled="true"]:not(.btn) { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.site-footer a[aria-disabled="true"]:not(.btn), .privacy-line a[aria-disabled="true"] { color: var(--c-text); }
/* Section links land below the sticky header. */
main section[id] { scroll-margin-top: 5rem; }

/* Mobile body text floor: 16px (Oct 28). Kickers, buttons, chips and the mock card keep their sizes. */
@media (max-width: 767px) {
  .offers .muted, .footer-facts li, .footer-legal li, .privacy-line, .form-card .hint,
  .quote-card figcaption, .verse blockquote p, .verse figcaption, .verse cite, .card .role { font-size: 1rem; }
}

/* ---------- Floating Scorecard bar (phones; fix round Oct 30: replaces the call bar, one bar per page) ----------
   A small "Quoted after your free Scorecard" line above one Scorecard button, on an always-dark band. Body padding and
   scroll-padding keep the last lines and keyboard focus clear of it, including the iPhone home-indicator inset. */
.scbar { display: none; }
@media (max-width: 767px) {
  .scbar { --scbar-h: calc(var(--btn-h) + 1.3125rem + 2 * var(--space-2) + var(--space-3) + var(--line-w));
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; text-align: center; background: var(--c-page); color: var(--c-text);
    padding: var(--space-2) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: var(--line-w) solid var(--c-line); }
  .scbar-line { margin: 0 0 var(--space-2); font-size: .875rem; line-height: 1.5; color: var(--c-text); }
  .scbar .btn { width: 100%; max-width: none; justify-content: center; }
  .has-scbar { padding-bottom: calc(var(--btn-h) + 1.3125rem + 2 * var(--space-2) + var(--space-3) + var(--line-w) + env(safe-area-inset-bottom)); }
  html:has(body.has-scbar) { scroll-padding-bottom: calc(var(--btn-h) + 1.3125rem + 2 * var(--space-2) + var(--space-3) + var(--line-w) + env(safe-area-inset-bottom) + var(--space-3)); }
}


/* ---------- Look hooks: photo placeholders (hidden unless a look turns them on via --photo-display) ---------- */
.photo-ph { display: var(--photo-display, none); position: relative; place-items: center; text-align: center; padding: var(--space-4);
  background: var(--c-photo-bg, var(--c-image-slot)); border-radius: var(--radius-card); aspect-ratio: 16 / 10; }
/* Theme toggle crossfade for looks without the showpiece (Layout.mjs SHOWPIECE_LOOKS).
   ~300 ms both directions; skipped entirely under reduced motion (the JS switches instantly). */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--theme-fade, 300ms); animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
