/* ==========================================================================
   eDrawers — Design System
   Colors: Navy #003D6B · Green #31CE85 · Gray #909090 · White #FFFFFF
   Type: Montserrat (Google Fonts)
   Layout: flexbox only — no CSS grid, no JS-driven layout
   ========================================================================== */

:root {
  --navy: #003D6B;
  --navy-700: #052F52;
  --navy-900: #021D33;
  --green: #31CE85;
  --green-600: #22A86B;
  --green-100: #E7FBF1;
  --gray: #909090;
  --gray-200: #E7EAEE;
  --gray-100: #F5F7F9;
  --white: #FFFFFF;
  --ink: #0B2438;
  --ink-soft: #4C6478;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --h2: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --h3: clamp(1.6rem, 1.3rem + 1.2vw, 2.5rem);
  --h4: clamp(1.35rem, 1.15rem + 0.8vw, 2rem);
  --h5: clamp(1.15rem, 1.05rem + 0.4vw, 1.5rem);
  --h6: 1.25rem;

  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(2, 29, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(2, 29, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(2, 29, 51, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1 { font-size: var(--h1); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: var(--h3); font-weight: 700; line-height: 1.15; }
h4 { font-size: var(--h4); font-weight: 700; line-height: 1.2; }
h5 { font-size: var(--h5); font-weight: 700; line-height: 1.25; }
h6 { font-size: var(--h6); font-weight: 700; line-height: 1.25; }

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

/* ---------- Flex utilities ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: 8px; }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.gap-xl { gap: 64px; }
.text-center { text-align: center; }

section { padding: 96px 0; }
@media (max-width: 860px) { section { padding: 64px 0; } }

.section-navy { background: var(--navy); color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }
.section-tint { background: var(--gray-100); }
.section-green-tint { background: var(--green-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 16px;
}
.section-navy .eyebrow { color: var(--green); }
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.left { margin: 0 0 48px; }
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); margin-top: 18px; }
.section-navy .lede { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.section-navy .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.section-navy .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }

.nav-primary { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--green);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.hamburger span { width: 18px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 24px 22px;
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav .btn { margin-top: 14px; }
.mobile-nav.is-open { display: flex; }

@media (max-width: 900px) {
  .nav-links, .header-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 40px; position: relative; overflow: hidden; }
.hero .container { display: flex; align-items: center; gap: 60px; }
.hero-copy { flex: 1 1 480px; }
.hero-visual { flex: 1 1 420px; display: flex; justify-content: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-top: 0; margin-bottom: 34px; max-width: 540px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-cta-row .link-arrow { font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.hero-cta-row .link-arrow svg { transition: transform 0.25s var(--ease); }
.hero-cta-row .link-arrow:hover svg { transform: translateX(4px); }

.trust-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 960px) {
  .hero:not(.hero-carousel) .container { flex-direction: column; text-align: center; }
  .hero:not(.hero-carousel) .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero:not(.hero-carousel) .hero-cta-row { justify-content: center; }
  .hero:not(.hero-carousel) .trust-row { justify-content: center; }
}

/* ---------- Hero image carousel ---------- */
.hero.hero-carousel {
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-carousel-track { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 25% 25%;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-carousel-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2,29,51,0.90) 0%, rgba(2,29,51,0.74) 34%, rgba(2,29,51,0.32) 60%, rgba(2,29,51,0.05) 80%);
}
.hero-carousel-content { position: relative; z-index: 2; padding: 110px 0 90px; }
.hero-carousel .hero-copy { max-width: 560px; }
.hero-carousel .eyebrow { color: var(--green); }
.hero-carousel h1 { color: var(--white); }
.hero-carousel .lede { color: rgba(255,255,255,0.86); }
.hero-carousel .trust-row span { color: rgba(255,255,255,0.82); }
.hero-carousel .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.55); }
.hero-carousel .btn-outline:hover { background: var(--white); color: var(--navy); }

.hero-carousel-dots {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  z-index: 2;
  display: flex; justify-content: center; gap: 10px;
}
.hero-carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-carousel-dots button.is-active { background: var(--green); border-color: var(--green); transform: scale(1.25); }

/* Extra horizontal pan room: at plain "cover" a wide viewport locks the image
   to exact container width with zero slack, making background-position-x a
   no-op. A controlled overscale creates room to shift the subject rightward,
   away from the text overlay, on any screen tall enough (>=640px hero) for
   this width to still clear the height too. */
@media (min-width: 1100px) {
  .hero-slide { background-size: 122% auto; background-position: 18% 22%; }
}

@media (max-width: 760px) {
  .hero.hero-carousel { min-height: 560px; }
  .hero-slide { background-position: center 20%; }
  .hero-carousel-overlay {
    background: linear-gradient(180deg, rgba(2,29,51,0.35) 0%, rgba(2,29,51,0.55) 45%, rgba(2,29,51,0.92) 100%);
  }
  .hero-carousel-content { padding: 60px 0 70px; display: flex; align-items: flex-end; min-height: 560px; }
  .hero-carousel .hero-copy { max-width: 100%; text-align: center; }
  .hero-carousel .hero-cta-row, .hero-carousel .trust-row { justify-content: center; }
}

/* ---------- Mockup card graphic ---------- */
.mockup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(49,206,133,0.35) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.mockup-card .mockup-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
}
.mockup-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(80px);
  opacity: 0.45;
  top: -40px; right: -60px;
  z-index: 0;
}
.mockup-inner {
  position: relative;
  width: 78%;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mockup-inner .mi-row { display: flex; align-items: center; justify-content: space-between; }
.mockup-inner .mi-pill { height: 10px; border-radius: 6px; background: var(--gray-200); }
.mockup-receipt {
  border-radius: 12px;
  background: var(--gray-100);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.mockup-receipt .mi-pill.short { width: 40%; }
.mockup-receipt .mi-pill.long { width: 100%; }
.mockup-receipt .mi-pill.green { background: var(--green); opacity: 0.5; }
.mockup-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--green);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Icon boxes ---------- */
.icon-box-row { display: flex; flex-wrap: wrap; gap: 28px; }
.icon-box {
  flex: 1 1 300px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color .3s var(--ease);
}
.icon-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.icon-box.compact { padding: 24px; }
.flex-col > .icon-box { flex: 0 1 auto; }
.icon-badge {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-box h5 { margin-top: 4px; }
.icon-box p { color: var(--ink-soft); line-height: 1.6; }

.section-navy .icon-box { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.section-navy .icon-box p { color: rgba(255,255,255,0.72); }
.section-navy .icon-badge { background: rgba(49,206,133,0.18); color: var(--green); }
.trust-badge .icon-badge { color: var(--green); }

/* ---------- Steps ---------- */
.step-row { display: flex; flex-wrap: wrap; gap: 28px; }
.step {
  flex: 1 1 260px;
  position: relative;
  padding: 32px 28px 28px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}
.step .step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 18px;
}
.step p { color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

/* Step card with a photo */
.step.step-with-image { padding: 0; }
.step-media { position: relative; aspect-ratio: 16 / 10; background: var(--gray-200); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.step-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.step-media.is-mockup img { object-fit: contain; }
.step-with-image .step-body { padding: 32px 28px 28px; }
.step-with-image .step-num {
  position: absolute;
  bottom: -20px; left: 24px;
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--gray-100);
}
.step-with-image .step-body h5 { margin-top: 10px; }

/* ---------- Audience split cards ---------- */
.split-row { display: flex; flex-wrap: wrap; gap: 28px; }
.split-card {
  flex: 1 1 380px;
  border-radius: var(--radius-lg);
  padding: 44px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.split-card.consumers { background: linear-gradient(150deg, var(--navy) 0%, #01518A 100%); }
.split-card.retailers { background: linear-gradient(150deg, var(--green-600) 0%, #189A5D 100%); }
.split-card .split-top { display: flex; flex-direction: column; gap: 12px; }
.split-card .eyebrow { color: var(--white); }
.split-card .eyebrow::before { background: var(--white); }
.split-card.consumers .eyebrow { color: var(--green); }
.split-card.consumers .eyebrow::before { background: var(--green); }
.split-card p { color: rgba(255,255,255,0.85); line-height: 1.6; }
.split-card .btn { align-self: flex-start; }
.split-card::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  right: -60px; bottom: -80px;
}

/* ---------- Cards / gallery ---------- */
.gallery-row { display: flex; flex-wrap: wrap; gap: 24px; }
.gallery-item { flex: 1 1 260px; }
.gallery-item .mockup-card { max-width: none; aspect-ratio: 3/4; }

/* ---------- Founder / quote ---------- */
.quote-block {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.quote-mark { font-size: 3.5rem; color: var(--green); line-height: 1; font-weight: 800; flex-shrink: 0; }
.quote-block blockquote { margin: 0; font-size: 1.3rem; line-height: 1.5; font-weight: 600; color: var(--navy-900); }
.quote-block cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 700px) { .quote-block { flex-direction: column; padding: 30px; } }

/* ---------- Check list ---------- */
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); line-height: 1.55; font-size: 1.02rem; }
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--green-600); }
.section-navy .check-list li { color: rgba(255, 255, 255, 0.82); }
.section-navy .check-list li svg { color: var(--green); }

/* ---------- Trust badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 18px; }
.trust-badge {
  flex: 1 1 220px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.trust-badge .icon-badge { background: rgba(49,206,133,0.2); width: 44px; height: 44px; border-radius: 12px; }
.trust-badge span { font-weight: 700; font-size: 0.95rem; }

/* ---------- Pattern band ---------- */
.pattern-band {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}
.pattern-band .pattern-bg {
  position: absolute; inset: 0;
  background-image: url("assets/images/pattern-tile.svg");
  background-size: 140px 140px;
  opacity: 0.12;
}
.pattern-band .container { position: relative; }

/* ---------- App store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  opacity: 0.6;
}
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .sb-text small { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; }
.store-badge .sb-text strong { font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h3 { margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.78); }
@media (max-width: 760px) { .cta-band { padding: 40px 28px; text-align: center; justify-content: center; } }

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none; border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-900);
}
.accordion-trigger .acc-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.accordion-trigger .acc-icon::before, .accordion-trigger .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--green-600);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.accordion-trigger .acc-icon::before { width: 12px; height: 2px; }
.accordion-trigger .acc-icon::after { width: 2px; height: 12px; }
.accordion-item.is-open .acc-icon::after { transform: rotate(90deg); opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion-panel-inner { padding: 0 26px 24px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-field label { font-weight: 700; font-size: 0.88rem; color: var(--navy-900); }
.form-field input, .form-field textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-error { font-size: 0.8rem; color: #D64545; min-height: 1em; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); }
.form-success { display: none; background: var(--green-100); color: #0F6B3F; padding: 16px 18px; border-radius: 12px; font-weight: 600; }
.form-success.is-visible { display: block; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2, 29, 51, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.modal-card h3 { margin-bottom: 8px; }
.modal-card .lede { margin-bottom: 24px; font-size: 1rem; }
.modal-form { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { flex: 1 1 280px; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { line-height: 1.6; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-col { flex: 1 1 160px; }
.footer-col h6 { color: var(--white); margin-bottom: 18px; font-size: 0.95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--green); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--green); border-color: var(--green); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- Sub-hero (inner pages) ---------- */
.sub-hero { padding: 64px 0 20px; text-align: center; }
.sub-hero .eyebrow { justify-content: center; }
.sub-hero .lede { margin-left: auto; margin-right: auto; }

.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--navy); font-weight: 600; }

/* ---------- Utility reveal (GSAP hook) ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.legal-content h2 { font-size: var(--h4); margin-top: 10px; }
.legal-content p, .legal-content li { color: var(--ink-soft); line-height: 1.7; }
.legal-content ul { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; list-style: disc; }
.legal-updated { font-weight: 700; color: var(--navy); }

/* ---------- 404 ---------- */
.error-page { padding: 140px 0; text-align: center; }
.error-page .error-code { font-size: clamp(4rem, 10vw, 8rem); font-weight: 800; color: var(--green); line-height: 1; }

/* ---------- Misc responsive ---------- */
@media (max-width: 700px) {
  .cta-band, .quote-block { text-align: center; }
  .split-card { padding: 32px; }
  .modal-card { padding: 30px 26px; }
}
