/* ============================================================
   Dream Financial Services — Design System
   ============================================================ */

:root{
  /* Brand color system — green, black, white only */
  --green-900: #007346;   /* single brand green — used across all dark surfaces */
  --green-700: #007346;   /* brand primary green */
  --green-500: #12905F;   /* mid green — hover states */
  --green-100: #E1F0E9;   /* pale green tint — section backgrounds */
  --green-050: #F3FAF7;   /* faintest green wash */

  --black: #0B0D0C;       /* accent — CTAs, highlights, hints of black */
  --black-700: #242A27;   /* black hover state */
  --black-100: #EAEBE9;   /* pale black/grey tint */

  --ink-900: #14201A;     /* primary text, near-black with green cast */
  --ink-600: #4A5750;     /* secondary text */
  --ink-400: #7C8981;     /* muted text */

  --paper: #FFFFFF;       /* background */
  --white: #FFFFFF;
  --line: #DEE3E0;        /* hairline borders */

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', system-ui, Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', system-ui, Roboto, Arial, sans-serif;

  --container: 1160px;
  --radius-sm: 10px;
  --radius-md: 20px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

h1{ font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 700; }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size: 1.3rem; }
h4{ font-size: 1.05rem; }

p{ margin: 0 0 1em; max-width: 62ch; color: var(--ink-600); }

a{ color: var(--green-700); text-decoration: none; }
a:hover{ color: var(--green-500); }

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

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

:focus-visible{
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

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

section{ padding: 88px 0; }
@media (max-width: 720px){ section{ padding: 56px 0; } }

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-700);
  margin-bottom: 0.9em;
}

/* ---------------- Buttons — Liquid Glass ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.btn:active{ transform: scale(0.96); }

/* shared glass sheen — a soft highlight across the top of every pill */
.btn::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
  z-index: -1;
}

/* Solid, not glass. These buttons only ever sit on white form panels, where
   backdrop-filter has nothing to blur — and the compositing layer it creates
   could fail to repaint, leaving the button invisible until hovered. The
   highlight is painted into the background instead of a z-index:-1 pseudo
   element, which was washing the dark fill out to grey. */
.btn-primary{
  background: linear-gradient(180deg, #2C332F 0%, var(--black) 62%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--white);
  border-color: var(--black);
  box-shadow: 0 6px 16px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.14);
}
.btn-primary::before{ display: none; }
.btn-primary:hover{
  background: linear-gradient(180deg, #3A423D 0%, var(--black-700) 62%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-outline{
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-outline:hover{
  background: rgba(255,255,255,0.18);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark{
  /* also sits on light backgrounds — no backdrop worth blurring, same
     repaint risk, so it is a plain tint */
  background: rgba(0,115,70,0.06);
  border-color: var(--green-700);
  color: var(--green-700);
}
.btn-outline-dark:hover{
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,115,70,0.28);
}

.btn-block{ width: 100%; justify-content: center; }

/* the header sits on glass, so its button needs darker text to stay legible
   over whatever is scrolling behind — the green is kept as the outline */
.nav-cta .btn-outline-dark{
  color: var(--ink-900);
  background: rgba(255,255,255,0.35);
}
.nav-cta .btn-outline-dark:hover{
  color: var(--white);
  background: var(--green-700);
}

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  /* liquid glass: page content scrolls behind and refracts through */
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border-bottom: 1px solid rgba(0,115,70,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* side padding matters on small screens: `14px 0` cancelled the padding
     .container provides and left the logo flush against the edge */
  padding: 14px 22px;
}

/* On wide screens the bar runs the full width of the window: logo pinned
   to the left corner, phone + Apply Now to the right, links centred in
   between. Body content keeps its narrower 1160px column. */
@media (min-width: 901px){
  .site-header .nav{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: none;
    padding-left: clamp(24px, 3vw, 60px);
    padding-right: clamp(24px, 3vw, 60px);
    gap: 28px;
  }
  .nav-links{ justify-self: center; }
  .nav-cta{ justify-self: end; margin-left: 0; }
}

.nav-logo{
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav-logo img{ height: 62px; width: auto; display: block; }
.nav-logo .company-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-900);
  line-height: 1.16;
}
.nav-logo .company-name small{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--ink-400);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.nav-links{
  display: flex;
  align-items: center;
  /* gap tightens as the bar fills — seven items need the room */
  gap: clamp(16px, 1.8vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  color: var(--ink-900);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color: var(--ink-900);
  border-bottom-color: var(--green-700);
}

.nav-cta{ display: flex; align-items: center; gap: 14px; margin-left: clamp(14px, 1.6vw, 28px); }
.nav-phone{
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-900);
  white-space: nowrap;
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
}

/* the phone number is the first thing to go when the bar gets tight */
@media (max-width: 1200px){
  .nav-phone{ display: none; }
}

@media (max-width: 900px){
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    /* solid on purpose: a translucent overlay menu let the hero text bleed
       through and made the links hard to read */
    background: var(--white);
    border-bottom: 1px solid rgba(0,115,70,0.16);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 16px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-toggle{ display: block; }
  .nav-phone{ display: none; }
  /* phones keep just the logo and the menu icon — Contact and How to Apply
     are both inside the menu, so nothing is lost by dropping the button */
  .nav-cta{ display: none; }
  .nav-logo img{ height: 46px; }
  .nav-logo .company-name{ font-size: 1.05rem; }
  .nav-logo .company-name small{ font-size: 0.7rem; }
}

/* ---------------- Hero ---------------- */
.hero{
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

/* Photo panel — soft-masked so it melts into the green with no hard edge.
   Two overlapping gradients do the work: the photo itself fades in via a
   mask, and a separate green wash sits over the whole hero. Neither has a
   hard boundary, so there is no visible seam anywhere. */
.hero-photo{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: 30%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.35) 22%, #000 46%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.35) 22%, #000 46%);
}
.hero-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}
/* green wash over the whole hero — opaque on the text side, clear on the right */
.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(0,115,70,1) 0%,
    rgba(0,115,70,0.97) 34%,
    rgba(0,115,70,0.6) 52%,
    rgba(0,115,70,0.28) 72%,
    rgba(0,115,70,0.16) 100%);
}
.hero .container{ position: relative; z-index: 1; }

@media (max-width: 980px){
  .hero-photo{
    left: 0;
    -webkit-mask-image: linear-gradient(184deg, transparent 0%, rgba(0,0,0,0.3) 26%, #000 52%);
    mask-image: linear-gradient(184deg, transparent 0%, rgba(0,0,0,0.3) 26%, #000 52%);
  }
  .hero-photo img{ object-position: center 40%; }
  .hero::after{
    background: linear-gradient(184deg,
      rgba(0,115,70,1) 0%,
      rgba(0,115,70,0.97) 30%,
      rgba(0,115,70,0.72) 55%,
      rgba(0,115,70,0.45) 100%);
  }
}
.hero .container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
@media (max-width: 980px){
  .hero .container{ grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; gap: 40px; }
}

.hero-eyebrow{
  color: var(--green-100);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1em;
}
.hero h1{ color: var(--white); margin-bottom: 0.4em; }
.hero p.lead{
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

/* ---------------- Hero liquid-glass carousel ---------------- */
.hero-carousel{
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.carousel-track{
  position: relative;
  display: grid;
}
/* every slide occupies the same grid cell, so the card height is set by the
   tallest slide and never jumps between products */
.carousel-slide{
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
}
.carousel-slide.is-active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.glass-card{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 32px;
  padding: 44px;
  color: var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.25);
}
.glass-card::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
  z-index: -1;
}
/* soft green-tinted scrim: keeps white text readable over bright parts of the
   photo without needing heavy blur */
.glass-card::after{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(175deg, rgba(0,58,36,0.20) 0%, rgba(0,58,36,0.44) 100%);
  pointer-events: none;
  z-index: -1;
}

.slide-icon{
  width: 60px; height: 60px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.slide-icon svg{ width: 28px; height: 28px; }
.carousel-slide h3{ color: var(--white); margin-bottom: 24px; font-size: 1.5rem; }

.slide-stats .stat-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 1rem;
}
.slide-stats .stat-row:first-child{ border-top: none; }
.slide-stats .stat-row span:first-child{ color: rgba(255,255,255,0.78); }
.slide-stats .stat-row span:last-child{ color: var(--white); font-weight: 600; text-align: right; }

.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}
.dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.dot.is-active{
  background: var(--white);
  width: 26px;
  border-radius: 100px;
}

/* ---------------- Trust bar ---------------- */
.trust-bar{
  background: var(--green-050);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-bar .container{
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
}
.trust-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-900);
}
.trust-item svg{ flex-shrink: 0; }

/* ---------------- Section headers ---------------- */
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head p{ font-size: 1.05rem; }

/* ---------------- Impact figures ---------------- */
.impact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 780px){ .impact-grid{ grid-template-columns: 1fr; gap: 18px; } }

.impact-card{
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0,60,38,0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}
.impact-card .figure{
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--green-700);
  margin-bottom: 10px;
}
.impact-card h4{ margin-bottom: 6px; font-size: 1.02rem; }
.impact-card p{ margin: 0; font-size: 0.94rem; }

/* ---------------- Impact photo ---------------- */
.impact-photo{
  position: relative;
  margin-top: 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0,60,38,0.18);
}
.impact-photo img{ width: 100%; display: block; }

/* scrim so the glass caption stays readable over a bright floor */
.impact-photo::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(0,67,44,0) 0%, rgba(0,67,44,0.58) 72%, rgba(0,67,44,0.82) 100%);
  pointer-events: none;
}

.impact-photo .photo-caption{
  position: absolute;
  left: 26px; right: 26px; bottom: 26px;
  z-index: 1;
  background: rgba(0,67,44,0.42);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}
.impact-photo .photo-caption p{
  margin: 0;
  color: var(--white);
  font-size: 0.98rem;
  max-width: 62ch;
}
.impact-photo .photo-caption .where{
  display: block;
  margin-top: 5px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.78);
}

/* On a phone the caption wraps to five lines, which would cover half the
   photo and sit over the bright wall. Drop it below the image instead. */
@media (max-width: 700px){
  .impact-photo::after{ display: none; }
  .impact-photo .photo-caption{
    position: static;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(9px) saturate(150%);
    -webkit-backdrop-filter: blur(9px) saturate(150%);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.75);
    border-radius: 0;
    padding: 18px 20px;
    box-shadow: none;
  }
  .impact-photo .photo-caption p{ font-size: 0.92rem; color: var(--ink-900); }
  .impact-photo .photo-caption .where{ font-size: 0.8rem; color: var(--ink-400); }
}

/* ---------------- Tinted backdrop + light glass panels ----------------
   Glass only reads as glass when something varied sits behind it, so these
   sections get a soft brand-tinted wash for the panels to refract. */
.tinted{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 12% 18%, rgba(0,115,70,0.16) 0%, rgba(0,115,70,0) 70%),
    radial-gradient(50% 50% at 88% 12%, rgba(0,115,70,0.10) 0%, rgba(0,115,70,0) 72%),
    radial-gradient(70% 60% at 78% 92%, rgba(0,115,70,0.13) 0%, rgba(0,115,70,0) 70%),
    linear-gradient(180deg, #F7FBF9 0%, #EFF7F3 100%);
}
.tinted > .container{ position: relative; z-index: 1; }

/* light liquid glass, matched to the carousel's frosting level */
.glass-light{
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 10px 30px rgba(0,60,38,0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}

/* ---------------- Products overview (home) ---------------- */
.offer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 780px){ .offer-grid{ grid-template-columns: 1fr; } }

.offer-panel{
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.75);
  border-top: 4px solid var(--green-700);
  border-radius: var(--radius-md);
  padding: 34px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,60,38,0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}
.offer-panel.accent-dark{ border-top-color: var(--black); }
.offer-panel h3{ margin-bottom: 0.3em; }
.offer-panel .tag{
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 0.8em;
}
.offer-panel.accent-dark .tag{ color: var(--black); }
.offer-list{ list-style: none; margin: 18px 0 0; padding: 0; }
.offer-list li{
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-600);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.offer-list li:first-child{ border-top: none; }
.offer-list li strong{ color: var(--ink-900); font-weight: 600; }

/* ---------------- Why Dream (differentiators) ---------------- */
.why-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin-top: 40px;
}
@media (max-width: 780px){ .why-list{ grid-template-columns: 1fr; } }
.why-item{ display: flex; gap: 18px; }
.why-item .icon{
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--radius-sm);
}
.why-item h4{ margin-bottom: 0.3em; }
.why-item p{ font-size: 0.95rem; margin-bottom: 0; }

/* ---------------- CTA banner ---------------- */
.cta-banner{
  background: var(--green-700);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* photo panel that melts into the green, so the glass buttons have
   something varied to refract */
.cta-photo{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: 0;
  z-index: 0;
  /* fades in from the left so it melts out of the flat green, and is fully
     present behind the centred buttons */
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.45) 18%, #000 38%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.45) 18%, #000 38%);
}
.cta-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-banner::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* two stacked washes: a vertical one that keeps the heading and body text
     readable, and the horizontal melt into the flat green on the left.
     The lower band stays clearer so the glass buttons still refract. */
  background:
    linear-gradient(180deg,
      rgba(0,90,56,0.86) 0%,
      rgba(0,90,56,0.74) 34%,
      rgba(0,90,56,0.34) 62%,
      rgba(0,102,62,0.55) 82%,
      rgba(0,115,70,0.90) 94%,
      rgba(0,115,70,1) 100%),
    linear-gradient(100deg,
      rgba(0,115,70,1) 0%,
      rgba(0,115,70,0.88) 22%,
      rgba(0,115,70,0.70) 45%,
      rgba(0,115,70,0.60) 70%,
      rgba(0,115,70,0.62) 100%);
}
.cta-banner .container{ position: relative; z-index: 1; }
.cta-banner h2{ color: var(--white); }
.cta-banner p{ color: rgba(255,255,255,0.9); margin: 0 auto 1.6em; }
.cta-banner .hero-actions{ justify-content: center; }

@media (max-width: 980px){
  .cta-photo{
    left: 0;
    -webkit-mask-image: linear-gradient(184deg, transparent 0%, rgba(0,0,0,0.3) 26%, #000 54%);
    mask-image: linear-gradient(184deg, transparent 0%, rgba(0,0,0,0.3) 26%, #000 54%);
  }
  .cta-banner::after{
    background: linear-gradient(184deg,
      rgba(0,115,70,1) 0%,
      rgba(0,115,70,0.96) 30%,
      rgba(0,115,70,0.9) 60%,
      rgba(0,115,70,0.88) 100%);
  }
}

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--green-900);
  color: rgba(255,255,255,0.78);
  padding: 60px 0 28px;
  font-size: 0.92rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  /* let the brand blurb use the full width instead of squeezing into
     a narrow column and wrapping one word per line */
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  /* two narrow columns made the address and link lists wrap badly */
  .footer-grid{ grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom{ flex-direction: column; gap: 6px; }
}
.footer-brand img{ height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p{ color: rgba(255,255,255,0.62); font-size: 0.88rem; }
.footer-col h4{ color: var(--white); font-size: 0.85rem; text-transform: none; margin-bottom: 1em; }
.footer-col ul{ list-style: none; margin: 0; padding: 0; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ color: rgba(255,255,255,0.78); }
.footer-col a:hover{ color: var(--green-100); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

/* ---------------- Page hero (interior pages) ---------------- */
.page-hero{
  background: var(--green-900);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
/* photo panel — soft-masked, same seamless melt as the home hero */
.page-hero-photo{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: 40%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.35) 24%, #000 50%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.35) 24%, #000 50%);
}
.page-hero-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(0,115,70,1) 0%,
    rgba(0,115,70,0.97) 40%,
    rgba(0,115,70,0.62) 58%,
    rgba(0,115,70,0.3) 78%,
    rgba(0,115,70,0.18) 100%);
}
.page-hero .container{ position: relative; z-index: 1; }
/* keep hero text clear of the photo panel */
.page-hero .breadcrumb,
.page-hero h1,
.page-hero p{ max-width: 540px; }
.page-hero h1{ color: var(--white); margin-bottom: 0.35em; }
.page-hero p{ color: rgba(255,255,255,0.82); font-size: 1.08rem; }

@media (max-width: 980px){
  .page-hero .breadcrumb,
  .page-hero h1,
  .page-hero p{ max-width: 60ch; }
}

/* on narrow screens the heading spans the full width, so the photo would sit
   behind the text — keep those heroes solid green instead */
/* On phones the heading spans the full width, so instead of hiding the photo
   the fade runs top-to-bottom: solid green behind the text, photo showing
   through underneath. Same treatment the home hero uses. */
@media (max-width: 980px){
  .page-hero{ padding-bottom: 128px; }
  /* Measured from the BOTTOM edge, not in percentages: headings wrap to
     different lengths on each page, so a percentage fade kept exposing the
     photo behind the last line of text. The hero's bottom padding is the
     band the photo lives in. */
  .page-hero-photo{
    left: 0;
    -webkit-mask-image: linear-gradient(to top, #000 0, rgba(0,0,0,0.55) 72px, transparent 132px);
    mask-image: linear-gradient(to top, #000 0, rgba(0,0,0,0.55) 72px, transparent 132px);
  }
  .page-hero-photo img{ object-position: center 42%; }
  .page-hero::after{
    background: linear-gradient(to top,
      rgba(0,115,70,0.40) 0,
      rgba(0,115,70,0.72) 50px,
      rgba(0,115,70,0.96) 104px,
      rgba(0,115,70,1) 132px);
  }
}
.breadcrumb{
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2em;
}
.breadcrumb a{ color: rgba(255,255,255,0.8); }

/* ---------------- About page ---------------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px){ .split{ grid-template-columns: 1fr; gap: 32px; } }

.value-list{ list-style: none; margin: 0; padding: 0; }
.value-list li{
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.value-list li:last-child{ border-bottom: 1px solid var(--line); }
.value-list h4{ margin-bottom: 0.3em; }
.value-list p{ margin: 0; font-size: 0.95rem; }

.mark-block{
  background: var(--green-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
}
.mark-block .quote{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

/* ---------------- Products page ---------------- */
.product-filter-note{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--ink-400);
}

.product-row{
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.product-row:last-child{ border-bottom: 1px solid var(--line); }
@media (max-width: 900px){
  .product-row{ grid-template-columns: 1fr; gap: 18px; }
  /* stack the icon above the title so the heading, terms and requirements
     all share the same left edge instead of the title being indented */
  .product-id{ flex-direction: column; gap: 12px; }
}

.product-id{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.product-icon{
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
}
.product-id h3{ margin-bottom: 4px; }
.product-id .blurb{ font-size: 0.9rem; color: var(--ink-400); margin: 0; }

.product-col h5{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-400);
  margin: 0 0 12px;
}
.fact-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.fact-row:first-of-type{ border-top: none; }
.fact-row span:first-child{ color: var(--ink-400); }
.fact-row span:last-child{ color: var(--ink-900); font-weight: 600; text-align: right; }

.req-list{ list-style: none; margin: 0; padding: 0; }
.req-list li{
  font-size: 0.92rem;
  color: var(--ink-600);
  padding: 5px 0 5px 20px;
  position: relative;
}
.req-list li::before{
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  background: var(--black);
}

/* Savings section reuses product-row but with a black-tint accent */
.savings-row .product-icon{ background: var(--black-100); color: var(--black); }

.placeholder-note{
  background: var(--black-100);
  border-left: 3px solid var(--black);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-600);
  margin-bottom: 40px;
}
.placeholder-note strong{ color: var(--ink-900); }

/* ---------------- How to Apply — step sequence ---------------- */
.steps{
  counter-reset: step;
  max-width: 780px;
}
.step{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 44px;
}
.step:last-child{ padding-bottom: 0; }
.step::before{
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.step:not(:last-child) .step-line{
  position: absolute;
  left: 21px; top: 44px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.step h3{ margin-bottom: 6px; padding-top: 8px; }

/* tighten the number gutter on phones so text isn't squeezed */
@media (max-width: 560px){
  .step{ grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 34px; }
  .step::before{ width: 38px; height: 38px; font-size: 1.05rem; }
  .step:not(:last-child) .step-line{ left: 18px; top: 38px; }
  .step h3{ padding-top: 4px; font-size: 1.15rem; }
}
.step .doc-tags{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.doc-tag{
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--green-100);
  color: var(--green-900);
  border-radius: 100px;
}

/* ---------------- Contact page ---------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }

.contact-card{
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-card:first-child{ border-top: none; }
.contact-card .icon{
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h4{ margin-bottom: 4px; }
.contact-card p{ margin: 0; font-size: 0.94rem; }
.contact-card a{ color: var(--ink-600); }
.contact-card a:hover{ color: var(--green-700); }

.map-frame{
  border: 1px solid var(--line);
  margin-top: 28px;
  height: 260px;
  overflow: hidden;
}
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

.form-panel{
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,60,38,0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea{
  width: 100%;
  padding: 12px 14px;
  /* the old border was near-white on a light panel, so the fields had no
     visible edge at all */
  border: 1.5px solid #B9C7C0;
  background: rgba(255,255,255,0.92);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(0,60,38,0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover{ border-color: #93A69C; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--green-700);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,115,70,0.14);
}
.form-two{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 520px){ .form-two{ grid-template-columns: 1fr; } }
.form-note{ font-size: 0.82rem; color: var(--ink-400); margin-top: 14px; }

/* honeypot — visually hidden but still fillable by bots */
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status{
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-status:empty{ display: none; }
.form-status.is-success{
  color: var(--green-700);
  background: var(--green-100);
  border-left: 3px solid var(--green-700);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.form-status.is-error{
  color: #8A1C1C;
  background: #FBECEC;
  border-left: 3px solid #B32020;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ---------------- Photo elements ---------------- */
.offer-photo{
  height: 150px;
  margin: -34px -34px 24px;
  overflow: hidden;
}
.offer-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-banner{
  position: relative;
  height: 300px;
  overflow: hidden;
  margin-bottom: 44px;
}
.photo-banner img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-banner .caption{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,77,50,0.88) 0%, rgba(11,77,50,0.15) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 34px;
}
.photo-banner .caption h3{ color: var(--white); margin: 0; font-size: 1.5rem; }
.photo-banner .caption p{ color: rgba(255,255,255,0.85); margin: 4px 0 0; font-size: 0.95rem; }

.about-photo{
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}
.about-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.split.photo-left{ grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 820px){ .split.photo-left{ grid-template-columns: 1fr; } }

/* ---------------- Publications ---------------- */
.pub-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.pub-filter{
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-600);
  background: var(--white);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pub-filter:hover{ border-color: var(--green-700); color: var(--green-700); }
.pub-filter.active{ background: var(--green-700); color: var(--white); border-color: var(--green-700); }

.pub-empty{
  color: var(--ink-400);
  font-size: 0.95rem;
  padding: 28px 0;
  margin: 0;
}

.pub-list{ display: flex; flex-direction: column; gap: 0; }
.pub-row{
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.pub-list .pub-row:last-child{ border-bottom: 1px solid var(--line); }
@media (max-width: 700px){
  .pub-row{
    grid-template-columns: 40px 1fr;
    align-items: start;
    gap: 14px;
    row-gap: 10px;
  }
  .pub-row .pub-date, .pub-row .pub-action{ grid-column: 2; }
  .pub-row .pub-date{ margin-top: -2px; }
}
.pub-icon{
  width: 42px; height: 42px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.pub-title{ font-weight: 600; color: var(--ink-900); font-size: 0.98rem; }
.pub-tag{
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 4px;
}
.pub-date{ font-size: 0.88rem; color: var(--ink-400); white-space: nowrap; }
.pub-action{ white-space: nowrap; }

/* ---------------- Audience photo grid ---------------- */
.audience-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 820px){ .audience-grid{ grid-template-columns: 1fr; } }
.audience-card{
  position: relative;
  height: 340px;
  overflow: hidden;
}
.audience-card img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.audience-card .caption{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,13,12,0.85) 0%, rgba(11,13,12,0.05) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.audience-card .caption .tag-line{
  color: var(--green-100);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.audience-card .caption h4{ color: var(--white); margin: 0; }

/* ---------------- Careers / job listings ---------------- */
.job-list{ display: flex; flex-direction: column; }
.job-row{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.job-list .job-row:last-child{ border-bottom: 1px solid var(--line); }
@media (max-width: 700px){
  .job-row{
    grid-template-columns: 40px 1fr;
    align-items: start;
    gap: 14px;
    row-gap: 12px;
  }
  .job-row .job-action{ grid-column: 2; }
}

.job-icon{
  width: 42px; height: 42px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.job-title{ font-weight: 600; color: var(--ink-900); font-size: 1.02rem; margin-bottom: 5px; }
.job-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.job-chip{
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 3px 11px;
  border-radius: 100px;
}
.job-chip.deadline{ color: var(--ink-600); background: var(--black-100); }
.job-chip.closing-soon{ color: #8A1C1C; background: #FBECEC; }

.job-empty{
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,60,38,0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}
.job-empty h3{ margin-bottom: 8px; }
.job-empty p{ margin-bottom: 0; }

.apply-note{
  /* sits under the application form, so it shares the form's width rather
     than stretching the full container and looking misaligned */
  max-width: 820px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ---------------- Application form ---------------- */
.apply-form{ max-width: 820px; }

.form-block{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 28px;
  padding: 24px 0 0;
}
.form-block legend{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--green-700);
  padding: 0 14px 0 0;
}
.field-hint{
  font-size: 0.84rem;
  color: var(--ink-400);
  margin: 8px 0 0;
}

/* repeating entries */
.repeat-item{
  position: relative;
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  padding: 20px 20px 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0,60,38,0.06), inset 0 1px 0 rgba(255,255,255,0.85);
}
.repeat-grid{ display: grid; gap: 18px; }
.edu-grid{ grid-template-columns: 1.3fr 1.3fr 0.6fr; }
.exp-grid{ grid-template-columns: 1.25fr 1.25fr 0.75fr 0.75fr; }
.ref-grid{ grid-template-columns: 1fr 1.2fr 1fr; }
@media (max-width: 920px){
  .exp-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
  .edu-grid, .exp-grid, .ref-grid{ grid-template-columns: 1fr; gap: 14px; }
}
.repeat-item .form-row{ margin-bottom: 0; }
/* only stacked rows need the gap — columns inside .repeat-grid are spaced by
   the grid's own gap, and this rule was pushing them out of alignment */
.repeat-item > .form-row + .form-row,
.repeat-item > .repeat-grid + .form-row{ margin-top: 18px; }

.repeat-remove{
  display: none;            /* only shown once there is more than one entry */
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: #8A1C1C;
  cursor: pointer;
}
.repeat-remove:hover{ text-decoration: underline; }
.repeat-list.has-many .repeat-remove{ display: inline-block; }

.repeat-add{
  background: none;
  border: 1px dashed var(--green-700);
  color: var(--green-700);
  border-radius: 100px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.repeat-add:hover{ background: var(--green-700); color: var(--white); border-style: solid; }

/* small inline tick, e.g. "no previous employment" */
.check-row{
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 18px;
}
.check-row input{
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--green-700);
}
.check-row label{
  font-size: 0.92rem;
  color: var(--ink-600);
  line-height: 1.5;
}
/* when the tick is on, the entry rows step aside */
.repeat-list.is-disabled,
.repeat-add.is-disabled{ display: none; }

/* consent */
.consent-row{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.consent-row input{
  width: 19px; height: 19px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green-700);
}
.consent-row label{
  font-size: 0.92rem;
  color: var(--ink-600);
  line-height: 1.55;
}

/* an explicit display: rule beats the browser's own [hidden] handling, so
   state it once — without this, hiding a flex row with .hidden = true fails */
[hidden]{ display: none !important; }

/* ---------------- Application preview ---------------- */
.preview-panel{
  max-width: 820px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,60,38,0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}
.preview-head{ margin-bottom: 24px; }
.preview-head h3{ margin-bottom: 4px; }
.preview-head p{ margin: 0; font-size: 0.92rem; color: var(--ink-400); }

.pv-banner{
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.pv-banner span{ display: block; font-size: 0.82rem; opacity: 0.85; }
.pv-banner strong{ font-size: 1.15rem; font-weight: 700; }

#af-preview-body h4{
  font-size: 0.86rem;
  color: var(--green-700);
  margin: 26px 0 10px;
  letter-spacing: 0.01em;
}
#af-preview-body h4:first-child{ margin-top: 0; }
#af-preview-body p{ font-size: 0.95rem; margin: 0 0 6px; }
.pv-muted{ color: var(--ink-400); }

.pv-list{ display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; margin: 0; font-size: 0.95rem; }
.pv-list dt{ color: var(--ink-400); }
.pv-list dd{ margin: 0; color: var(--ink-900); font-weight: 600; }

.pv-table{ width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pv-table th{
  text-align: left; background: var(--green-100); color: var(--green-900);
  font-weight: 600; padding: 9px 12px;
}
.pv-table td{ padding: 9px 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 600px){
  .pv-table, .pv-table tr, .pv-table td, .pv-table th{ display: block; width: 100%; }
  .pv-table th{ display: none; }
  .pv-table td{ border: none; padding: 3px 0; }
  .pv-table tr{ padding: 10px 0; border-bottom: 1px solid var(--line); }
  .pv-list{ grid-template-columns: 1fr; gap: 2px; }
  .pv-list dd{ margin-bottom: 10px; }
}

.pv-role{
  border-left: 3px solid var(--green-700);
  padding: 2px 0 2px 14px;
  margin-bottom: 16px;
}
.pv-role strong{ display: block; font-size: 1rem; }
.pv-role span{ display: block; font-size: 0.86rem; color: var(--ink-400); margin-bottom: 5px; }

.preview-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 520px){
  .preview-panel{ padding: 22px 18px; }
  .preview-actions .btn{ width: 100%; justify-content: center; }
}

/* a field the visitor needs to fix */
.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid{
  border-color: #B32020;
  background: #FDF6F6;
}

/* ---------------- Regulator strip ---------------- */
.regulator-strip{
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 14px 0;
  font-size: 0.84rem;
}
.regulator-strip strong{ color: var(--white); }
