/* Horizontal layout for role/edition in signup modal */
.form-row-horizontal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.form-row-horizontal .form-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 640px) {
  .form-row-horizontal {
    flex-direction: column;
    gap: 12px;
  }
}

/* Custom select/option styles for modal fields */
.form-select {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(198,162,75,0.16);
}
.form-select option {
  background: var(--bg-2);
  color: var(--text);
}
body.light .form-select, body.light .form-select option {
  background: #fff;
  color: #181412;
}
.form-select option:checked, .form-select option:hover, .form-select:focus option:checked {
  background: rgba(198,162,75,0.12) !important;
  color: var(--brand) !important;
  backdrop-filter: blur(2.5px);
}
/* Force consistent nav-inner padding and nav-links font size across all pages */
.nav-inner {
  padding: 0 var(--site-gutter) !important;
}
.nav-links a {
  font-size: 14px !important;
}
/* Ensure all nav bars use the same font and size as index */
.nav, .nav-logo, .nav-links, .nav-links a {
  font-family: var(--font) !important;
  font-size: 14px !important;
}
.nav-logo {
  font-size: 16px !important;
  font-weight: 550;
  letter-spacing: -0.01em;
}
/* Fix select color for modal fields in light theme */
body.light .modal-field select,
body.light .modal-field option {
  color: var(--text) !important;
  background: var(--bg-3);
}
.team-photo-emmanuel {
  object-position: center 40%;
  object-fit: cover;
  scale: 1.18;
}

.team-view-all:hover,
.team-view-all:hover .ph {
  color: var(--brand) !important;
}

.team-photo-aaron,
.team-photo-harry {
  object-position: center 35%;
}

.team-photo-bismark {
  transform: scale(1.5) translateX(40px) translateY(-100px);
  transform-origin: center top;
  filter: grayscale(100%) !important;
}

.team-card:hover .team-photo-bismark {
  transform: scale(1.5) translateX(40px) translateY(-100px);
  filter: grayscale(100%) !important;
}

.team-photo-emmanuel {
  filter: grayscale(100%) !important;
}

.team-card:hover .team-photo-emmanuel {
  filter: grayscale(100%) !important;
}

/* ── Contact Page Redesign ─────────────────────────────────────────────── */
.contact-main {
  --contact-page-bg: #1d1815;
  --contact-card-bg: #14110f;
  --contact-card-text: #f1e8dc;
  --contact-title-color: #fff7ef;
  --contact-copy-color: rgba(241, 232, 220, 0.72);
  --contact-label-color: rgba(241, 232, 220, 0.46);
  --contact-link-color: #f3ede3;
  --contact-card-border: rgba(255, 255, 255, 0.06);
  --contact-card-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --contact-art-top-fill: rgba(255, 247, 235, 0.12);
  --contact-art-top-stroke: rgba(255, 247, 235, 0.32);
  --contact-art-left-fill: rgba(255, 247, 235, 0.07);
  --contact-art-left-stroke: rgba(255, 247, 235, 0.28);
  --contact-art-right-fill: rgba(255, 247, 235, 0.04);
  --contact-art-right-stroke: rgba(255, 247, 235, 0.24);
  min-height: 100vh;
  background: var(--contact-page-bg);
  padding: 42px var(--site-gutter) 60px;
}

.contact-card {
  width: min(100%, 1080px);
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  background: var(--contact-card-bg);
  color: var(--contact-card-text);
  border-radius: 2px;
  border: 1px solid var(--contact-card-border);
  box-shadow: var(--contact-card-shadow);
  padding: 38px 30px 28px;
  display: flex;
  flex-direction: column;
}

.contact-link-row a {
  transition: opacity 0.2s ease;
}

.contact-link-row a:hover,
.contact-detail a:hover {
  opacity: 0.66;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(270px, 1.02fr) minmax(360px, 1.38fr);
  gap: 52px 88px;
  margin-top: clamp(16px, 3vw, 32px);
}

.contact-copy {
  padding-top: 14px;
}

.contact-title {
  font-family: var(--font);
  font-size: clamp(56px, 7.2vw, 82px);
  line-height: 0.92;
  font-weight: 270;
  letter-spacing: -0.075em;
  color: var(--contact-title-color);
}

.contact-intro {
  max-width: 340px;
  margin-top: 34px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--contact-copy-color);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 48px;
  align-content: start;
}

.contact-detail {
  min-width: 0;
}

.contact-label {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--contact-label-color);
  font-weight: 400;
  font-family: var(--mono-font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-line {
  display: block;
  color: var(--contact-link-color);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 560;
  font-family: var(--mono-font);
}

.contact-detail a.contact-line {
  text-decoration: none;
}

.contact-footer-row {
  margin-top: auto;
  padding-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(420px, 1.22fr);
  gap: 36px 52px;
  align-items: end;
}

.contact-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  align-self: end;
  padding-bottom: 10px;
  font-size: 14px;
  color: var(--contact-link-color);
  font-family: var(--mono-font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-art-panel {
  position: relative;
  min-height: 258px;
  background:
    radial-gradient(circle at 18% 82%, rgba(230, 166, 96, 0.18), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(255, 245, 230, 0.08), transparent 24%),
    linear-gradient(135deg, #5b3d2d 0%, #372921 36%, #211914 72%, #120f0d 100%);
  overflow: hidden;
}

.contact-art-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.08), transparent 30%),
    linear-gradient(0deg, rgba(5, 4, 4, 0.24), transparent 42%);
}

.contact-art-panel::after {
  content: "";
  position: absolute;
  inset: auto 6% -24% auto;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 181, 126, 0.26) 0%, rgba(226, 181, 126, 0) 72%);
  filter: blur(10px);
}

.contact-art-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
}

.contact-card .contact-art-panel .footer-geo-mark {
  width: min(560px, 94%);
  margin: 0;
  filter: drop-shadow(0 28px 38px rgba(22, 14, 10, 0.2));
}

.contact-card .contact-art-panel .footer-geo-mark .geo-top {
  fill: var(--contact-art-top-fill);
  stroke: var(--contact-art-top-stroke);
}

.contact-card .contact-art-panel .footer-geo-mark .geo-left {
  fill: var(--contact-art-left-fill);
  stroke: var(--contact-art-left-stroke);
}

.contact-card .contact-art-panel .footer-geo-mark .geo-right {
  fill: var(--contact-art-right-fill);
  stroke: var(--contact-art-right-stroke);
}

body.light .contact-main {
  --contact-page-bg: #4d4339;
  --contact-card-bg: #f5f1eb;
  --contact-card-text: #171311;
  --contact-title-color: #100d0c;
  --contact-copy-color: rgba(23, 19, 17, 0.84);
  --contact-label-color: rgba(23, 19, 17, 0.48);
  --contact-link-color: #181412;
  --contact-card-border: rgba(30, 22, 18, 0.08);
  --contact-card-shadow: none;
  --contact-art-top-fill: rgba(255, 244, 228, 0.1);
  --contact-art-top-stroke: rgba(255, 244, 228, 0.32);
  --contact-art-left-fill: rgba(255, 244, 228, 0.06);
  --contact-art-left-stroke: rgba(255, 244, 228, 0.27);
  --contact-art-right-fill: rgba(255, 244, 228, 0.04);
  --contact-art-right-stroke: rgba(255, 244, 228, 0.23);
}

body.light .contact-card {
  border-color: rgba(30, 22, 18, 0.03);
}

body.light .contact-art-panel {
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 220, 173, 0.32), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #c79562 0%, #9b643e 33%, #5f4333 72%, #2e231d 100%);
}

body.light .contact-art-panel::before {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.12), transparent 30%),
    linear-gradient(0deg, rgba(24, 17, 13, 0.22), transparent 42%);
}

body.light .contact-art-panel::after {
  background: radial-gradient(circle, rgba(255, 221, 171, 0.34) 0%, rgba(255, 221, 171, 0) 72%);
}

@media (max-width: 980px) {
  .contact-main {
    padding: 28px 20px 44px;
  }

  .contact-card {
    min-height: auto;
    padding: 28px 20px 24px;
  }

  .contact-content,
  .contact-footer-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-footer-row {
    padding-top: 52px;
  }

  .contact-art-panel {
    min-height: 232px;
  }
}

@media (max-width: 680px) {
  .contact-content {
    margin-top: 34px;
    gap: 28px;
  }

  .contact-title {
    font-size: clamp(44px, 16vw, 64px);
  }

  .contact-intro {
    margin-top: 20px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .contact-link-row {
    gap: 14px 26px;
    padding-bottom: 0;
  }

  .contact-art-panel {
    min-height: 190px;
  }

  .contact-art-stage {
    padding: 20px;
  }
}

/* ── Fonts ───────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Matter";
  src: url("matter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paper Mono";
  src: url("paper-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --bg:            #181818;
  --bg-1:          #1c1b18;
  --bg-2:          #24211d;
  --bg-3:          #302922;
  --border:        rgba(200, 193, 174, 0.10);
  --border-strong: rgba(198, 162, 75, 0.30);
  --text:          #F5F1E7;
  --text-2:        rgba(245, 241, 231, 0.74);
  --text-3:        rgba(200, 193, 174, 0.62);
  --brand:         #C6A24B;
  --brand-dim:     rgba(198,162,75,0.12);
  --brand-strong:  #D3B85F;
  --amber:         #D3B85F;
  --green:         #AAB68A;
  --moss:          #87976B;
  --understory:    #454C3D;
  --bronze:        #8E6D49;

  --font:          "Matter", system-ui, -apple-system, sans-serif;
  --mono-font:     "Paper Mono", "Maple Mono", monospace;

  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-pill:   999px;

  --shadow:        0 1px 3px rgba(0, 0, 0, 0.36);
  --shadow-md:     0 14px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg:     0 24px 64px rgba(0, 0, 0, 0.46);
  --site-max:      1321px;
  --site-gutter:   120px;
}

@media (max-width: 1100px) {
  :root { --site-gutter: 48px; }
}
@media (max-width: 640px) {
  :root { --site-gutter: 20px; }
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding-top: 68px;
  overflow-x: hidden;
  max-width: var(--site-max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* ── Fade-up animation ───────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0s);
}
.fade-up.in-view {
  opacity: 1;
  transform: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: #181818;
  font-size: 14px;
  font-weight: 480;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(211,184,95,0.28);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(198,162,75,0.16);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 12px 28px rgba(198,162,75,0.22);
  transform: translateY(-1px);
}
.btn-primary:focus-visible,
.btn-download:focus-visible,
.btn-donate:focus-visible,
.btn-ghost:focus-visible,
.btn-theme-toggle:focus-visible,
.nav-menu-btn:focus-visible {
  outline: 2px solid rgba(198,162,75,0.55);
  outline-offset: 3px;
}
.btn-primary.btn-large {
  font-size: 18px;
  padding: 16px 38px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  border: none;
  background: none;
  border-radius: 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  color: var(--text);
  transform: none;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 480;
  color: var(--text);
  border: 1px solid rgba(198,162,75,0.32);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(69,76,61,0.14), rgba(69,76,61,0.06));
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-download:hover {
  background: rgba(198,162,75,0.08);
  border-color: rgba(211,184,95,0.42);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-donate:hover {
  border-color: rgba(135,151,107,0.38);
  color: var(--green);
}
.btn-donate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.btn-donate-icon.icon-fallback {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.btn-download i,
.btn-ghost i,
.tb-btn i {
  font-size: 12px;
  line-height: 1;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(24, 24, 24, 0.82);
  border-bottom: 1px solid rgba(200,193,174,0.08);
}

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
    max-width: var(--site-max);
    margin: 0px auto;
  padding: 0 var(--site-gutter);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo svg { display: block; flex-shrink: 0; }
.navbar-logo-svg { width: 22px; height: 22px; }
.nav-logo,
.nav-logo-lockup,
.footer-logo-link,
.footer-logo-lockup,
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.footer-logo-link,
.footer-logo-lockup {
  text-decoration: none;
}

.brand-mark,
.logo-lockup-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
}
.brand-logo-icon,
.logo-lockup-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.brand-logo-dark,
.logo-lockup-dark {
  display: block;
}
.brand-logo-light,
.logo-lockup-light {
  display: none;
}
.brand-wordmark,
.logo-lockup-wordmark {
  font-size: 16px;
  font-weight: 530;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo:hover .brand-wordmark {
  color: var(--brand-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active {
  font-weight: 550;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
}

/* KNUST badge */
.knust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
}
.knust-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.knust-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.knust-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.knust-dept {
  font-size: 10.5px;
  color: var(--text-3);
  line-height: 1.4;
  max-width: 220px;
}

/* Footer donate link */
.footer-donate-link {
  color: var(--brand) !important;
}
.footer-donate-link:hover {
  opacity: 0.8;
}

.nav-cta {
  flex-shrink: 0;
}

/* ── Mobile nav chevron button ───────────────────────────────────────────── */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-1);
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.nav-menu-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.nav-chevron {
  display: block;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-menu-btn.is-open .nav-chevron {
  transform: rotate(180deg);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 104px 0 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(198,162,75,0.18), transparent 28%),
    radial-gradient(circle at 14% 0%, rgba(135,151,107,0.16), transparent 28%),
    linear-gradient(180deg, #1b1a18 0%, #151412 48%, #10100f 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.025) 0,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity: 0.34;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 52px;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter) 94px;
}

.hero-text {
  text-align: left;
  max-width: 920px;
  margin: 0;
}

/* Hero title frame — wraps h1 + accent + figma animation */
.hero-title-frame {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 20px;
}

.hero-title-frame::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
  border: 1.5px solid rgba(198,162,75,0.72);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  animation: hero-select-box-visibility 6s infinite;
}

.hero-h1 {
  font-size: clamp(44px, 5.8vw, 68px);
  font-weight: 270;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  white-space: normal;
}

.hero-h1-muted {
  opacity: 0.44;
}

/* "run PLS analysis in minutes" — dimmed accent line */
.hero-accent {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 270;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0.32;
  margin: 0;
}

.hero-body-brand {
  color: #ffffff;
  opacity: 0.32;
}

/* Figma selection animation SVG overlay */
.figma-sel-anim {
  position: absolute;
  inset: -14px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 28px);
  pointer-events: none;
  overflow: visible;
}

@keyframes hero-select-box-visibility {
  0%, 13%, 84%, 100% {
    opacity: 0;
  }
  16%, 80% {
    opacity: 0.95;
  }
}

.hero-sub {
  font-size: 18px;
  font-weight: 360;
  color: var(--text-2);
  margin-bottom: 16px;
  margin-top: 4px;
  line-height: 1.4;
}

.hero-body {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 0 32px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.hero-proof-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(245, 241, 231, 0.04);
  color: rgba(245, 241, 231, 0.9);
  font-family: "Paper Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Hero image card — app window mockup */
.hero-image-card {
  border: 1px solid rgba(198,162,75,0.20);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(37,33,29,0.98), rgba(24,24,24,0.98));
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(135,151,107,0.06);
  width: 100%;
}

.app-window {
  display: flex;
  flex-direction: column;
  height: 560px;
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 40px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.app-toolbar-row {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px 8px;
  height: 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tb-btn {
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 10.5px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.tb-sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  margin: 0 3px;
  flex-shrink: 0;
}
.tb-btn-calc {
  background: var(--brand);
  color: #fff;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 480;
}

/* Grouped Layout Styles for Sidebars and Results */
.app-sidebar,
.app-sidebar-vars,
.app-results {
  flex-shrink: 0;
  background: var(--bg-2);
  overflow: hidden;
}

.app-sidebar-vars {
  width: 136px;
  border-right: 1px solid var(--border);
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
}
.vars-header {
  padding: 0 10px 7px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.vars-dataset-name {
  font-size: 10.5px;
  color: var(--text);
  font-weight: 480;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}
.vars-meta {
  font-size: 8.5px;
  color: var(--text-3);
  font-family: var(--mono-font);
}
.vars-search {
  margin: 0 7px 5px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 9px;
  color: var(--text-3);
}

/* Grouped Label Typography */
.sidebar-label,
.sidebar-section-label,
.results-label,
.results-section,
.vars-list-label {
  font-weight: 480;
  text-transform: uppercase;
  color: var(--text-3);
}

.sidebar-label { font-size: 10px; letter-spacing: 0.08em; padding: 0 14px 8px; }
.sidebar-section-label { font-size: 10px; letter-spacing: 0.08em; padding: 12px 14px 6px; }
.results-label { font-size: 10px; letter-spacing: 0.08em; padding: 0 12px 10px; }
.results-section { font-size: 9px; letter-spacing: 0.07em; padding: 8px 12px 4px; border-top: 1px solid var(--border); }
.vars-list-label { font-size: 8.5px; letter-spacing: 0.08em; padding: 2px 10px 3px; }

.var-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  font-size: 9.5px;
  font-family: var(--mono-font);
  color: var(--text-2);
}
.var-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.traffic-lights {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.tl-red    { background: #FF5F57; }
.tl-yellow { background: #FFBD2E; }
.tl-green  { background: #28CA41; }

.app-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  font-family: var(--mono-font);
  flex: 1;
  text-align: center;
}
.app-title-spacer { width: 60px; }

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.app-sidebar {
  width: 160px;
  border-right: 1px solid var(--border);
  padding: 16px 0;
}

.sidebar-item {
  font-size: 12px;
  color: var(--text-2);
  padding: 6px 14px;
  cursor: default;
  border-radius: 6px;
  margin: 1px 6px;
  transition: background 0.15s;
}
.sidebar-item:hover {
  background: var(--bg-3);
}
.sidebar-item-active {
  background: var(--brand-dim);
  color: var(--text);
}

.app-canvas {
  flex: 1;
  overflow: hidden;
  background: var(--bg-1);
}

.canvas-svg {
  width: 100%;
  height: 100%;
}

.app-results {
  width: 160px;
  border-left: 1px solid var(--border);
  padding: 14px 0;
}

.results-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 12px;
}

.results-path {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--mono-font);
}

.results-val {
  font-size: 10px;
  font-weight: 480;
  color: var(--brand);
  font-family: var(--mono-font);
}

.results-green {
  color: var(--green);
}

/* Social proof */
.social-proof {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.social-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.social-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.uni-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 360;
  color: var(--text-2);
  background: var(--bg-1);
  white-space: nowrap;
}

/* ── Canvas bounding boxes ──────────────────────────────────────────────── */
.section-corners {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 64px), var(--site-max));
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}
.section-corners::before,
.section-corners::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.section-corners::before {
  inset: 28px 10px;
  border: 1px solid rgba(245,241,231,0.05);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(135,151,107,0.08);
}
.section-corners::after {
  inset: 42px 22px;
  border: 1px solid rgba(198,162,75,0.10);
  border-radius: 2px;
}
.corner {
  position: absolute;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 12px rgba(198,162,75,0.10));
}
.corner::before,
.corner::after {
  content: "";
  position: absolute;
}
.corner::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(198,162,75,0.72) 0%, rgba(198,162,75,0.18) 62%, rgba(198,162,75,0) 100%);
}
.corner::after {
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(135,151,107,0.72) 0%, rgba(135,151,107,0.18) 62%, rgba(135,151,107,0) 100%);
}
.corner.tl { top: 28px; left: 10px; }
.corner.tr { top: 28px; right: 10px; transform: scaleX(-1); }
.corner.bl { bottom: 28px; left: 10px; transform: scaleY(-1); }
.corner.br { bottom: 28px; right: 10px; transform: scale(-1); }

/* ── Feature Intro ───────────────────────────────────────────────────────── */
.feature-intro {
  padding: 100px 0 60px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.feature-intro-text {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.feature-intro-text h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 270;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 20px;
}

.body-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
}

/* App icons row */
.app-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.app-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-icon-item span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

.app-icon-badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.app-icon-badge svg {
  width: 38px;
  height: 38px;
}
.app-icon-badge:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 20px rgba(255,255,255,0.04);
}

.app-icon-connector {
  width: 24px;
  height: 1px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 26px;
}

.feature-intro-image {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow-md);
}

.intro-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── About + Services ───────────────────────────────────────────────────── */
.about-services {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 92px 0 84px;
  overflow: hidden;
}

.about-services-head {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.about-services-head h2 {
  margin-top: 12px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--text);
}

.about-services-head .body-text {
  color: var(--text-2);
  max-width: 760px;
  margin: 0 auto;
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(29,28,25,0.98), rgba(24,24,24,0.98));
  border: 1px solid rgba(198,162,75,0.14);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  min-height: 170px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

.about-service-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -66px;
  right: -58px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(198,162,75,0.22) 0%, rgba(198,162,75,0.10) 34%, rgba(198,162,75,0) 74%),
    radial-gradient(circle at 68% 62%, rgba(135,151,107,0.18) 0%, rgba(135,151,107,0) 72%);
  filter: blur(14px);
  opacity: 0.65;
  pointer-events: none;
  z-index: -1;
}

.about-service-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(198,162,75,0.34);
  color: var(--brand-strong);
  background:
    linear-gradient(150deg, rgba(198,162,75,0.22) 0%, rgba(135,151,107,0.10) 54%, rgba(198,162,75,0.02) 100%);
  box-shadow:
    0 0 0 1px rgba(198,162,75,0.08) inset,
    0 8px 22px rgba(198,162,75,0.16);
}

.about-service-icon i {
  font-size: 20px;
  line-height: 1;
}

.about-service-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 480;
  letter-spacing: -0.01em;
  color: var(--text);
}

.about-service-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-2);
}

body.light .about-services {
  background: transparent;
}

body.light .about-service-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}

body.light .about-service-card::before {
  display: none;
}

body.light .about-service-icon {
  border-color: rgba(135,151,107,0.45);
  color: var(--moss);
  background: rgba(170,182,138,0.18);
  box-shadow: 0 0 0 1px rgba(170,182,138,0.14) inset;
}

@media (max-width: 900px) {
  .about-services {
    padding: 72px 0 68px;
  }

  .about-services-grid {
    grid-template-columns: 1fr;
  }

  .about-service-card {
    min-height: 0;
  }
}

/* ── Feature Splits ──────────────────────────────────────────────────────── */
.features-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--site-max);
  padding: 80px var(--site-gutter);
  border-top: 1px solid var(--border);
}

.feature-split:first-child {
  border-top: 1px solid var(--border);
}

.feature-split-reverse {
  direction: rtl;
}
.feature-split-reverse > * {
  direction: ltr;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 480;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.74);
  background: linear-gradient(180deg, rgba(69,76,61,0.22), rgba(69,76,61,0.08));
  border-color: rgba(135,151,107,0.22);
  font-family: var(--mono-font);
}
body.light .feature-tag {
  color: #344033;
  background: rgba(170,182,138,0.16);
  border-color: rgba(135,151,107,0.24);
}

.feature-content h3 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 270;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
}

.feature-content h4 {
  font-size: 20px;
  font-weight: 360;
  line-height: 1.35;
  color: var(--text-2);
}

.feature-content .body-text {
  font-size: 17px;
  color: var(--text-2);
}

.feature-mockup {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.feature-mockup svg {
  width: 100%;
  height: 100%;
}

/* ── Wytham Accent Remap For Embedded SVG Demos ─────────────────────────── */
.hero-image-card svg [fill="#83C3FF"],
.feature-intro-image svg [fill="#83C3FF"],
.feature-mockup svg [fill="#83C3FF"] {
  fill: var(--brand) !important;
}
.hero-image-card svg [fill="#ECBA82"],
.feature-intro-image svg [fill="#ECBA82"],
.feature-mockup svg [fill="#ECBA82"] {
  fill: var(--brand-strong) !important;
}
.hero-image-card svg [fill="#A78BFA"],
.feature-intro-image svg [fill="#A78BFA"],
.feature-mockup svg [fill="#A78BFA"] {
  fill: var(--moss) !important;
}
.hero-image-card svg [fill="#32D583"],
.feature-intro-image svg [fill="#32D583"],
.feature-mockup svg [fill="#32D583"] {
  fill: var(--green) !important;
}
.hero-image-card svg [stroke="#83C3FF"],
.feature-intro-image svg [stroke="#83C3FF"],
.feature-mockup svg [stroke="#83C3FF"] {
  stroke: var(--brand) !important;
}
.hero-image-card svg [stroke="#ECBA82"],
.feature-intro-image svg [stroke="#ECBA82"],
.feature-mockup svg [stroke="#ECBA82"] {
  stroke: var(--brand-strong) !important;
}
.hero-image-card svg [stroke="#A78BFA"],
.feature-intro-image svg [stroke="#A78BFA"],
.feature-mockup svg [stroke="#A78BFA"] {
  stroke: var(--moss) !important;
}
.hero-image-card svg [stroke="#32D583"],
.feature-intro-image svg [stroke="#32D583"],
.feature-mockup svg [stroke="#32D583"] {
  stroke: var(--green) !important;
}
.hero-image-card svg [fill*="rgba(131,195,255"],
.feature-intro-image svg [fill*="rgba(131,195,255"],
.feature-mockup svg [fill*="rgba(131,195,255"] {
  fill: rgba(198,162,75,0.12) !important;
}
.hero-image-card svg [fill*="rgba(236,186,130"],
.feature-intro-image svg [fill*="rgba(236,186,130"],
.feature-mockup svg [fill*="rgba(236,186,130"] {
  fill: rgba(211,184,95,0.12) !important;
}
.hero-image-card svg [fill*="rgba(167,139,250"],
.feature-intro-image svg [fill*="rgba(167,139,250"],
.feature-mockup svg [fill*="rgba(167,139,250"] {
  fill: rgba(135,151,107,0.12) !important;
}
.hero-image-card svg [fill*="rgba(50,213,131"],
.feature-intro-image svg [fill*="rgba(50,213,131"],
.feature-mockup svg [fill*="rgba(50,213,131"] {
  fill: rgba(170,182,138,0.12) !important;
}
.hero-image-card svg [stroke*="rgba(131,195,255"],
.feature-intro-image svg [stroke*="rgba(131,195,255"],
.feature-mockup svg [stroke*="rgba(131,195,255"] {
  stroke: rgba(198,162,75,0.28) !important;
}
.hero-image-card svg [stroke*="rgba(236,186,130"],
.feature-intro-image svg [stroke*="rgba(236,186,130"],
.feature-mockup svg [stroke*="rgba(236,186,130"] {
  stroke: rgba(211,184,95,0.28) !important;
}
.hero-image-card svg [stroke*="rgba(167,139,250"],
.feature-intro-image svg [stroke*="rgba(167,139,250"],
.feature-mockup svg [stroke*="rgba(167,139,250"] {
  stroke: rgba(135,151,107,0.28) !important;
}
.hero-image-card svg [stroke*="rgba(50,213,131"],
.feature-intro-image svg [stroke*="rgba(50,213,131"],
.feature-mockup svg [stroke*="rgba(50,213,131"] {
  stroke: rgba(170,182,138,0.28) !important;
}
.hero-image-card svg [flood-color="#83C3FF"],
.feature-intro-image svg [flood-color="#83C3FF"] {
  flood-color: #C6A24B !important;
}
.hero-image-card svg [flood-color="#ECBA82"],
.feature-intro-image svg [flood-color="#ECBA82"] {
  flood-color: #D3B85F !important;
}
.hero-image-card svg [flood-color="#A78BFA"],
.feature-intro-image svg [flood-color="#A78BFA"] {
  flood-color: #87976B !important;
}

/* Callout cards */
.callout-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.callout-card {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.callout-title {
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 6px;
}

.callout-body {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials-section {
  padding: 80px 0 90px;
  border-top: 1px solid var(--border);
  position: relative;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 52px;
}

.testimonials-header .body-text {
  max-width: 640px;
  margin-top: 14px;
}

.testimonials-header h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 480;
  color: var(--text);
  margin-top: 10px;
  letter-spacing: -0.02em;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
  align-items: start;
}
/* Bento: card 1 → row1 col-span2, card 7 → row3 col-span2, card 8 → row4 col-span2 */
.testimonial-card.bento-span2 {
  grid-column: span 2;
}
.testimonial-card.bento-span2 .testimonial-quote {
  font-size: 14px;
  line-height: 1.78;
}
.testimonial-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid rgba(200,193,174,0.10);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform-style: preserve-3d;
  transform: perspective(860px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transition: border-color 0.2s, transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}
.testimonial-card:hover {
  border-color: rgba(198,162,75,0.26);
  box-shadow: 0 14px 30px rgba(0,0,0,0.32);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: -120% -35%;
  background: linear-gradient(110deg,
    transparent 32%,
    rgba(255,255,255,0.02) 45%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.02) 56%,
    transparent 70%);
  transform: translateX(-75%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.testimonial-card:hover::before {
  opacity: 1;
  animation: testimonial-sheen 2.2s ease;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(110deg,
    rgba(198,162,75,0) 0%,
    rgba(198,162,75,0) 34%,
    rgba(135,151,107,0.30) 47%,
    rgba(245,241,231,0.8) 52%,
    rgba(135,151,107,0.30) 57%,
    rgba(198,162,75,0) 70%,
    rgba(198,162,75,0) 100%);
  background-size: 220% 100%;
  background-position: -140% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}

.testimonial-card:hover::after {
  opacity: 1;
  animation: testimonial-border-sweep 2.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.testimonial-card > * {
  position: relative;
  z-index: 2;
}

@keyframes testimonial-sheen {
  from {
    transform: translateX(-75%) rotate(8deg);
  }
  to {
    transform: translateX(75%) rotate(8deg);
  }
}

@keyframes testimonial-border-sweep {
  from {
    background-position: -140% 0;
  }
  to {
    background-position: 140% 0;
  }
}
.testimonial-quote-mark {
  font-size: 28px;
  font-weight: 670;
  color: var(--brand);
  line-height: 1;
  margin-bottom: -8px;
}
.testimonial-quote {
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-2);
  font-weight: 360;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(198,162,75,0.12);
  border: 1px solid rgba(198,162,75,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 550;
  color: var(--brand);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 12.5px;
  font-weight: 480;
  color: var(--text);
}
.testimonial-role {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* ── Close CTA ───────────────────────────────────────────────────────────── */
.close-cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.close-cta-inner {
  text-align: center;
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.close-cta-inner h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 270;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.close-cta-sub {
  font-size: 18px;
  font-weight: 360;
  color: var(--text-2);
  line-height: 1.4;
}

.close-cta-body {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 480px;
}

/* Halftone decoration */
.halftone-decoration {
  position: absolute;
  inset: -120px -80px;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(198,162,75,0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

/* ── Updates Row ─────────────────────────────────────────────────────────── */
.updates-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.updates-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  transition: border-color 0.2s;
}
.update-card:hover {
  border-color: var(--border-strong);
}

.update-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-tag {
  display: inline-flex;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 480;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--mono-font);
}

.update-date-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-dim);
  border: 1px solid rgba(198,162,75,0.30);
  font-size: 11px;
  font-weight: 480;
  color: var(--brand);
  font-family: var(--mono-font);
  letter-spacing: 0.04em;
}

.update-card-title {
  font-size: 20px;
  font-weight: 480;
  color: var(--text);
  line-height: 1.2;
}

.update-card-version {
  font-size: 22px;
  font-weight: 480;
  color: var(--text);
  font-family: var(--mono-font);
}

.update-card-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}

.update-card-secondary {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-color: rgba(255,255,255,0.08);
}

.update-card-secondary .update-tag {
  color: var(--text-2);
  border-color: rgba(255,255,255,0.08);
  opacity: 0.92;
}

.update-card-secondary .update-card-title {
  font-size: 18px;
  font-weight: 450;
  line-height: 1.28;
}

.update-card-secondary .update-card-body {
  font-size: 14px;
  color: var(--text-3);
  flex: none;
}

.update-card-link {
  font-size: 14px;
  font-weight: 480;
  color: var(--brand);
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.update-card-link:hover {
  opacity: 0.75;
}

.update-card-built {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-card-meta {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.update-meta-key {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--mono-font);
}

.update-meta-value {
  font-size: 13px;
  color: var(--text-2);
  text-align: right;
}

.blog-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.blog-article {
  display: flex;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
  transition: color 0.2s;
}
.blog-article:hover {
  color: var(--text);
}

.blog-article-arrow {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 14px;
  margin-top: 2px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 40px;
  background:
    radial-gradient(circle at 12% 12%, rgba(135,151,107,0.12), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(198,162,75,0.12), transparent 26%),
    linear-gradient(180deg, #151412 0%, #111111 100%);
  border-top: 1px solid rgba(198,162,75,0.12);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.04) 0, transparent 40%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 16px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.015) 0,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity: 0.55;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 2;
}

.footer-brand-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: min(100%, var(--site-max));
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.footer-geo-mark {
  display: block;
  width: min(900px, 92%);
  height: auto;
  margin: 0 auto;
  opacity: 0.58;
}

.footer-geo-mark .geo-top {
  fill: rgba(255,255,255,0.03);
  stroke: rgba(255,255,255,0.12);
  stroke-width: 1.5;
}

.footer-geo-mark .geo-left {
  fill: rgba(255,255,255,0.02);
  stroke: rgba(255,255,255,0.11);
  stroke-width: 1.5;
}

.footer-geo-mark .geo-right {
  fill: rgba(255,255,255,0.015);
  stroke: rgba(255,255,255,0.1);
  stroke-width: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 15px;
  font-weight: 550;
  color: rgba(240,240,236,0.9);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-logo .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}
.footer-logo .brand-logo-icon {
  width: 38px;
  height: 38px;
}

.footer-col-label {
  font-size: 13px;
  font-weight: 480;
  color: rgba(240,240,236,0.5);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(240,240,236,0.72);
  transition: color 0.2s;
  width: fit-content;
}
.footer-nav a:hover {
  color: var(--text);
}

.footer-nav .footer-text-item {
  font-size: 14px;
  font-weight: 400;
  color: rgba(240,240,236,0.72);
  width: fit-content;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-copyright {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  font-family: var(--mono-font);
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(calc(100dvh - 48px), 760px);
  background: var(--bg-2);
  border: 1px solid rgba(198,162,75,0.26);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 22px;
  font-weight: 480;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.modal-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.5;
}

#downloadModal .modal {
  max-width: 500px;
  padding: 28px 28px 24px;
}

#downloadModal .modal-sub {
  margin-bottom: 18px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-field {
  display: grid;
  gap: 7px;
}

.modal-field label {
  font-size: 12px;
  font-family: var(--mono-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}

.modal-field input,
.modal-field select,
.modal-field textarea,
.country-dropdown input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.modal-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(240,240,236,0.55) 50%), linear-gradient(135deg, rgba(240,240,236,0.55) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.modal-field input::placeholder,
.modal-field textarea::placeholder {
  color: rgba(240,240,236,0.36);
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: rgba(198,162,75,0.45);
  box-shadow: 0 0 0 3px rgba(198,162,75,0.08);
}

.modal-field textarea {
  min-height: 96px;
  resize: vertical;
}

/* Country dropdown */
.country-dropdown {
  position: relative;
}

.country-dropdown input:focus {
  border-color: rgba(198,162,75,0.65) !important;
  background: #181816 !important;
}

.country-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #141416;
  border: 1px solid rgba(198,162,75,0.28);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45);
}

.country-dropdown-list.open {
  display: block;
}

.country-option {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(240, 240, 236, 0.9);
  transition: background-color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.country-option:last-child {
  border-bottom: none;
}

.country-option:hover,
.country-option.selected {
  background-color: rgba(198,162,75,0.18);
}

.country-option.hidden {
  display: none;
}

.modal-note {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.modal-submit {
  justify-self: start;
}

.page-hero {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-sub {
  color: var(--text-2);
  font-size: 16px;
  max-width: 860px;
}

.page-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.page-section h2 {
  font-size: 22px;
  font-weight: 520;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.page-section p,
.page-section li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.page-section ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.page-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-chip {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  background: var(--bg-2);
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-option {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.modal-option:hover {
  border-color: var(--brand);
  background: var(--brand-dim);
}

.modal-opt-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
}

.modal-opt-body {
  flex: 1;
}

.modal-opt-title {
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-opt-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(50, 213, 131, 0.15);
  border: 1px solid rgba(50, 213, 131, 0.3);
  font-size: 11px;
  font-weight: 480;
  color: var(--green);
  vertical-align: middle;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Combined 900px queries for General & Team styles */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-card { transform: none !important; }
  .footer-brand-mark { bottom: -8px; }
  .hero-text { text-align: center; }
  .hero-proof-row { justify-content: center; margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .social-proof { align-items: center; }
  .social-logos { justify-content: center; }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split-reverse { direction: ltr; }
  .feature-split-reverse .feature-mockup { order: -1; }
  .updates-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-results { display: none; }
  .app-sidebar { width: 130px; }
  
  /* Team Section rules */
  .team-header-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .team-card { flex: 0 0 calc((100% - 60px) / 2.4); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 36px; gap: 10px; }
  .nav-menu-btn { display: flex; }

  /* donate: show icon-only on mobile */
  .btn-donate { padding: 7px 10px; gap: 0; }
  .btn-donate-label { display: none; }
  .btn-download { padding: 7px 13px; font-size: 13px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(14,14,18,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 10px;
    z-index: 99;
    animation: none;
  }
  .nav-links.mobile-open {
    display: flex;
    animation: navSlideDown 0.22s ease forwards;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links a {
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(240,240,236,0.82);
  }
  .nav-links a:last-child { border-bottom: none; }

  body.light .nav-links {
    background: #f5f3ee;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 18px 36px rgba(0,0,0,0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.light .nav-links a {
    color: rgba(15,15,14,0.72);
  }

  .nav-donate-mobile {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--brand) !important;
    margin-top: 2px;
    border-top: 1px solid rgba(198,162,75,0.18) !important;
    border-bottom: none !important;
  }
  .nav-donate-mobile span { font-size: 12px; }

  .field-grid { grid-template-columns: 1fr; }
  .modal-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .modal {
    max-height: calc(100dvh - 24px);
    padding: 24px 20px 20px;
  }

  #downloadModal .modal {
    padding: 22px 20px 18px;
  }

  .modal-form {
    gap: 10px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-sub {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .modal-field input,
  .modal-field select,
  .modal-field textarea,
  .country-dropdown input {
    padding: 10px 11px;
    font-size: 13px;
  }

  .modal-form .btn-primary,
  .modal-form .btn-download,
  .modal-form button[type="submit"] {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .modal-form {
    padding-bottom: 4px;
  }

  .hero { padding: 82px 0 0; }
  .hero-inner { padding: 0 16px 60px; }
  
  .hero-h1 { font-size: 36px; }
  .hero-h1 br { display: none; }
  
  .hero-sub { font-size: 15px; }
  .hero-text { max-width: none; }
  .hero-body { font-size: 14px; }
  .btn-primary { font-size: 13px; padding: 10px 18px; }
  .btn-ghost { font-size: 13px; padding: 10px 6px; }
  .section-corners { width: calc(100% - 32px); }
  .hero-ctas { gap: 8px; flex-wrap: nowrap; }
  .app-window { height: 310px; }
  .app-sidebar-vars, .app-sidebar { display: none; }
  .feature-intro { padding: 72px 0 48px; }
  .features-section { padding: 40px 0; }
  .feature-split { padding: 60px 0; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
  .footer-col-label { font-size: 11px; }
  .footer-nav { gap: 7px; }
  .footer-nav a { font-size: 13px; }

  .team-desc {
    font-size: 12.5px;
    line-height: 1.55;
    max-width: none;
  }
  .close-cta { padding: 72px 0; }
  .app-icons-row { gap: 0; }
  .app-icon-connector { width: 14px; }
  .app-icon-badge { width: 40px; height: 40px; font-size: 18px; }
  .modal { padding: 28px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card.bento-span2 { grid-column: span 1; }
  .testimonial-card.bento-span2 .testimonial-quote { font-size: 13px; }
}

/* ── Honeypot (hidden from humans, visible to bots) ─────────────────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ── Secure forms ────────────────────────────────────────────────────────── */
.secure-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  position: relative;
}

#downloadModal .secure-form {
  gap: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 480;
  color: var(--text-2);
}

.form-label .req {
  color: var(--brand);
  margin-left: 2px;
}

.form-optional {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.18s;
  resize: none;
}
.form-input:focus {
  border-color: rgba(198,162,75,0.5);
  box-shadow: 0 0 0 3px rgba(198,162,75,0.08);
}
.form-input::placeholder { color: var(--text-3); }

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(240,240,236,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-select option { background: #1e1e1e; }

.form-textarea { min-height: 80px; line-height: 1.55; }

/* Searchable dropdown */
.searchable-select {
  position: relative;
  width: 100%;
}
.searchable-input {
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.searchable-input:focus {
  z-index: 3;
}
.searchable-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-height: 280px;
  overflow-y: auto;
}
.searchable-options {
  display: flex;
  flex-direction: column;
  padding: 4px;
}
.searchable-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  transition: background 0.1s;
  user-select: none;
}
.searchable-option:hover,
.searchable-option.highlight {
  background: rgba(198,162,75,0.12);
}
.searchable-option-hidden {
  display: none;
}

/* Status messages */
.form-msg {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  min-height: 22px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
.form-msg--success {
  color: var(--green);
  padding: 13px 16px;
  background: rgba(170,182,138,0.14);
  border: 1px solid rgba(170,182,138,0.32);
}
.form-msg--error {
  color: #f87171;
  padding: 13px 16px;
  background: rgba(248,113,113,0.14);
  border: 1px solid rgba(248,113,113,0.34);
}
.form-msg--warning {
  color: #f7d27a;
  padding: 13px 16px;
  background: rgba(198,162,75,0.16);
  border: 1px solid rgba(198,162,75,0.34);
}
.form-msg-action {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  color: inherit;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.form-msg-action:hover {
  opacity: 0.82;
}

/* Submit button loading state */
.form-submit {
  position: relative;
  width: 100%;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(24,24,24,0.22);
  border-top-color: #181818;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  right: 20px;
}
.form-submit.is-loading .btn-label { opacity: 0.6; }
.form-submit.is-loading .btn-spinner { display: block; }
.form-submit[data-state="sent"] {
  background: linear-gradient(135deg, rgba(170,182,138,1), rgba(135,151,107,1));
  color: #161616;
  box-shadow: 0 14px 30px rgba(135,151,107,0.28);
}
.form-submit[data-state="failed"],
.form-submit[data-state="retry"] {
  opacity: 1;
  box-shadow: 0 14px 28px rgba(198,162,75,0.16);
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-security-block {
  display: grid;
  gap: 8px;
}

.turnstile-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.turnstile-slot {
  min-height: 65px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-security-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-3);
  text-align: center;
}

.form-note {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin-top: -8px;
  line-height: 1.5;
}

/* ── Theme toggle button ─────────────────────────────────────────────────── */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-1);
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 16px;
  line-height: 1;
}

.icon-fallback {
  font-family: inherit;
  font-style: normal;
}

/* ── Light theme ─────────────────────────────────────────────────────────── */
body.light {
  --bg:            #f8f8f5;
  --bg-1:          #f2f2ee;
  --bg-2:          #ebebe7;
  --bg-3:          #e4e4e0;
  --border:        rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.13);
  --text:          #0f0f0e;
  --text-2:        rgba(15, 15, 14, 0.62);
  --text-3:        rgba(15, 15, 14, 0.38);
  --brand:         #AAB68A;
  --brand-strong:  #87976B;
  --brand-dim:     rgba(135,151,107,0.10);
  --shadow:        0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md:     0 2px 8px rgba(0, 0, 0, 0.07), 0 6px 20px rgba(0,0,0,0.05);
  --shadow-lg:     0 4px 16px rgba(0, 0, 0, 0.08), 0 12px 36px rgba(0,0,0,0.06);
}

body.light .btn-primary {
  border-color: rgba(135,151,107,0.28);
  background: var(--brand);
  color: #181412;
  box-shadow: 0 10px 26px rgba(135,151,107,0.16);
}
body.light .btn-primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 12px 28px rgba(135,151,107,0.22);
}
body.light .btn-primary:focus-visible,
body.light .btn-download:focus-visible {
  outline-color: rgba(135,151,107,0.55);
}
body.light .btn-download:hover {
  background: rgba(170,182,138,0.12);
  border-color: rgba(135,151,107,0.42);
}

/* ── Nav (light) ── */
body.light .nav {
  background: rgba(248, 248, 245, 0.88);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
body.light .nav-logo { color: var(--brand); }
body.light .brand-logo-dark,
body.light .logo-lockup-dark {
  display: none;
}
body.light .brand-logo-light,
body.light .logo-lockup-light {
  display: block;
}
body.light .nav-links a { color: rgba(15,15,14,0.6); }
body.light .nav-links a:hover { color: #0f0f0e; }
body.light .nav-menu-btn {
  background: #ebebe7;
  border-color: rgba(0,0,0,0.1);
  color: rgba(15,15,14,0.6);
}
body.light .nav-links {
  background: none;
  border-bottom: none;
  backdrop-filter: none;
}
body.light .btn-donate {
  border-color: rgba(0,0,0,0.12);
  color: rgba(15,15,14,0.65);
}
body.light .btn-download {
  border-color: rgba(135,151,107,0.42);
  background: #AAB68A;
  color: #181412;
  box-shadow: 0 14px 30px rgba(135,151,107,0.16);
}
body.light .btn-download:hover {
  background: #87976B;
  border-color: rgba(69,76,61,0.34);
  color: #181412;
}

/* ── Hero (light) ── */
body.light .hero { background: #eeecea; }
body.light .hero::before {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.022) 0, rgba(0,0,0,0.022) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.016) 0, rgba(0,0,0,0.016) 1px, transparent 1px, transparent 22px);
}
body.light .hero-body-brand {
  color: rgba(15, 15, 14, 0.38);
}
body.light .hero-body {
  color: rgba(15, 15, 14, 0.38);
}

/* ── App mockup (light) ── */
body.light .hero-image-card,
body.light .feature-intro-image,
body.light .feature-mockup {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 8px 28px rgba(0,0,0,0.06);
}
body.light .app-window { background: #ffffff; }

/* Grouped light mode title/toolbar */
body.light .app-titlebar,
body.light .app-toolbar-row {
  background: #f5f5f2;
  border-color: rgba(0,0,0,0.08);
}

body.light .app-sidebar-vars {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}
body.light .app-canvas { background: #fafaf8; }
body.light .tb-btn { color: rgba(15,15,14,0.55); }
body.light .tb-btn-calc { background: #AAB68A; color: #181412; }
body.light .tb-sep { background: rgba(0,0,0,0.1); }
body.light .vars-dataset-name { color: #0f0f0e; }
body.light .vars-meta { color: rgba(15,15,14,0.38); }
body.light .vars-search { background: var(--bg-2); border-color: rgba(0,0,0,0.1); color: rgba(15,15,14,0.35); }
body.light .vars-list-label { color: rgba(15,15,14,0.38); }
body.light .var-row { color: rgba(15,15,14,0.55); }
body.light .app-title { color: rgba(15,15,14,0.35); }

/* SVG mockup elements in light theme */
body.light svg circle { fill: #e8e8e6 !important; stroke: rgba(0,0,0,0.15) !important; }
body.light .canvas-svg rect { fill: #f5f5f3 !important; }
body.light .canvas-svg text { fill: rgba(15,15,14,0.55) !important; }
body.light .canvas-svg line { stroke: rgba(0,0,0,0.15) !important; }
body.light .canvas-svg polygon { fill: rgba(0,0,0,0.1) !important; }
body.light .app-window svg rect { fill: #f5f5f3 !important; }
body.light .app-window svg text { fill: rgba(15,15,14,0.55) !important; }
body.light .app-window svg circle { fill: #e8e8e6 !important; }
body.light .tl-red { background: #ef4444 !important; }
body.light .tl-yellow { background: #eab308 !important; }
body.light .tl-green { background: #22c55e !important; }

/* Feature intro SVG light theme */
body.light .feature-intro-image svg,
body.light .feature-intro-image svg * {
  color-interpolation: sRGB;
}
body.light .feature-intro-image svg rect[fill="#0d0d0d"],
body.light .feature-intro-image svg rect[fill="#080808"],
body.light .feature-intro-image svg rect[fill="#090909"],
body.light .feature-intro-image svg rect[fill="#0e0e0e"],
body.light .feature-intro-image svg rect[fill="#0d1f2d"] {
  fill: #f5f5f3 !important;
}
body.light .feature-intro-image svg rect[fill="#111"],
body.light .feature-intro-image svg rect[fill="#111111"],
body.light .feature-intro-image svg rect[fill="#121212"],
body.light .feature-intro-image svg rect[fill="#161616"],
body.light .feature-intro-image svg rect[fill="#1a1a1a"],
body.light .feature-intro-image svg rect[fill="#1e1e1e"],
body.light .feature-intro-image svg rect[fill="#1a1208"],
body.light .feature-intro-image svg rect[fill="#180010"],
body.light .feature-intro-image svg rect[fill="#130f28"] {
  fill: #e8e8e6 !important;
}
body.light .feature-intro-image svg text[fill*="rgba(255,255,255"],
body.light .feature-intro-image svg text[fill="rgba(255,255,255,0.3)"],
body.light .feature-intro-image svg text[fill="rgba(255,255,255,0.22)"],
body.light .feature-intro-image svg text[fill="rgba(255,255,255,0.28)"],
body.light .feature-intro-image svg text[fill="rgba(255,255,255,0.45)"],
body.light .feature-intro-image svg text[fill="rgba(255,255,255,0.6)"],
body.light .feature-intro-image svg text[fill="rgba(255,255,255,0.38)"] {
  fill: rgba(15,15,14,0.55) !important;
}
body.light .feature-intro-image svg circle[fill="#1a1208"],
body.light .feature-intro-image svg circle[fill="#180010"],
body.light .feature-intro-image svg circle[fill="#130f28"] {
  fill: #e8e8e6 !important;
}
body.light .feature-intro-image svg line { stroke: rgba(0,0,0,0.15) !important; }
body.light .feature-intro-image svg path { stroke: rgba(0,0,0,0.25) !important; }
body.light .feature-intro-image svg [fill="#83C3FF"] { fill: #87976B !important; }
body.light .feature-intro-image svg [fill="#ECBA82"] { fill: #AAB68A !important; }
body.light .feature-intro-image svg [fill="#A78BFA"] { fill: #AAB68A !important; }
body.light .feature-intro-image svg [fill="#32D583"] { fill: #AAB68A !important; }

/* Feature mockup SVG light theme */
body.light .feature-mockup svg rect[fill="#111111"],
body.light .feature-mockup svg rect[fill="#161616"] {
  fill: #e8e8e6 !important;
}
body.light .feature-mockup svg rect[rx="12"],
body.light .feature-mockup svg rect[rx="10"] {
  fill: #f5f5f3 !important;
}
body.light .feature-mockup svg text[fill*="rgba(240,240,236"],
body.light .feature-mockup svg text[fill*="rgba(255,255,255"] {
  fill: rgba(15,15,14,0.55) !important;
}
body.light .feature-mockup svg text[fill="#83C3FF"] { 
    fill: #87976B !important; 
  }
body.light .feature-mockup svg text[fill="#32D583"] { 
    fill: #AAB68A !important; 
  }
body.light .feature-mockup svg line { 
  stroke: rgba(0,0,0,0.1) !important; 
}
body.light .feature-mockup svg pattern circle {
  fill: rgba(0,0,0,0.05) !important;
}
body.light .feature-mockup svg rect[fill*="rgba(131,195,255"] {
    fill: rgba(170,182,138,0.1) !important;
    stroke: rgba(135,151,107,0.22) !important;
  }
body.light .feature-mockup svg rect[fill*="rgba(50,213,131"] {
    fill: rgba(170,182,138,0.08) !important;
    stroke: rgba(170,182,138,0.15) !important;
  }
body.light .feature-mockup svg circle[fill*="rgba(131,195,255"] {
    fill: rgba(170,182,138,0.06) !important;
    stroke: rgba(135,151,107,0.2) !important;
  }
body.light .feature-mockup svg circle[fill="none"][stroke*="rgba(131,195,255"] {
    stroke: rgba(135,151,107,0.12) !important;
  }
body.light .feature-mockup svg path { 
    stroke: #87976B !important;
  }
body.light .feature-mockup svg circle[fill="#32D583"] { 
  fill: #AAB68A !important; 
}
body.light .feature-mockup svg rect[fill="#161616"][stroke*="rgba"] {
  fill: #e8e8e6 !important;
  stroke: rgba(0,0,0,0.15) !important;
}

/* ── Sections (light) ── */
body.light .feature-intro,
body.light .team-section { background: #f4f3ef; }

body.light .features-section,
body.light .updates-section { background: #f8f8f5; }

body.light .testimonials-section { background: #ffffff; }
body.light .close-cta { background: #ffffff; }
body.light .feature-split { border-top-color: rgba(0,0,0,0.07); }
body.light .section-corners {
  opacity: 1;
}
body.light .section-corners::before {
  border-color: rgba(0,0,0,0.08);
  box-shadow: inset 0 0 0 1px rgba(198,162,75,0.03);
}
body.light .section-corners::after {
  border-color: rgba(198,162,75,0.08);
}

/* ── Testimonial cards (light) ── */
body.light .testimonial-card {
  background: #F8F8F5;
  border: 1px solid rgba(0,0,0,0.09);
  box-shadow: none;
}
body.light .testimonial-card:hover {
  border-color: rgba(0,0,0,0.16);
}
/* Light reflection sheen — dark-on-light version */
body.light .testimonial-card::before {
  background: linear-gradient(110deg,
    transparent 32%,
    rgba(0,0,0,0.01) 45%,
    rgba(0,0,0,0.04) 50%,
    rgba(0,0,0,0.01) 56%,
    transparent 70%);
}
/* Border sweep — subtle dark gradient in light mode */
body.light .testimonial-card::after {
  background: linear-gradient(110deg,
    rgba(80,80,90,0) 0%,
    rgba(80,80,90,0) 34%,
    rgba(100,100,120,0.2) 47%,
    rgba(80,80,100,0.5) 52%,
    rgba(100,100,120,0.2) 57%,
    rgba(80,80,90,0) 70%,
    rgba(80,80,90,0) 100%);
}
body.light .testimonial-author { border-top-color: rgba(0,0,0,0.07); }
body.light .testimonial-avatar {
  background: rgba(198,162,75,0.08);
  border-color: rgba(198,162,75,0.16);
  color: var(--brand);
}

/* ── App icon badges (light) ── */
body.light .app-icon-badge {
  background: var(--bg-2);
  border-color: rgba(0,0,0,0.09);
}
body.light .app-icon-badge:hover {
  border-color: rgba(0,0,0,0.16);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.light .app-icon-connector { background: rgba(0,0,0,0.1); }

/* ── Cards (light) ── */
body.light .update-card {
  background: #fff;
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.light .update-card:hover { border-color: rgba(0,0,0,0.16); }
body.light .callout-card { background: #ebebe7; border-color: rgba(0,0,0,0.08); }
body.light .corner {
  filter: drop-shadow(0 0 8px rgba(142,109,73,0.06));
}
body.light .halftone-decoration {
  background-image: radial-gradient(circle, rgba(198,162,75,0.11) 1px, transparent 1px);
}
body.light .corner::before {
  background: linear-gradient(90deg, rgba(198,162,75,0.58) 0%, rgba(198,162,75,0.16) 62%, rgba(198,162,75,0) 100%);
}
body.light .corner::after {
  background: linear-gradient(180deg, rgba(135,151,107,0.58) 0%, rgba(135,151,107,0.16) 62%, rgba(135,151,107,0) 100%);
}

/* ── Footer (light) ── */
body.light footer {
  background: #e5e3de;
  border-top: 1px solid rgba(0,0,0,0.09);
}
body.light footer::before { opacity: 0; }  /* remove dark noise */
body.light .footer-logo { color: #0f0f0e; }
body.light .footer-col-label { color: rgba(15,15,14,0.5); }
body.light .footer-nav a { color: rgba(15,15,14,0.6); }
body.light .footer-nav a:hover { color: #0f0f0e; }
body.light .footer-nav .footer-text-item { color: rgba(15,15,14,0.6); }
body.light .footer-copyright { color: rgba(15,15,14,0.38); }
body.light .footer-geo-mark .geo-top { fill: rgba(0,0,0,0.03); stroke: rgba(0,0,0,0.1); }
body.light .footer-geo-mark .geo-left { fill: rgba(0,0,0,0.02); stroke: rgba(0,0,0,0.08); }
body.light .footer-geo-mark .geo-right { fill: rgba(0,0,0,0.015); stroke: rgba(0,0,0,0.07); }

/* ── Modals (light) ── */
body.light .modal-overlay { background: rgba(0, 0, 0, 0.38); }
body.light .modal {
  background: #f8f8f5;
  border-color: rgba(0,0,0,0.11);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
}
body.light .form-input {
  background: #fff;
  border-color: rgba(0,0,0,0.13);
  color: #0f0f0e;
}
body.light .form-input:focus { border-color: var(--brand); }
body.light .form-input::placeholder { color: rgba(15,15,14,0.3); }
body.light .searchable-dropdown {
  background: #fff;
  border-color: rgba(0,0,0,0.13);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.light .searchable-option {
  color: #0f0f0e;
}
body.light .searchable-option:hover,
body.light .searchable-option.highlight {
  background: rgba(170,182,138,0.22);
}
body.light .modal-close {
  background: #ebebe7;
  border-color: rgba(0,0,0,0.09);
  color: rgba(15,15,14,0.5);
}

/* ── Edition cards (light) ── */
body.light .edition-card-lite { background: #f2f2ee; }
body.light .edition-badge-lite { background: #e4e4e0; border-color: rgba(0,0,0,0.12); }
body.light .edition-card-bundle {
  border-color: rgba(135,151,107,0.28);
  background: linear-gradient(145deg, var(--bg-1) 68%, rgba(170,182,138,0.14));
}
body.light .edition-card-bundle:hover {
  border-color: rgba(135,151,107,0.42);
}
body.light .edition-badge-bundle {
  background: var(--brand);
  color: #181412;
}
body.light .edition-btn-lite {
  background: none;
  border-color: rgba(0,0,0,0.12);
  color: rgba(15,15,14,0.62);
}
body.light .edition-btn-lite:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.16);
  color: #0f0f0e;
}

/* ── Knust badge (light) ── */
body.light .knust-badge { background: #f2f2ee; border-color: rgba(0,0,0,0.09); }

/* ── Edition cards (Bundle / Lite) ───────────────────────────────────────── */
.edition-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 8px;
}

.edition-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 28px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  text-align: left;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.edition-card:hover {
  box-shadow: var(--shadow-md);
}

.edition-card-bundle {
  border-color: rgba(198,162,75,0.30);
  background: linear-gradient(145deg, var(--bg-1) 68%, rgba(198,162,75,0.08));
}
.edition-card-bundle:hover {
  border-color: rgba(211,184,95,0.48);
}

.edition-card-lite {
  border-color: var(--border-strong);
}

.edition-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edition-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono-font);
}

.edition-badge-bundle {
  background: var(--brand);
  color: #181818;
}

.edition-badge-lite {
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}

.edition-size {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono-font);
}

.edition-name {
  font-size: 20px;
  font-weight: 480;
  color: var(--text);
  letter-spacing: -0.01em;
}

.edition-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.edition-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.4;
}

.edition-feat-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 0.5px;
}
.edition-feat-yes { color: var(--green); }
.edition-feat-no  { color: var(--text-3); }

.edition-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.edition-btn-lite {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 480;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.edition-btn-lite:hover {
  background: rgba(198,162,75,0.08);
  border-color: rgba(211,184,95,0.36);
}

/* Override close-cta-inner max-width to accommodate cards below */
.close-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.close-cta-inner {
  text-align: center;
}

/* ── Team Section ──────────────────────────────────────────────────────────── */
.team-section {
  padding: 96px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind the cards, like the reference */
.team-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,0.03) 0%,
    transparent 70%);
  pointer-events: none;
}

/* ── Header row ── */
.team-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
  max-width: var(--site-max);
}

.team-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.team-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-2);
}

.team-heading {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 270;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}

.team-heading-brand {
  color: var(--brand);
}

.team-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 6px;
}
.team-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.72;
  margin: 0;
  max-width: 480px;
}
.team-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
.team-view-all:hover { color: var(--text); border-color: var(--text-2); }

/* ── Cards overflow container ── */
.team-cards-overflow {
  position: relative;
  max-width: var(--site-max);
}

.team-cards-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.team-cards-row::-webkit-scrollbar { display: none; }

/* right-edge fade */
.team-fade-edge {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 4px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}

/* ── Team card ── */
.team-card {
  flex: 0 0 calc((100% - 100px) / 4);   /* ~4 visible, last one peeking */
  min-width: 220px;
  max-width: 300px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #111113;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
    border-color 0.22s ease,
    box-shadow 0.28s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

/* Photo area — fills top, aspect 4:5 */
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a1c;
  position: relative;
  flex-shrink: 0;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(18%);
  transition: transform 0.4s ease, filter 0.3s ease;
}
.team-card:hover .team-photo {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Placeholder for missing photos */
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #181818, #1e1e20);
}
.team-initials {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.15);
}

/* Card footer */
.team-card-foot {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.team-card-role {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
  text-transform: none;
}
.team-card-name {
  font-size: 16px;
  font-weight: 270;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 10px;
}

/* "Talk With" button */
.team-talk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.team-talk-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}
.team-talk-btn i { font-size: 13px; }

/* ── Arrow buttons ── */
.team-arrows {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.team-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.team-arrow-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
.team-arrow-btn:disabled { opacity: 0.28; cursor: not-allowed; }

@media (max-width: 540px) {
  .team-section { padding: 72px 0 60px; }
  .team-card { flex: 0 0 80vw; max-width: 280px; }
  .team-heading { font-size: 26px; }
}

/* ── Team Section Light mode ── */
body.light .team-section::before {
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.025) 0%, transparent 70%);
}
body.light .team-count {
  background: rgba(170,182,138,0.18);
  border-color: rgba(135,151,107,0.26);
  color: #3a4435;
}
body.light .team-heading { color: #0f0f0e; }
body.light .team-desc { color: rgba(15,15,14,0.6); }
body.light .team-view-all { color: rgba(15,15,14,0.5); border-color: rgba(0,0,0,0.15); }
body.light .team-view-all:hover { color: #0f0f0e; }
body.light .team-kicker { color: rgba(15,15,14,0.68); }
body.light .team-heading-brand { color: var(--brand); }

body.light .team-fade-edge { background: linear-gradient(to right, transparent, #f4f3ef); }

body.light .team-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.09);
}
body.light .team-card:hover {
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
body.light .team-photo-wrap { background: #e8e8e4; }
body.light .team-photo { filter: grayscale(12%); }
body.light .team-card:hover .team-photo { filter: grayscale(0%); }
body.light .team-photo-placeholder { background: linear-gradient(145deg, #e8e8e4, #f0efe9); }
body.light .team-initials { color: rgba(0,0,0,0.12); }
body.light .team-card-role { color: rgba(15,15,14,0.4); }
body.light .team-card-name { color: #0f0f0e; }
body.light .team-talk-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: rgba(15,15,14,0.55);
}
body.light .team-talk-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
  color: #0f0f0e;
}
body.light .team-arrow-btn {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
  color: rgba(15,15,14,0.4);
}
body.light .team-arrow-btn:hover:not(:disabled) {
  border-color: rgba(0,0,0,0.2);
  color: #0f0f0e;
  background: rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Team Page (tp-*) — matches reference: white bg, large header, staggered
   ═══════════════════════════════════════════════════════════════════════════ */
.tp-main {
  min-height: calc(100vh - 68px);
  background: var(--bg);
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

/* Dot grid → line grid */
.tp-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* No rotated rectangle pseudo-element */
.tp-main::after { display: none; }

/* Light mode overrides for bg design */
body.light .tp-main::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

.tp-bg-shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.tp-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px var(--site-gutter) 100px;
  position: relative;
  z-index: 1;
}

/* ── Title ── */
.tp-title-block {
  text-align: center;
  margin-bottom: 40px;
}

.tp-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 270;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.05;
  margin: 0;
}

.tp-title-sub {
  color: var(--brand);
  font-weight: 270;
}

/* ── Section label ── */
.tp-section-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin: 0 0 28px;
  font-family: var(--mono-font);
  text-transform: uppercase;
}

/* ── Staggered 4-column grid ── */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

/* Spacer cells hold layout but show nothing */
.tp-spacer { visibility: hidden; }

/* ── Member card ── */
.tp-member {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Photo wrapper — square, greyscale portrait ── */
.tp-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 4px;
}

.tp-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  transition: filter 0.32s ease, transform 0.32s ease;
}

.tp-pos-top { object-position: center 15%; }
.tp-pos-aaron { object-position: center 22%; }  /* Aaron — shifted up */
.tp-pos-emmanuel { transform: scale(1.5) translateY(-66px); transform-origin: center top; object-position: center center; }
.tp-pos-harry { transform: scale(1.5) translateY(-33px); transform-origin: center top; object-position: center center; }
.tp-pos-bismark { transform: scale(1.5) translateX(10px) translateY(-50px); transform-origin: center top; object-position: center center; }
.tp-pos-akosua { object-position: center 20%; } /* Akosua — fill card, face centred */

/* Aaron card: subtle brand border */
.tp-member-aaron .tp-photo-wrap {
  border: 2px solid rgba(135,151,107,0.45);
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(135,151,107,0.08);
}

.tp-member:hover .tp-photo {
  filter: grayscale(60%) contrast(1.08) brightness(0.92);
  transform: scale(1.03);
}

/* placeholder for missing photo */
.tp-photo-placeholder-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
}

.tp-initials {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-3);
}

/* ── Social hover overlay ── */
.tp-socials {
  position: absolute;
  inset: 0;
  background: rgba(10,10,14,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.tp-member:hover .tp-socials,
.tp-join-card:hover .tp-socials {
  opacity: 1;
}

.tp-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.tp-social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Name / role text ── */
.tp-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.tp-role {
  font-size: 11.5px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.4;
  font-family: var(--mono-font);
}

/* ── Join card ── */
.tp-join-card {
  cursor: pointer;
}

.tp-join-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  transition: border-color 0.22s, background 0.22s;
}

.tp-join-card:hover .tp-join-wrap {
  border-color: var(--brand);
  background: rgba(170,182,138,0.08);
}

.tp-join-plus {
  font-size: 28px;
  color: var(--text-3);
  transition: color 0.2s, transform 0.22s;
}

.tp-join-card:hover .tp-join-plus {
  color: var(--brand);
  transform: scale(1.15);
}

.tp-join-cta {
  color: var(--brand) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Light mode overrides ── */
body.light .tp-main { background: #ffffff; }
body.light .tp-photo-wrap { background: #e8e8e4; }
body.light .tp-photo-placeholder-wrap { background: #ededea; }
body.light .tp-initials { color: rgba(0,0,0,0.2); }
body.light .tp-socials { background: rgba(250,250,250,0.82); }
body.light .tp-social-link { background: #f0f0ec; border-color: rgba(0,0,0,0.1); color: #111; }
body.light .tp-name { color: #111; }
body.light .tp-role { color: rgba(0,0,0,0.4); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .tp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .tp-member[style*="grid-column"],
  .tp-spacer { grid-column: auto !important; }
  .tp-spacer { display: none; }
}

@media (max-width: 420px) {
  .tp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }
  .tp-title { font-size: 36px; }
}

.docs-layout {
  max-width: var(--site-max);
  padding: 0 32px 94px;
}

/* ── Mobile/Tablet Fit Guardrails ───────────────────────────────────────── */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

.cursor-path-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1600;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: opacity;
}

.cursor-path-canvas.is-active {
  opacity: 1;
}

html.has-pointer-web,
html.has-pointer-web body {
  cursor: none !important;
}

html.has-pointer-web a,
html.has-pointer-web button,
html.has-pointer-web summary,
html.has-pointer-web [role="button"],
html.has-pointer-web input[type="button"],
html.has-pointer-web input[type="submit"],
html.has-pointer-web input[type="reset"],
html.has-pointer-web label[for] {
  cursor: pointer !important;
}

html.has-pointer-web input:not([type="button"]):not([type="submit"]):not([type="reset"]),
html.has-pointer-web textarea {
  cursor: text !important;
}

html.has-pointer-web select {
  cursor: default !important;
}

.cursor-path-clear {
  position: fixed;
  right: clamp(14px, 2.5vw, 26px);
  bottom: clamp(16px, 3vw, 30px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(198,162,75,0.22);
  border-radius: 14px;
  background: rgba(12, 12, 14, 0.78);
  color: rgba(244,241,233,0.92);
  box-shadow: 0 14px 34px rgba(0,0,0,0.2);
  backdrop-filter: blur(14px);
  font-family: var(--mono-font);
  font-size: 10.5px;
  font-weight: 520;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
  z-index: 1605;
}

.cursor-path-clear.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cursor-path-clear.is-disabled {
  border-color: rgba(135,151,107,0.24);
  background: rgba(10, 12, 14, 0.78);
  color: rgba(214, 223, 197, 0.92);
}

.cursor-path-clear:hover {
  border-color: rgba(198,162,75,0.36);
  background: rgba(16, 16, 18, 0.92);
}

.cursor-path-clear.is-disabled:hover {
  border-color: rgba(135,151,107,0.38);
  background: rgba(14, 16, 18, 0.92);
}

.cursor-path-clear:focus-visible {
  outline: 2px solid rgba(198,162,75,0.45);
  outline-offset: 3px;
}

body.light .cursor-path-clear {
  border-color: rgba(135,151,107,0.26);
  background: rgba(255,255,255,0.82);
  color: rgba(19,24,30,0.9);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

body.light .cursor-path-clear:hover {
  border-color: rgba(135,151,107,0.42);
  background: rgba(255,255,255,0.95);
}

@media (any-hover: none) and (any-pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-path-canvas {
    display: none !important;
  }
  .cursor-path-clear {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  :root {
    --radius-sm: 7px;
    --radius: 10px;
    --radius-lg: 14px;
  }

  .nav-inner { padding: 0 18px; }
  .team-section::before { width: min(92vw, 900px); }
  .team-fade-edge { display: none; }

  .feature-intro,
  .features-section,
  .updates-section,
  .testimonials-section,
  .close-cta,
  .team-section,
  .tp-main {
    overflow-x: clip;
  }
}

@media (max-width: 768px) {
  :root {
    --radius-sm: 6px;
    --radius: 9px;
    --radius-lg: 12px;
    --site-gutter: 16px;
  }

  body { font-size: 15px; }

  .nav-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .nav-actions { gap: 6px; }
  .btn-download { padding: 6px 10px; font-size: 12px; }
  .btn-donate { padding: 6px 8px; }

  .hero-ctas {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-h1 { font-size: clamp(28px, 8.5vw, 36px); }
  .hero-body { font-size: 13.5px; }

  .figma-sel-anim,
  .canvas-svg,
  .feature-intro-image svg,
  .feature-mockup svg {
    width: 100%;
    height: auto;
  }

  .team-section {
    padding: 64px 0 52px;
  }

  .team-card {
    flex: 0 0 min(84vw, 260px);
    min-width: 0;
    max-width: min(84vw, 260px);
    border-radius: 12px;
  }

  .team-card-foot { padding: 12px 12px 14px; }

  .team-heading {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.15;
  }
  .team-desc {
    font-size: 12.5px;
    line-height: 1.55;
    max-width: none;
  }

  .tp-container { padding: 22px 14px 56px; }
  .tp-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tp-title { font-size: clamp(30px, 9vw, 42px); }
  .tp-photo-wrap { border-radius: 10px; }

  .modal {
    max-width: calc(100vw - 20px);
    padding: 20px 16px;
    border-radius: 12px;
  }

  .edition-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .edition-card {
    padding: 20px 16px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 10px; }

  .hero-h1 { font-size: clamp(26px, 9vw, 32px); }
  .hero-body { font-size: 13px; }
  .section-corners { width: calc(100% - 20px); }

  .contact-main { padding: 20px 12px 36px; }
  .contact-card {
    border-radius: 14px;
    padding: 20px 16px 18px;
  }

  .tp-name { font-size: 12px; }
  .tp-role { font-size: 10.5px; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: max(12px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
  }

  .modal {
    max-width: none;
    max-height: calc(100dvh - 28px);
    margin: 0;
    padding: 18px 14px 16px;
    border-radius: 14px;
  }
}

