/* The home page (16 Nov 2026, look 4, the owner's pick). The hero is a live quote ticket; under it, how one trade settles
   (a drawing, the steps and the settlement transaction, all on one clock), what size does to a pool, the real desk's
   open offers, and custody in public with the real house wallet. Behind it all: a fine grid, two soft glows and transfer
   routes that light up when a trade settles. Every class here starts with ph- so nothing leaks into other pages. */

body.is-home main { padding: 0 0 24px; }
.ph .tick { animation: ph-tick 0.9s ease-out; border-radius: 4px; }
@keyframes ph-tick { from { background: rgba(56, 182, 255, 0.22); } to { background: transparent; } }
.ph { position: relative; }
.ph-wrap { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- the background ---------- */
.ph-bg { position: absolute; inset: -110px 0 auto 0; height: 1600px; z-index: 0; pointer-events: none; overflow: hidden; }
.ph-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(59, 31, 224, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 31, 224, 0.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask: radial-gradient(ellipse 70% 55% at 60% 22%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 70% 55% at 60% 22%, #000 20%, transparent 75%); }
.ph-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.ph-glow.a { width: 760px; height: 560px; right: -120px; top: 60px; background: radial-gradient(closest-side, rgba(56, 182, 255, 0.2), transparent); }
.ph-glow.b { width: 620px; height: 520px; left: -160px; top: 420px; background: radial-gradient(closest-side, rgba(59, 31, 224, 0.12), transparent); }
.ph-routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-routes path { fill: none; stroke: rgba(59, 31, 224, 0.1); stroke-width: 1.2; }
.ph-routes path.pulse { stroke: url(#ph-rgrad); stroke-width: 2; stroke-dasharray: 160 1600; stroke-dashoffset: 1760; opacity: 0; }
.ph-bg.fire .ph-routes path.pulse { animation: ph-fire 1.7s cubic-bezier(0.3, 0.6, 0.2, 1); }
@keyframes ph-fire { 0% { stroke-dashoffset: 1760; opacity: 0; } 10% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ph-routes circle { fill: #fff; stroke: rgba(59, 31, 224, 0.25); stroke-width: 1.2; }
.ph-routes circle.packet { fill: #38B6FF; stroke: none; opacity: 0.55; }

/* ---------- the hero ---------- */
.ph-hero { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; padding: 64px 0 56px; }
.ph-hero h1 { font-size: clamp(44px, 5.4vw, 74px); line-height: 0.98; font-weight: 650; letter-spacing: -0.052em; }
.ph-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-lede { margin-top: 22px; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); max-width: 33em; }
.ph-ctas { display: flex; gap: 10px; margin-top: 30px; }
.ph-facts { margin-top: 36px; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 30px; font-size: 14px; color: var(--muted); }
.ph-facts b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.ph-live { display: inline-flex; align-items: center; gap: 7px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.ph-live::before, .ph-chg::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16B37A; animation: ping 2s infinite; flex: none; }

/* the ticket */
.ph-stage { perspective: 1400px; }
.ph-ticket { position: relative; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; transform-style: preserve-3d; transition: transform 0.25s ease-out; }
.ph-ticket::before { content: ''; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; background: linear-gradient(140deg, rgba(59, 31, 224, 0.45), rgba(56, 182, 255, 0.15) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ph-thead { display: flex; align-items: center; gap: 12px; }
.ph-tok { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--surface-3); }
.ph-thead h2 { font-size: 19px; letter-spacing: -0.02em; font-weight: 650; }
.ph-thead small { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 3px; }
.ph-chg { display: inline-flex; align-items: center; gap: 6px; }
.ph-ring { margin-left: auto; position: relative; width: 52px; height: 52px; flex: none; }
.ph-ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 4; }
.ph-ring .bgc { stroke: var(--surface-3); }
.ph-ring .fg { stroke: url(#ph-rg); stroke-linecap: round; stroke-dasharray: 138.2; }
.ph-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ph-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.ph-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-row small { color: var(--muted); margin-left: 8px; font-size: 13px; }
.ph-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.ph-total > span { font-size: 15px; font-weight: 600; }
.ph-total b { font-size: 34px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.ph-total b small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.ph-save { font-size: 13.5px; color: var(--good); font-weight: 600; }
.ph-ticket .btn { width: 100%; margin-top: 14px; }
.ph-life { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ph-life ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-life li { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.ph-life li i { height: 4px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.ph-life li i::after { content: ''; position: absolute; inset: 0; width: 0; background: var(--grad); transition: width 0.6s ease; }
.ph-life li.done i::after, .ph-life li.now i::after { width: 100%; }
.ph-life li.now { color: var(--ink); font-weight: 600; }
.ph-life p { font-size: 12.5px; color: var(--muted); margin-top: 8px; min-height: 18px; }

/* ---------- sections ---------- */
.ph-sec { padding: 56px 0; }
.ph-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 22px; }
.ph-head h2 { font-size: 40px; line-height: 1.04; letter-spacing: -0.045em; font-weight: 650; }
.ph-head p { max-width: 30em; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.ph-head .ph-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.ph-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }

/* how a trade settles: the drawing, the steps, the transaction */
.ph-settle { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: center; }
.ph-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.ph-steps div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); transition: border-color 0.3s, background 0.3s; }
.ph-steps b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.ph-steps span { font-size: 13.5px; color: var(--muted); }
.ph-steps div.on { border-color: #CFC8FF; background: #F6F4FF; }
.ph-receipt { padding: 18px; }
.ph-receipt h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ph-state { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); transition: background 0.3s, color 0.3s; white-space: nowrap; }
.ph-state.go { background: #EEEAFF; color: #4A35E0; }
.ph-state.ok { background: var(--good-wash); color: var(--good); }
.ph-sig { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); font-size: 12.5px; color: var(--ink-2); }
.ph-sig .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.02em; }
.ph-sig small { color: var(--muted); font-size: 12px; flex: none; }
.ph-mv { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; opacity: 0.35; transform: translateY(4px); transition: opacity 0.4s, transform 0.4s; }
.ph-mv:first-of-type { margin-top: 10px; }
.ph-receipt.filled .ph-mv { opacity: 1; transform: none; }
.ph-receipt.filled .ph-mv:nth-of-type(2) { transition-delay: 0.12s; }
.ph-receipt.filled .ph-mv:nth-of-type(3) { transition-delay: 0.24s; }
.ph-mv i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; }
.ph-mv b { font-weight: 650; font-variant-numeric: tabular-nums; }
.ph-mv small { display: block; color: var(--muted); font-size: 12.5px; }
.ph-rfoot { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ph-rfoot div { display: flex; justify-content: space-between; gap: 10px; }
.ph-rfoot div span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* the drawing (settle.mjs) */
.rail { width: 100%; height: auto; display: block; overflow: visible; }
.rail .node rect { fill: #fff; stroke: var(--line-2); stroke-width: 1.2; }
.rail .node.mid rect { fill: #F6F4FF; stroke: #D9D2FF; }
.rail .nl { font: 600 17px var(--font); text-anchor: middle; fill: var(--ink); }
.rail .ns { font: 400 13px var(--font); text-anchor: middle; fill: var(--muted); }
.rail .leg { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.rail .txbox { fill: rgba(59, 31, 224, 0.025); stroke: #CFC8FF; stroke-width: 1.4; stroke-dasharray: 5 7; transition: stroke 0.4s, fill 0.4s; }
.rail .txl { font: 600 13px var(--font); text-anchor: middle; fill: #5B47E8; }
.rail.handoff .txbox { stroke: url(#ph-gind); stroke-dasharray: none; stroke-width: 2.4; fill: rgba(59, 31, 224, 0.05); }
.rail.handoff .leg.gold { stroke: #F5B82E; }
.rail.handoff .leg.sol { stroke: #12B5A6; }
.rail.handoff .leg.fee { stroke: #3B1FE0; }
.rail .mv circle { stroke-width: 2; }
.rail .mv.gold circle { fill: #FFF3D1; stroke: #F5B82E; }
.rail .mv.sol circle { fill: #12B5A6; stroke: #0E9A8D; }
.rail .mv.fee circle { fill: #3B1FE0; stroke: #2A14B8; }
.rail .mv text { font: 650 14px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.rail .mv .glyph { fill: #fff; stroke: none; text-anchor: middle; font-size: 15px; }
.rail.compact .nl { font-size: 19px; }
.rail.compact .ns { font-size: 14px; }
.rail.compact .mv text { font-size: 16px; }
.rail.compact .txl { font-size: 14px; }

/* Docs: the three steps in full, one column each under the drawing */
.ph-steptext { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ph-steptext .panel { display: grid; gap: 8px; align-content: start; padding: 16px 18px; }
.ph-steptext h3 { font-size: 16px; }
@media (max-width: 900px) { .ph-steptext { grid-template-columns: minmax(0, 1fr); } }

/* size moves a pool: the chart and the two numbers */
.ph-chartwrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.ph-chart { padding: 16px 16px 8px; }
.ph-chart svg { width: 100%; height: auto; display: block; }
.ph-cmp { display: grid; gap: 16px; }
.ph-cmp > div { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.ph-cmp > div.me { border-color: #CFC8FF; background: #F6F4FF; }
.ph-cmp small { color: var(--muted); font-size: 13.5px; }
.ph-cmp b { display: block; font-size: 30px; letter-spacing: -0.035em; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ph-cmp b em { font-style: normal; font-size: 15px; color: var(--muted); margin-left: 6px; letter-spacing: 0; font-weight: 500; }
.ph-cmp p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* the real desk: open offers */
.ph-offers .ot { border-radius: 18px; overflow: hidden; }
.ph-desk-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.ph-desk-line b { color: var(--ink); font-weight: 600; }

/* custody, in public */
.ph-custody { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ph-cc { padding: 20px; display: grid; gap: 10px; align-content: start; box-shadow: none; }
.ph-cc h3 { font-size: 17px; letter-spacing: -0.02em; font-weight: 650; }
.ph-cc p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.ph-addr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font: 500 12.5px var(--font-mono); color: var(--ink-2); min-width: 0; }
.ph-addr .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-check { display: grid; gap: 10px; }
.ph-check div { display: grid; grid-template-columns: 1fr auto; font-size: 13.5px; color: var(--ink-2); align-items: center; gap: 6px 8px; }
.ph-check u { text-decoration: none; height: 4px; border-radius: 4px; background: var(--surface-3); grid-column: 1 / -1; position: relative; overflow: hidden; }
.ph-check u::after { content: ''; position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, #12B5A6, #38B6FF); transform-origin: left; animation: ph-sweep 3.2s ease-in-out infinite; }
.ph-check .wait u::after { background: linear-gradient(90deg, #F5B82E, #FFD978); }
@keyframes ph-sweep { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
.ph-ok { color: var(--good); font-weight: 600; }
.ph-wait { color: var(--warn); font-weight: 600; }
.ph-bad { color: var(--bad); font-weight: 600; }
.ph-nope { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-nope span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.ph-feed { margin-top: 16px; padding: 6px 18px; }
.ph-feed .feed { display: grid; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .ph-hero { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
  .ph-facts { grid-template-columns: repeat(2, auto); gap: 16px 30px; }
}
@media (max-width: 900px) {
  .ph-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 34px 0 24px; }
  .ph-settle, .ph-chartwrap, .ph-custody { grid-template-columns: minmax(0, 1fr); }
  .ph-head { flex-direction: column; align-items: start; gap: 10px; }
}
@media (max-width: 720px) {
  /* on a phone the ticket comes straight after the buttons: the app first, the small print after */
  .ph-hero { gap: 0; padding: 24px 0 20px; }
  .ph-hero > div:first-child { display: contents; }
  .ph-hero h1 { order: 1; font-size: 38px; }
  .ph-lede { order: 2; font-size: 16px; margin-top: 14px; }
  .ph-ctas { order: 3; margin-top: 22px; }
  .ph-stage { order: 4; margin-top: 24px; }
  .ph-facts { order: 5; }
  .ph-live { order: 6; }
  .ph-ctas .btn { flex: 1; }
  .ph-facts { grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 24px; }
  .ph-ticket { padding: 18px; }
  .ph-total b { font-size: 28px; }
  .ph-sec { padding: 34px 0; }
  .ph-head h2 { font-size: 30px; }
  .ph-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ph-feed { padding: 4px 12px; }
}
