/* Final consistency pass (from the stress test).
   One type floor (≥11px), one overline style, 44px tap targets on touch,
   anchored headings that clear the sticky nav, and no horizontal scroll at 320px.
   Revert: remove the <link> to this file in index.html. */

/* ---------- Anchors clear the sticky header ---------- */
html{scroll-padding-top:0}
main section[id]{scroll-margin-top:max(0px,calc(92px - var(--a-section)))}

/* ---------- One overline style for small labels ---------- */
body .founding-limit,body .contribute-top>span:not(.funding-icon),body .builder-info small,body .runtime-name-list span{
  font-family:var(--a-font)!important;font-size:11px!important;font-weight:600!important;letter-spacing:.06em!important;text-transform:uppercase;color:var(--a-tertiary)!important}

/* ---------- Type floor: nothing below 11px; chips 12px ---------- */
body .benefit-labels span,body .isolation-art span,body .branch-preview span,body .branch-preview b{font-size:12px!important}
body .terminal-top,body .terminal-top span,body .terminal-comment{font-size:12px!important}
body .flow-stage small,body .diagram-node small,body .gate-detail{font-size:12px!important}
body .distribution-note p{font-size:14px!important}

/* ---------- Beta header: one clean offer, no duplicated reassurance ---------- */
body .beta-reassurance{display:none!important}
body .founding-offer{display:flex!important;align-items:center;gap:18px;padding:16px 22px!important;border-radius:20px!important;background:#cefa910d!important;box-shadow:inset 0 0 0 1px #cefa9126!important}
body .founding-limit{display:flex;flex-direction:column;align-items:center;line-height:1.2!important;color:#b9d99a!important}
body .founding-limit strong{font-size:34px;font-weight:700;letter-spacing:-.03em;color:var(--a-accent);line-height:1}
body .founding-offer>div{display:flex;flex-direction:column;gap:2px;text-align:left}
body .founding-offer>div strong{font-size:17px;letter-spacing:-.02em;color:var(--a-text)}
body .founding-offer>div span{font-size:14px;color:var(--a-secondary)}
body .founding-fine{font-size:12px!important;margin-top:12px!important}

/* ---------- Ticket: stack icon above the title so it never breaks awkwardly ---------- */
.invite-role{flex-direction:column;align-items:flex-start;gap:14px}
.invite-icon{width:48px;height:48px;border-radius:14px}
.invite-icon .icon{width:22px;height:22px}
body #role-summary{text-wrap:balance}

/* ---------- Support cards: real buttons, consistent with the rest ---------- */
body .funding-card-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:24px}
body .contribute-action{display:inline-flex!important;align-items:center;gap:8px;min-height:44px;padding:0 18px!important;border-radius:999px!important;
  background:#ffffff0d!important;box-shadow:inset 0 0 0 1px #ffffff1a;color:var(--a-text)!important;font-size:15px!important;font-weight:600;text-decoration:none!important}
body .contribute-action:hover{background:#ffffff14!important;text-decoration:none!important}
body .contribute-action span{display:inline-grid}
body .contribute-action .icon{width:14px;height:14px}
body #sponsor-open{background:var(--a-accent)!important;color:#11170a!important;box-shadow:0 8px 24px -10px #cefa9199}
body #sponsor-open:hover{background:#d9fca8!important}
body .contribute-action[aria-disabled="true"]{opacity:.5;pointer-events:none}
body .funding-status{font-size:13px!important;color:var(--a-tertiary)!important;font-family:var(--a-font)!important;letter-spacing:-.005em!important;text-transform:none!important}
body .contribute-footnote{font-size:14px!important;margin-top:28px!important;gap:8px}

/* ---------- Deploy section details ---------- */
body #replay{min-height:36px;padding:0 14px!important;font-size:13px!important}
body .copy-button{min-width:36px;min-height:36px;border-radius:10px}

/* ---------- Footer ---------- */
body .footer{font-size:13px!important}
body .footer .brand{font-size:20px!important;gap:10px}
body .footer .brand>svg{width:24px;height:24px}
body .footer-tagline,body .footer-links span,body .footer-links>a{font-size:13px!important;color:var(--a-tertiary)}
body .footer-links{gap:24px!important;align-items:center}
body .footer-links>a:hover{color:var(--a-text)}
body .builder-info strong{font-size:14px}
body .motion-control{font-size:13px!important;min-height:36px;padding:0 14px}

/* ---------- Touch: 44px minimum hit areas ---------- */
@media (pointer:coarse),(max-width:768px){
  body .footer-links>a,body .signup-data-note a,body .builder-link{display:inline-flex;align-items:center;min-height:44px}
  body .footer .brand{min-height:44px}
  body #replay{min-height:44px}
  body .copy-button{min-width:44px;min-height:44px}
}

/* ---------- Small phones (320–360px): no horizontal scroll ---------- */
body .playground-grid>*,body .playground-copy,body .terminal-card{min-width:0}
@media (max-width:360px){
  body .wrap,body .header .nav{width:calc(100% - 32px)!important}
  body .hero h1{font-size:38px!important;letter-spacing:-.04em!important}
  body main h2{font-size:34px!important}
  body .use-tabs{display:flex;flex-direction:column}
  body .use-tabs [role="tab"]{width:100%}
  body .terminal-card code,body .terminal-body{overflow-wrap:anywhere}
  body .role-card strong{font-size:19px!important}
  body .founding-offer{flex-direction:column;text-align:center}
  body .founding-offer>div{text-align:center}
}
@media (max-width:600px){
  body .footer{flex-direction:column;align-items:flex-start;gap:16px}
  body .footer-links{flex-wrap:wrap;gap:8px 20px!important}
}
/* Labels never wrap inside pills */
body .nav-cta,.hero-pill-tag,body .button{white-space:nowrap}
@media (max-width:360px){
  body .nav-cta .nav-arrow{display:none!important}
  body .nav-cta{padding:6px 14px!important}
  .hero-pill{padding-right:10px}
}
.hero-pill{max-width:100%;min-width:0}
.hero-pill-tag,.hero-pill .icon{flex:none}
@media (max-width:480px){
  .hero-pill-text{flex:1;min-width:0;max-width:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Beta-fit note + FAQ (pre-signup objections) */
.founding-fine.beta-fit{margin-top:6px}
.contribute-card[hidden]{display:none!important}
.contribute-grid:has(>.contribute-card[hidden]){grid-template-columns:minmax(0,560px);justify-content:center}

/* FAQ — scoped layout, independent of global .section-heading rules */
body .qa-section{padding-block:var(--a-section,clamp(56px,7vw,96px))}
body .qa-layout{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(40px,6vw,96px);align-items:start}
body .qa-intro{position:sticky;top:120px;text-align:left}
body .qa-eyebrow{margin:0 0 16px;color:var(--a-accent,#cefa91);font-size:15px;font-weight:600;letter-spacing:-.01em}
body .qa-intro h2{margin:0;font-size:clamp(40px,5vw,64px);line-height:1.02;letter-spacing:-.035em;font-weight:650;color:var(--a-text,#f5f5f7);text-align:left}
body .qa-lede{margin:20px 0 28px;max-width:340px;color:var(--a-secondary,#a1a1a6);font-size:17px;line-height:1.5}
body .qa-link{display:inline-flex;align-items:center;gap:8px;color:var(--a-accent,#cefa91);font-size:15px;font-weight:500;text-decoration:none}
body .qa-link span{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
body .qa-link:hover span{transform:translateX(4px)}
body .qa-list{margin:0;max-width:none;border:1px solid #ffffff14;border-radius:var(--a-radius,22px);background:var(--a-tile,#111213);overflow:hidden}
body .qa-item{border:0;border-top:1px solid #ffffff10;padding:0;margin:0;transition:background .3s ease}
body .qa-item:first-child{border-top:0}
body .qa-item[open]{background:#ffffff05}
body .qa-item summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:0;padding:22px 24px 22px 28px;cursor:pointer;list-style:none;color:var(--a-text,#f5f5f7);font-size:17px;font-weight:500;line-height:1.35;letter-spacing:-.015em;transition:color .2s ease}
body .qa-item summary::-webkit-details-marker{display:none}
body .qa-item summary::after{content:none}
body .qa-item summary:hover{color:#fff}
body .qa-item summary:focus-visible{outline:2px solid var(--a-accent,#cefa91);outline-offset:-2px;border-radius:var(--a-radius,22px)}
body .qa-icon{position:relative;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#ffffff0d;transition:background .3s ease,transform .4s cubic-bezier(.2,.8,.2,1)}
body .qa-icon::before,body .qa-icon::after{content:"";position:absolute;top:50%;left:50%;width:11px;height:1.5px;border-radius:1px;background:var(--a-text,#f5f5f7);transform:translate(-50%,-50%)}
body .qa-icon::after{transform:translate(-50%,-50%) rotate(90deg)}
body .qa-item summary:hover .qa-icon{background:#ffffff1a}
body .qa-item[open] .qa-icon{transform:rotate(45deg);background:var(--a-accent,#cefa91)}
body .qa-item[open] .qa-icon::before,body .qa-item[open] .qa-icon::after{background:#17200e}
body .qa-answer p{margin:0;padding:0 72px 24px 28px;color:var(--a-secondary,#a1a1a6);font-size:15px;line-height:1.65}
/* Smooth open/close where supported (Chromium); instant elsewhere */
@supports (interpolate-size:allow-keywords){
  body .qa-list{interpolate-size:allow-keywords}
  body .qa-item::details-content{height:0;overflow:hidden;opacity:0;transition:height .4s cubic-bezier(.2,.8,.2,1),opacity .3s ease,content-visibility .4s allow-discrete}
  body .qa-item[open]::details-content{height:auto;opacity:1}
}
@media(max-width:860px){
  body .qa-layout{grid-template-columns:1fr;gap:32px}
  body .qa-intro{position:static;text-align:center}
  body .qa-intro h2{text-align:center}
  body .qa-lede{margin-inline:auto}
  body .qa-item summary{padding:18px 18px 18px 20px;font-size:16px}
  body .qa-answer p{padding:0 20px 20px}
}
@media(prefers-reduced-motion:reduce){
  body .qa-icon,body .qa-link span,body .qa-item{transition:none}
  body .qa-item::details-content{transition:none}
}

/* Sponsor dialog — larger type, calmer header, clearer fields */
body .sponsor-dialog{width:min(520px,calc(100% - 32px));padding:clamp(28px,4vw,44px)!important;background:#1c1c1e!important;box-shadow:0 40px 120px #000c,inset 0 1px 0 #ffffff14}
body .sponsor-dialog .dialog-close{top:20px;right:20px;width:36px;height:36px;border:0;background:#ffffff12;color:var(--a-text,#f5f5f7);font-size:22px;transition:background .2s ease,transform .1s ease-out}
body .sponsor-dialog .dialog-close:hover{background:#ffffff22}
body .sponsor-dialog .dialog-close:active{transform:scale(.94)}
body .sponsor-dialog .sponsor-kicker{margin:0 0 10px;color:var(--a-accent,#cefa91);font-size:14px;font-weight:600;letter-spacing:-.005em}
body .sponsor-dialog h2{margin:0 0 12px;padding-right:44px;font-size:clamp(30px,4vw,36px);line-height:1.08;letter-spacing:-.03em;font-weight:650}
body .sponsor-dialog>p#sponsor-description{margin:0 0 28px;font-size:17px;line-height:1.5;color:var(--a-secondary,#a1a1a6)}
body .sponsor-dialog .sponsor-form{gap:0}
body .sponsor-dialog .sponsor-form label{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 8px;font-size:15px;font-weight:500;color:var(--a-text,#f5f5f7)}
body .sponsor-dialog .sponsor-form label .optional{font-size:13px;font-weight:400;color:var(--a-tertiary,#6e6e73)}
body .sponsor-dialog .sponsor-form input,body .sponsor-dialog .sponsor-form textarea{margin:0 0 20px;padding:14px 16px;border:1px solid #ffffff1f;border-radius:14px!important;background:#111113;color:var(--a-text,#f5f5f7);font-size:16px;line-height:1.4;transition:border-color .2s ease,background .2s ease}
body .sponsor-dialog .sponsor-form input::placeholder,body .sponsor-dialog .sponsor-form textarea::placeholder{color:#6e6e73}
body .sponsor-dialog .sponsor-form input:hover,body .sponsor-dialog .sponsor-form textarea:hover{border-color:#ffffff33}
body .sponsor-dialog .sponsor-form input:focus-visible,body .sponsor-dialog .sponsor-form textarea:focus-visible{outline:0;border-color:var(--a-accent,#cefa91);background:#141614;box-shadow:0 0 0 4px #cefa911f}
body .sponsor-dialog .sponsor-form textarea{min-height:110px}
body .sponsor-dialog .sponsor-form .button{min-height:52px;margin-top:4px;font-size:16px;font-weight:600}
body .sponsor-dialog .sponsor-form .button:active{transform:scale(.98)}
body .sponsor-dialog #sponsor-result{margin:12px 0 0;font-size:15px}
body .sponsor-dialog .sponsor-note{margin:16px 0 0!important;font-size:13px!important;color:var(--a-tertiary,#8a8a90)!important}
@media(max-width:580px){body .sponsor-dialog>p#sponsor-description{font-size:16px;margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){body .sponsor-dialog .dialog-close,body .sponsor-dialog .sponsor-form input,body .sponsor-dialog .sponsor-form textarea{transition:none}}

/* Sponsor section: sit close under the beta section */
body main .start-section:has(+ .contribute-section){padding-bottom:clamp(28px,3.5vw,44px)!important}
body main .contribute-section{padding-top:clamp(40px,5vw,64px)!important}

/* Navbar "Sponsor us" — quiet secondary pill beside the primary CTA */
body .nav-sponsor{display:inline-flex;align-items:center;gap:8px;margin:0;min-height:42px;padding:0 16px 0 14px;border:1px solid #ffffff1f;border-radius:999px;background:#ffffff08;color:var(--a-text,#f5f5f7);font:inherit;font-size:15px;font-weight:500;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background .25s ease,border-color .25s ease,color .25s ease,transform .1s ease-out}
body .nav-actions{display:flex;align-items:center;justify-content:flex-end;justify-self:end;gap:10px;min-width:0}
body .nav-actions .nav-cta{margin:0!important}
body .nav-sponsor-heart{width:16px;height:16px;fill:none;stroke:var(--a-accent,#cefa91);stroke-width:1.8;stroke-linejoin:round;transition:fill .25s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
body .nav-sponsor:hover{background:#ffffff12;border-color:#cefa9159}
body .nav-sponsor:hover .nav-sponsor-heart{fill:var(--a-accent,#cefa91);transform:scale(1.12)}
body .nav-sponsor:active{transform:scale(.96)}
body .nav-sponsor:focus-visible{outline:2px solid var(--a-accent,#cefa91);outline-offset:3px}
/* In-menu version, shown when the pill is hidden */
body .nav-links-sponsor{display:none;align-items:center;gap:6px;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
body .nav-links-sponsor span{color:var(--a-accent,#cefa91)}
@media(max-width:900px){
  body .nav-sponsor{display:none}
  body .nav-links-sponsor{display:inline-flex}
}
@media(prefers-reduced-motion:reduce){body .nav-sponsor,body .nav-sponsor-heart{transition:none}body .nav-sponsor:hover .nav-sponsor-heart{transform:none}}

/* Founding offer — pop in once on reveal, sweep a highlight, then rest. Urgency without nagging. */
body .founding-offer{position:relative;overflow:visible;transition:box-shadow .3s ease,transform .1s ease-out}
body .founding-offer::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,transparent 30%,#cefa9126 50%,transparent 70%) no-repeat;background-size:250% 100%;background-position:150% 0;opacity:0}
body .founding-offer:hover{box-shadow:inset 0 0 0 1px #cefa9159,0 12px 40px -16px #cefa9166!important}
body .founding-badge{position:absolute;top:0;left:50%;display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 9px;border-radius:999px;background:var(--a-accent,#cefa91);color:#11170a;font-size:12px;font-weight:650;letter-spacing:.01em;white-space:nowrap;transform:translate(-50%,-50%);box-shadow:0 6px 18px -6px #cefa9199}
body .founding-badge i{position:relative;width:6px;height:6px;border-radius:50%;background:#2c5a00}
body .founding-badge i::after{content:"";position:absolute;inset:0;border-radius:50%;background:#2c5a00;animation:offer-ping 2s cubic-bezier(0,0,.2,1) infinite}
/* Armed: hidden until it scrolls into view (only when JS runs, so no-JS still shows it) */
body .founding-offer.offer-armed{opacity:0;transform:translateY(14px) scale(.94)}
body .founding-offer.offer-armed .founding-badge{opacity:0;transform:translate(-50%,-50%) scale(.6)}
body .founding-offer.offer-revealed{animation:offer-pop .7s cubic-bezier(.34,1.45,.5,1) forwards}
body .founding-offer.offer-revealed::after{animation:offer-sweep 1.4s .55s cubic-bezier(.4,0,.2,1) 2}
body .founding-offer.offer-revealed .founding-badge{animation:offer-badge .5s .45s cubic-bezier(.34,1.6,.5,1) forwards}
body .founding-offer.offer-revealed .founding-limit strong{display:inline-block;animation:offer-count .6s .3s cubic-bezier(.34,1.5,.5,1) both}
@keyframes offer-pop{0%{opacity:0;transform:translateY(14px) scale(.94)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes offer-badge{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes offer-count{0%{transform:scale(.8)}100%{transform:scale(1)}}
@keyframes offer-sweep{0%{opacity:1;background-position:150% 0}100%{opacity:1;background-position:-50% 0}}
@keyframes offer-ping{0%{transform:scale(1);opacity:.7}80%,100%{transform:scale(2.6);opacity:0}}
/* Reduced or paused motion: show everything at rest, keep the badge, drop movement */
@media(prefers-reduced-motion:reduce){
  body .founding-offer.offer-armed,body .founding-offer.offer-armed .founding-badge{opacity:1;transform:none}
  body .founding-offer.offer-armed .founding-badge{transform:translate(-50%,-50%)}
  body .founding-offer,body .founding-offer *,body .founding-offer::after,body .founding-badge i::after{animation:none!important}
}
body.motion-paused .founding-offer.offer-armed{opacity:1;transform:none;animation:none}
body.motion-paused .founding-offer.offer-armed .founding-badge{opacity:1;transform:translate(-50%,-50%);animation:none}
body.motion-paused .founding-offer::after,body.motion-paused .founding-badge i::after,body.motion-paused .founding-limit strong{animation:none!important}

/* "First 500 signups" — pop + shake after reveal, repeat twice more, then rest. Shakes again on hover. */
body .founding-offer .founding-limit{display:inline-flex;flex-direction:column;align-items:center;transform-origin:50% 60%}
body .founding-offer.offer-revealed .founding-limit{animation:offer-limit-shake 4s 1.1s cubic-bezier(.36,.07,.19,.97) 3 both}
body .founding-offer.offer-revealed:hover .founding-limit{animation:offer-limit-nudge .6s cubic-bezier(.36,.07,.19,.97) both}
@keyframes offer-limit-shake{
  0%{transform:none}
  3%{transform:scale(1.12)}
  5%{transform:scale(1.12) rotate(-6deg)}
  7%{transform:scale(1.12) rotate(6deg)}
  9%{transform:scale(1.12) rotate(-5deg)}
  11%{transform:scale(1.12) rotate(4deg)}
  13%{transform:scale(1.08) rotate(-2deg)}
  16%,100%{transform:none}
}
@keyframes offer-limit-nudge{
  0%,100%{transform:none}
  20%{transform:scale(1.08) rotate(-5deg)}
  40%{transform:scale(1.08) rotate(5deg)}
  60%{transform:scale(1.06) rotate(-3deg)}
  80%{transform:scale(1.03) rotate(2deg)}
}
@media(prefers-reduced-motion:reduce){body .founding-offer .founding-limit{animation:none!important}}
body.motion-paused .founding-offer .founding-limit{animation:none!important}

/* ===== Audit fixes (2026-10-18) ===== */
/* Section rhythm: slightly tighter so stacked section padding doesn't read as dead space */
:root{--a-section:clamp(48px,6vw,80px)}
/* Remove divider under the network section; the tile edge + next eyebrow already mark the break */
body .distribution-section{border-bottom:0!important}
/* Runtimes: top-align so names share a baseline whether or not they carry a sub-label */
body .runtime-name-list{align-items:flex-start!important}
/* Network flow: equal-height stages, arrows centred between them */
body .distribution-flow{align-items:stretch!important}
body .distribution-flow .flow-arrow{align-self:center}
body .distribution-flow .source-stage,body .distribution-flow .gate-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
/* Hero note: keep the three facts on one line when there is room */
body .hero-note{max-width:none!important;width:100%}
/* Beta fine print: readable size, balanced wrap, no orphaned last word */
body .lobby-heading>.founding-fine{font-size:13px!important;line-height:1.5!important;max-width:620px!important;margin-inline:auto!important;text-wrap:balance;color:var(--a-tertiary,#8a8a90)!important}
body .lobby-heading>.founding-fine.beta-fit{margin-top:6px!important}
/* Invite summary copy was double-spaced */
body .selection-summary #role-detail{line-height:1.45!important}
/* Nav, tablet (581–900px): icon-only sponsor button beside the CTA, no item inside the links pill */
@media(max-width:900px) and (min-width:581px){
  body .nav.wrap{grid-template-columns:auto 1fr auto!important}
  body .nav-links{justify-self:center}
  body .nav-badge{display:none!important}
  body .nav-sponsor{display:inline-flex!important;width:42px;padding:0;justify-content:center}
  body .nav-sponsor-label{display:none}
  body .nav-links-sponsor{display:none!important}
  body .nav-actions{gap:8px}
}
/* Mobile menu (≤580px): sponsor lives in the menu only */
@media(max-width:580px){body .nav-links-sponsor{display:inline-flex!important}}
