/*
 * homertime.com — public site styles.
 * Built on the Homer tokens (tokens.css). No framework, no inline styles
 * (the CSP forbids them), light theme.
 */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--h-font-family);
  font-size: var(--h-text-base);
  line-height: 1.6;
  color: var(--h-color-text);
  background: var(--h-color-bg);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--h-color-primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--h-color-primary-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--h-color-accent); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--h-content-width); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 760px; }
.section { padding-block: clamp(64px, 6vw + 24px, 120px); }
.section--tight { padding-block: clamp(48px, 4vw + 16px, 80px); }
.section--white { background: var(--h-color-surface); }
.section--tint { background: var(--h-color-surface-tint); }
.section--deep { background: var(--h-color-primary-deep); color: var(--h-color-text-inverse); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 3vw + 12px, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--h-text-sm); font-weight: 600; letter-spacing: 0.01em;
  color: var(--h-color-text-secondary); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.5; }
.section--deep .kicker { color: color-mix(in srgb, var(--h-color-text-inverse) 70%, transparent); }
.h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem); }
.h3 { font-size: var(--h-text-xl); font-weight: 650; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--h-color-text-secondary); margin-top: 16px; line-height: 1.6; }
.section--deep .lede { color: color-mix(in srgb, var(--h-color-text-inverse) 78%, transparent); }
.muted { color: var(--h-color-text-muted); }
.small { font-size: var(--h-text-sm); }

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-size: var(--h-text-base); font-weight: 600; letter-spacing: 0;
  line-height: 1; text-decoration: none; white-space: nowrap;
  border-radius: var(--h-radius-lg); border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--h-transition-fast), box-shadow var(--h-transition-fast), transform var(--h-transition-fast), color var(--h-transition-fast);
}
.btn--primary {
  color: var(--h-color-text-inverse);
  background: var(--h-color-primary);
  border-color: var(--h-color-primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(22, 53, 53, 0.25), 0 4px 12px rgba(22, 53, 53, 0.14);
}
.btn--primary:hover { background: var(--h-color-primary-dark); color: var(--h-color-text-inverse); }
.btn--primary:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 1px rgba(22, 53, 53, 0.25); }
.btn--ghost { color: var(--h-color-text); background: transparent; border-color: var(--h-color-border-strong); }
.btn--ghost:hover { background: var(--h-color-surface); color: var(--h-color-text); border-color: var(--h-color-text-muted); }
.btn--light { color: var(--h-color-primary-deep); background: var(--h-color-bg); border-color: var(--h-color-bg); }
.btn--light:hover { background: #fff; color: var(--h-color-primary-deep); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--h-text-sm); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: var(--h-text-lg); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }
.btn .arrow { transition: transform var(--h-transition-fast); }
.btn:hover .arrow { transform: translateY(2px); }
.btn:hover .arrow--right { transform: translateX(3px); }
.link-quiet {
  font: inherit; font-size: var(--h-text-sm); color: var(--h-color-text-secondary);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--h-color-border-strong);
}
.link-quiet:hover { color: var(--h-color-text); text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--h-color-bg) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--h-transition-normal), background-color var(--h-transition-normal);
}
.site-header.is-scrolled { border-bottom-color: var(--h-color-border); background: var(--h-color-bg); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { font-size: var(--h-text-sm); font-weight: 500; color: var(--h-color-text-secondary); text-decoration: none; }
.site-nav__link:hover, .site-nav__link[aria-current='page'] { color: var(--h-color-text); }
@media (max-width: 860px) {
  .site-nav { gap: 16px; }
  .site-nav__link--wide { display: none; }
}
@media (max-width: 420px) {
  .site-nav__link { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(32px, 4vw + 8px, 72px);
  padding-bottom: clamp(56px, 6vw + 16px, 112px);
  background:
    radial-gradient(900px 420px at 12% -8%, color-mix(in srgb, var(--h-color-accent-light) 16%, transparent), transparent 70%),
    radial-gradient(700px 380px at 92% 8%, color-mix(in srgb, var(--h-color-primary-light) 8%, transparent), transparent 70%),
    var(--h-color-bg);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 10px; border-radius: var(--h-radius-full);
  background: var(--h-color-surface); border: 1px solid var(--h-color-border);
  box-shadow: var(--h-elevation-1);
  font-size: var(--h-text-sm); font-weight: 600; color: var(--h-color-text-secondary);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h-energy-load); flex: none; }
.dot--grid { background: var(--h-energy-grid); }
.dot--sun { background: var(--h-energy-sun); }
.dot--load { background: var(--h-energy-load); }
.dot--heat { background: var(--h-energy-heat); }
.hero__title {
  margin-top: 22px;
  font-size: clamp(2.25rem, 1.35rem + 3.1vw, 3.75rem);
  line-height: 1.04; letter-spacing: -0.032em; font-weight: 680;
  max-width: 16ch;
}
.hero__sub { margin-top: 22px; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.55; color: var(--h-color-text-secondary); max-width: 33em; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--h-text-sm); color: var(--h-color-text-muted); }
.hero__note > span { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 15px; height: 15px; flex: none; color: var(--h-color-success); }

/* The board composition: real boards, true relative sizes (mm). */
.bench {
  position: relative;
  border-radius: var(--h-radius-xl);
  background-color: var(--h-color-surface);
  background-image:
    linear-gradient(color-mix(in srgb, var(--h-color-primary) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--h-color-primary) 5%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  border: 1px solid var(--h-color-border);
  box-shadow: var(--h-elevation-2);
  padding: clamp(18px, 2.4vw, 32px);
}
.bench__canvas { position: relative; width: 100%; aspect-ratio: 136 / 152; }
.board { position: absolute; margin: 0; }
.board img { width: 100%; height: auto; border-radius: 3%; filter: drop-shadow(0 1px 1px rgba(22, 53, 53, 0.18)) drop-shadow(0 10px 18px rgba(22, 53, 53, 0.16)); }
.board figcaption {
  margin-top: 8px; font-size: clamp(0.6875rem, 0.62rem + 0.2vw, 0.8125rem); font-weight: 600;
  color: var(--h-color-text-secondary); white-space: nowrap; letter-spacing: 0.01em;
}
.board figcaption .muted { font-weight: 500; }
/* positions in % of a 136 x 152 mm canvas */
.board--pm      { left: 0;          top: 0;          width: calc(80 / 136 * 100%); }
.board--master  { left: calc(92 / 136 * 100%); top: 0;          width: calc(40 / 136 * 100%); }
.board--meet8   { left: 0;          top: calc(92 / 152 * 100%); width: calc(80 / 136 * 100%); }
.board--methaan { left: calc(92 / 136 * 100%); top: calc(72 / 152 * 100%); width: calc(40 / 136 * 100%); }
.bench__caption { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: var(--h-text-xs); color: var(--h-color-text-muted); }

@media (max-width: 520px) { .hero__actions .btn { flex: 1 1 100%; } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
}

/* ---------- Problem (deep band) ---------- */
.problem__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quotes { list-style: none; display: grid; gap: 28px; }
.quote {
  position: relative; padding-left: 34px;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em;
  color: var(--h-color-text-inverse);
}
.quote::before {
  content: '\201C'; position: absolute; left: 0; top: -0.12em;
  font-size: 2.4em; line-height: 1; color: var(--h-color-accent-light); font-weight: 600;
}
.problem__aside { border-left: 1px solid color-mix(in srgb, var(--h-color-text-inverse) 18%, transparent); padding-left: clamp(24px, 3vw, 40px); }
.problem__aside .h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
@media (max-width: 860px) {
  .problem__grid { grid-template-columns: 1fr; }
  .problem__aside { border-left: 0; padding-left: 0; border-top: 1px solid color-mix(in srgb, var(--h-color-text-inverse) 18%, transparent); padding-top: 32px; }
}

/* ---------- How it works ---------- */
.diagram {
  border-radius: var(--h-radius-xl); border: 1px solid var(--h-color-border);
  background: var(--h-color-bg); padding: clamp(16px, 2.5vw, 36px); box-shadow: var(--h-elevation-1);
}
.diagram svg { width: 100%; height: auto; }
.diagram__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram__scroll svg { min-width: 640px; }
.diagram__note { margin-top: 12px; font-size: var(--h-text-xs); color: var(--h-color-text-muted); }
.diagram__hint { display: none; margin-bottom: 10px; font-size: var(--h-text-xs); font-weight: 600; color: var(--h-color-text-secondary); }
@media (max-width: 700px) { .diagram__hint { display: block; } }
.dg-label { font-family: var(--h-font-family); font-size: 13px; font-weight: 600; fill: var(--h-color-text); }
.dg-sub { font-family: var(--h-font-family); font-size: 11.5px; font-weight: 500; fill: var(--h-color-text-muted); }
.dg-num { font-family: var(--h-font-family); font-size: 11px; font-weight: 600; fill: var(--h-color-text-secondary); font-variant-numeric: tabular-nums; }
.steps { margin-top: clamp(32px, 3vw + 8px, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); list-style: none; counter-reset: step; }
.step { counter-increment: step; border-top: 2px solid var(--h-color-text); padding-top: 18px; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px;
  font-size: var(--h-text-sm); font-weight: 650; color: var(--h-color-accent); font-variant-numeric: tabular-nums;
}
.step p { margin-top: 8px; color: var(--h-color-text-secondary); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- The set ---------- */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.part {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0;
  background: var(--h-color-surface); border: 1px solid var(--h-color-border); border-radius: var(--h-radius-xl);
  box-shadow: var(--h-elevation-1); overflow: hidden;
}
.part__media {
  display: grid; place-items: center; padding: 28px;
  background: var(--h-color-surface-dim); border-right: 1px solid var(--h-color-border);
}
.part__media img { max-height: 190px; width: auto; filter: drop-shadow(0 8px 14px rgba(22, 53, 53, 0.16)); }
.part__body { padding: 24px 24px 22px; display: flex; flex-direction: column; }
.part__tag { font-size: var(--h-text-xs); font-weight: 600; color: var(--h-color-text-muted); letter-spacing: 0.02em; }
.part__body h3 { margin-top: 6px; }
.part__body p { margin-top: 8px; color: var(--h-color-text-secondary); font-size: var(--h-text-sm); line-height: 1.6; }
.specs { margin: auto 0 0; padding-top: 16px; display: grid; gap: 6px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--h-color-border); font-size: var(--h-text-sm); }
.specs dt { color: var(--h-color-text-muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 1020px) { .set-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .part { grid-template-columns: 1fr; }
  .part__media { border-right: 0; border-bottom: 1px solid var(--h-color-border); padding: 24px; }
  .part__media img { max-height: 170px; }
}
.virtues { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.virtue { display: flex; gap: 14px; align-items: flex-start; }
.virtue svg { width: 22px; height: 22px; flex: none; color: var(--h-color-primary); margin-top: 2px; }
.virtue strong { display: block; font-weight: 650; }
.virtue span { display: block; font-size: var(--h-text-sm); color: var(--h-color-text-secondary); margin-top: 2px; }
@media (max-width: 760px) { .virtues { grid-template-columns: 1fr; } }

.expand { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 40px; align-items: center; padding: 28px; border: 1px solid var(--h-color-border); border-radius: var(--h-radius-xl); background: var(--h-color-surface); box-shadow: var(--h-elevation-1); }
.expand__text p { margin-top: 8px; color: var(--h-color-text-secondary); font-size: var(--h-text-sm); line-height: 1.6; }
.expand__row { list-style: none; display: flex; align-items: flex-end; gap: 14px; padding: 18px 0 0; position: relative; }
.expand__row::before { content: ''; position: absolute; left: 20px; right: 20px; top: 4px; height: 0; border-top: 2px dashed var(--h-color-primary); opacity: 0.45; }
.expand__item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: var(--h-text-xs); font-weight: 600; color: var(--h-color-text-secondary); white-space: nowrap; position: relative; }
.expand__item::before { content: ''; position: absolute; top: -14px; width: 2px; height: 12px; background: var(--h-color-primary); opacity: 0.45; }
.expand__item img { height: 56px; width: auto; filter: drop-shadow(0 4px 8px rgba(22, 53, 53, 0.16)); }
.expand__item--master img { height: 64px; }
.expand__dots { display: grid; place-items: center; height: 56px; width: 40px; font-size: 1.5rem; color: var(--h-color-primary); }
@media (max-width: 900px) { .expand { grid-template-columns: 1fr; } .expand__row { overflow-x: auto; padding-bottom: 4px; } }
/* ---------- Grows with you ---------- */
.grow__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; align-items: start; }
.module { text-align: left; }
.module img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(22, 53, 53, 0.16)); }
.module strong { display: block; margin-top: 12px; font-size: var(--h-text-sm); font-weight: 650; }
.module span { display: block; font-size: var(--h-text-xs); color: var(--h-color-text-muted); margin-top: 2px; line-height: 1.45; }
.module--next .slot {
  aspect-ratio: 40 / 60; border-radius: 6%; border: 1.5px dashed color-mix(in srgb, var(--h-color-primary) 45%, transparent);
  display: grid; place-items: center; color: var(--h-color-primary); background: color-mix(in srgb, var(--h-color-surface) 55%, transparent);
}
.module--next .slot svg { width: 26px; height: 26px; }
.does { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.does li {
  font-size: var(--h-text-sm); font-weight: 500; padding: 6px 12px; border-radius: var(--h-radius-full);
  background: var(--h-color-surface); border: 1px solid var(--h-color-border); color: var(--h-color-text-secondary);
}
@media (max-width: 900px) { .grow__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } }

/* ---------- Origin / proof ---------- */
.origin__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.origin__statement { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.375rem); line-height: 1.22; letter-spacing: -0.022em; font-weight: 600; }
.origin__statement em { font-style: normal; color: var(--h-color-primary); }
.origin__body { margin-top: 20px; color: var(--h-color-text-secondary); max-width: 38em; }
.signature { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-size: var(--h-text-sm); }
.signature__mark { width: 40px; height: 40px; border-radius: 50%; background: var(--h-color-primary-deep); display: grid; place-items: center; }
.signature__mark img { width: 24px; }
.signature strong { display: block; font-weight: 650; }
.signature span { color: var(--h-color-text-muted); }
.stats { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--h-color-border); }
.stat { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--h-color-border); }
.stat__value { min-width: 3.4ch; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--h-color-primary-deep); }
.stat__label { color: var(--h-color-text-secondary); font-size: var(--h-text-sm); line-height: 1.45; }
@media (max-width: 860px) { .origin__grid { grid-template-columns: 1fr; } }

.origin-small { max-width: 760px; }
.origin-small .h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.35; }
.site-nav__link--login { color: var(--h-color-text-muted); }
.site-nav__sub { font-weight: 500; color: var(--h-color-text-muted); }
@media (max-width: 860px) { .site-nav__sub { display: none; } }

/* ---------- Reserve block ---------- */
.reserve {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: var(--h-color-surface); border: 1px solid var(--h-color-border); border-radius: 16px;
  box-shadow: var(--h-elevation-3); overflow: hidden;
}
.reserve__main { padding: clamp(28px, 4vw, 56px); }
.reserve__side { padding: clamp(28px, 4vw, 48px); background: var(--h-color-surface-dim); border-left: 1px solid var(--h-color-border); }
.howto { margin-top: 24px; display: grid; gap: 14px; list-style: none; counter-reset: how; }
.howto li { counter-increment: how; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--h-color-text-secondary); }
.howto li::before {
  content: counter(how); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--h-color-border-strong); background: var(--h-color-bg);
  font-size: var(--h-text-sm); font-weight: 650; color: var(--h-color-text); font-variant-numeric: tabular-nums;
}
.howto strong { color: var(--h-color-text); font-weight: 650; }
@media (max-width: 900px) {
  .reserve { grid-template-columns: 1fr; }
  .reserve__side { border-left: 0; border-top: 1px solid var(--h-color-border); }
}

/* ---------- Forms ---------- */
.form { margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
.label { font-size: var(--h-text-sm); font-weight: 600; color: var(--h-color-text); }
.label .opt { font-weight: 500; color: var(--h-color-text-muted); }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: var(--h-text-base); color: var(--h-color-text);
  background: var(--h-color-surface); border: 1px solid var(--h-color-border-strong); border-radius: var(--h-radius-lg);
  padding: 13px 14px; min-height: 52px;
  box-shadow: inset 0 1px 2px rgba(44, 51, 56, 0.05);
  transition: border-color var(--h-transition-fast), box-shadow var(--h-transition-fast);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--h-color-primary);
  box-shadow: inset 0 1px 2px rgba(44, 51, 56, 0.05), 0 0 0 3px color-mix(in srgb, var(--h-color-primary) 18%, transparent);
}
.input[aria-invalid='true'] { border-color: var(--h-color-error); }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.inline-form .btn { min-height: 52px; }
@media (max-width: 520px) { .inline-form { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: var(--h-text-sm); color: var(--h-color-text-secondary); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--h-color-primary); flex: none; }
.form-msg { margin-top: 12px; min-height: 1.5em; font-size: var(--h-text-sm); font-weight: 500; }
.form-msg--error { color: var(--h-color-error); }
.form-msg--ok { color: var(--h-color-success); }
.fine { margin-top: 18px; font-size: var(--h-text-xs); line-height: 1.6; color: var(--h-color-text-muted); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.choices { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { padding: 0; margin-bottom: 10px; font-weight: 650; font-size: var(--h-text-base); }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--h-color-border); border-radius: var(--h-radius-lg); background: var(--h-color-surface);
  cursor: pointer; font-size: var(--h-text-sm); transition: border-color var(--h-transition-fast), background-color var(--h-transition-fast);
}
.choice:hover { border-color: var(--h-color-border-strong); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--h-color-primary); flex: none; }
.choice:has(input:checked) { border-color: var(--h-color-primary); background: color-mix(in srgb, var(--h-color-primary) 6%, var(--h-color-surface)); }
.choices--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .choices--grid { grid-template-columns: 1fr; } }

/* ---------- Status timeline ---------- */
.timeline { list-style: none; margin-top: 20px; display: grid; gap: 0; }
.tl { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 20px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--h-color-border-strong); }
.tl:last-child::before { display: none; }
.tl__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--h-color-border-strong); background: var(--h-color-surface-dim); position: relative; z-index: 1; }
.tl--done .tl__mark { background: var(--h-color-primary); border-color: var(--h-color-primary); }
.tl--done .tl__mark::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tl--done::before { background: var(--h-color-primary); }
.tl--now .tl__mark { border-color: var(--h-color-accent); background: var(--h-color-surface); }
.tl--now .tl__mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--h-color-accent); }
.tl strong { display: block; font-weight: 650; font-size: var(--h-text-sm); }
.tl span { display: block; font-size: var(--h-text-sm); color: var(--h-color-text-secondary); margin-top: 2px; line-height: 1.5; }

.kit { list-style: none; margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--h-color-border-strong); }
.kit li { padding: 14px 0; border-bottom: 1px solid var(--h-color-border); }
.kit strong { display: block; font-size: var(--h-text-sm); font-weight: 650; }
.kit span { display: block; margin-top: 2px; font-size: var(--h-text-sm); color: var(--h-color-text-secondary); line-height: 1.5; }

/* ---------- Installer teaser band ---------- */
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band .h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
.band > div { max-width: 640px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--h-color-border); }
.faq details { border-bottom: 1px solid var(--h-color-border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: var(--h-text-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border: solid var(--h-color-text-muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px);
  transition: transform var(--h-transition-fast);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 0 22px; color: var(--h-color-text-secondary); max-width: 46em; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--h-color-primary-deep); color: color-mix(in srgb, var(--h-color-text-inverse) 78%, transparent); padding-block: 56px 40px; font-size: var(--h-text-sm); }
.site-footer a { color: var(--h-color-text-inverse); text-decoration-color: color-mix(in srgb, var(--h-color-text-inverse) 40%, transparent); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 34px; width: auto; }
.footer__brand p { margin-top: 14px; max-width: 30em; }
.footer__col h4 { font-size: var(--h-text-sm); color: var(--h-color-text-inverse); margin-bottom: 12px; letter-spacing: 0; }
.footer__col ul { list-style: none; display: grid; gap: 8px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--h-color-text-inverse) 14%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--h-text-xs); color: color-mix(in srgb, var(--h-color-text-inverse) 60%, transparent); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Funnel pages (reserve / thanks) ---------- */
.flow { padding-block: clamp(32px, 4vw + 8px, 72px) clamp(56px, 6vw, 104px); }
.flow-steps { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 28px; list-style: none; font-size: var(--h-text-xs); font-weight: 600; color: var(--h-color-text-muted); }
.flow-steps li { display: inline-flex; align-items: center; gap: 8px; }
.flow-steps li + li::before { content: ''; width: 28px; height: 1px; background: var(--h-color-border-strong); margin-right: 0; }
.flow-steps .is-done, .flow-steps .is-current { color: var(--h-color-text); }
.flow-steps .is-current span { border-color: var(--h-color-primary); background: var(--h-color-primary); color: #fff; }
.flow-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--h-color-border-strong); background: var(--h-color-surface); font-variant-numeric: tabular-nums; }
.flow-steps .is-done span { border-color: var(--h-color-primary); color: var(--h-color-primary); }
.card {
  background: var(--h-color-surface); border: 1px solid var(--h-color-border); border-radius: 16px;
  box-shadow: var(--h-elevation-3); padding: clamp(24px, 4vw, 48px);
}
.card + .card { margin-top: 20px; }
.card--quiet { box-shadow: var(--h-elevation-1); }
.price-label { font-size: var(--h-text-sm); font-weight: 600; color: var(--h-color-text-secondary); }
.price {
  margin-top: 6px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.price__amount { font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); font-weight: 680; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--h-color-primary-deep); }
.price__note { font-size: var(--h-text-sm); color: var(--h-color-text-secondary); }
.price__note strong { color: var(--h-color-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.includes { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; list-style: none; }
.includes li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--h-text-sm); color: var(--h-color-text-secondary); }
.includes li .tick { margin-top: 3px; }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }
.ledger { margin-top: 28px; border: 1px solid var(--h-color-border); border-radius: var(--h-radius-lg); overflow: hidden; }
.ledger__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 14px 16px; border-top: 1px solid var(--h-color-border); font-size: var(--h-text-sm); }
.ledger__row:first-child { border-top: 0; }
.ledger__row b { font-weight: 650; color: var(--h-color-text); }
.ledger__row span { color: var(--h-color-text-secondary); }
.ledger__row .n { color: var(--h-color-text-muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.ledger__row .amt { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ledger__row--now { background: color-mix(in srgb, var(--h-color-accent) 7%, var(--h-color-surface)); }
.pay-row { margin-top: 28px; }
.pay-meta { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: var(--h-text-xs); color: var(--h-color-text-muted); }
.notice { padding: 16px 18px; border-radius: var(--h-radius-lg); background: var(--h-color-surface-tint); border: 1px solid var(--h-color-border); font-size: var(--h-text-sm); color: var(--h-color-text-secondary); }
.notice strong { color: var(--h-color-text); }
.thanks-mark { width: 56px; height: 56px; color: var(--h-color-success); }
.big-line { margin-top: 18px; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 680; letter-spacing: -0.03em; line-height: 1.05; }
.big-line .num { color: var(--h-color-primary); }
.summary { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--h-color-border); }
.summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--h-color-border); font-size: var(--h-text-sm); }
.summary dt { color: var(--h-color-text-muted); white-space: nowrap; }
.summary dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.waiting { display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--h-color-accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
.survey .choices + .choices, .survey .choices + .field, .survey .field + .choices { margin-top: 28px; }
.is-hidden { display: none !important; }

/* ---------- Installers ---------- */
.chart-card { margin: 0; background: var(--h-color-surface); border: 1px solid var(--h-color-border); border-radius: var(--h-radius-xl); box-shadow: var(--h-elevation-2); padding: clamp(18px, 2.4vw, 28px); }
.chart-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-card__title { font-weight: 650; font-size: var(--h-text-sm); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--h-text-xs); color: var(--h-color-text-secondary); list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend .l1 { background: var(--h-phase-l1); }
.legend .l2 { background: var(--h-phase-l2); }
.legend .l3 { background: var(--h-phase-l3); }
.legend .lim { background: var(--h-color-error); height: 0; border-top: 2px dashed var(--h-color-error); }
.chart-card svg { margin-top: 14px; width: 100%; height: auto; }
.ch-axis { font-family: var(--h-font-family); font-size: 12px; fill: var(--h-color-text-muted); font-variant-numeric: tabular-nums; }
.ch-note { font-family: var(--h-font-family); font-size: 12.5px; font-weight: 600; fill: var(--h-color-error); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.tile { background: var(--h-color-surface); border: 1px solid var(--h-color-border); border-radius: var(--h-radius-xl); padding: 24px; box-shadow: var(--h-elevation-1); }
.tile p { margin-top: 8px; color: var(--h-color-text-secondary); font-size: var(--h-text-sm); }
.tile__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--h-color-surface-tint); color: var(--h-color-primary); margin-bottom: 16px; }
.tile__icon svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Reading pages ---------- */
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -0.03em; }
.prose h2 { margin-top: 40px; font-size: var(--h-text-xl); }
.prose p, .prose ul { margin-top: 12px; color: var(--h-color-text-secondary); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose .updated { margin-top: 10px; font-size: var(--h-text-sm); color: var(--h-color-text-muted); }

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
}
