/* Landing, top half: hero, hub, the cycling app screen. Ported from the approved canvas (docs/landing/canvas/Main.dc.html). */
.ground { margin-top: -80px; padding-top: 80px; }
/* The first screen is the hero alone (owner, 2026-12-03); the hub graphic starts below the fold. 80px = the nav above it. */
.hero { min-height: calc(100svh - 80px); display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; text-align: center; }
.hero .trust { align-self: center; }
.hero h1 { margin: 28px auto 0; max-width: 900px; font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.hero__sub { margin: 24px auto 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--ink-muted); }
.hero__sub strong { color: var(--ink); font-weight: 700; }
@media (max-width: 480px) { .hero__sub { font-size: 17px; } }
.claim { margin: 32px auto 0; max-width: 520px; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: 0 18px 40px var(--shadow-lg); }
.claim label { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.claim input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 17px var(--mono); padding: 0; }
.claim input::placeholder { color: var(--ink-muted); }
.claim .btn { height: 48px; padding: 0 22px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }
.hero__note a { font-weight: 700; text-decoration: underline; }
.hero__quote { margin: 0 0 20px; text-align: center; font-size: 18px; font-weight: 600; color: var(--ink-muted); }
@media (max-width: 480px) { .claim { flex-wrap: wrap; border-radius: 24px; padding: 10px; } .claim label { padding-left: 10px; } .claim .btn { width: 100%; } }

/* Hub: brand categories, the j, the person's steps. One 6s loop shows the channel working. */
.hub { margin: 56px auto 0; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.hub__side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hub__side--l { justify-content: flex-end; }
.hub__col { display: flex; flex-direction: column; gap: 12px; }
.hub__side--l .hub__col { align-items: flex-end; }
.hub__side--r .hub__col { align-items: flex-start; }
.tile { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: 15px; font-weight: 600; }
.tile--step { padding: 8px 14px 8px 8px; }
.tile--pay { background: var(--hl-soft); }
.tile--off { color: var(--ink-muted); }
.tile .dot { width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; }
.tile--off .dot { background: var(--paper-2); color: var(--ink); }
.tile .amt { font-family: var(--mono); font-size: 13px; }
.track { position: relative; overflow: hidden; flex: 0 1 150px; min-width: 40px; height: 4px; border-radius: 999px; background: var(--line); }
.track--hl { height: 10px; border-radius: 6px; background: var(--paper-2); }
.pkt { position: absolute; inset: 0; transform: translateX(-100%); animation: hub-pkt 6s cubic-bezier(.45,0,.2,1) infinite; }
.pkt::after { content: ""; position: absolute; top: 0; right: 0; width: 44px; height: 100%; border-radius: 999px; background: var(--ink); }
.sweep { position: absolute; inset: 0; border-radius: 6px; background: var(--hl-behind); transform-origin: left center; animation: hub-sweep 6s cubic-bezier(.45,0,.2,1) infinite; }
.core { position: relative; isolation: isolate; width: 132px; height: 132px; }
.ring { position: absolute; inset: 0; z-index: 0; border-radius: 40px; background: var(--hl); opacity: 0; animation: hub-ring 6s ease-out infinite; }
.jtile { position: relative; z-index: 1; width: 132px; height: 132px; border-radius: 40px; border: 10px solid var(--hl-soft); background: var(--surface); display: flex; align-items: center; justify-content: center; animation: hub-bump 6s ease-out infinite; }
.jtile img { width: 96px; height: 96px; }
.hub__side--l .tile { animation: hub-src 24s ease infinite; }
.hub__side--l .tile:nth-child(2) { animation-delay: 6s; }
.hub__side--l .tile:nth-child(3) { animation-delay: 12s; }
.hub__side--l .tile:nth-child(4) { animation-delay: 18s; }
.hub__side--r .tile:nth-child(1) { animation: hub-step 6s 2.9s ease infinite; }
.hub__side--r .tile:nth-child(2) { animation: hub-pay 6s 3.8s ease infinite; }
.hub__side--r .tile:nth-child(3) { animation: hub-step 6s 4.7s ease infinite; }
@keyframes hub-pkt { 0%, 6% { transform: translateX(-100%); } 30%, 100% { transform: translateX(100%); } }
@keyframes hub-ring { 0%, 28% { transform: scale(1); opacity: 0; } 31% { transform: scale(1.02); opacity: .85; } 48%, 100% { transform: scale(1.45); opacity: 0; } }
@keyframes hub-bump { 0%, 28% { transform: scale(1); } 33% { transform: scale(1.05); } 42%, 100% { transform: scale(1); } }
@keyframes hub-sweep { 0%, 40% { transform: scaleX(0); opacity: 1; } 60%, 88% { transform: scaleX(1); opacity: 1; } 97% { transform: scaleX(1); opacity: 0; } 98%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes hub-src { 0% { border-color: var(--line); box-shadow: 0 0 0 0 var(--hl-soft); } 2%, 18% { border-color: var(--ink); box-shadow: 0 0 0 4px var(--hl-soft); } 22%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 var(--hl-soft); } }
@keyframes hub-step { 0% { background-color: var(--surface); border-color: var(--line); } 4%, 16% { background-color: var(--hl-soft); border-color: var(--ink); } 22%, 100% { background-color: var(--surface); border-color: var(--line); } }
@keyframes hub-pay { 0% { background-color: var(--hl-soft); border-color: var(--line); } 4%, 16% { background-color: var(--hl); border-color: var(--on-hl); } 22%, 100% { background-color: var(--hl-soft); border-color: var(--line); } }
@media (max-width: 860px) {
  .track { display: none; }
  .hub { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 20px; }
  .hub__side { justify-content: center; }
  .hub__col { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center !important; }
}

/* The app screen: one surface cycling four states, chips floating over its edges */
.screen-sec { padding: 72px 24px 112px; }
.screen-sec h2 { margin-bottom: 56px; }
.phone { position: relative; width: 340px; max-width: 100%; margin: 0 auto; }
.scr { position: relative; height: 640px; border-radius: 44px; background: var(--surface); border: 8px solid var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 90px var(--shadow-lg); overflow: hidden; }
.scr__top { position: absolute; inset: 0 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.scr__top img { height: 24px; width: auto; }
.pill-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.state { position: absolute; top: 60px; left: 0; right: 0; bottom: 0; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 14px; opacity: 0; animation: scr 16s ease infinite; }
.state--1 { opacity: 1; animation-delay: -.5s; }
.state--2 { animation-delay: 3.5s; }
.state--3 { animation-delay: 7.5s; }
.state--4 { animation-delay: 11.5s; }
@keyframes scr { 0% { opacity: 0; transform: translateY(10px); } 4%, 24% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; transform: translateY(-6px); } }
.dots { margin-top: 24px; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); animation: dot 16s ease infinite; }
.dots span:nth-child(1) { width: 24px; background: var(--ink); animation-delay: -.5s; }
.dots span:nth-child(2) { animation-delay: 3.5s; }
.dots span:nth-child(3) { animation-delay: 7.5s; }
.dots span:nth-child(4) { animation-delay: 11.5s; }
@keyframes dot { 0% { width: 8px; background: var(--line); } 4%, 24% { width: 24px; background: var(--ink); } 28%, 100% { width: 8px; background: var(--line); } }
.caption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-muted); }
.fl { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 14px 10px 10px; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--surface); box-shadow: 0 18px 40px var(--shadow-lg); animation: bob 5s ease-in-out infinite alternate; }
.fl--a { top: 120px; left: -150px; }
.fl--b { top: 300px; right: -176px; background: var(--hl); color: var(--on-hl); padding: 12px 16px; animation-delay: -1.6s; }
.fl--c { top: 486px; left: -176px; animation-delay: -3.2s; }
@keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
@media (max-width: 760px) { .fl { display: none; } }

/* Hero experiment (js/exp.js, docs/landing/experiments.md): one .xv span per rival line; html[data-hero] shows one.
 * Without JavaScript the control shows. Add a rule here with each rival id the owner picks. */
.xv { display: none; }
html:not([data-hero]) .xv-control, html[data-hero="control"] .xv-control,
html[data-hero="b1"] .xv-b1, html[data-hero="b2"] .xv-b2, html[data-hero="b3"] .xv-b3, html[data-hero="b6"] .xv-b6 { display: inline; }
