/* ============================================================
   INSPATIA — Corporate site
   Official brand: deep teal #143642 + warm gold #EAA44E.
   Distinct from SurveyOne (black / blue / green).
   ============================================================ */

:root {
  /* Brand */
  --teal: #143642;          /* primary / ink */
  --teal-700: #1c4a5a;
  --teal-600: #245c70;
  --teal-500: #2f7189;
  --gold: #eaa44e;          /* accent (fills, on-dark, shapes) */
  --gold-deep: #b9791f;     /* accent for small text on light (contrast-safe) */
  --gold-tint: #fbeed9;
  --gold-tint-2: #f6dcb7;

  /* Neutrals — warm ivory ground to pair teal + gold */
  --ink: #143642;           /* headings */
  --ink-2: #2b3f47;         /* body */
  --ink-soft: #4a5c63;
  --muted: #6d7d82;
  --paper: #f6f5f1;
  --paper-2: #efeee7;
  --paper-3: #e7e5db;
  --line: #e0ddd2;
  --line-strong: #cbc8ba;
  --white: #ffffff;

  /* Dark sections use brand teal */
  --dark: #102b34;
  --dark-2: #173945;
  --dark-line: #2c525f;
  --dark-text: #e7eef0;
  --dark-muted: #9db4bb;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --maxw: 1160px;
  --shadow: 0 1px 2px rgba(20, 54, 66, 0.05), 0 8px 28px rgba(20, 54, 66, 0.08);
  --shadow-lg: 0 2px 4px rgba(20, 54, 66, 0.06), 0 20px 48px rgba(20, 54, 66, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Topo accent (kept ONLY for the CTA card) ---------- */
:root {
  --topo-dark:
    repeating-radial-gradient(circle at 14% 12%, transparent 0 28px, rgba(142, 212, 139, 0.06) 28px 29.5px),
    repeating-radial-gradient(circle at 90% 88%, transparent 0 34px, rgba(120, 196, 214, 0.05) 34px 35.5px);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }
h4 { font-size: 1.05rem; }

p { max-width: 68ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--paper); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 2rem;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: auto; }
.site-header .brand-logo { height: 30px; }
.brand-logo--light { display: none; }
/* Reversed (white) wordmark on the dark footer */
.site-footer .brand-logo--dark { display: none; }
.site-footer .brand-logo--light { display: block; height: 34px; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--gold);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 0.78rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-primary { background: var(--gold); color: var(--teal); font-weight: 700; }
.btn-primary:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn-dark-outline { background: transparent; color: var(--dark-text); border-color: var(--dark-line); }
.btn-dark-outline:hover { border-color: var(--dark-text); color: var(--white); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 0.45rem 0.6rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--gold-tint) 0%, transparent 60%),
    var(--paper);
}
.hero .container { position: relative; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block;
}

.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }

.hero-sub {
  margin: 1.6rem 0 2.4rem; font-size: 1.16rem; color: var(--ink-soft); max-width: 58ch;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero-meta {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem;
  font-size: 0.9rem; color: var(--muted);
}
.hero-meta li { list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.8rem, 7vw, 6.2rem) 0; }
.section-alt { background-color: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { margin: 1.1rem 0 0.55rem; }
.card p { font-size: 0.97rem; color: var(--ink-soft); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--gold-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge svg { width: 23px; height: 23px; }

.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; font-weight: 600; font-size: 0.93rem;
}

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--gold-tint); color: var(--gold-deep);
  border-radius: 999px; padding: 0.28rem 0.75rem;
}

/* ---------- Feature split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .kicker { margin-bottom: 1rem; }
.split h2 { margin-bottom: 1.1rem; }
.split p + p { margin-top: 1rem; }
.split-body p { color: var(--ink-soft); }

.check-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-2); font-size: 0.98rem; }
.check-list svg { width: 19px; height: 19px; flex: none; margin-top: 0.2rem; color: var(--gold-deep); }

/* ---------- Panels (illustrative) ---------- */

.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper);
}
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.panel-bar i:first-child { background: var(--gold); }
.panel-bar span { margin-left: 0.5rem; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.panel-body { padding: 1.4rem; }

/* ---------- Stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  border-top: 1px solid var(--line); padding-top: 2.6rem;
}
.stat .num {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600; color: var(--ink); line-height: 1;
}
.stat .num b { color: var(--gold-deep); font-weight: 600; }
.stat .label { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- Values strip ---------- */

.values-strip {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.values-strip li {
  list-style: none; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.55rem 1.25rem;
  font-family: var(--serif); font-size: 1.02rem; color: var(--ink-2);
  background: var(--white);
}

/* ---------- Steps / timeline ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n {
  font-family: var(--serif); font-size: 2rem; color: var(--gold-deep);
  font-weight: 600; line-height: 1;
}
.step h3 { font-size: 1.08rem; margin: 0.8rem 0 0.4rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Quote / story ---------- */

.quote-band { background: var(--dark); color: var(--dark-text); }
.quote-band .kicker { color: var(--gold); }
.quote-band .kicker::before { background: var(--gold); }
.quote-band blockquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35; color: var(--white); max-width: 26ch; font-weight: 500;
}
.quote-band blockquote em { color: var(--gold); font-style: italic; }
.quote-band .attribution { margin-top: 1.6rem; color: var(--dark-muted); font-size: 0.95rem; }
.quote-band p { color: var(--dark-muted); }
.quote-band h2, .quote-band h3 { color: var(--white); }

/* ---------- Dark cards ---------- */

.dark-card {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
}
.dark-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.dark-card p { color: var(--dark-muted); font-size: 0.95rem; }
.dark-card .icon-badge { background: rgba(234, 164, 78, 0.18); color: var(--gold); margin-bottom: 1rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 320px at 15% 110%, rgba(234, 164, 78, 0.30) 0%, transparent 65%),
    var(--topo-dark),
    var(--dark);
  color: var(--dark-text);
  border-radius: 16px; padding: clamp(2.6rem, 5vw, 4.2rem);
  overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--dark-muted); margin-top: 0.9rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: flex-end; }

/* ---------- Product showcase ---------- */

.product-hero {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr;
}
.product-hero .ph-body { padding: clamp(1.8rem, 4vw, 3rem); }
.product-hero .ph-visual {
  background: var(--dark); position: relative; min-height: 320px;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}

/* ---------- Tables ---------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 600; width: 34%; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.spec-table td { color: var(--ink-2); }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans); font-size: 0.97rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 0.72rem 0.9rem; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
}
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Contact ---------- */

.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .icon-badge { width: 40px; height: 40px; flex: none; }
.contact-item h4 { margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { font-size: 0.96rem; }
.contact-item p { color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: var(--dark-muted); margin-top: clamp(3rem, 6vw, 5rem); }
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
}
.site-footer .brand { color: var(--dark-text); }
.site-footer .brand-word span { color: var(--gold); }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--dark-text); margin: 1.1rem 0 0.9rem; font-size: 1.05rem; }
.footer-about { font-size: 0.92rem; max-width: 40ch; }
.footer-col h4 {
  color: var(--white); font-family: var(--sans); font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--dark-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }
.footer-col li { font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--dark-line); padding: 1.4rem 0 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom ul { list-style: none; display: flex; gap: 1.5rem; }
.footer-bottom a { color: var(--dark-muted); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Page hero (interior) ---------- */

.page-hero {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(900px 380px at 90% -20%, var(--gold-tint) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 20ch; }
.page-hero .lede { margin-top: 1.3rem; font-size: 1.13rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.99rem; }
.prose ul { padding-left: 1.3rem; margin-top: 0.6rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .product-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.6rem 24px 1.2rem; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; width: 100%; border-bottom: none; font-size: 1.05rem; }
  .site-nav .btn { margin-top: 0.8rem; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid-4, .steps, .stats { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

/* ============================================================
   SurveyOne blend — used only on the SurveyOne (products) page.
   Borrows SurveyOne's dark + green identity, with SwiftPlot (blue)
   and GeoVault (green) module accents, tied back to INSPATIA gold.
   ============================================================ */

:root {
  --s1-ink: #2a2c2b;
  --s1-green: #8ed48b;
  --s1-green-2: #648663;
  --s1-green-deep: #156a51;   /* GeoVault */
  --s1-blue: #3e91ea;         /* SwiftPlot */
  --s1-dark: #0f1a17;
}

/* Dark SurveyOne hero */
.s1-hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(760px 360px at 88% -25%, rgba(142, 212, 139, 0.16), transparent 62%),
    radial-gradient(600px 320px at 5% 120%, rgba(62, 145, 234, 0.12), transparent 60%),
    linear-gradient(158deg, #16231f 0%, #0f1a17 58%, #0c1512 100%);
  color: var(--dark-text);
  border-bottom: 1px solid #23322d;
}
.s1-hero h1 { color: #fff; max-width: 18ch; }
.s1-hero .lede { color: #bcccc6; }
.s1-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); background: rgba(234, 164, 78, 0.12);
  border: 1px solid rgba(234, 164, 78, 0.3); border-radius: 999px;
  padding: 0.4rem 0.9rem; margin-bottom: 1.5rem;
}
.s1-lockup { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.s1-lockup img.s1-mark { height: 52px; width: auto; }
.s1-lockup img.s1-word { height: 30px; width: auto; }
.s1-hero .hero-meta { color: #8ea39d; }
.s1-hero .hero-meta li::before { background: var(--s1-green); }
.s1-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.28); }
.s1-hero .btn-outline:hover { border-color: #fff; }

/* Module colour scopes: override the accent tokens locally so kickers,
   icon badges, tags and checkmarks pick up the sub-brand colour. */
.theme-swift {
  --gold: var(--s1-blue);
  --gold-deep: #2568a8;
  --gold-tint: #e7f1fc;
  --gold-tint-2: #cee2f8;
  --teal: #235d97;
}
.theme-vault {
  --gold: #2aa079;
  --gold-deep: var(--s1-green-deep);
  --gold-tint: #e2f1eb;
  --gold-tint-2: #c7e4d8;
  --teal: #155744;
}
.module-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.module-tag.swift { color: #2568a8; background: #e7f1fc; }
.module-tag.vault { color: var(--s1-green-deep); background: #e2f1eb; }
.module-tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.module-tag.swift .dot { background: var(--s1-blue); }
.module-tag.vault .dot { background: var(--s1-green-deep); }

/* "Solutions inside SurveyOne" chips row */
.inside-note {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--muted);
}
.inside-note strong { color: var(--ink); }

/* ============================================================
   Globe graticule network — "connected positions on the earth".
   A section of a wireframe globe (lat/long grid) sits in the hero
   corner; a handful of nodes glow and link up with drawn lines.
   Injected by main.js into .hero (animated, light), .page-hero
   (static, light) and .s1-hero (animated, dark). Decorative only.
   ============================================================ */

.s1-hero .container { position: relative; }

.geo-net { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.geo-net svg {
  position: absolute; width: min(74vw, 880px); height: auto;
  right: -10%; top: -24%;
  -webkit-mask-image: radial-gradient(75% 75% at 55% 40%, #000 45%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 55% 40%, #000 45%, transparent 100%);
}
.page-hero .geo-net svg { width: min(60vw, 640px); right: -8%; top: -35%; }

.gn-line { fill: none; stroke: rgba(20, 54, 66, 0.10); stroke-width: 1; }
.gn-link {
  fill: none; stroke: var(--gold-deep); stroke-width: 1.3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  animation: gn-draw 9s ease-in-out infinite;
}
.gn-core { fill: var(--gold-deep); }
.gn-halo {
  fill: rgba(234, 164, 78, 0.4);
  transform-box: fill-box; transform-origin: center;
  animation: gn-pulse 4.2s ease-in-out infinite;
}

/* Dark (SurveyOne) variant */
.geo-dark .gn-line { stroke: rgba(142, 212, 139, 0.11); }
.geo-dark .gn-link { stroke: #8ed48b; }
.geo-dark .gn-core { fill: #8ed48b; }
.geo-dark .gn-halo { fill: rgba(142, 212, 139, 0.32); }

/* Static variant (interior page headers): grid + calm dots, no motion */
.geo-static .gn-link { animation: none; stroke-dashoffset: 0; opacity: 0.14; }
.geo-static .gn-halo { animation: none; opacity: 0.25; }

@keyframes gn-draw {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  12%  { opacity: 0.75; }
  48%  { stroke-dashoffset: 0; opacity: 0.75; }
  72%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes gn-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .gn-link { animation: none; stroke-dashoffset: 0; opacity: 0.14; }
  .gn-halo { animation: none; opacity: 0.25; }
}

/* ============================================================
   Globe placement variants — the same globe, seen from different
   angles: position + scale vary per section so it never repeats.
   ============================================================ */
.quote-band { position: relative; overflow: hidden; }
.quote-band .container { position: relative; }

.geo-pos-right svg { right: -10%; left: auto; top: -24%; bottom: auto; }
.geo-pos-left svg { left: -12%; right: auto; top: auto; bottom: -40%; }
.geo-pos-corner svg { right: -22%; left: auto; top: auto; bottom: -55%; }
.geo-size-lg svg { width: min(74vw, 880px); }
.geo-size-md svg { width: min(56vw, 620px); }
.geo-size-sm svg { width: min(44vw, 460px); }

/* ============================================================
   Products dropdown in the main nav
   ============================================================ */
.nav-group { position: relative; display: flex; align-items: center; gap: 0.25rem; }
.nav-group > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-group .caret { width: 12px; height: 12px; color: var(--ink-soft); transition: transform 0.15s ease; }
.nav-drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 0.5rem; min-width: 190px;
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 120;
}
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-group:hover .caret { transform: rotate(180deg); }
.nav-drop a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem; border-radius: 7px; border-bottom: none !important;
  font-size: 0.93rem; color: var(--ink-2) !important; width: 100%;
}
.nav-drop a:hover { background: var(--paper-2); }
.nav-drop .drop-mark { width: 22px; height: 22px; flex: none; }
.nav-drop .drop-sub { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 1px; }

/* ============================================================
   App screenshot frames
   ============================================================ */
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #1c1e1d; }
.shot img { width: 100%; display: block; }
.shot-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem; background: #232524; border-bottom: 1px solid #313433; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4a4d4c; }
.shot-bar i:nth-child(1) { background: #e0655a; } .shot-bar i:nth-child(2) { background: #e0b04e; } .shot-bar i:nth-child(3) { background: #6cbf6a; }
.shot-bar .shot-title { margin-left: 0.4rem; font-size: 0.76rem; color: #9aa39e; letter-spacing: 0.06em; font-weight: 600; }
.shot-bar .shot-url {
  margin: 0 auto; background: #191b1a; border: 1px solid #313433; color: #9aa39e;
  font-size: 0.76rem; border-radius: 999px; padding: 0.22rem 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.shot-bar .shot-url svg { width: 11px; height: 11px; color: #6cbf6a; }
.shot-caption { margin-top: 0.8rem; font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   SurveyOne page — full dark mode (body.page-s1)
   Fits SurveyOne's own theme: near-black greens, #8ed48b accent.
   ============================================================ */
.page-s1 { background: #0f1a17; color: #bcccc6; }
.page-s1 .site-header { background: rgba(15, 26, 23, 0.97); border-bottom-color: #23322d; }
.page-s1 .site-header .brand-logo--dark { display: none; }
.page-s1 .site-header .brand-logo--light { display: block; height: 30px; }
.page-s1 .site-nav a { color: #9db3ab; }
.page-s1 .site-nav a:hover { color: #fff; }
.page-s1 .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #8ed48b; }
.page-s1 .nav-toggle { color: #e7efe9; border-color: #2c3d37; }
.page-s1 .nav-drop { background: #16231f; border-color: #23322d; }
.page-s1 .nav-drop a { color: #bcccc6 !important; }
.page-s1 .nav-drop a:hover { background: #1c2b26; }
.page-s1 .nav-drop .drop-sub { color: #7d938a; }
.page-s1 .site-nav .btn-primary { background: #8ed48b; color: #12211c; }
.page-s1 .site-nav .btn-primary:hover { background: #a5e2a2; color: #12211c; }

.page-s1 h1, .page-s1 h2, .page-s1 h3, .page-s1 h4 { color: #f2f7f3; }
.page-s1 p { color: #a9bcb4; }
.page-s1 .kicker { color: #8ed48b; }
.page-s1 .kicker::before { background: #8ed48b; }
.page-s1 .section-head p { color: #a9bcb4; }
.page-s1 .section-alt { background: #12211c; border-color: #23322d; }
.page-s1 .s1-hero { border-bottom-color: #23322d; }

.page-s1 .card {
  background: #16231f; border-color: #23322d; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.page-s1 .card:hover { border-color: #2f423b; }
.page-s1 .card p { color: #9db3ab; }
.page-s1 .icon-badge { background: rgba(142, 212, 139, 0.12); color: #8ed48b; }
.page-s1 .tag { background: rgba(142, 212, 139, 0.14); color: #8ed48b; }
.page-s1 .card-link { color: #8ed48b; }
.page-s1 .card-link:hover { color: #c4ecc2; }
.page-s1 .check-list li { color: #bcccc6; }
.page-s1 .check-list svg { color: #8ed48b; }
.page-s1 .step { background: #16231f; border-color: #23322d; }
.page-s1 .step .n { color: #8ed48b; }
.page-s1 .step p { color: #9db3ab; }
.page-s1 .spec-table th { color: #7d938a; }
.page-s1 .spec-table td { color: #cfdcd5; }
.page-s1 .spec-table th, .page-s1 .spec-table td { border-bottom-color: #23322d; }
.page-s1 .btn-primary { background: #8ed48b; color: #12211c; }
.page-s1 .btn-primary:hover { background: #a5e2a2; color: #12211c; }
.page-s1 .btn-outline { color: #e7efe9; border-color: #2f423b; }
.page-s1 .btn-outline:hover { border-color: #e7efe9; color: #fff; }
.page-s1 .shot { border-color: #23322d; }

/* Module scopes on dark: recolor to hold up on the dark ground */
.page-s1 .theme-swift .icon-badge { background: rgba(62, 145, 234, 0.14); color: #7db6f2; }
.page-s1 .theme-swift .card-link { color: #7db6f2; }
.page-s1 .module-tag.swift { color: #7db6f2; background: rgba(62, 145, 234, 0.14); }
.page-s1 .theme-vault .icon-badge { background: rgba(42, 160, 121, 0.16); color: #59c99f; }
.page-s1 .theme-vault .card-link { color: #59c99f; }
.page-s1 .module-tag.vault { color: #59c99f; background: rgba(42, 160, 121, 0.16); }

.page-s1 .quote-band { background: #0b1513; }
.page-s1 .dark-card { background: #16231f; border-color: #23322d; }
.page-s1 .cta-band { background: radial-gradient(700px 320px at 15% 110%, rgba(142, 212, 139, 0.16) 0%, transparent 65%), var(--topo-dark), #0b1513; }
.page-s1 .cta-band .kicker { color: #8ed48b; }
.page-s1 .form-note { color: #7d938a; }
.page-s1 .geo-net .gn-line { stroke: rgba(142, 212, 139, 0.11); }
.page-s1 .geo-net .gn-link { stroke: #8ed48b; }
.page-s1 .geo-net .gn-core { fill: #8ed48b; }
.page-s1 .geo-net .gn-halo { fill: rgba(142, 212, 139, 0.32); }

@media (max-width: 900px) {
  .page-s1 .site-nav { background: #0f1a17; border-bottom-color: #23322d; }
  .nav-group { flex-wrap: wrap; }
  .nav-drop {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: transparent; padding: 0 0 0 1.2rem; min-width: 0; width: 100%;
  }
  .nav-group .caret { display: none; }
}

/* Dark form fields for SurveyOne pages */
.page-s1 .form-field label { color: #cfdcd5; }
.page-s1 .form-field input, .page-s1 .form-field select, .page-s1 .form-field textarea {
  background: #10201b; border-color: #2c3d37; color: #e7efe9;
}
.page-s1 .form-field input:focus, .page-s1 .form-field select:focus, .page-s1 .form-field textarea:focus {
  outline-color: #8ed48b; border-color: #8ed48b;
}
.page-s1 #dl-error { color: #ff9d8f !important; }

/* Mobile globe placement: offsets in vw track the globe's own size, so a
   readable arc always stays inside the section instead of drifting offscreen. */
@media (max-width: 900px) {
  .geo-net svg,
  .geo-size-lg svg, .geo-size-md svg, .geo-size-sm svg { width: 135vw; }
  .geo-pos-right svg { right: -45vw; left: auto; top: -38vw; bottom: auto; }
  .geo-pos-left svg { left: -55vw; right: auto; top: auto; bottom: -55vw; }
  .geo-pos-corner svg { right: -60vw; left: auto; top: auto; bottom: -65vw; }
  .page-hero .geo-net svg { width: 120vw; left: auto; right: -50vw; top: -40vw; bottom: auto; }
}

/* SurveyOne hero refinements: tighter headline, dark mark with a green glow */
.s1-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.s1-lockup { position: relative; }
.s1-lockup::before {
  content: ""; position: absolute; left: -30px; top: 50%; transform: translateY(-50%);
  width: 130px; height: 130px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(142, 212, 139, 0.5) 0%, rgba(142, 212, 139, 0.14) 45%, transparent 72%);
  filter: blur(8px);
}
.s1-lockup img.s1-mark {
  position: relative;
  filter: drop-shadow(0 0 16px rgba(142, 212, 139, 0.55));
}
.s1-lockup img.s1-word { position: relative; }
