/* GeoTerva site — the home page and the module pages (2026-10-02).
   Layout: a product page whose centre is the module itself, shown through its four faces (model, results,
   calculations, theory), and a catalogue that reads like a datasheet per family. A single light look on purpose:
   the logo, the calculation pages and the reports are drawn for white paper, so the page paints its own ground
   and every colour explicitly. */
:root{
  color-scheme: light;
  --gt-geo:#173f7c; --gt-geo-700:#12325f; --gt-geo-900:#0c2140; --gt-geo-50:#eaf0f8; --gt-geo-100:#d9e4f2;
  --gt-terva:#4d7c1f; --gt-terva-600:#416b18; --gt-terva-50:#eef4e5; --gt-terva-300:#9cc069;
  --gt-clay:#d68a2a; --gt-clay-50:#fbf1e2; --gt-loam:#7b451c; --gt-loam-50:#f4ebe3;
  --gt-ground:#ffffff; --gt-paper:#ffffff; --gt-ink:#152033; --gt-ink-2:#34425a; --gt-muted:#596678; --gt-faint:#8a94a2;
  --gt-line:#e2e6dd; --gt-line-2:#eef1ea;
  --gt-pass:#2f6b45; --gt-fail:#b3261e;
  --gt-shadow:none;
  --gt-shadow-sm:none;
  --gt-display:"Lexend","Segoe UI",system-ui,sans-serif;
  --gt-body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  --gt-mono:"IBM Plex Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--gt-paper);color:var(--gt-ink);font-family:var(--gt-body);font-size:16.5px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
:focus-visible{outline:3px solid var(--gt-clay);outline-offset:3px;border-radius:6px}
.wrap{max-width:1320px;margin:0 auto;padding-inline:clamp(16px,4vw,40px)}
h1,h2,h3,h4{font-family:var(--gt-display);text-wrap:balance;margin:0;letter-spacing:-.012em;color:var(--gt-geo)}
p{margin:0}
.eyebrow{font-family:var(--gt-display);font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gt-terva)}
.sub{font-family:var(--gt-mono);font-size:12.5px;color:var(--gt-faint)}
sub{font-size:.72em;line-height:0;vertical-align:-.25em}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:46px;padding-inline:22px;border-radius:12px;font-family:var(--gt-display);font-weight:600;font-size:15px;white-space:nowrap;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease}
.btn svg{width:18px;height:18px;flex:none}
.btn-primary{background:var(--gt-terva);color:#fff}
.btn-primary:hover{background:var(--gt-terva-600);transform:translateY(-1px)}
.btn-ghost{border:1.5px solid #c9d1c1;color:var(--gt-geo);background:var(--gt-paper)}
.btn-ghost:hover{border-color:var(--gt-geo)}
.btn-sm{height:40px;padding-inline:16px;font-size:14.5px;border-radius:10px}
.link{display:inline-flex;align-items:center;gap:7px;font-family:var(--gt-display);font-weight:600;font-size:14.5px;color:var(--gt-terva)}
.link svg{width:16px;height:16px;transition:transform .15s}
.link:hover svg{transform:translateX(3px)}

/* ---------- header ---------- */
/* a GeoTerva navy band (2026-10-02, user: the site read too white) */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;overflow-x:clip;background:linear-gradient(90deg,var(--gt-geo-900) 0%,#123766 100%)}
/* the logo keeps its own colours on a white ground that runs out to the left edge and ends on a slant (2026-10-02, user) */
.top .brand{align-self:stretch;position:relative;padding-right:14px;border-image:linear-gradient(#fff,#fff) fill 0 / 0 / 0 0 0 100vw}
.top .brand::after{content:"";position:absolute;top:0;bottom:0;left:100%;width:34px;background:#fff;clip-path:polygon(0 0,100% 0,0 100%)}
.top .wrap{display:flex;align-items:center;gap:26px;height:70px}
.brand{display:flex;align-items:center;gap:10px;flex:none}
.brand img.mark{height:38px;width:auto}
.brand img.word{height:23px;width:auto}
.nav{display:flex;gap:24px;margin-left:auto;font-family:var(--gt-display);font-weight:500;font-size:15px;color:#c9d6e8}
.nav a{padding-block:6px;border-bottom:2px solid transparent}
.nav a:hover,.nav a[aria-current]{color:#fff}
.nav a[aria-current]{border-color:var(--gt-terva-300)}
.signin{font-family:var(--gt-display);font-weight:600;font-size:15px;color:#fff;white-space:nowrap}
.signin:hover{text-decoration:underline}
@media (max-width:980px){.nav{display:none}.top .signin{margin-left:auto}}
@media (max-width:440px){.top .btn{display:none}}

/* ---------- the window a screenshot sits in, and its frame switch ---------- */
.win{background:var(--gt-paper);border:1px solid #d5dccf;border-radius:14px;box-shadow:var(--gt-shadow);overflow:hidden;min-width:0}
.win-bar{display:flex;align-items:center;gap:7px;height:34px;padding-inline:14px;background:#fff;border-bottom:1px solid #dfe4da}
.win-bar i{width:10px;height:10px;border-radius:50%;background:#d7dcd2;flex:none}
.win-bar span{margin-left:8px;font-family:var(--gt-display);font-size:12px;color:var(--gt-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vp{position:relative;aspect-ratio:1200/750;max-width:100%;overflow:hidden;background:var(--gt-ground)}
.vp img{width:100%;height:auto;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.vp img.one{height:100%;object-fit:cover;object-position:top}
.frames{display:flex;gap:4px;padding:4px;background:var(--gt-ground);border:1px solid var(--gt-line);border-radius:12px;width:max-content;max-width:100%;overflow-x:auto}
.frames button{display:inline-flex;align-items:center;gap:7px;height:36px;padding-inline:13px;border-radius:9px;font-family:var(--gt-display);font-weight:600;font-size:13.5px;color:var(--gt-muted);white-space:nowrap}
.frames button svg{width:16px;height:16px;flex:none}
.frames button:hover{color:var(--gt-geo)}
.frames button[aria-pressed="true"]{background:var(--gt-paper);color:var(--gt-geo)}
.frames button[aria-pressed="true"] svg{color:var(--gt-terva)}
.cap{font-size:14px;color:var(--gt-muted);min-height:1.6em}
.viewer{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.tag{display:inline-flex;align-items:center;gap:9px;font-family:var(--gt-display);font-weight:600;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--gt-geo);background:var(--gt-geo-50);border-radius:999px;padding:6px 13px 6px 10px;width:max-content}
.tag svg{width:17px;height:17px;flex:none;color:var(--gt-terva)}

/* ---------- chips and lists ---------- */
.chips{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:0;padding:0}
.chips li{font-family:var(--gt-mono);font-size:12.5px;color:var(--gt-ink-2);background:var(--gt-ground);border:1px solid var(--gt-line);border-radius:7px;padding:3px 9px}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.ticks li{position:relative;padding-left:18px;font-size:15.5px;color:var(--gt-ink-2)}
.ticks li::before{content:"";position:absolute;left:1px;top:.62em;width:7px;height:7px;border-radius:2px;background:var(--gt-terva);transform:rotate(45deg)}
.ticks.out li::before{background:var(--gt-clay)}

/* ---------- icons of families and modules ---------- */
.ic{display:inline-grid;place-items:center;flex:none;border-radius:22%;overflow:hidden;background:#fff}
.ic img{width:100%;height:100%;object-fit:cover}
.ic.s28{width:28px;height:28px}.ic.s36{width:36px;height:36px}.ic.s44{width:44px;height:44px}.ic.s56{width:56px;height:56px}.ic.s72{width:72px;height:72px}.ic.s96{width:96px;height:96px}
.ic.real{}

/* ---------- footer ---------- */
footer{background:var(--gt-geo-900);color:#c6d2e3;padding-block:56px 30px}
footer .foot{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:36px}
footer .brand img.word{filter:brightness(0) invert(1)}
footer p{font-size:15px;line-height:1.6;margin-top:14px;max-width:34ch;color:#a9b8cc}
footer h4{color:#fff;font-size:13px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:12px}
footer ul{list-style:none;margin:0;padding:0;display:grid;gap:7px;font-size:15px}
footer ul a:hover{color:#fff}
footer .legal{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:42px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);font-size:13.5px;color:#8ea0b8}
@media (max-width:860px){footer .foot{grid-template-columns:1fr 1fr}footer .foot>div:first-child{grid-column:1/-1}}
@media (max-width:480px){footer .foot{grid-template-columns:1fr}}

/* ---------- toast (preview) ---------- */
.toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);background:var(--gt-geo-900);color:#fff;padding:12px 18px;border-radius:12px;font-size:14.5px;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:calc(100% - 32px)}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* footer links to the pages of the menu (2026-10-04) */
footer .flinks{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:16px;font-size:15px}
footer .flinks a{color:#dbe5f2}
footer .flinks a:hover{color:#fff;text-decoration:underline}

/* a thing that is not out yet — the phone apps (2026-10-14, user: the apps come about a month after the site): a small pill after its name */
.soon{display:inline-block;margin-left:7px;padding:1px 7px 2px;border-radius:999px;font-family:var(--gt-display);font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;line-height:1.5;vertical-align:middle;position:relative;top:-1px;color:var(--gt-terva-300);background:rgba(156,192,105,.16);border:1px solid rgba(156,192,105,.4);white-space:nowrap}
.tag .soon,.read .soon,.sec-light .soon{color:var(--gt-terva-600);background:var(--gt-terva-50);border-color:var(--gt-terva-300)}
.store-h{margin-top:26px;font-family:var(--gt-display);font-weight:600;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:#dbe5f2}
.store-h + .store{margin-top:10px}

/* the logo and the footer logo go to #top: the main block starts under the sticky bar, so it is scrolled to the bar's lower edge, which is the top of the page (2026-10-15, user: the home page came out cut at the top) */
main#top{scroll-margin-top:70px}
