/* Home: hero, the fan, cells, versus, steps, rules, tiers. Page classes are prefixed per component. */

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 88px) 0 0; }
.aurora { position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(56px); opacity: .7; mix-blend-mode: screen; will-change: transform; }
.aurora i:nth-child(1) { left: -8%; top: -12%; width: 62%; height: 44%; background: radial-gradient(closest-side, var(--au-1), transparent); animation: au1 24s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { left: 38%; top: -18%; width: 58%; height: 50%; background: radial-gradient(closest-side, var(--au-2), transparent); animation: au2 29s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: 62%; top: 2%; width: 48%; height: 42%; background: radial-gradient(closest-side, var(--au-3), transparent); animation: au3 34s ease-in-out infinite alternate; }
.aurora::after { content: ""; position: absolute; inset: 0; background: url(/_r/noise.png) repeat; background-size: 160px; opacity: .09; mix-blend-mode: overlay; }
@keyframes au1 { to { transform: translate(9%, 8%) scale(1.12) rotate(6deg); } }
@keyframes au2 { to { transform: translate(-10%, 10%) scale(.92) rotate(-5deg); } }
@keyframes au3 { to { transform: translate(-8%, -6%) scale(1.1) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .aurora i, .aurora i:nth-child(n) { animation: none; } }

.hero h1 { max-width: 1000px; }
.hero .lede { margin-top: 28px; font-size: 19px; line-height: 1.5; color: var(--t2); max-width: 580px; text-wrap: pretty; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.assure { margin-top: 22px; font-size: 13px; color: var(--t4); }
.assure span:last-child { color: var(--t2); white-space: nowrap; }
.stage { margin-top: 76px; }
@media (min-width: 1281px) { .stage { margin-inline: -32px; } }
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero .lede { font-size: 17px; margin-top: 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .hero-cta .pill, .hero-cta .ghost { height: 48px; font-size: 15px; }
  .hero-cta .cmd { height: 48px; justify-content: space-between; padding-left: 18px; }
  .hero-cta .cmd code { margin-right: auto; }
  .assure span { display: block; }
  .stage { margin-top: 52px; }
}

/* the hero panel: a rail of what you sell, the file, and the call it earns from */
.hx { display: grid; grid-template-columns: 244px minmax(0, 1fr); height: 680px; }
.hx-rail { border-right: 1px solid var(--edge); padding: 18px 0 0; min-width: 0; }
.hx-rail .label { padding: 0 20px 12px; }
.hx-tabs button { position: relative; display: block; width: 100%; text-align: left; padding: 10px 20px; transition: background .3s var(--ease); }
.hx-tabs button i { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
.hx-tabs .n { display: block; font-size: 14px; line-height: 20px; font-weight: 510; color: var(--t3); transition: color .2s var(--ease); }
.hx-tabs .p { display: block; margin-top: 2px; font: 400 13px/17px var(--mono); letter-spacing: 0; color: var(--t4); }
.hx-tabs button:hover .n, .hx-tabs button[aria-selected="true"] .n { color: var(--t1); }
.hx-tabs button[aria-selected="true"] { background: rgba(var(--accent-rgb), .055); }
.hx-tabs button[aria-selected="true"] .p { color: var(--t2); }
.hx-tabs button:focus-visible { outline-offset: -2px; border-radius: 0; }
.hx-cap { display: none; }
.hx-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; height: 100%; }
.hx-view:focus-visible { outline-offset: -2px; border-radius: 0 14px 14px 0; }
.js .hx-view:not([hidden]) { animation: hxin .5s var(--ease) both; }
@keyframes hxin { from { opacity: 0; filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .js .hx-view:not([hidden]) { animation: none; } }
.hx-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.hx-call { border-left: 1px solid var(--edge); }
.hx-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; padding-bottom: 220px; }
.hx-in .code { overflow: visible; }

.hx-call .hx-scroll .code { overflow: visible; padding-bottom: 6px; }
.hx-status, .hx-band { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 20px; font: 400 13px/1 var(--mono); letter-spacing: 0; white-space: nowrap; color: var(--t2); transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.hx-status { color: var(--t1); border-top: 1px solid var(--edge); height: 40px; }
.hx-status .ic { color: var(--t4); }
.hx-call .bar .ic, .hd .bar .ic, .pj .bar .ic { color: var(--t4); }
.hx-band { display: block; line-height: 34px; white-space: pre; }
.hx-body { border-top: 1px solid var(--line-1); margin-top: 6px; }
@media (max-width: 1000px) {
  .hx { grid-template-columns: minmax(0, 1fr); height: auto; }
  .hx-rail { border-right: 0; border-bottom: 1px solid var(--edge); padding: 0; }
  .hx-rail .label { display: none; }
  .hx-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .hx-tabs::-webkit-scrollbar { display: none; }
  .hx-tabs button { width: auto; flex: none; height: 48px; padding: 0 12px; white-space: nowrap; }
  .hx-tabs button:last-child { margin-right: 32px; }
  .hx-tabs button[aria-selected="true"] { background: none; }
  .hx-tabs button i { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 2px; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
  .hx-tabs .p { display: none; }
  .hx-cap { display: block; padding: 10px 20px; border-top: 1px solid var(--edge); font: 400 13px/18px var(--mono); letter-spacing: 0; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hx-view { grid-template-columns: minmax(0, 1fr); height: auto; }
  .hx-file { height: 300px; }
  .hx-call { height: 360px; border-left: 0; border-top: 1px solid var(--edge); }
  .hx-file .hx-scroll { padding-bottom: 60px; }
}
@media (max-width: 640px) { .code { font-size: 13px; } .hx-status, .hx-band { font-size: 13px; } }

/* ---------- the fan: one file, ten products ---------- */
.fan { display: grid; grid-template-columns: minmax(0, 1.2fr) 150px minmax(0, 1fr); }
.fan-file { min-width: 0; border-right: 1px solid var(--edge); }
.fan-wires { width: 100%; height: 100%; background: var(--bg); overflow: visible; }
.fan-wires path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fan-wires .w { stroke: rgba(255,255,255,.1); }
.fan-wires .wl { stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 1; stroke-linecap: round; }
.fan-list { border-left: 1px solid var(--edge); display: grid; grid-auto-rows: 1fr; min-width: 0; }
.fan-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 0 20px; border-bottom: 1px solid var(--line-1); transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.fan-list li:last-child { border-bottom: 0; }
.fan-list .n { font-size: 14px; font-weight: 510; color: var(--t3); white-space: nowrap; transition: color .5s var(--ease); }
.fan-list .p { font: 400 13px/1 var(--mono); letter-spacing: 0; color: var(--t4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .5s var(--ease); }
.fan-list li.on { background: rgba(var(--accent-rgb), .055); box-shadow: inset 2px 0 0 var(--accent); }
.fan-list li.on .n { color: var(--t1); } .fan-list li.on .p { color: var(--t2); }
@media (max-width: 900px) {
  .fan { grid-template-columns: minmax(0, 1fr); }
  .fan-wires { display: none; }
  .fan-file { border-right: 0; max-height: 236px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 130px, transparent 228px); mask-image: linear-gradient(180deg, #000 0, #000 130px, transparent 228px); }
  .fan-list { border-left: 0; border-top: 1px solid var(--edge); }
}

/* ---------- cells: what changes when the buyer is an agent ---------- */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cells li { padding: 32px 32px 38px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.cells li:nth-child(3n + 1) { padding-left: 0; } .cells li:nth-child(3n) { border-right: 0; padding-right: 0; }
.cells h3 { margin-top: 16px; font-size: 22px; line-height: 1.25; letter-spacing: -.018em; }
.cells p { margin-top: 6px; font-size: 15px; color: var(--t3); }
@media (max-width: 1000px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells li:nth-child(n) { padding: 26px 24px 30px; border-right: 1px solid var(--line); }
  .cells li:nth-child(odd) { padding-left: 0; } .cells li:nth-child(even) { border-right: 0; padding-right: 0; }
}
@media (max-width: 560px) { .cells { grid-template-columns: minmax(0, 1fr); } .cells li:nth-child(n) { padding: 22px 0 26px; border-right: 0; } .cells h3 { font-size: 20px; margin-top: 12px; } }

/* ---------- versus ---------- */
.vs { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.vs th, .vs td { padding: 17px 24px; vertical-align: top; }
.vs thead th { font: 400 13px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--t4); border-bottom: 1px solid var(--edge); padding-top: 16px; padding-bottom: 15px; }
.vs tbody th { width: 36%; font-size: 15px; font-weight: 510; color: var(--t2); }
.vs tbody td { font-size: 15px; color: var(--t3); }
.vs tbody tr:not(:last-child) th, .vs tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line-1); }
.vs tr.on { box-shadow: none; }
.vs tr.on th { box-shadow: inset 2px 0 0 var(--accent); color: var(--t1); }
.vs tr.on td { color: var(--t1); }
@media (max-width: 640px) {
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; }
  .vs tbody th { width: auto; padding: 16px 16px 2px; border-bottom: 0 !important; }
  .vs tbody td { padding: 0 16px 16px; }
  .vs tr.on { box-shadow: inset 2px 0 0 var(--accent); } .vs tr.on th { box-shadow: none; }
}

/* ---------- steps ---------- */
.steps { border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 250px minmax(0, 1fr) auto; column-gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps .num { font: 400 13px/1 var(--mono); letter-spacing: .04em; color: var(--t4); }
.steps h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.steps p { font-size: 15px; color: var(--t3); max-width: 470px; text-wrap: pretty; }
.art { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font: 400 13px/1 var(--mono); letter-spacing: 0; color: var(--t2); white-space: nowrap; flex: none; justify-self: end; }
.art .ic { color: var(--t4); } .art b { font-weight: 500; color: var(--accent); } .art em { font-style: normal; color: var(--t4); }
@media (max-width: 1100px) {
  .steps li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: baseline; padding: 24px 0; }
  .steps p, .steps .art { grid-column: 2; }
  .steps .art { justify-self: start; margin-top: 10px; }
}

/* ---------- six rules, as the headers on a reply ---------- */
.hd .hd-note { color: var(--t4); }
.hd dl > div { display: grid; grid-template-columns: 130px 210px minmax(0, 1fr); column-gap: 24px; align-items: baseline; padding: 15px 24px; border-bottom: 1px solid var(--line-1); }
.hd dl > div:last-child { border-bottom: 0; }
.hd dt { font: 400 13px/1.6 var(--mono); letter-spacing: 0; color: var(--t3); }
.hd .v { font: 400 13px/1.6 var(--mono); letter-spacing: 0; color: var(--t1); }
.hd .d { font-size: 15px; color: var(--t3); }
.hd .bar { padding-left: 24px; padding-right: 24px; }
@media (max-width: 820px) {
  .hd dl > div { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 14px 16px; }
  .hd .d { grid-column: 1 / -1; font-size: 14px; }
  .hd .bar { padding-left: 16px; padding-right: 16px; }
}

/* ---------- tiers and the keep calculator ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers li { display: flex; flex-direction: column; padding: 28px 28px 30px; border-right: 1px solid var(--line); }
.tiers li:first-child { padding-left: 0; } .tiers li:last-child { border-right: 0; padding-right: 0; }
.tiers h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.tiers .for { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--t3); min-height: 21px; text-wrap: pretty; }
.tiers .amt { margin-top: 22px; }
.tiers .amt strong { display: block; font-size: 36px; line-height: 1.1; font-weight: 510; letter-spacing: -.022em; font-variant-numeric: tabular-nums; }
.tiers .amt span { display: block; margin-top: 4px; font-size: 14px; color: var(--t3); }
.tiers .go { margin-top: 24px; width: 100%; }
@media (max-width: 640px) { .tiers .go { height: 48px; font-size: 15px; } }
.keep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 0; }
.tiers + .frame { margin-top: 32px; }
.keep-in, .keep-out { display: block; padding: 28px 32px 30px; }
.keep-out { border-left: 1px solid var(--edge); }
.keep-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.keep-row .unit { color: var(--t3); font-size: 15px; white-space: nowrap; }
.keep-out strong { display: block; margin-top: 12px; font-size: 40px; line-height: 44px; font-weight: 510; letter-spacing: -.022em; font-variant-numeric: tabular-nums; }
.keep-out .label span { color: var(--t2); }
.tiers-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; font-size: 15px; color: var(--t3); }
@media (max-width: 1000px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers li:nth-child(n) { padding: 24px 24px 26px; border-right: 1px solid var(--line); }
  .tiers li:nth-child(odd) { padding-left: 0; } .tiers li:nth-child(even) { border-right: 0; padding-right: 0; }
  .tiers li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

}
@media (max-width: 640px) {
  .keep { grid-template-columns: minmax(0, 1fr); }
  .keep-in, .keep-out { padding: 22px 20px 24px; }
  .keep-out { border-left: 0; border-top: 1px solid var(--edge); }
  .keep-out strong { font-size: 34px; }
  .tiers .amt strong { font-size: 30px; }
  .tiers li:nth-child(n) { padding-top: 20px; padding-bottom: 22px; }
  .tiers .for { min-height: 42px; }
}

/* the first screen (scripts/assert-fold.mjs): the product panel starts by 520px at 1440x900, so its rail and the call show above the fold */
@media (min-width: 1001px) {
  .hero { padding-top: calc(var(--header-h) + 52px); }
  .hero h1 { font-size: clamp(40px, 5.5vw, 72px); }
  .hero .lede { margin-top: 22px; }
  .hero-cta { margin-top: 28px; }
  .assure { margin-top: 18px; }
  .stage { margin-top: 48px; }
}
/* the narrowest phones: a step's artifact wraps instead of pushing the page wider */
@media (max-width: 420px) { .steps .art { max-width: 100%; height: auto; min-height: 34px; padding: 7px 12px; white-space: normal; flex-wrap: wrap; row-gap: 2px; } .steps li { min-width: 0; } }
