/* autocomputing.solar — the main page (2026-10-16): the solar estimator as an add-on for solar companies'
   websites. The energy.autocomputing.solar splash, carried through a whole page: silver field, the turning
   wireframe Earth, the engraved JetBrains Mono wordmark, Afacad text, lavender .btn-cool + silver .btn. */

@font-face { font-family: 'JetBrains Mono'; src: url('../assets/fonts/jetbrains/JetBrainsMono[wght].ttf') format('truetype-variations'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Afacad'; src: url('../assets/fonts/afacad/Afacadwght.woff2') format('woff2-variations'); font-weight: 400 700; font-display: swap; }

:root {
    --ink: #2E3050; --ink-2: #44465E; --soft: #6a6c82; --frame: #1D070E;
    --purple: #857EB6; --lav: #A99FFC; --focus: #7F78C5; --pale: #F3F2FA;
    --silver-1: #F7F3F0; --silver-2: #d9dce3; --silver-3: #c2c6d0; --stroke: #878b99; --gold: #E0A82E;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body { margin: 0; font-family: 'Afacad', sans-serif; font-size: 17px; line-height: 1.5; color: var(--ink); background: #FFFFFF; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero: the splash ---------- */
.hero {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
    min-height: 100vh; min-height: 100svh; min-height: 100dvh; /* exactly the viewport, tracking it dynamically */
    scroll-snap-align: start; scroll-snap-stop: always;
    background: linear-gradient(180deg, var(--silver-1), var(--silver-2) 55%, var(--silver-3)); /* the standing look; the film crosses over it */
}
.hero .bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.hero .bgvid.on { opacity: 1; }
.hero .globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(247, 243, 240, 0.38), rgba(217, 220, 227, 0.24) 50%, rgba(194, 198, 208, 0.42)); }
.hero .inner { position: relative; z-index: 2; max-width: 980px; padding: 64px 16px; text-align: center; font-family: 'JetBrains Mono', monospace; }
.hero .mark { width: min(760px, 92%); height: auto; display: block; margin: 0 auto 6px; }
.hero .tag { font-size: 21px; color: #2c2536; letter-spacing: 0.5px; }
.hero h1 { margin: 26px 0 8px; font-family: 'Afacad', sans-serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; color: var(--ink); }
.hero .sub { margin: 0 auto; max-width: 620px; font-size: 15px; color: var(--ink-2); }
.cta-row { margin-top: 28px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 14.5px; line-height: 1; border-radius: 3px; padding: 13px 24px;
    border: 1px solid var(--stroke); color: var(--frame); text-decoration: none;
    background: linear-gradient(180deg, #fbfcfe, #d9dce3);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 1px 2px rgba(29, 7, 14, 0.18); transition: 0.12s;
}
.btn:hover { background: linear-gradient(180deg, #fff, #eceef2); border-color: var(--lav); }
.btn-cool { border-color: var(--focus); color: #150418; background: linear-gradient(180deg, var(--lav), var(--purple)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 1px 3px rgba(80, 70, 140, 0.4); }
.btn-cool:hover { background: linear-gradient(180deg, #c3b9ff, var(--lav)); border-color: var(--focus); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- bands ---------- */
.band { padding: 72px 0; scroll-snap-align: start; scroll-snap-stop: always; }
.band--pale { background: var(--pale); border-top: 1px solid #E3E2EE; border-bottom: 1px solid #E3E2EE; }
.band--dark { background: var(--ink); color: #E8E8F2; }
.band--dark .eyebrow { color: var(--lav); }
.band--dark h3 { color: #FFFFFF; }
.eyebrow { margin: 0 0 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--focus); }
h2 { margin: 0 0 18px; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; }
h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.2; }
.lede { max-width: 640px; font-size: 18px; color: var(--ink-2); margin: 0 0 22px; }
.fine { font-size: 13.5px; color: var(--soft); }

.cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards li { background: linear-gradient(180deg, #FDFDFD, #ECECEF); border: 1px solid #C9C9C9; border-top: 3px solid var(--lav); border-radius: 2px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.cards .n { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--focus); font-size: 13px; }
.cards b { font-size: 19px; }
.cards span:last-child { color: var(--ink-2); font-size: 15px; }

.two { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 26px; border-top: 1px dashed rgba(68, 70, 94, 0.18); color: var(--ink-2); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; background: linear-gradient(180deg, var(--lav), var(--purple)); border-radius: 2px; }
.ticks b { color: var(--ink); }

/* the report, drawn as a small stack of pages */
.report { position: relative; margin: 0; height: 380px; }
.report figcaption { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-size: 13px; color: var(--soft); }
.sheet { position: absolute; width: 250px; height: 324px; left: 50%; top: 10px; background: #FFFFFF; border: 1px solid #D9DCE3; box-shadow: 0 10px 26px rgba(46, 48, 80, 0.18); }
.sheet.s3 { transform: translateX(-38%) rotate(7deg); }
.sheet.s2 { transform: translateX(-46%) rotate(3deg); }
.sheet.s1 { transform: translateX(-54%) rotate(-2deg); display: flex; flex-direction: column; }
.sheet-head { background: var(--ink); color: #E8E8F2; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.sheet-head span { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: 3px; color: var(--silver-3); }
.sheet-head i { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 2px; color: var(--lav); }
.sheet-head b { margin-top: 10px; font-size: 18px; color: #FFFFFF; }
.sheet-heat {
    flex: 1 1 auto; margin: 10px 14px 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 22px, rgba(24, 26, 40, 0.75) 22px 34px, transparent 34px 36px),
        radial-gradient(60% 55% at 45% 45%, #FFFFF6 0, #FEB400 30%, #E64616 62%, #91009C 88%, #2A2C3C 100%);
    background-size: 36px 52px, 100% 100%;
    border: 1px solid #C2C6D0;
}
.sheet-stats { display: flex; gap: 8px; padding: 10px 14px 14px; }
.sheet-stats span { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: var(--focus); }
.sheet-stats b { display: block; font-family: 'Afacad', sans-serif; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* the installation path: a rail with ten stops */
.path { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px 14px; counter-reset: s; }
.path li { position: relative; padding: 30px 0 0; counter-increment: s; }
.path li::before {
    content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 2px;
    font: 700 11px/24px 'JetBrains Mono', monospace; text-align: center; color: #FFFFFF; background: var(--purple);
}
.path li::after { content: ''; position: absolute; left: 30px; right: -10px; top: 11px; height: 2px; background: linear-gradient(90deg, var(--lav), rgba(169, 159, 252, 0.15)); }
.path li:nth-child(5n)::after { display: none; }
.path b { display: block; font-size: 17px; line-height: 1.2; }
.path span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--focus); }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.three p { margin: 0; color: #C9C9DA; }

.price { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; }
.price-card { background: linear-gradient(180deg, #FDFDFD, #ECECEF); border: 1px solid #BDBDBD; border-top: 3px solid var(--lav); border-radius: 2px; padding: 22px; box-shadow: 0 14px 34px rgba(46, 48, 80, 0.16); display: flex; flex-direction: column; gap: 10px; }
.price-card .row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed rgba(68, 70, 94, 0.18); padding-top: 10px; }
.price-card .row:first-child { border-top: 0; padding-top: 0; }
.price-card .row span { color: var(--soft); }
.price-card .row b { font-size: 34px; line-height: 1; }
.price-card .row small { font-size: 14px; font-weight: 600; color: var(--soft); margin-left: 4px; }
.price-card .fine { margin: -4px 0 4px; }
.price-card .btn { text-align: center; }

.foot { background: linear-gradient(180deg, var(--silver-2), var(--silver-3)); padding: 34px 0 26px; color: var(--ink-2); font-size: 14px; scroll-snap-align: end; } /* end: the page bottom itself becomes the last reachable snap position */
.foot .wrap { display: flex; flex-direction: column; gap: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--focus); }
.foot .copy { margin: 14px 0 0; font-size: 11.5px; color: var(--ink-2); opacity: 0.85; }

@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .two, .price { grid-template-columns: 1fr; gap: 28px; }
    .path { grid-template-columns: repeat(2, 1fr); }
    .path li::after { display: none; }
    .three { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .band { padding: 52px 0; }
    .cards { grid-template-columns: 1fr; }
    .hero .tag { font-size: 16px; }
    .report { height: 360px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
