/* ═══════════════════════════════════════════════════════════════
   MERVICE — matched to live design
   Light mint surface · white cards with green gradient wash ·
   green #007C16 accents · Outfit (display) + Inter (body)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --green: #0d8a24;
  --green-deep: #036414;
  --green-soft: #e7f4e9;
  --green-wash: #f0f8f1;
  --mint-bg: #f4f8f4;
  --ink: #1d2b20;
  --charcoal: #334036;
  --muted: #66756a;
  --stroke: #e2ece3;
  --card: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 4px rgba(29, 43, 32, 0.05);
  --shadow-md: 0 12px 32px rgba(29, 43, 32, 0.09);
  --shadow-lg: 0 26px 60px rgba(29, 43, 32, 0.14);
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--mint-bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--charcoal); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
.text-green { color: var(--green); }
.center { text-align: center; }

.section-sub { color: var(--muted); max-width: 560px; margin: 12px auto 0; font-size: 0.98rem; }

/* Material Symbols */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1;
  display: inline-flex;
  letter-spacing: normal; text-transform: none;
  white-space: nowrap; direction: ltr;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

/* Green squircle icon chip */
.chip-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(13, 138, 36, 0.28);
  flex: none;
}
.chip-icon .ms { font-size: 19px; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid #cfe6d2;
  border-radius: 999px;
  padding: 7px 15px;
  box-shadow: var(--shadow-sm);
}
.pill .ms { font-size: 15px; color: var(--green); }
.pill-solid { background: var(--green-soft); border-color: transparent; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #1ca335 0%, var(--green-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 138, 36, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(13, 138, 36, 0.38); }
.btn-outline-white { background: #fff; color: var(--green-deep); }
.btn-outline-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(250, 253, 250, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link .ms { font-size: 16px; color: var(--green); font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.nav-link:hover, .nav-link.active { background: var(--green-soft); color: var(--green-deep); }
.nav-link .caret { font-size: 16px; color: var(--muted); }

/* Dropdowns */
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Invisible hover bridge so the menu doesn't close crossing the gap */
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.dropdown-right { left: auto; right: 0; }

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  font-family: var(--font-display);
}
.dropdown a .ms { font-size: 17px; color: var(--green); }
.dropdown a:hover { background: var(--green-soft); color: var(--green-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Card base (white with green gradient wash) ──────────────── */
.g-card {
  background: linear-gradient(180deg, var(--green-wash) 0%, #ffffff 44%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.g-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c6dfc9; }

/* ── HERO (home) ─────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 60px) 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(13, 138, 36, 0.09), transparent 65%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; }
.hero-copy .pill { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy p { color: var(--muted); max-width: 32rem; font-size: 0.98rem; }
.hero-copy .btn { margin-top: 30px; }

/* CSS device illustration */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 40px 0; }
.device {
  width: 210px; height: 300px;
  background: linear-gradient(160deg, #3a4340, #202723);
  border-radius: 34px;
  box-shadow: var(--shadow-lg), inset 0 2px 6px rgba(255,255,255,0.08);
  transform: rotate(8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.device::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  background: #101512;
}
.device-screen {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(13, 138, 36, 0.18), 0 0 46px rgba(13, 138, 36, 0.5);
}
.device-screen .ms { font-size: 58px; color: #fff; }
.device-slot {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 10px;
  border-radius: 6px;
  background: #f2f5f2;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
  animation: bob 5s ease-in-out infinite;
}
.float-chip .ms { font-size: 15px; color: var(--green); }
.fc-1 { top: 6%; left: 4%; }
.fc-2 { top: 42%; left: -6%; animation-delay: 1.6s; }
.fc-3 { bottom: 8%; right: 0; animation-delay: 3.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Ecosystem orbit ─────────────────────────────────────────── */
.section { padding: 90px 0; }

.orbit-wrap { position: relative; max-width: 780px; height: 660px; margin: 60px auto 0; }
.orbit-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  border: 1.5px dashed #c9dfcc;
  border-radius: 50%;
}
.orbit-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 170px; height: 170px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  box-shadow: 0 0 0 12px rgba(13, 138, 36, 0.07), var(--shadow-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  text-align: center;
  z-index: 2;
}
.orbit-center .ms { color: var(--green); font-size: 26px; }
.orbit-center strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--charcoal); letter-spacing: 0.04em; }
.orbit-center small { font-size: 0.6rem; letter-spacing: 0.26em; color: var(--green); font-weight: 700; }
.orbit-center em { font-size: 0.62rem; color: var(--muted); font-style: normal; max-width: 120px; line-height: 1.35; }

.orbit-item {
  position: absolute;
  width: 168px;
  background: linear-gradient(180deg, var(--green-wash), #fff 46%);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}
.orbit-item:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: var(--shadow-md); }
.orbit-item .chip-icon { width: 30px; height: 30px; border-radius: 9px; margin: 0 auto 8px; }
.orbit-item .chip-icon .ms { font-size: 16px; }
.orbit-item h4 { font-size: 0.82rem; margin-bottom: 4px; }
.orbit-item p { font-size: 0.66rem; color: var(--muted); line-height: 1.45; }

/* 8 positions around the ring (percent of wrap) */
.oi-1 { left: 50%;  top: 6%; }
.oi-2 { left: 79%;  top: 19%; }
.oi-3 { left: 90%;  top: 50%; }
.oi-4 { left: 79%;  top: 81%; }
.oi-5 { left: 50%;  top: 94%; }
.oi-6 { left: 21%;  top: 81%; }
.oi-7 { left: 10%;  top: 50%; }
.oi-8 { left: 21%;  top: 19%; }

/* ── Feature card grids ──────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }

.info-card { padding: 22px 20px; }
.info-card .chip-icon { margin-bottom: 14px; }
.info-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.info-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

/* ── Comparison ──────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.compare-col { padding: 28px; border-radius: var(--radius); }
.compare-col h3 { margin-bottom: 20px; font-size: 1rem; }
.compare-plain { background: #fff; border: 1px solid var(--stroke); box-shadow: var(--shadow-sm); }
.compare-plain li {
  display: flex; align-items: flex-start; gap: 10px;
  list-style: none;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--stroke);
}
.compare-plain li:last-child { border-bottom: none; }
.compare-plain .ms { font-size: 17px; color: #b9c4bb; margin-top: 2px; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.compare-green { background: linear-gradient(180deg, var(--green-wash), #fff 50%); border: 1.5px solid #bfdfc4; box-shadow: var(--shadow-md); }
.compare-green li {
  display: flex; align-items: flex-start; gap: 10px;
  list-style: none;
  padding: 10px 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}
.compare-green .ms { font-size: 17px; color: var(--green); margin-top: 2px; }

/* ── Big gradient CTA ────────────────────────────────────────── */
.cta-band {
  margin: 20px auto 90px;
  background: linear-gradient(115deg, var(--green-deep) 0%, #1ca335 55%, #63c15f 100%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin: 0 auto 28px; font-size: 0.94rem; }

/* ── Check bullets & why-it-matters ──────────────────────────── */
.check-list { list-style: none; margin: 18px 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.check-list li strong { color: var(--ink); font-weight: 600; }
.check-list li::before {
  content: "check_circle";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 1;
  position: absolute;
  left: 0; top: 1px;
  font-size: 19px;
  color: var(--green);
}
.why-matters {
  background: var(--green-soft);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.84rem;
  color: var(--ink);
  margin-top: 18px;
}
.why-matters strong { color: var(--green-deep); }

/* ── Alternating split rows ──────────────────────────────────── */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 72px;
}
.split-row.flip .split-media { order: 2; }
.split-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--stroke);
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--green-wash));
}
.split-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split-media.contain img { object-fit: contain; padding: 26px; }
.split-copy h3 { font-size: 1.35rem; margin-bottom: 8px; }
.split-copy > p { color: var(--muted); font-size: 0.92rem; }

/* ── Quote card (fundraising) ────────────────────────────────── */
.quote-card {
  background: linear-gradient(180deg, var(--green-wash), #fff 60%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 30px;
  max-width: 640px;
  margin-top: 40px;
}
.quote-card p:first-child { font-style: italic; color: var(--ink); font-size: 0.95rem; margin-bottom: 10px; }
.quote-card p:last-child { color: var(--muted); font-size: 0.82rem; }

/* Stat trio */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.stat-card { padding: 22px; }
.stat-card .chip-icon { width: 32px; height: 32px; margin-bottom: 12px; }
.stat-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.stat-card p { font-size: 0.8rem; color: var(--muted); }

/* ── Product pages ───────────────────────────────────────────── */
.product-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: calc(var(--nav-h) + 28px);
}
.product-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 84px;
  padding: 12px 10px;
  background: #fff;
  border: 1.5px solid var(--stroke);
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-tab .ms { font-size: 22px; color: var(--charcoal); font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.product-tab:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-tab.active { border-color: var(--green); background: linear-gradient(180deg, var(--green-wash), #fff 55%); }
.product-tab.active .ms { color: var(--green); }

.product-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; padding: 44px 0 30px; }
.product-hero .pill { margin-bottom: 18px; }
.product-hero h1 { color: var(--green); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 8px; }
.product-hero .tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--charcoal); margin-bottom: 12px; }
.product-hero .desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.product-hero-media {
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, var(--green-wash) 78%);
  border-radius: 24px;
  padding: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stroke);
}
.product-hero-media img { max-height: 300px; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(29, 43, 32, 0.18)); }

.spec-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  margin: 30px 0 0;
}
.spec-card > h3 {
  border-left: 3.5px solid var(--green);
  padding-left: 12px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-box {
  background: var(--green-wash);
  border-radius: 12px;
  padding: 13px 15px;
}
.spec-box small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 3px;
}
.spec-box span { font-size: 0.82rem; color: var(--ink); font-weight: 500; }

/* ── Contact / About ─────────────────────────────────────────── */
.page-hero { padding: calc(var(--nav-h) + 56px) 0 30px; text-align: center; }
.page-hero .pill { margin-bottom: 18px; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; margin: 44px 0 90px; }
.contact-info { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contact-info-item p { font-size: 0.84rem; color: var(--muted); }

.contact-form { padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--stroke);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 138, 36, 0.12);
}
.form-error { display: none; font-size: 0.74rem; color: #c0392b; margin-top: 4px; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #c0392b; }
.form-group.invalid .form-error { display: block; }
.form-success {
  display: none;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: #22302a; color: #cfd9d1; padding: 60px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.86rem; color: #a8b5aa; max-width: 250px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #a8b5aa; text-decoration: none; font-size: 0.84rem; margin-bottom: 9px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-text { font-size: 0.84rem; color: #a8b5aa; margin-bottom: 9px; line-height: 1.5; }
.footer-col a:hover { color: #8fdb6a; }
.footer-disclaimer {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.76rem;
  color: #8a978c;
  line-height: 1.6;
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 0.78rem; color: #8a978c; }

/* ── Reveal on scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero-inner, .product-hero { grid-template-columns: 1fr; }
  .hero-visual { padding: 20px 0; }
  .split-row { grid-template-columns: 1fr; gap: 28px; }
  .split-row.flip .split-media { order: 0; }
  .compare { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* Orbit → simple grid */
  .orbit-wrap { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .orbit-ring { display: none; }
  .orbit-center { position: static; transform: none; width: auto; height: auto; border-radius: 16px; padding: 20px; grid-column: 1 / -1; flex-direction: column; }
  .orbit-item { position: static; transform: none; width: auto; }
  .orbit-item:hover { transform: translateY(-4px); }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 4vw 22px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 10px; border-radius: 12px; }
  .dropdown {
    position: static;
    opacity: 1; transform: none; pointer-events: auto;
    box-shadow: none; border: none;
    padding-left: 26px;
    display: none;
  }
  .nav-item.open-sub .dropdown { display: block; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .orbit-wrap { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 22px; border-radius: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Contact page (matched to live design) ───────────────────── */
.contact-hero {
  position: relative;
  min-height: 340px;
  margin-top: var(--nav-h);
  background: url("../assets/contactus-landscape.png") center center / cover no-repeat, var(--green-wash);
  display: flex;
  align-items: center;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  /* light image → dark-to-clear scrim on the left so text stays readable */
  background: linear-gradient(90deg, rgba(12, 26, 14, 0.78) 0%, rgba(12, 26, 14, 0.5) 40%, rgba(12, 26, 14, 0.12) 72%, rgba(12, 26, 14, 0) 100%);
}
.contact-hero-copy { position: relative; padding: 56px 0; }
.contact-hero-copy h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.contact-hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 430px;
  font-size: 0.92rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.hero-lead-line { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin: 48px 0 90px;
  align-items: start;
}
.contact-form { padding: 30px 32px; }
.contact-form h3, .side-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.form-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }

.contact-side { display: flex; flex-direction: column; gap: 24px; }
.side-card { padding: 26px 28px; }

.info-box {
  background: var(--green-wash);
  border: 1px solid #e0efe2;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.info-box h4 { font-size: 0.84rem; margin-bottom: 3px; }
.info-box a { font-size: 0.84rem; color: var(--green); font-weight: 600; text-decoration: none; }
.info-box a:hover { text-decoration: underline; }
.info-box p { font-size: 0.82rem; color: var(--muted); }

.portal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-wash);
  border: 1px solid #e0efe2;
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.portal-link .ms { font-size: 16px; color: var(--green); }
.portal-link:hover { border-color: var(--green); background: var(--green-soft); transform: translateX(3px); }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-q {
  background: var(--green-soft);
  border-radius: 10px;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-deep);
  font-style: italic;
  white-space: nowrap;
}
.captcha-refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green);
  display: flex;
  padding: 6px;
  border-radius: 8px;
}
.captcha-refresh:hover { background: var(--green-soft); }
.captcha-row input { flex: 1; }

.btn-block {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--green-deep) 0%, #35a94b 100%);
}

/* ═══ 3D animated payment terminal (home hero) ═══════════════ */
.terminal-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 430px;
  margin: 0 auto;
  perspective: 900px;
}
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.constellation .dot { fill: #a9d3af; transform-box: fill-box; transform-origin: center; }
.constellation .p1 { animation: dotPulse 3s ease-in-out infinite; }
.constellation .p2 { animation: dotPulse 3s ease-in-out 1s infinite; }
.constellation .p3 { animation: dotPulse 3s ease-in-out 2s infinite; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.7); fill: var(--green); }
}

.terminal3d {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  animation: termFloat 6s ease-in-out infinite;
}
@keyframes termFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

.t-body {
  position: relative;
  width: 178px;
  height: 272px;
  background: linear-gradient(150deg, #545e57 0%, #2b322d 55%, #1d221e 100%);
  border-radius: 30px;
  /* chunky 3D extrusion like the illustration */
  box-shadow:
    9px 11px 0 -1px #141815,
    10px 12px 0 0 #10130f,
    34px 46px 60px rgba(20, 26, 21, 0.35);
  transform: rotate(-3deg);
}
.t-screen {
  position: absolute;
  top: 20px; left: 18px; right: 18px;
  height: 138px;
  border-radius: 18px;
  background: linear-gradient(160deg, #55cf64 0%, #179630 45%, #076019 100%);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.25), inset 0 -6px 14px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(23, 150, 48, 0.45);
  overflow: hidden;
}
.t-gloss {
  position: absolute;
  top: -30%; left: -40%;
  width: 90%; height: 160%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  pointer-events: none;
}
.t-bar {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 11px;
  border-radius: 8px;
  background: #f4f8f4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.t-btn {
  position: absolute;
  top: 178px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #262c27, #111512);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.t-slot {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 68%; height: 6px;
  border-radius: 4px;
  background: #121613;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* screen states: contactless waves ⇄ check, looping */
.scr {
  position: absolute;
  inset: 0 0 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scr-check .ms {
  font-size: 42px;
  color: #fff;
  width: 74px; height: 74px;
  border: 5px solid #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.35);
}
.scr-wave .ms {
  font-size: 66px;
  color: #fff;
  transform: rotate(90deg);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
.scr-check { animation: showCheck 7s ease-in-out infinite; }
.scr-wave  { animation: showWave 7s ease-in-out infinite; }
@keyframes showCheck {
  0%, 44%   { opacity: 0; transform: scale(0.4); }
  50%, 94%  { opacity: 1; transform: scale(1); }
  100%      { opacity: 0; transform: scale(0.4); }
}
@keyframes showWave {
  0%, 44%   { opacity: 1; transform: scale(1); }
  50%, 94%  { opacity: 0; transform: scale(0.5); }
  100%      { opacity: 1; transform: scale(1); }
}

/* ═══ Animated cards (home & everywhere) ═════════════════════ */
.g-card { position: relative; overflow: hidden; }
.g-card::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.65s ease;
}
.g-card:hover::after { left: 135%; }

.chip-icon { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
.g-card:hover .chip-icon,
.orbit-item:hover .chip-icon {
  transform: scale(1.14) rotate(-8deg);
  box-shadow: 0 10px 22px rgba(13, 138, 36, 0.4);
}

/* ═══ Product icons: soft light color under the icon ═════════ */
.product-tab .ms {
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 10px;
  padding: 8px;
  font-size: 21px;
  transition: background 0.2s ease, transform 0.25s ease;
}
.product-tab:hover .ms { transform: translateY(-2px); }
.product-tab.active .ms { background: #d3ecd8; color: var(--green); }

.dropdown a .ms {
  background: var(--green-soft);
  border-radius: 8px;
  padding: 5px;
  font-size: 16px;
}
.dropdown a:hover .ms { background: #d3ecd8; }

@media (prefers-reduced-motion: reduce) {
  .terminal3d, .scr-check, .scr-wave, .constellation .p1, .constellation .p2, .constellation .p3 { animation: none; }
  .scr-wave { opacity: 0; }
  .g-card::after { display: none; }
}
@media (max-width: 560px) {
  .terminal-scene { height: 360px; }
  .t-body { width: 150px; height: 232px; }
  .t-screen { height: 114px; }
  .t-btn { top: 148px; }
}

/* ═══ Fundraising hero + gallery ═════════════════════════════ */
.hero-grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero-media-card {
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--green-wash));
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-media-card img { width: 100%; object-fit: cover; max-height: 420px; border-radius: 14px; }

.gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.gallery-item {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: center;
  padding: 12px;
}

/* ═══ Product page image gallery ═════════════════════════════ */
.product-media-col { display: flex; flex-direction: column; gap: 12px; }
.product-hero-media img { transition: opacity 0.18s ease; }
.thumb-row { display: flex; gap: 10px; justify-content: center; }
.thumb {
  width: 62px; height: 62px;
  border-radius: 12px;
  border: 2px solid var(--stroke);
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { transform: translateY(-3px); }
.thumb.active { border-color: var(--green); background: var(--green-wash); }

/* ═══ Home hero: payment sequence animation ══════════════════ */
.glow-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 320px; height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 150, 48, 0.18), transparent 65%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* orbiting feature bubbles */
.orbit-bubbles { position: absolute; inset: 0; animation: orbitSpin 26s linear infinite; pointer-events: none; }
.bubble {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  animation: orbitCounter 26s linear infinite; /* keep icons upright */
}
.bubble .ms { font-size: 20px; color: var(--green); }
.b1 { top: 2%; left: 46%; }
.b2 { top: 46%; right: 0; }
.b3 { bottom: 2%; left: 46%; }
.b4 { top: 46%; left: 0; }
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitCounter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* the tapping bank card */
.tap-card {
  position: absolute;
  left: 50%; top: 50%;
  width: 128px; height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f9738 0%, #0a6b1e 70%);
  box-shadow: 0 16px 30px rgba(10, 90, 25, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 3;
  animation: cardTap 7s ease-in-out infinite;
  pointer-events: none;
}
.card-chip {
  position: absolute;
  top: 14px; left: 14px;
  width: 26px; height: 19px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffe9a8, #d9b45a);
}
.card-wave {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}
.card-num {
  position: absolute;
  bottom: 12px; left: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
}
/* sequence: slide in → hold at screen (waves) → slide away → approved */
@keyframes cardTap {
  0%       { transform: translate(-320px, -190px) rotate(-30deg); opacity: 0; }
  10%      { opacity: 1; }
  16%, 40% { transform: translate(-118px, -136px) rotate(-14deg); opacity: 1; }
  50%      { transform: translate(-330px, -60px) rotate(-32deg); opacity: 0; }
  100%     { transform: translate(-330px, -60px) rotate(-32deg); opacity: 0; }
}
/* keep screen states in sync with the card */
@keyframes showWave {
  0%, 12%  { opacity: 0; transform: scale(0.5); }
  18%, 42% { opacity: 1; transform: scale(1); }
  50%, 100%{ opacity: 0; transform: scale(0.5); }
}
@keyframes showCheck {
  0%, 48%  { opacity: 0; transform: scale(0.4); }
  56%, 94% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .tap-card, .orbit-bubbles, .bubble, .glow-ring { animation: none; }
  .tap-card { display: none; }
}
@media (max-width: 880px) {
  .hero-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery-3 { grid-template-columns: 1fr; }
  .tap-card { transform-origin: center; }
}

/* ═══ Full-hero constellation (behind headline too) ══════════ */
.constellation-wide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
/* terminal scene no longer carries its own network */
.terminal-scene > .constellation:not(.constellation-wide) { display: none; }

/* ═══ Fundraising CRM banner ═════════════════════════════════ */
.crm-banner {
  margin-top: 34px;
  background: linear-gradient(180deg, var(--green-wash), #ffffff 60%);
  border: 1.5px solid #cfe6d3;
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.crm-banner img {
  width: 100%;
  height: clamp(240px, 34vw, 430px);
  object-fit: cover;
  object-position: left center;
  border-radius: 16px;
}

/* ═══ SEO restructure ════════════════════════════════════════ */
.product-name-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.product-hero h1.seo-h1 {
  color: var(--charcoal);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}
.tagline-sub {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.hero-lead-line {
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem !important;
  margin: 10px 0 6px;
}

/* ═══ Contact form: no tilt/hover/sheen while filling ════════ */
.g-card.no-tilt::after { display: none !important; }
.g-card.no-tilt:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm);
  border-color: var(--stroke);
}
.g-card.no-tilt:hover .chip-icon { transform: none; box-shadow: 0 6px 14px rgba(13, 138, 36, 0.28); }

.form-alert {
  display: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 16px;
}
.form-fail { background: #fdecea; color: #b3271e; border: 1px solid #f4c7c3; }

/* ═══ Product images: rounded + embedded look ════════════════ */
.product-hero-media { padding: 12px; overflow: hidden; }
.product-hero-media img {
  width: 100%;
  height: 320px;
  max-height: none;
  object-fit: contain;
  padding: 26px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--green-wash) 88%);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--stroke), inset 0 8px 22px rgba(29, 43, 32, 0.05);
  filter: drop-shadow(0 14px 18px rgba(29, 43, 32, 0.12));
}
.split-media.contain { padding: 12px; background: #fff; }
.split-media.contain img {
  aspect-ratio: 4 / 3.1;
  object-fit: contain;
  padding: 26px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--green-wash) 88%);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--stroke), inset 0 8px 22px rgba(29, 43, 32, 0.05);
}
@media (max-width: 560px) {
  .product-hero-media img { height: 250px; padding: 18px; }
}

/* ═══ Product lifestyle photos: fill frame like fundraising ══ */
.product-hero-media.is-photo { padding: 0; background: none; box-shadow: none; }
.product-hero-media.is-photo img {
  padding: 0;
  height: 380px;
  object-fit: cover;
  background: none;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  filter: none;
}
.split-media.contain.is-photo { padding: 0; background: none; }
.split-media.contain.is-photo img {
  padding: 0;
  object-fit: cover;
  background: none;
  border-radius: 16px;
  box-shadow: none;
}
@media (max-width: 560px) {
  .product-hero-media.is-photo img { height: 280px; }
}

/* ═══ Contact page — mobile responsiveness ═══════════════════ */
@media (max-width: 880px) {
  .contact-hero { min-height: 0; }
  .contact-hero-overlay {
    background: linear-gradient(180deg, rgba(12, 26, 14, 0.55) 0%, rgba(12, 26, 14, 0.68) 100%);
  }
  .contact-hero-copy { padding: 40px 0; }
  .contact-hero-copy h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .contact-hero-copy p { max-width: 100%; }

  /* Everything in ONE column: form → contact info → portals */
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0 64px;
  }
  .contact-form { order: 1; }
  .contact-side { order: 2; gap: 20px; }
  .contact-side .side-card { width: 100%; }
}

@media (max-width: 560px) {
  /* stack the two-up name/email etc. rows */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .contact-form { padding: 22px 18px; }
  .side-card { padding: 22px 18px; }

  /* verification row: keep question + refresh on one line, answer full width below */
  .captcha-row { flex-wrap: wrap; }
  .captcha-q { flex: 0 0 auto; }
  .captcha-row input { flex: 1 1 100%; min-width: 0; }

  /* portal links: allow long labels to wrap instead of overflowing */
  .portal-link { font-size: 0.8rem; padding: 12px 14px; gap: 8px; }
  .portal-link .ms { flex: none; }

  .info-box { padding: 12px 14px; }
  .info-box a { word-break: break-word; }

  .contact-hero-copy h1 br { display: none; }
  .contact-hero-copy p br { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED IMAGE FRAME  (single standard for the whole site)
   Outer: light mint gradient, 1px border, rounded 22px, padding 14px,
          soft shadow.  Inner <img>: rounded 14px, covers the frame.
   Placed last so it standardizes every image container.
   ═══════════════════════════════════════════════════════════════ */
.split-media,
.split-media.contain,
.hero-media-card,
.gallery-item,
.crm-banner,
.product-hero-media {
  background: linear-gradient(160deg, var(--green-wash) 0%, #ffffff 70%) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 22px !important;
  padding: 14px !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

.split-media img,
.split-media.contain img,
.hero-media-card img,
.gallery-item img,
.crm-banner img,
.product-hero-media img {
  width: 100%;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(29, 43, 32, 0.10) !important;
  background: none !important;
  filter: none !important;
}

/* Photographic images (own background) → fill the frame edge-to-edge */
.split-media img,
.split-media.contain.is-photo img,
.hero-media-card img,
.gallery-item img,
.crm-banner img,
.product-hero-media.is-photo img {
  object-fit: cover;
  padding: 0 !important;
}
.split-media img            { aspect-ratio: 4 / 3.2; }
.gallery-item img           { aspect-ratio: 4 / 3; }
.hero-media-card img        { aspect-ratio: 4 / 3.4; max-height: none; }
.crm-banner img             { height: clamp(220px, 32vw, 400px); object-position: left center; }
.product-hero-media.is-photo img { height: 340px; }

/* Transparent device cut-outs → sit centered on the mint backdrop */
.split-media.contain:not(.is-photo) img,
.product-hero-media:not(.is-photo) img {
  object-fit: contain;
  padding: 22px !important;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--green-wash) 92%) !important;
  box-shadow: inset 0 0 0 1px var(--stroke) !important;
}
.split-media.contain:not(.is-photo) img { aspect-ratio: 4 / 3.1; }
.product-hero-media:not(.is-photo) img  { height: 300px; }

.gallery-item figcaption { padding: 12px 6px 4px; }

@media (max-width: 560px) {
  .product-hero-media:not(.is-photo) img { height: 240px; padding: 16px !important; }
  .product-hero-media.is-photo img { height: 250px; }
}

/* ═══ HD image rendering ═════════════════════════════════════ */
.ms { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ═══ Cross-device image clarity ═════════════════════════════
   Let the browser downscale high-res sources at full quality.
   No GPU-layer transforms or optimize-contrast — those SOFTEN
   large photos in Chrome. Just clean, responsive sizing.        */
img {
  image-rendering: auto;
  max-width: 100%;
  height: auto;
}

/* Logos: keep vector-sharp at any size, cap so they never over-enlarge */
.nav-logo img { max-height: 52px; width: auto; }
.footer-brand img { max-height: 56px; width: auto; }

/* ═══ Fundraising hero image — smaller & fully sharp ═════════ */
.hero-media-card {
  max-width: 520px;             /* larger so the sharp source shows at higher res */
  margin-inline: auto;
  padding: 14px !important;
}
.hero-media-card img {
  aspect-ratio: 1 / 1 !important;   /* mosque.jpeg is square — show it whole */
  object-fit: cover !important;
  max-height: none !important;
  image-rendering: auto !important;
}
@media (max-width: 880px) {
  .hero-media-card { max-width: 440px; }
}

/* ═══ Gallery images — show whole image, no crop/pixelation ══ */
.gallery-item {
  display: flex;
  flex-direction: column;
  padding: 14px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(160deg, var(--green-wash) 0%, #ffffff 70%) !important;
}
.gallery-item img {
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;      /* FULL image, no zoom/crop */
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;      /* rounds the image */
  background: #ffffff !important;      /* white fill behind letterbox, also rounded */
  display: block !important;
}
.gallery-item figcaption { padding: 12px 10px 4px !important; }
