/* Homepage v3 */
.hero { padding: 64px 0 40px; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero .display { max-width: 13ch; }
.hero .display .glow { color: var(--lamp); text-shadow: 0 0 34px var(--lamp-glow); }
.hero .lede { max-width: 48ch; margin: 22px 0 28px; }
.check { display: flex; gap: 10px; max-width: 580px; flex-wrap: wrap; }
.check label { flex: 1 1 260px; display: block; position: relative; }
.check label::before { content: "https://"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font: 500 .9rem var(--mono); color: var(--muted); pointer-events: none; }
.check input { width: 100%; min-height: 56px; padding: 0 16px 0 86px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(6, 16, 29, .75); color: var(--text); font: 500 1.05rem var(--mono); transition: border-color .2s, box-shadow .2s; }
.check input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(79,214,207,.15), 0 0 30px rgba(79,214,207,.15); }
.check input::placeholder { color: #5f7488; }
.check .btn { min-height: 56px; padding: 0 26px; }
.check-note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.check-error { min-height: 1.4em; margin: 8px 0 0; color: var(--buoy); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badges span { font: 500 .78rem var(--mono); color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: rgba(10,24,40,.6); }
.badges span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 8px var(--signal); }

/* hero right: tower + terminal */
.hero-side { position: relative; display: grid; gap: 18px; }
.scene { position: relative; height: 260px; }
.scene svg { width: 100%; height: 100%; overflow: visible; }
.scene .tower { fill: #dfe9f2; }
.scene .tower-dark { fill: #12304d; }
.scene .stripe { fill: var(--buoy); }
.scene .lamp-glass { fill: var(--lamp); filter: drop-shadow(0 0 10px var(--lamp)); animation: lamp-pulse 2.4s ease-in-out infinite; }
.scene .rock { fill: #0e2238; stroke: rgba(79,214,207,.35); stroke-width: 1; }
.scene .wave { fill: none; stroke: rgba(79,214,207,.35); stroke-width: 1.2; stroke-dasharray: 6 8; animation: wave-move 6s linear infinite; }
.scene .wave.w2 { animation-duration: 9s; opacity: .6; }
@keyframes lamp-pulse { 50% { filter: drop-shadow(0 0 22px var(--lamp)); } }
@keyframes wave-move { to { stroke-dashoffset: -140; } }
.terminal { padding: 0; overflow: hidden; }
.terminal .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.terminal .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.terminal .bar i:first-child { background: var(--buoy); } .terminal .bar i:nth-child(2) { background: var(--lamp); } .terminal .bar i:nth-child(3) { background: var(--signal); }
.terminal .bar span { margin-left: 8px; font: 500 .78rem var(--mono); color: var(--muted); }
/* fixed height (10 lines) so the typing demo never resizes the column and moves the tower */
.terminal pre { margin: 0; padding: 14px 16px 18px; height: calc(10 * 1.65em + 32px); overflow: hidden; font: 500 .82rem/1.65 var(--mono); color: var(--text-2); white-space: pre; }
.terminal .caret { display: inline-block; width: 8px; height: 1em; background: var(--signal); vertical-align: -2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* result */
.result { padding: 40px 0 72px; }
.result .panel { padding: 26px 26px 22px; }
.result-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 12px; }
.result-head h2 { overflow-wrap: anywhere; font-family: var(--mono); font-stretch: 100%; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.result-head .num { color: var(--lamp); font-family: var(--mono); }
.result .verdict { font-size: 1.1rem; max-width: 72ch; }
.result .facts-list { margin: 0 0 22px; padding-left: 1.1em; max-width: 72ch; color: var(--text-2); }
.result .facts-list .fix { color: var(--text); font-weight: 600; }
.result.scanning .lights tbody { opacity: .45; transition: opacity .2s; }
.lit-in { animation: row-in .5s ease-out both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } }
.offer { margin-top: 26px; padding: 22px; border-radius: 12px; border: 1px solid rgba(242,178,62,.4); background: linear-gradient(120deg, rgba(242,178,62,.10), rgba(79,214,207,.05));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; }
.offer h3 { font-stretch: 118%; font-size: 1.4rem; }
.offer p { margin: 6px 0 0; color: var(--text-2); max-width: 62ch; }
.offer .price { font-stretch: 125%; font-weight: 800; font-size: 2rem; margin: 0; }
.offer .price .quiet { font-stretch: 100%; font-weight: 400; font-size: .95rem; }
.offer .actions { display: grid; gap: 8px; justify-items: end; text-align: right; margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.step { padding: 26px 24px; position: relative; overflow: hidden; }
.step::before { counter-increment: st; content: "0" counter(st); font: 700 .85rem var(--mono); color: var(--signal); display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; font-size: 1.2rem; }
.step p { color: var(--text-2); margin: 0; }
.step .ico { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; opacity: .9; }
.step:hover { border-color: var(--line-2); }

/* sample + score */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: start; }
.split > * { min-width: 0; }
.excerpt { padding: 6px 24px; }
.excerpt li:last-child { border-bottom: 0; }
.weights { border-collapse: collapse; width: 100%; }
.weights th { text-align: left; font-weight: 600; font-size: .82rem; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line-2); }
.weights td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.weights td.num, .weights th.num { text-align: right; width: 4.5em; font-family: var(--mono); color: var(--text); }
.weights tr.free td:first-child { box-shadow: inset 3px 0 0 var(--lamp); color: var(--text); }
.weights-wrap { padding: 8px 6px; }

/* study */
.bars { margin: 28px 0 22px; max-width: 780px; padding: 24px 28px 20px; }
.bars figcaption { color: var(--text-2); margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 9.5em 1fr 9.5em; gap: 14px; align-items: center; padding: 8px 0; }
.bar-row .track { height: 12px; border-radius: 6px; background: rgba(130,190,215,.12); position: relative; overflow: hidden; }
.bar-row .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #c4412a, var(--buoy)); box-shadow: 0 0 16px rgba(255,106,85,.4); transition: width 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.bars.in .fill.p59 { width: 59%; } .bars.in .fill.p64 { width: 64%; } .bars.in .fill.p47 { width: 47%; }
.bar-row .num { font-family: var(--mono); color: var(--text-2); font-size: .9rem; }
.study code, .faq code { font: 500 .86em/1 var(--mono); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 1.15rem; }
.plan .amount { font-stretch: 125%; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.plan .amount small { font-size: .9rem; font-stretch: 100%; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--text-2); display: grid; gap: 6px; }
.plan .btn { margin-top: auto; }
.plan.main { border-color: rgba(242,178,62,.55); box-shadow: 0 0 0 1px rgba(242,178,62,.2), 0 20px 60px rgba(242,178,62,.08); background: linear-gradient(170deg, rgba(242,178,62,.10), var(--panel) 45%); }
.plan .tag { align-self: flex-start; font: 600 .74rem var(--mono); color: #1d1404; background: var(--lamp); border-radius: 999px; padding: 3px 9px; }
.pay-note { margin-top: 18px; color: var(--muted); font-size: .9rem; max-width: 80ch; }

/* faq */
.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 1.3rem var(--mono); color: var(--signal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--signal); }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

/* closing band */
.cta-band { padding: 44px 36px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px 32px; align-items: center;
  background: linear-gradient(120deg, rgba(79,214,207,.12), rgba(242,178,62,.10)); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 8px 0 0; color: var(--text-2); }

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .scene { height: 190px; }
  .terminal pre { font-size: .7rem; padding: 12px 12px 16px; }
  .bars { padding: 20px 18px 16px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .offer, .cta-band { grid-template-columns: 1fr; }
  .offer .actions { justify-items: start; text-align: left; }
  .bar-row { grid-template-columns: 7em 1fr; }
  .bar-row .num { grid-column: 2; font-size: .82rem; margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) { .bars .fill.p59 { width: 59%; } .bars .fill.p64 { width: 64%; } .bars .fill.p47 { width: 47%; } }
