.brass { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--brass), transparent 54%); }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 20; translate: 0 -200%; background: var(--surface); padding: 8px 12px; }
.skip-link:focus { translate: 0; }
.landing [id] { scroll-margin-top: 80px; }

.hero-frame { position: relative; isolation: isolate; }
.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(#000 0%, #000 35%, transparent 100%);
}
.hero-frame::before {
  background-image: radial-gradient(780px 470px at 79% 11%, #13765c21, transparent 64%),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px),
    linear-gradient(var(--gridline) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-frame::after {
    background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 0%), var(--spotlight), transparent 75%);
    opacity: 0;
    transition: opacity 220ms ease;
  }
  .hero-frame.spotlit::after { opacity: 1; }
}
.landing .hero { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.12fr); gap: clamp(26px, 4vw, 58px); padding-block: 66px 76px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 13px; color: var(--gold); font: 650 .73rem/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.kicker::before { content: ""; flex: 0 0 22px; height: 2px; background: var(--brass); }
.landing .hero h1 { font-size: clamp(2.45rem, 4.15vw, 3.6rem); line-height: 1.06; font-weight: 800; letter-spacing: -.055em; }
.landing .hero-copy > p { color: var(--muted); margin-top: 18px; font-size: 1.03rem; max-width: 53ch; }
.landing .hero-actions { margin-block: 24px 28px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 12px #0f172a0c; }
.hero-facts > div { padding: 10px 12px; }
.hero-facts > div + div { border-left: 1px solid var(--line); }
.hero-facts dt { font-size: .86rem; font-weight: 770; }
.hero-facts dd { margin: 2px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.landing .preview { overflow: hidden; }
.landing .preview-top { padding: 17px 20px; background: var(--forest); color: #f8fafc; }
.preview-top small, .preview-top strong { display: block; line-height: 1.25; }
.preview-top small { margin-bottom: 4px; color: #eac070; font-size: .72rem; }
.landing .preview-tag { color: #f0cb84; background: #bd913927; border: 1px solid #bd913961; border-radius: 99px; padding: 4px 9px; white-space: nowrap; }
.landing .preview-content { padding: 4px 20px; }
.landing .preview-row { padding-block: 14px; }
.landing .preview-total { padding: 14px 20px; background: var(--soft); }

.landing .landing-section { padding-block: 66px; }
.landing .landing-section + .landing-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 65ch; margin-bottom: 25px; }
.landing .section-heading :is(h1, h2) { margin-bottom: 10px; font-size: clamp(1.95rem, 3.7vw, 2.9rem); line-height: 1.07; font-weight: 790; }
.section-heading p { color: var(--muted); }
.section-heading h1 { letter-spacing: -.045em; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.standards > div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.standards dt { font-weight: 700; }
.standards dd { margin: 7px 0 0; color: var(--muted); }
.landing .steps { gap: 16px; }
.landing .steps li { padding: 22px; background: var(--soft); }
.landing .steps li::before { border-radius: 7px; background: var(--forest); color: #eac070; font-size: .82rem; }
.steps h3 { letter-spacing: -.02em; }

.stage {
  padding: clamp(12px, 2vw, 22px);
  background-color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.stage-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.stage-tabs button { min-height: 44px; border: 1px solid var(--line); border-radius: var(--button-radius); padding: 7px 9px; background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 680; }
.stage-tabs button:hover { border-color: var(--brass); }
.stage-tabs [aria-selected="true"] { background: var(--forest); border-color: var(--brass); color: #fff; }
.stage-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; min-height: 220px; padding: clamp(16px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stage-panel h3 { font-size: clamp(1.16rem, 2.1vw, 1.64rem); letter-spacing: -.025em; }
.stage-panel p { margin-block: 10px 16px; color: var(--muted); }
.stage-sample { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.stage-sample > strong { display: block; padding: 10px 14px; background: var(--forest); color: #f8fafc; }
.stage-sample dl { padding: 3px 14px; }
.stage-sample dl div, .calc-results div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-block: 8px; }
.stage-sample dl div + div, .calc-results div + div { border-top: 1px solid var(--line); }
.stage-sample dt, .calc-results dt { color: var(--muted); }
.stage-sample dd, .calc-results dd { margin: 0; text-align: right; font-weight: 700; }
.stage-sample dd { color: var(--emerald); }
.stage-sample .attention { color: var(--gold); }

.calculator-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 32px; }
.calculator { padding: clamp(15px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.calculator label { display: flex !important; justify-content: space-between; align-items: baseline; gap: 10px; }
.calculator output { font-size: 1.35rem; font-weight: 800; color: var(--emerald); }
.calculator input[type="range"] { width: 100%; min-height: 30px; margin: 6px 0 0; padding: 0; accent-color: var(--emerald); background: transparent; border: 0; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; }
.calc-results { margin-top: 13px; }
.calc-results div:last-child { color: var(--emerald); }
.calc-results dd { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.assumptions { margin-top: 12px; font-size: .9rem; }

.landing .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 15px; }
.price-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  position: relative;
  isolation: isolate;
  min-width: 0;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
}
.prices:has(.price-toggle[aria-expanded="true"]) .price-card { grid-row: span 4; }
.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: var(--surface);
  transition: var(--card-transition);
}
.price-card.featured::before { border-color: var(--featured-hover-border); }
@media (hover: hover) {
  .price-card:hover::before {
    transform: translateY(var(--card-hover-lift));
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
  }
  .price-card.featured:hover::before { border-color: var(--featured-hover-border); box-shadow: var(--featured-hover-shadow); }
}
.package-badge { display: inline-block; margin-block: 3px; padding: 3px 7px; color: var(--gold); background: var(--gold-soft); border-radius: 6px; font-size: .72rem; vertical-align: middle; }
.price-overview > p:not(.price) { color: var(--muted); }
.landing .price { line-height: 1.2; margin-bottom: 5px; }
.landing .price-quote { font-size: 1.8rem; line-height: 1.57; }
.price-card .button { margin: 0; }
.price-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; padding: .58rem .9rem; border: 1px solid var(--line); border-radius: var(--button-radius); color: var(--ink); font-size: .88rem; font-weight: 680; text-align: left; }
.price-toggle:hover { border-color: var(--brass); }
.price-toggle::after { content: ""; width: .46rem; height: .46rem; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -.2rem; }
.price-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: .2rem; }
.price-benefits { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: .85rem; }
.price-card li + li { margin-top: 6px; }
.comparison { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.comparison table { table-layout: fixed; }
.comparison caption { text-align: left; font-weight: 750; padding: 14px 12px 4px; }
.comparison th, .comparison td { padding: 9px 12px; width: auto; font-size: .83rem; vertical-align: top; }
.comparison th:first-child { width: 38%; }
.comparison th { color: var(--muted); }
.comparison tbody th { border-top: 1px solid var(--line); }
.comparison td { color: var(--ink); }

.landing .faq-layout, .landing .contact-layout { gap: 32px; }
.landing .faq details { padding-block: 14px; }
.landing .contact-form { gap: 15px; padding: clamp(14px, 2.4vw, 25px); box-shadow: var(--shadow); }
.landing .contact-layout .section-heading > a { display: inline-block; margin-top: 12px; }
.package-field { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.package-field legend { margin-bottom: 6px; font-size: .83rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chips span { display: block; border: 1px solid var(--line); border-radius: var(--button-radius); padding: 5px 10px; background: var(--soft); }
.chips input:checked + span { border-color: var(--emerald); background: var(--green-soft); color: var(--emerald); }
.chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .landing { scroll-behavior: smooth; }
  .landing .hero-copy, .landing .preview { animation: appear 420ms ease-out both; }
  .landing .preview { animation-delay: 75ms; }
  .stage-panel:not([hidden]) > * { animation: appear 230ms ease-out both; }
}
@media (max-width: 760px) {
  .landing .hero, .stage-panel, .calculator-layout, .landing .prices { grid-template-columns: minmax(0, 1fr); }
  .landing .hero { gap: 25px; padding-block: 41px; }
  .landing .hero h1 { font-size: clamp(1.95rem, 8.2vw, 3.1rem); }
  .landing .hero-actions { margin-block: 18px; }
  .landing .hero-facts > div { padding: 8px; }
  .landing .hero-facts dt { font-size: .75rem; }
  .landing .hero-facts dd { font-size: .69rem; }
  .landing .landing-section { padding-block: 39px; }
  .landing .section-heading { margin-bottom: 14px; }
  .landing .faq-layout, .landing .contact-layout, .calculator-layout { gap: 9px; }
  .stage-tabs button { font-size: .76rem; padding-inline: 5px; }
  .stage-sample dl { font-size: .82rem; }
  .price-card, .prices:has(.price-toggle[aria-expanded="true"]) .price-card { grid-template-rows: auto; grid-row: auto; gap: 12px; }
  .comparison th, .comparison td { padding-inline: 6px; font-size: .72rem; }
}
@media (max-width: 410px) {
  .landing .preview-content, .landing .preview-top, .landing .preview-total { padding-inline: 12px; }
  .landing .preview-row { font-size: .79rem; }
}
