/* Below-the-tour sections: ticker, system board, ownership, the trade, timeline, pricing compare.
   Reveal motion only arms when after.js adds html.rv, so everything reads fine without JS. */

/* ---------- reveal ---------- */
.rv [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.rv [data-reveal].in { opacity: 1; transform: none; }


/* ---------- system board ---------- */
.systems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sys:nth-child(1), .sys:nth-child(6), .sys:nth-child(7), .sys:nth-child(8) { grid-column: span 2; }
.sys:nth-child(1) h3, .sys:nth-child(6) h3 { font-size: 30px; }
.sys { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; display: grid; gap: 12px; align-content: start; overflow: hidden; }
.sys-i { width: 38px; height: 38px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rv .sys-i * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.4s cubic-bezier(.4,.1,.2,1); transition-delay: calc(var(--i, 0) * 70ms + .25s); }
.rv .sys.in .sys-i * { stroke-dashoffset: 0; }
.sys h3 { font-size: 24px; margin: 4px 0 0; }
.sys p { margin: 0; color: var(--cream-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- ownership ---------- */
.own { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; background: var(--cream); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(30px, 4vw, 52px); position: relative; overflow: hidden; }
.own::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(162,86,10,.35), transparent 65%); pointer-events: none; }
.own .kicker { color: #e19a4f; margin-bottom: 14px; }
.own h3 { font: 400 clamp(28px, 3vw, 38px)/1.1 var(--serif); margin: 0; color: var(--ink-2); }
.own-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; z-index: 1; }
.own-list li { display: grid; gap: 4px; padding-left: 34px; position: relative; }
.own-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #e19a4f; background: radial-gradient(circle, #e19a4f 0 4px, transparent 5px); }
.own-list b { font-weight: 600; color: var(--ink-2); }
.own-list span { color: rgba(246,243,238,.72); font-size: 15.5px; }

/* ---------- scope ---------- */
.scope { margin-top: 40px; display: grid; gap: 14px; }
.scope h3 { font-size: 22px; margin: 0; }
.scope-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.scope-list li { border: 1px dashed #b9b1a4; border-radius: 999px; padding: 9px 16px; font-size: 14.5px; color: var(--cream-2); background: rgba(255,255,255,.5); }
.scope p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- the trade ---------- */
.swap-sec { background: linear-gradient(180deg, transparent, rgba(162,86,10,.05) 30%, rgba(162,86,10,.05) 70%, transparent); }
.swap { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1.25fr); align-items: stretch; }
.swap-col { border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); }
.swap-col h3 { font-size: 26px; margin: 0 0 22px; }
.swap-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.swap-col li { display: grid; gap: 3px; }
.swap-col b { font-weight: 600; }
.swap-col span { font-size: 15.5px; }
.give { border: 1px solid var(--line); background: var(--ink-2); }
.give span { color: var(--cream-2); }
.get { background: var(--cream); color: var(--ink); box-shadow: 0 24px 60px rgba(27,29,33,.18); }
.get h3, .get b { color: var(--ink-2); }
.get span { color: rgba(246,243,238,.72); }
.swap-mid { display: grid; place-items: center; position: relative; }
.swap-arrow { position: relative; width: 56px; height: 2px; background: var(--line); overflow: hidden; }
.swap-arrow::before { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateX(-100%); animation: swapflow 2.2s cubic-bezier(.5,0,.3,1) infinite; }
.swap-mid::after { content: ""; position: absolute; top: 50%; left: calc(50% + 22px); width: 10px; height: 10px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); transform: translateY(-50%) rotate(45deg); }
@keyframes swapflow { 60%, 100% { transform: translateX(100%); } }

/* ---------- timeline ---------- */
.road { position: relative; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.tl li { position: relative; padding-top: 44px; display: grid; gap: 8px; align-content: start; }
.tl h3 { font-size: 24px; margin: 0; }
.tl p { margin: 0; color: var(--cream-2); font-size: 15.5px; }
.tl-who { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tl-dot { position: absolute; top: 4px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s; z-index: 1; }
.tl li.lit .tl-dot { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 6px rgba(162,86,10,.14); }
.tl-line { position: absolute; top: 12px; left: 9px; right: calc(25% - 9px); height: 2px; background: var(--line); }
.tl-fill { display: block; height: 100%; width: 100%; background: var(--amber); transform: scaleX(var(--p, 1)); transform-origin: left; }
.rv .tl-fill { transform: scaleX(var(--p, 0)); }

/* ---------- pricing ---------- */
.pricing-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-bottom: 56px; }
.pricing-top .section-head { margin-bottom: 0; }
.zero { display: grid; justify-items: end; text-align: right; gap: 6px; }
.zero-n { font: 400 clamp(84px, 11vw, 150px)/.85 var(--serif); color: var(--amber); letter-spacing: -.02em; }
.zero-l { font-size: 15px; color: var(--muted); max-width: 200px; text-wrap: balance; }
.tier { position: relative; transition: transform .35s ease, box-shadow .35s ease; }
.tier:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(27,29,33,.1); }
.tier-tag { position: absolute; top: -13px; left: 28px; background: var(--amber); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.tier .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.tier .price small { margin-left: 0; white-space: nowrap; }

.compare { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; }
.compare caption { text-align: left; padding: 22px 24px 6px; font: 400 26px/1.1 var(--serif); color: var(--cream); }
.compare th, .compare td { padding: 13px 24px; border-top: 1px solid var(--line); text-align: left; }
.compare thead th { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-top: 0; padding-top: 16px; }
.compare tbody th { font-weight: 500; color: var(--cream-2); }
.compare td { width: 150px; white-space: nowrap; }
.compare tbody tr { transition: background .25s; }
.compare tbody tr:hover { background: rgba(162,86,10,.04); }
.compare small { font-size: 13px; color: var(--muted); margin-left: 8px; }
.yes, .no { display: inline-block; vertical-align: middle; width: 22px; height: 22px; border-radius: 50%; position: relative; }
.yes { background: rgba(29,127,71,.12); }
.yes::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.no { border: 1.5px dashed #b9b1a4; }
.rv .compare .yes { transform: scale(0); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.rv .compare.in .yes { transform: scale(1); }
.rv .compare.in tr:nth-child(n) .yes { transition-delay: calc(var(--r, 0) * 45ms + .2s); }

.addons { max-width: none; margin-top: 56px; }
.addons h3 { font-size: 26px; margin-bottom: 18px; }
.addon-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.addons .addon-grid li { display: grid; gap: 6px; justify-content: stretch; align-content: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(255,255,255,.55); transition: border-color .3s, transform .3s; }
.addons .addon-grid li span:last-child { white-space: normal; font-size: 14.5px; }
.ad-p { font: 400 28px/1 var(--serif); color: var(--amber); }
.addon-grid b { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys:nth-child(n) { grid-column: auto; }
  .sys:nth-child(1), .sys:nth-child(8) { grid-column: span 2; }
  .addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .own { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .swap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .swap-mid { height: 64px; }
  .swap-arrow { width: 2px; height: 40px; }
  .swap-arrow::before { transform: translateY(-100%); animation-name: swapflowv; }
  .swap-mid::after { left: 50%; top: calc(50% + 16px); transform: translateX(-50%) rotate(135deg); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-left: 40px; }
  .tl li { padding-top: 0; }
  .tl-dot { left: -40px; top: 2px; }
  .tl-line { top: 0; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; }
  .tl-fill { transform: scaleY(var(--p, 1)); transform-origin: top; }
  .rv .tl-fill { transform: scaleY(var(--p, 0)); }
  .pricing-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .zero { justify-items: start; text-align: left; grid-auto-flow: column; align-items: end; justify-content: start; gap: 14px; }
  .zero-n { font-size: 84px; }
}
@keyframes swapflowv { 60%, 100% { transform: translateY(100%); } }
@media (max-width: 560px) {
  .systems, .addon-grid { grid-template-columns: minmax(0, 1fr); }
  .sys:nth-child(n) { grid-column: auto; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare td { width: auto; }
  .compare small { display: none; }
  .compare table { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .swap-arrow::before { animation: none; }
  .rv [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rv .sys-i * { stroke-dashoffset: 0; transition: none; }
  .rv .tl-fill { transform: none; }
  .rv .compare .yes { transform: none; transition: none; }
  .tier { transition: none; }
}

/* tiers: flex column so the button sits at the bottom without stretching rows */
.tiers .tier { display: flex; flex-direction: column; gap: 20px; }
.tiers .tier > * { margin-top: 0; margin-bottom: 0; }
.tiers .tier .btn { margin-top: auto; }

/* ---------- multi-property calculator ---------- */
.multi { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: clamp(26px, 3.4vw, 44px); }
.multi h3 { font-size: 30px; margin: 0 0 12px; }
.multi p { margin: 0; color: var(--cream-2); max-width: 54ch; }
.multi .multi-fine { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.multi-calc { display: none; gap: 18px; background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 24px; }
.mc-on .multi-calc { display: grid; }
.mc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mc-l { font-weight: 600; font-size: 15px; }
.mc-step { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; }
.mc-step button { width: 44px; height: 44px; border: 0; background: none; font: 400 22px/1 var(--sans); color: var(--ink); cursor: pointer; border-radius: 50%; }
.mc-step button:hover { color: var(--amber); }
.mc-step button:disabled { opacity: .35; cursor: default; }
.mc-step output { min-width: 32px; text-align: center; font: 400 24px/1 var(--serif); font-variant-numeric: tabular-nums; }
.mc-seg { display: inline-flex; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; padding: 3px; }
.mc-seg label { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 14.5px; cursor: pointer; }
.mc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mc-seg label:has(input:checked) { background: var(--ink); color: var(--cream); }
.mc-seg label:has(input:focus-visible), .mc-step button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.mc-total { border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mc-total output { font: 400 44px/1 var(--serif); font-variant-numeric: tabular-nums; }
.mc-total small { color: color-mix(in srgb, currentColor 78%, transparent); font-size: 14px; }
@media (max-width: 1000px) { .multi { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
@media (max-width: 640px) {
  .scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .scope-list li { border-radius: 14px; padding: 9px 12px; font-size: 14px; text-align: center; display: grid; place-items: center; }
}
