/* Shared section frame: ink rule on top, numbered kicker, poster-size headline. */
main { counter-reset: sec; }

/* Sections clip sideways so sliding headline lines never widen the page (hidden first for older Safari). */
.s { border-top: var(--rule) solid var(--line); overflow-x: hidden; overflow-x: clip; }
.s--hero { border-top: 0; }
.s:not(.s--hero):not(.s--cta):not(.s--marquee) { counter-increment: sec; }
.s__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}

.s__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-bottom: clamp(48px, 7vw, 112px);
}
.s__head::before {
  content: counter(sec, decimal-leading-zero);
  grid-column: 1 / -1;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em;
  padding-bottom: 12px; border-bottom: var(--hairline) solid var(--line);
  width: 4ch;
}
.s__title {
  grid-column: 1 / span 11;
  font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.035em;
}
.s__intro { grid-column: 1 / span 6; font-size: var(--fs-lead); color: var(--muted); line-height: 1.5; }
.s__foot { margin-top: 40px; color: var(--muted); font-size: var(--fs-sm); max-width: 60ch; }

@media (max-width: 767px) {
  .s__title, .s__intro { grid-column: 1 / -1; }
}

/* ── hero ─────────────────────────────────────── */
.s--hero .s__inner {
  min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
  align-content: space-between;
  padding-top: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(32px, 4vw, 64px);
}
.hero__copy { grid-column: 1 / span 10; }
@media (max-width: 767px) {
  .hero__copy { grid-column: 1 / -1; }
  /* Phones: no forced full-screen height, so the price follows the button instead of floating at the bottom. */
  .s--hero .s__inner { min-height: 0; row-gap: 48px; }
}
.hero__title { font-size: var(--fs-h1); line-height: .98; letter-spacing: -0.045em; }
.hero__sub { margin-top: clamp(24px, 3vw, 40px); max-width: 36em; font-size: var(--fs-lead); color: var(--muted); line-height: 1.5; }
.hero__actions { margin-top: clamp(28px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 12px; }

.hero__figure {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  border-top: var(--rule) solid var(--line);
  padding-top: 16px;
}
.hero__label { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .08em; align-self: flex-start; }
.figure {
  display: inline-flex; align-items: flex-start;
  font-weight: 900; font-size: var(--fs-display); line-height: .78; letter-spacing: -0.06em;
  overflow-wrap: anywhere; min-width: 0;
}
.figure__affix { font-size: .38em; line-height: 1; margin-top: .06em; letter-spacing: 0; }

/* ── big-numbers ──────────────────────────────── */
.nums {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--rule) solid var(--line);
}
.num {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 20px 28px 0;
  border-bottom: var(--hairline) solid var(--line);
  min-width: 0;
}
.num__figure { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.num__value { font-weight: 900; font-size: var(--fs-num); line-height: .9; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.num__unit { font-weight: 800; font-size: var(--fs-lead); }
.num__label { font-weight: 700; font-size: var(--fs-sm); letter-spacing: .04em; }
.num__note { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 767px) {
  .num:nth-child(2n) { padding-left: 16px; border-left: var(--hairline) solid var(--line); }
}
@media (min-width: 768px) {
  .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .num:not(:nth-child(3n+1)) { padding-left: 20px; border-left: var(--hairline) solid var(--line); }
}

/* ── statements ───────────────────────────────── */
.stmts { counter-reset: stmt; border-top: var(--rule) solid var(--line); }
.stmt {
  counter-increment: stmt;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 24px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: var(--hairline) solid var(--line);
}
.stmt::before {
  content: counter(stmt, upper-alpha);
  grid-column: 1 / span 1;
  font-weight: 900; font-size: var(--fs-h3); line-height: 1.1;
}
.stmt__title { grid-column: 2 / span 5; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.02em; }
.stmt__text { grid-column: 7 / -1; color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; }
@media (max-width: 767px) {
  .stmt::before { grid-column: 1 / -1; }
  .stmt__title, .stmt__text { grid-column: 1 / -1; }
}

/* ── pricing ──────────────────────────────────── */
.pgroup + .pgroup { margin-top: clamp(56px, 7vw, 96px); }
.pgroup__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-bottom: 14px; border-bottom: var(--rule) solid var(--line);
}
.pgroup__title { font-size: var(--fs-h3); letter-spacing: -0.02em; }
.pgroup__note { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }

.prow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-bottom: var(--hairline) solid var(--line);
}
.prow__main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.prow__name { font-weight: 900; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.prow__tag {
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em;
  padding: 4px 8px; line-height: 1.2;
}
.prow__desc { flex-basis: 100%; color: var(--muted); font-size: var(--fs-sm); }
.prow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; min-width: 0; }
.prow__price { display: flex; align-items: baseline; gap: 6px; }
.prow__amount { font-weight: 900; font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: .9; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.prow__unit { font-weight: 700; font-size: var(--fs-sm); }
.prow__price--text { font-weight: 800; font-size: var(--fs-lead); }
.prow__lines { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }

@media (max-width: 767px) {
  .prow { grid-template-columns: 1fr; align-items: start; }
  .prow__side { align-items: flex-start; text-align: left; }
  .prow__lines { justify-content: flex-start; }
}

/* ── steps ────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  border-top: var(--rule) solid var(--line);
}
.step { padding: 20px 20px 32px 0; border-bottom: var(--hairline) solid var(--line); min-width: 0; }
.step__no {
  display: block; margin-bottom: 20px;
  font-weight: 900; font-size: clamp(3.5rem, 6vw, 6rem); line-height: .9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.step__title { font-size: 1.25rem; line-height: 1.25; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 768px) {
  .step + .step { padding-left: 20px; border-left: var(--hairline) solid var(--line); }
}

/* ── faq ──────────────────────────────────────── */
.faq { border-top: var(--rule) solid var(--line); }
.faq__item { border-bottom: var(--hairline) solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  font-weight: 900; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex: none; font-weight: 400; font-size: 1.4em; line-height: 1;
  transition: transform .3s var(--ease);
}
.faq__item[open] > .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 clamp(24px, 3vw, 40px); max-width: 52em; color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; }

/* ── links ────────────────────────────────────── */
.s--links .s__inner { padding-top: clamp(56px, 7vw, 96px); }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: var(--rule) solid var(--line); }
.link { border-bottom: var(--hairline) solid var(--line); }
@media (min-width: 768px) { .link + .link { border-left: var(--hairline) solid var(--line); } }
.link__a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 24px 20px 32px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.link__kicker { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; }
.link__title { display: flex; justify-content: space-between; gap: 16px; font-weight: 900; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.02em; }
.link__arrow { font-weight: 400; transition: transform .2s var(--ease); }
.link__text { color: var(--muted); font-size: var(--fs-sm); }
.link__a:hover { background: var(--ink); color: var(--paper); }
.link__a:hover .link__text { color: inherit; }
.link__a:hover .link__arrow { transform: translate(3px, -3px); }

/* ── cta (closing call to action) ─────────────── */
.cta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end;
}
.cta__title { grid-column: 1 / span 9; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.035em; }
.cta__side { grid-column: 10 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta__text { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 767px) { .cta__title, .cta__side { grid-column: 1 / -1; } }

/* ── visuals (js/render/visuals.js) ───────────── */
.v { margin: 0 0 clamp(40px, 6vw, 88px); }
.v svg { display: block; width: 100%; height: auto; overflow: visible; }
.s--hero .v { grid-column: 1 / -1; margin: 0; }

.v-box { fill: none; stroke: var(--ink); stroke-width: 3; }
.v-wire { stroke: var(--ink); stroke-opacity: .25; stroke-width: 2; }
.v-flow { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 14; animation: v-flow 1.1s linear infinite; }
@keyframes v-flow { to { stroke-dashoffset: -16; } }
.v-chip { fill: var(--hl); stroke: var(--ink); stroke-width: 3; }
.v-chip-text { font: 900 15px var(--font); fill: var(--ink); text-anchor: middle; }
.v-kicker { font: 800 13px var(--font); letter-spacing: 1.5px; fill: var(--ink); }
.v-title { font: 900 26px var(--font); fill: var(--ink); }
.v-note { font: 400 14px var(--font); fill: var(--muted); }
.v-caption { font: 400 13px ui-monospace, "SFMono-Regular", Consolas, monospace; fill: var(--muted); text-anchor: middle; }
.v-caption--start { text-anchor: start; }
.v-conn--tall { display: none !important; max-width: 420px; }
@media (max-width: 767px) {
  .v-conn--wide { display: none !important; }
  .v-conn--tall { display: block !important; }
}

.v--terminal { max-width: 820px; border: var(--rule) solid var(--ink); background: var(--paper); }
.v-term__bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: var(--rule) solid var(--ink);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em;
}
.v-term__bar i { width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 50%; }
.v-term__bar span { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-term__body {
  margin: 0; padding: 20px 22px 24px;
  font: 400 .95rem/1.75 ui-monospace, "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.v-term__line { display: block; }
.v-term__line.is-waiting { display: none; }
.v-term__ok { background: var(--hl); padding: 0 4px; font-weight: 700; }
.v-caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; background: var(--ink); vertical-align: -0.2em; animation: v-blink 1s steps(1) infinite; }
@keyframes v-blink { 50% { opacity: 0; } }

.v--map { max-width: 640px; }
.v-dot { fill: var(--ink); fill-opacity: .28; }
.v-pin { fill: var(--hl); stroke: var(--ink); stroke-width: 2.5; }
.v-pulse { fill: var(--hl); stroke: var(--ink); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: v-pulse 2.2s var(--ease) infinite; }
@keyframes v-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.v-leader { stroke: var(--ink); stroke-width: 1.5; }
.v-pin-label { font: 900 14px var(--font); fill: var(--ink); }

/* ── marquee (scrolling band of huge text) ────── */
.s--marquee { border-top: 0; }
.mq {
  display: flex; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(14px, 2vw, 26px) 0;
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
}
.mq--yellow { background: var(--hl); color: var(--ink); border-block: var(--rule) solid var(--ink); }
.mq__track { display: flex; align-items: center; flex: none; white-space: nowrap; will-change: transform; }
.mq__item { font-weight: 900; letter-spacing: -0.04em; line-height: 1; padding: 0 .4em; }
.mq__sep { display: inline-block; flex: none; width: .28em; height: .28em; background: currentColor; }
.mq mark.hl { background: none; color: var(--hl); }
.mq--yellow mark.hl { color: inherit; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }

/* ── pricing rows invert on hover ─────────────── */
@media (hover: hover) {
  .prow {
    margin-inline: -16px; padding-inline: 16px;
    transition: background-color .25s var(--ease), color .25s var(--ease);
  }
  .prow:hover { background: var(--ink); color: var(--paper); }
  .prow:hover .prow__desc,
  .prow:hover .prow__lines { color: rgba(255, 255, 255, .72); }
  .prow:hover .prow__tag { background: var(--hl); color: var(--ink); }
}
