
:root { color-scheme: dark; --cyan:#22c7de; --cyan-hi:#67e8f9; --ink:#eafaff; --muted:#9bb6c0; --void:#02070d; --glass:rgba(4,13,22,.68); }
* { box-sizing:border-box; }
html, body { min-height:100%; }
body { margin:0; min-height:100vh; overflow-x:hidden; background:radial-gradient(circle at 50% 18%,#08212a 0,#041019 30%,var(--void) 70%); color:var(--ink); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; background:linear-gradient(115deg,rgba(34,199,222,.035),transparent 38%,rgba(103,232,249,.018)); }
#continuity-field,#continuity-fallback { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; filter:drop-shadow(0 0 14px rgba(34,199,222,.17)); transition:opacity .45s ease,filter .45s ease; }
#continuity-field { opacity:0; background:linear-gradient(160deg,#03040d 0%,#04061a 52%,#02030a 100%); }
#continuity-fallback { opacity:1; }
body[data-field-renderer="webgpu"] #continuity-field { opacity:1; filter:brightness(1.48) saturate(1.72) drop-shadow(0 0 28px rgba(91,237,255,.56)); }
body[data-field-renderer="webgpu"] #continuity-fallback { opacity:0; }
#visual-fallback { display:none; position:fixed; inset:10vh 0 auto; text-align:center; color:rgba(34,199,222,.55); font:900 clamp(52px,11vw,150px)/1 ui-sans-serif,sans-serif; letter-spacing:.08em; pointer-events:none; }
body.canvas-unavailable #visual-fallback { display:block; }
body[data-field-target="seal"] #continuity-field,body[data-field-target="seal"] #continuity-fallback { filter:drop-shadow(0 0 18px rgba(177,130,255,.26)); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.topbar { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px clamp(20px,4vw,64px); }
.brand { color:var(--ink); text-decoration:none; font-size:13px; font-weight:900; letter-spacing:.34em; }
.controls { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.test-badge,.motion-toggle { border:1px solid rgba(103,232,249,.22); background:rgba(4,15,24,.72); color:#c9f8ff; border-radius:999px; min-height:40px; padding:10px 14px; font:700 11px/1 ui-sans-serif,sans-serif; letter-spacing:.08em; text-transform:uppercase; backdrop-filter:blur(14px); }
.test-badge span { display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:var(--cyan); box-shadow:0 0 16px var(--cyan); }
.motion-toggle { cursor:pointer; text-transform:none; letter-spacing:.02em; }
.motion-toggle:hover { border-color:rgba(103,232,249,.55); }
.motion-toggle:focus-visible,.primary:focus-visible,input:focus-visible,a:focus-visible { outline:3px solid rgba(103,232,249,.9); outline-offset:3px; }
main { position:relative; z-index:1; min-height:calc(100vh - 84px); display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,460px); align-items:end; gap:clamp(24px,5vw,84px); padding:clamp(34vh,42vh,46vh) clamp(20px,5vw,72px) 48px; }
.offer { max-width:680px; padding:28px 0; text-shadow:0 2px 18px #02070d; }
.eyebrow,.card-kicker { margin:0 0 12px; color:var(--cyan-hi); font-size:12px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; }
h1 { max-width:650px; margin:0; font-size:clamp(38px,5.2vw,76px); line-height:.95; letter-spacing:-.055em; }
h1 em { color:var(--cyan-hi); font-style:normal; text-shadow:0 0 34px rgba(34,199,222,.2); }
.price { display:flex; align-items:baseline; gap:8px; margin:20px 0 8px; }
.price strong { font-size:clamp(42px,5vw,66px); letter-spacing:-.05em; }
.price span { color:var(--muted); font-size:18px; }
.lede { max-width:610px; margin:0; color:#c1d8df; font-size:16px; line-height:1.65; }
.continuity-aperture { display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:center; gap:9px; min-height:38px; margin-top:18px; padding:9px 12px; border:1px solid rgba(103,232,249,.13); border-radius:999px; background:linear-gradient(90deg,rgba(7,25,34,.7),rgba(4,13,22,.18)); backdrop-filter:blur(10px); }
.aperture-dot { width:7px; height:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 0 0 rgba(34,199,222,.45); animation:aperture-pulse 2.4s ease-out infinite; }
.aperture-label { color:#7fa9b4; font:800 9px/1 ui-monospace,monospace; letter-spacing:.12em; text-transform:uppercase; }
.continuity-signal { min-width:0; margin:0; overflow:hidden; color:#d7f8fc; font:700 11px/1.35 ui-sans-serif,sans-serif; text-overflow:ellipsis; white-space:nowrap; }
body[data-continuity-state="managed-active"] .aperture-dot { background:#8df2c5; box-shadow:0 0 0 6px rgba(141,242,197,.08); }
body[data-continuity-state="signed-out"] .aperture-dot { background:#67e8f9; }
body[data-continuity-state="unavailable"] .aperture-dot { background:#a7c5ce; animation:none; }
.flow { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:26px; }
.flow div { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; min-height:72px; padding:14px; border:1px solid rgba(103,232,249,.12); background:rgba(3,11,19,.48); border-radius:14px; backdrop-filter:blur(10px); }
.flow b { color:var(--cyan); font:800 11px/1 ui-monospace,monospace; }
.flow span { color:#c7dce2; font-size:12px; line-height:1.4; }
.continuity-route { margin-top:14px; }
.continuity-station { position:relative; display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; min-height:82px; padding:14px; overflow:hidden; border:1px solid rgba(103,232,249,.12); border-radius:14px; background:rgba(3,11,19,.48); color:inherit; text-align:left; cursor:pointer; backdrop-filter:blur(10px); transition:border-color .22s ease,background .22s ease,transform .22s ease,box-shadow .22s ease; }
.continuity-station::after { content:""; position:absolute; inset:auto 12px 10px; height:1px; background:linear-gradient(90deg,var(--cyan),transparent); opacity:0; transform:scaleX(.25); transform-origin:left; transition:opacity .22s ease,transform .22s ease; }
.continuity-station small { grid-column:2; color:#7ba6b1; font:800 9px/1 ui-monospace,monospace; letter-spacing:.14em; }
.continuity-station.is-active { border-color:rgba(103,232,249,.62); background:linear-gradient(145deg,rgba(12,42,53,.8),rgba(3,11,19,.54)); box-shadow:0 14px 34px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.05); }
.continuity-station.is-active::after { opacity:1; transform:scaleX(1); }
.continuity-station:hover,.continuity-station:focus-visible { border-color:rgba(103,232,249,.78); transform:translateY(-3px); outline:0; }
.field-legend { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:11px; color:#7fa9b4; font-size:10px; letter-spacing:.065em; text-transform:uppercase; }
.field-legend p { margin:0; }
.field-replay { flex:0 0 auto; min-height:30px; border:0; padding:0; background:transparent; color:#c9f8ff; font:800 10px/1 ui-sans-serif,sans-serif; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; }
.field-replay:hover,.field-replay:focus-visible { color:var(--cyan-hi); text-decoration:underline; outline:0; }
.checkout-card { align-self:end; padding:clamp(24px,3vw,38px); border:1px solid rgba(103,232,249,.2); border-radius:26px; background:linear-gradient(150deg,rgba(9,24,34,.82),var(--glass)); box-shadow:0 28px 90px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.045); backdrop-filter:blur(24px) saturate(125%); transition:border-color .24s ease,box-shadow .24s ease,transform .24s ease; }
@media (hover:hover) { .checkout-card[data-field-target]:hover { border-color:rgba(103,232,249,.5); box-shadow:0 32px 96px rgba(0,0,0,.52),0 0 0 1px rgba(103,232,249,.06),inset 0 1px rgba(255,255,255,.05); transform:translateY(-3px); } .operator-card[data-field-target]:hover { border-color:rgba(177,130,255,.58); } }
h2 { margin:0; font-size:clamp(25px,3vw,36px); letter-spacing:-.035em; line-height:1.05; }
.boundary { margin:15px 0 22px; color:#bad0d7; font-size:14px; line-height:1.55; }
form { display:grid; gap:8px; }
label { margin-top:9px; color:#e7fbff; font-size:13px; font-weight:760; }
input { width:100%; min-height:50px; padding:0 15px; border:1px solid rgba(147,225,236,.2); border-radius:13px; background:rgba(1,7,12,.78); color:#effdff; font:500 16px/1 ui-sans-serif,sans-serif; transition:border-color .18s,box-shadow .18s; }
input:hover { border-color:rgba(103,232,249,.42); }
input:focus { border-color:var(--cyan-hi); box-shadow:0 0 0 4px rgba(34,199,222,.1); }
.field-help { margin:0 0 3px; color:#83a4ae; font-size:11px; line-height:1.45; }
.primary { position:relative; display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:54px; margin-top:15px; border:0; border-radius:14px; background:linear-gradient(120deg,#16bdd6,#66e8f9); color:#001016; font:850 14px/1 ui-sans-serif,sans-serif; cursor:pointer; box-shadow:0 12px 36px rgba(34,199,222,.18); }
.primary:hover { filter:brightness(1.06); transform:translateY(-1px); }
.primary:disabled { cursor:wait; filter:saturate(.65); transform:none; }
.spinner { display:none; width:16px; height:16px; border:2px solid rgba(0,16,22,.25); border-top-color:#001016; border-radius:50%; animation:spin .8s linear infinite; }
form[aria-busy="true"] .spinner { display:inline-block; }
.status,.error { min-height:18px; margin:6px 0 0; font-size:12px; line-height:1.45; }
.status { color:#a7c5ce; }
.error { color:#ffbec5; }
.fine-print { margin:18px 0 0; padding-top:15px; border-top:1px solid rgba(103,232,249,.11); color:#7898a2; font-size:10px; line-height:1.5; text-align:center; text-transform:uppercase; letter-spacing:.075em; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes aperture-pulse { 0% { box-shadow:0 0 0 0 rgba(34,199,222,.35); } 65% { box-shadow:0 0 0 8px rgba(34,199,222,0); } 100% { box-shadow:0 0 0 0 rgba(34,199,222,0); } }
@media (max-width:900px) { main { grid-template-columns:1fr; align-items:start; padding-top:38vh; } .offer { padding-bottom:0; } .checkout-card { max-width:620px; } }
@media (max-width:620px) { .topbar { align-items:flex-start; } .controls { max-width:220px; } .test-badge,.motion-toggle { min-height:44px; } main { padding:27vh 16px 28px; } .continuity-aperture { grid-template-columns:auto minmax(0,1fr); } .aperture-label { display:none; } .continuity-signal { white-space:normal; } .flow { grid-template-columns:1fr; } .flow div { min-height:0; } .field-legend { align-items:flex-start; } .checkout-card { border-radius:20px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; } }


/* Authenticated portal additions preserve the original Solo composition:
   a left continuity story, frosted control surfaces, and the same canvas. */
.portal-main { align-items: start; padding-top: clamp(22vh, 27vh, 34vh); }
#sign-in[hidden], #account[hidden], [hidden] { display:none !important; }
.account-controls { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,2vw,30px); align-items:start; }
.account-controls .checkout-card { width:auto; min-width:0; }
.continuity-card { border-color:rgba(103,232,249,.3); }
.operator-card { border-color:rgba(177,130,255,.28); background:linear-gradient(150deg,rgba(20,12,38,.82),rgba(5,12,25,.7)); }
.operator-card .card-kicker { color:#d9b9ff; }
.operator-primary { background:linear-gradient(120deg,#9d70ed,#dfb8ff); color:#170622; box-shadow:0 12px 36px rgba(167,109,242,.2); }
.compact-flow { margin-top:20px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.compact-flow > div { min-width:0; grid-template-columns:minmax(0,1fr); gap:8px; }
.compact-flow span { overflow-wrap:anywhere; }
.account-controls .checkout-card { max-width:none; align-self:stretch; }
.account-controls .form-actions button { height:auto; min-height:44px; padding:14px 16px; white-space:normal; overflow-wrap:anywhere; }
.device-list li > span { min-width:0; overflow-wrap:anywhere; }
.device-list li > button { flex-shrink:0; }
.operator-sequence { display:flex; align-items:center; gap:8px; margin:22px 0; color:#dfcbff; font:800 10px/1 ui-monospace,monospace; letter-spacing:.12em; }
.operator-sequence i { display:block; flex:1; height:1px; min-width:12px; background:linear-gradient(90deg,rgba(177,130,255,.7),rgba(177,130,255,.1)); }
.device-card { grid-column:span 2; }
.device-list { display:grid; gap:9px; min-height:26px; margin:20px 0; padding:0; list-style:none; }
.device-list:empty::before { content:"No approved devices yet."; color:#83a4ae; font-size:12px; }
.device-list li { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:10px 12px; border:1px solid rgba(103,232,249,.12); border-radius:11px; color:#d8f1f5; font-size:13px; background:rgba(1,7,12,.44); }
.device-list button,.secondary,.auth-utility button { min-height:40px; border:1px solid rgba(103,232,249,.24); border-radius:12px; padding:0 13px; background:rgba(4,15,24,.72); color:#c9f8ff; font:700 12px/1 ui-sans-serif,sans-serif; cursor:pointer; }
.secondary:hover,.auth-utility button:hover,.device-list button:hover { border-color:rgba(103,232,249,.55); }
.form-actions { display:grid; gap:10px; margin-top:15px; }
.auth-utility { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.recovery-panel { display:grid; gap:8px; margin-top:20px; padding-top:20px; border-top:1px solid rgba(103,232,249,.13); }
.device-approval { display:grid; gap:8px; }
.account-exit { grid-column:1 / -1; justify-self:end; }
.portal-footer { position:relative; z-index:2; display:flex; justify-content:space-between; gap:16px; padding:0 clamp(20px,5vw,72px) 32px; color:#7898a2; font-size:10px; letter-spacing:.075em; text-transform:uppercase; }
.portal-footer a { color:#a7cbd4; }
@media (max-width:1040px) { .account-controls { grid-template-columns:repeat(2,minmax(0,1fr)); } .device-card { grid-column:span 2; } }
@media (max-width:760px) { .account-controls { grid-template-columns:1fr; } .compact-flow { grid-template-columns:1fr; } .device-card { grid-column:auto; } .portal-footer { flex-direction:column; } .account-exit { grid-column:auto; justify-self:start; } }
/* ---- Raw engine layer: HDR fence, singularity sync, state choreography ---- */
@property --burst { syntax:'<number>'; inherits:true; initial-value:0; }
@property --flash { syntax:'<number>'; inherits:true; initial-value:0; }
:root { --burst:0; --flash:0; }
/* The glow now comes from the HDR trail + bloom chain, not a CSS filter over the canvas. */
body[data-field-renderer="webgpu"] #continuity-field { filter:none; }
body[data-field-renderer="webgpu"][data-hdr="extended"] #continuity-field { dynamic-range-limit:no-limit; }
/* Only the field may exceed the page's white: the DOM stays SDR on HDR displays. */
body[data-hdr="extended"] .topbar, body[data-hdr="extended"] main, body[data-hdr="extended"] .portal-footer { dynamic-range-limit:standard; }
/* Singularity sync: the story and the cards implode with the particles, then snap back. */
.offer { scale:calc(1 - var(--burst) * .05); translate:0 calc(var(--burst) * 10px); transform-origin:50% 40%; will-change:scale; }
.checkout-card { scale:calc(1 - var(--burst) * .035); }
h1 { filter:brightness(calc(1 + var(--flash) * 1.4)) drop-shadow(0 0 calc(var(--flash) * 22px) rgba(103,232,249,.55)); }
/* Entry and exit choreography without JavaScript: @starting-style plus discrete display transitions. */
#sign-in, #account { transition:opacity .55s cubic-bezier(.16,1,.3,1), translate .55s cubic-bezier(.16,1,.3,1), transform .24s ease, border-color .24s ease, box-shadow .24s ease, display .55s allow-discrete; }
#sign-in[hidden], #account[hidden] { opacity:0; translate:0 -12px; pointer-events:none; }
#sign-in[hidden] { position:absolute; top:clamp(22vh,27vh,34vh); right:clamp(20px,5vw,72px); width:min(460px,calc(100% - 40px)); }
#account[hidden] { position:absolute; top:clamp(22vh,27vh,34vh); left:clamp(20px,5vw,72px); right:clamp(20px,5vw,72px); }
@starting-style { #sign-in:not([hidden]), #account:not([hidden]) { opacity:0; translate:0 18px; } }
.account-controls .checkout-card { transition:opacity .6s cubic-bezier(.16,1,.3,1), translate .6s cubic-bezier(.16,1,.3,1), border-color .24s ease, box-shadow .24s ease, transform .24s ease; transition-delay:calc(sibling-index() * 110ms), calc(sibling-index() * 110ms), 0s, 0s, 0s; }
@starting-style { .account-controls .checkout-card { opacity:0; translate:0 22px; } }
.device-list li { transition:opacity .45s ease, translate .45s ease; transition-delay:calc(sibling-index() * 70ms); }
@starting-style { .device-list li { opacity:0; translate:-10px 0; } }
/* Account state on the cards: the same state the field renders. */
body[data-solo="active"] .continuity-card { border-color:rgba(141,242,197,.55); box-shadow:0 0 0 1px rgba(141,242,197,.14), 0 28px 90px rgba(0,0,0,.48), 0 0 48px rgba(41,242,169,.12); }
body[data-solo="active"] .continuity-card .card-kicker { color:#8df2c5; }
body[data-operator="active"] .operator-card { border-color:rgba(255,214,130,.55); box-shadow:0 0 0 1px rgba(255,214,130,.14), 0 28px 90px rgba(0,0,0,.48), 0 0 48px rgba(255,200,107,.12); }
body[data-operator="active"] .operator-card .card-kicker, body[data-operator="grace"] .operator-card .card-kicker { color:#ffd98a; }
body[data-operator="pending"] .operator-card { border-color:rgba(255,200,107,.5); animation:pending-pulse 2.4s ease-in-out infinite; }
body[data-operator="grace"] .operator-card { border-color:rgba(255,200,107,.4); }
body[data-operator="revoked"] .operator-card { border-color:rgba(255,107,91,.5); background:linear-gradient(150deg,rgba(38,12,14,.82),rgba(12,5,8,.7)); }
body[data-operator="revoked"] .operator-card .card-kicker { color:#ffb0a4; }
body[data-surge] .checkout-card, body[data-surge] .offer { opacity:.35; transition:opacity .9s ease; }
@keyframes pending-pulse { 0%,100% { box-shadow:0 28px 90px rgba(0,0,0,.48), 0 0 0 0 rgba(255,200,107,0); } 50% { box-shadow:0 28px 90px rgba(0,0,0,.48), 0 0 0 6px rgba(255,200,107,.10); } }
/* Apple-style squircles where the browser has corner-shape (Chrome 139+, WebKit next). */
@supports (corner-shape: squircle) { .checkout-card, .continuity-station, .flow div, .primary, .secondary, input, .device-list li { corner-shape:squircle; } }
@media (prefers-reduced-motion:reduce) { .offer, .checkout-card { scale:1 !important; translate:none !important; } h1 { filter:none !important; } #sign-in, #account, .account-controls .checkout-card, .device-list li { transition:none !important; } body[data-operator="pending"] .operator-card { animation:none; } }
