/* Home page */
.hero { position:relative; overflow:hidden; min-height:min(780px, calc(100svh - var(--top))); display:flex; align-items:center; padding:72px 0 64px; }
.hero-dots { position:absolute; inset:0; width:100%; height:100%; cursor:crosshair; touch-action:manipulation; }
.hero-in { position:relative; z-index:2; pointer-events:none; }
.hero-in > * { pointer-events:auto; max-width:640px; }
.hero-in h1 { font-size:clamp(56px, 9vw, 128px); line-height:.95; }
.hero .lede { margin-top:24px; color:#CFCFF0; }
.hero-form { margin-top:32px; }
.hero-form input { background:rgba(11,11,82,.85); }
.hero-engines { margin-top:40px; display:flex; flex-direction:column; gap:12px; max-width:560px !important; }
.hero-engines .engines { gap:10px 18px; font-size:14px; }
/* the constellation: see the block at the end of this file */

/* answer specimen */
.spec { display:grid; grid-template-columns:7fr 5fr; gap:clamp(24px, 4vw, 56px); align-items:start; }
.spec .ans p { margin:0 0 10px; }
.notes { list-style:none; margin:0; padding:0; display:grid; gap:0; border-top:1px solid var(--hair); }
.notes li { padding:16px 0; border-bottom:1px solid var(--hair); color:var(--t2); font-size:16px; line-height:1.5; }
.notes li b { color:var(--t1); }
.notes li a { margin-left:4px; font-size:14px; color:var(--t3); }
@media (max-width:900px) { .spec { grid-template-columns:1fr; } }

/* how it works: the morph */
.how { display:grid; grid-template-columns:5fr 7fr; gap:clamp(32px, 5vw, 80px); align-items:center; }
.how-fig { margin:0; justify-self:center; width:100%; max-width:440px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.how-cap { color:var(--t2); font-size:16px; text-align:center; min-height:1.5em; }
.how-stage { aspect-ratio:1; max-width:440px; width:100%; cursor:pointer; display:grid; place-items:center; position:relative; }
.how-stage::before { content:''; position:absolute; inset:6%; border-radius:50%; border:1px dashed var(--hair); }
.morph { width:78%; height:auto; overflow:visible; --morph-cut:var(--sunken); }
.seg { display:inline-flex; gap:4px; padding:4px; border-radius:12px; background:var(--card); border:1px solid var(--hair); margin-bottom:28px; position:relative; }
.seg button { position:relative; z-index:1; height:40px; padding:0 18px; border:0; border-radius:9px; background:none; cursor:pointer; font:600 15px/1 var(--ui); color:var(--t2); }
.seg button[aria-selected="true"] { color:var(--t1); }
.seg .thumb { position:absolute; z-index:0; top:4px; left:0; height:40px; border-radius:9px; background:var(--hover); box-shadow:inset 0 0 0 1px var(--strong); transform-origin:left center; }
.how-panel h3 { font-size:clamp(24px, 2.4vw, 30px); margin-bottom:14px; }
.how-panel p { color:var(--t2); max-width:58ch; }
.how-num { display:flex; flex-wrap:wrap; gap:16px 40px; margin:4px 0 20px; }
.how-num > div { min-width:180px; }
.how-num b { display:block; font-size:26px; line-height:1.1; color:var(--t1); font-weight:600; }
.how-num span { display:block; margin-top:4px; font-size:14px; color:var(--t3); }
.notes li .meter { max-width:180px; }
@media (max-width:900px) { .how { grid-template-columns:1fr; } .how-fig, .how-stage { max-width:260px; } }

/* platform columns */
.plat-cols { display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; margin-top:64px; border-top:1px solid var(--hair); padding-top:32px; }
.plat-cols h3 { font-size:15px; color:var(--t3); font-weight:500; margin-bottom:10px; }
.plat-cols ul { list-style:none; margin:0; padding:0; }
.plat-cols li { padding:12px 0; border-bottom:1px solid var(--hair); display:flex; flex-direction:column; }
.plat-cols li a { font-weight:600; text-decoration:none; font-size:18px; }
.plat-cols li a:hover { text-decoration:underline; }
.plat-cols li span { color:var(--t3); font-size:15px; }
@media (max-width:760px) { .plat-cols { grid-template-columns:1fr; gap:8px; } }

/* proof */
.proof-chart svg { width:100%; height:auto; }
.proof-chart .grid line { stroke:var(--hair); stroke-width:1; }
.proof-chart .ax text { fill:var(--t3); font-size:12px; text-anchor:end; }
.pc-line { fill:none; stroke:#F3F3FF; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
.pc-marks circle { fill:var(--ground); stroke:#BCBCE4; stroke-width:1.5; }
.pc-marks text { fill:#BCBCE4; font-size:12px; }
.pc-end { fill:#F3F3FF; } .pc-endt { fill:#F3F3FF; font-size:16px; font-weight:600; }

/* free list */
.free-list { display:grid; grid-template-columns:repeat(3, 1fr); border-top:1px solid var(--hair); border-left:1px solid var(--hair); }
.free-list a { display:flex; flex-direction:column; gap:6px; padding:24px; border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); text-decoration:none; transition:background .18s var(--ease); }
.free-list a:hover { background:var(--hover); }
.free-list b { font-size:18px; }
.free-list span { color:var(--t2); font-size:15px; }
@media (max-width:900px) { .free-list { grid-template-columns:1fr 1fr; } }
@media (max-width:560px) { .free-list { grid-template-columns:1fr; } }

/* ---------- the constellation: the hero's dots are the web; five searches read it; seven pages lift out as the answer's sources ---------- */
.hero-map { position:absolute; z-index:2; margin:0; right:max(3vw, calc((100vw - 1240px) / 2)); top:50%; transform:translateY(-50%); width:min(42vw, 560px); }
.lm-bubble { position:relative; z-index:2; padding:13px 16px 15px; border-radius:18px 18px 18px 4px; background:#0B0B52; border:1px solid #2E2E8C; box-shadow:0 18px 40px rgba(0,0,0,.35); }
.lm-who { display:block; font:400 13px/1.3 var(--ui); color:#9C9CCF; margin-bottom:5px; }
.lm-who b { color:#F3F3FF; font-weight:600; }
.lm-bubble p { position:relative; margin:0; font:400 15.5px/1.5 var(--ui); color:#F3F3FF; text-wrap:pretty; }
.lm-ghost { visibility:hidden; }
.lm-typed { position:absolute; inset:0; }
.lm-caret { display:inline-block; width:2px; height:1em; margin-left:2px; vertical-align:-2px; background:#E4E4FF; animation:lmcaret .8s steps(1) infinite; }
@keyframes lmcaret { 50% { opacity:0; } }
.cs-status { margin:14px 0 0; min-height:20px; font:400 13.5px/1.4 var(--ui); color:#9C9CCF; }
.cs-status b { color:#F3F3FF; font-weight:600; }
.cs-field { position:relative; aspect-ratio:1 / .66; margin-top:4px; cursor:crosshair; }
.cs-field canvas { position:absolute; inset:0; width:100%; height:100%; }
.cs-ans { margin:10px 0 0; min-height:2.9em; font:400 clamp(16px, 1.35vw, 19px)/1.45 var(--ui); color:#E4E4FF; text-wrap:pretty; }
.js .cs-ans .w { opacity:0; transition:opacity .35s; }
.js .cs-ans .w.on { opacity:1; }
/* the finished state is in the HTML for crawlers; with JS it stays hidden until the first run resets it */
.js .hero-map:not(.live) .lm-typed, .js .hero-map:not(.live) .cs-status, .js .hero-map:not(.live) .cs-sum { visibility:hidden; }
.cs-ans b { font-weight:600; color:#FFFFFF; }
.cs-ans b.you { color:#FF9A6A; }
.cs-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.cs-row { display:flex; gap:10px; height:32px; }
.cs-slot { flex:none; width:32px; height:32px; }
.cs-sum { margin:12px 0 0; min-height:3em; font:400 14px/1.5 var(--ui); color:#BCBCE4; }
.cs-sum b, .cs-sum a { color:#F3F3FF; font-weight:600; }
.cs-fly { position:absolute; inset:0; z-index:3; pointer-events:none; }
.cs-tile { position:absolute; left:0; top:0; padding:0; border:0; background:#FFFFFF; overflow:hidden; box-shadow:0 6px 14px rgba(0,0,0,.35); will-change:transform; }
.cs-tile img { position:absolute; inset:4px; width:calc(100% - 8px); height:calc(100% - 8px); object-fit:contain; border-radius:4px; opacity:0; }
.cs-tile.you { box-shadow:0 0 0 2px #FF7A40, 0 6px 14px rgba(0,0,0,.35); }
.cs-tile.landed { pointer-events:auto; cursor:default; }
.cs-tile:focus-visible { outline:2px solid #E4E4FF; outline-offset:3px; }
.lm-again { flex:none; height:32px; padding:0 12px; border-radius:8px; border:1px solid #6666B2; background:transparent; color:#F3F3FF; font:500 14px/1 var(--ui); cursor:pointer; }
.lm-again:hover { background:rgba(255,255,255,.08); }
.lm-tip { position:absolute; z-index:6; max-width:250px; padding:9px 12px; border-radius:9px; background:#10105F; border:1px solid #2E2E8C; color:#BCBCE4; font:400 13px/1.45 var(--ui); box-shadow:0 14px 30px rgba(0,0,0,.45); opacity:0; pointer-events:none; transition:opacity .15s; }
.lm-tip.on { opacity:1; }
.lm-tip b { display:block; color:#F3F3FF; font-weight:600; }
.lm-tip span { display:block; margin-top:2px; }
.lm-tip .s { color:#9C9CCF; margin-top:4px; }
@media (max-width:1100px) {
  .hero { flex-direction:column; align-items:stretch; min-height:0; padding:56px 0 64px; }
  .hero-map { position:relative; right:auto; top:auto; transform:none; order:2; width:min(100% - 2 * var(--gut), 620px); margin:40px auto 0; }
}
@media (max-width:560px) {
  .hero-engines { display:none; }
  .cs-field { aspect-ratio:1 / .9; }
  .lm-bubble p { font-size:15px; }
  .cs-row { gap:7px; }
  .cs-slot { width:30px; height:30px; }
  .cs-foot { flex-wrap:wrap; }
  .cs-ans { min-height:4.35em; }
  .cs-sum { min-height:4.5em; }
}
@media (prefers-reduced-motion: reduce) { .lm-caret { display:none; } .cs-ans .w { transition:none; } }
