/* =========================================================
   Eagle Finance — shared stylesheet
   Palette derived from the Eagle Financial Services logo.
   Type: Archivo (display) / Hanken Grotesk (body) / Spline Sans Mono (figures)
   ========================================================= */

:root {
  --ink:        #14222B;
  --navy:       #1E3340;
  --navy-soft:  #27414F;
  --green:      #2E7D55;
  --green-700:  #246347;
  --green-100:  #E4F0E9;
  --paper:      #F4F6F6;
  --surface:    #FFFFFF;
  --line:       #D7DFDF;
  --line-soft:  #E6EBEB;
  --muted:      #566169;
  --muted-dk:   #97A6AC;

  --maxw: 1160px;
  --pad: clamp(1.15rem, 4vw, 2rem);
  --section-y: clamp(3.75rem, 8vw, 6.5rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow: 0 1px 2px rgba(20,34,43,.05), 0 12px 32px -18px rgba(20,34,43,.28);

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono: "Spline Sans Mono", ui-monospace, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--ink { background: linear-gradient(160deg, var(--ink) 20%, #0D2A1A 100%); color: var(--paper); }
.rule-top { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 1rem;
}
.section--ink .eyebrow { color: #6FC79A; }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.section--ink .lead { color: #C7D2D6; }

.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
.h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff; --bd: var(--green);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .92rem 1.4rem; border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  transition: background .18s ease, border-color .18s ease, transform .06s ease, color .18s ease;
}
.btn:hover { background: var(--green-700); border-color: var(--green-700); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.section--ink .btn--ghost { --fg: var(--paper); --bd: rgba(255,255,255,.28); }
.section--ink .btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.6); color:#fff; }
.btn--lg { padding: 1.05rem 1.6rem; font-size: 1.05rem; }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem;
  padding: .55rem .8rem; border-radius: var(--r-sm); line-height: 1;
}
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--green-700); }
.site-nav .nav-cta {
  background: var(--green); color: #fff; margin-left: .4rem; padding: .65rem 1.1rem;
}
.site-nav .nav-cta:hover { background: var(--green-700); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, #E8F5EE 0%, var(--surface) 52%); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.hero-meta {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.6rem;
}
.hero-meta div { line-height: 1.25; }
.hero-meta .k { font-family: var(--ff-mono); font-size: 1.35rem; font-weight: 500; color: var(--green); }
.hero-meta .l { font-size: .82rem; color: var(--muted); }

/* ---------- statement / calculator (signature element) ---------- */
.statement {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.statement__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.1rem 1.4rem; background: var(--green); color: #fff;
}
.statement__head h2 {
  font-size: .82rem; font-family: var(--ff-mono); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: #fff;
}
.statement__head .tag { font-family: var(--ff-mono); font-size: .72rem; color: rgba(255,255,255,.82); letter-spacing: .1em; }
.statement__body { padding: 1.4rem; }

.field-amount { margin-bottom: 1.25rem; }
.field-amount label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .7rem; }
.field-amount .lbl { font-size: .9rem; color: var(--muted); }
.field-amount output {
  font-family: var(--ff-mono); font-size: 1.5rem; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: linear-gradient(to right, var(--green) var(--fill, 20%), var(--line) var(--fill, 20%));
  border-radius: 999px; outline-offset: 4px;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(20,34,43,.35); cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--green);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(20,34,43,.35); cursor: pointer;
}
.slider-ends { display: flex; justify-content: space-between; margin-top: .5rem; font-family: var(--ff-mono); font-size: .72rem; color: var(--muted-dk); }

.ledger { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; margin-top: 1.3rem; }
.ledger__row { display: flex; align-items: baseline; justify-content: space-between; padding: .5rem 0; }
.ledger__row .desc { font-size: .9rem; color: var(--muted); font-family: var(--ff-body); }
.ledger__row .val { font-size: 1rem; color: var(--ink); }
.ledger__row--total {
  margin-top: .35rem; padding-top: .9rem; border-top: 1.5px solid var(--ink);
}
.ledger__row--total .desc { font-family: var(--ff-display); font-weight: 700; color: var(--ink); font-size: 1rem; }
.ledger__row--total .val { font-size: 1.5rem; font-weight: 600; color: var(--green-700); }
.ledger__row--meta .desc, .ledger__row--meta .val { color: var(--muted); font-size: .82rem; }
.statement__foot { margin-top: 1.3rem; }
.statement__foot .btn { width: 100%; justify-content: center; }
.statement__fine { font-size: .76rem; color: var(--muted); margin-top: .8rem; line-height: 1.45; }

/* ---------- generic content blocks ---------- */
.block-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.block-head .h2 { margin-bottom: 1rem; }

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

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem; height: 100%;
}
.section--paper .card { background: #fff; }
.card .h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* numbered steps — used only where order genuinely matters (the application process) */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  counter-increment: step;
  display: flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; flex-shrink: 0;
  background: var(--green-100); border-radius: 50%;
  font-family: var(--ff-mono); font-size: .78rem; font-weight: 700;
  color: var(--green-700); padding-top: 0;
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step__body .h3 { margin-bottom: .35rem; }
.step__body p { color: var(--muted); }

/* terms table */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
table.terms { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.terms caption { text-align: left; padding: 1rem 1.2rem; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); background: var(--green-100); border-bottom: 1px solid #C8E3D0; }
table.terms th, table.terms td { text-align: right; padding: .85rem 1.2rem; font-family: var(--ff-mono); font-size: .95rem; border-top: 1px solid var(--line-soft); }
table.terms th:first-child, table.terms td:first-child { text-align: left; }
table.terms thead th { background: var(--green-100); color: var(--green-700); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; border-top: 0; }
table.terms tbody tr:nth-child(even) { background: #FBFCFC; }
table.terms .total-col { color: var(--green-700); font-weight: 600; }

/* definition / spec list */
.spec { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.spec__row dt { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec__row dd { margin: 0; color: var(--ink); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; color: var(--ink); }
.checklist li::before {
  content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23246347' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* areas list */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; }
.area-chip {
  font-family: var(--ff-mono); font-size: .82rem; letter-spacing: .04em;
  padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  background: #fff;
}
.section--ink .area-chip { background: rgba(46,125,85,.22); border-color: rgba(46,125,85,.55); color: var(--green-100); }

/* CTA strip */
.cta-strip { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta-strip .h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-strip .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--green-700); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,125,85,.16);
}
.field .hint { font-size: .8rem; color: var(--muted); }
.field-consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.field-consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.field-consent label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-note strong { color: var(--ink); }

/* Form section divider */
.form-divider {
  display: flex; align-items: center; gap: .75rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  margin: .4rem 0 -.2rem;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* Upload note */
.upload-note {
  font-size: .82rem; color: var(--muted); margin: 0;
  padding: .7rem .9rem; background: var(--green-100); border-radius: var(--r-sm);
  border: 1px solid #C8E3D0;
}

/* File inputs */
input[type="file"] {
  padding: .55rem .7rem;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  background: var(--green-100);
  border: 1px solid #C8E3D0;
  border-radius: calc(var(--r-sm) - 2px);
  color: var(--green-700);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  margin-right: .75rem;
  cursor: pointer;
  transition: background .15s;
}
input[type="file"]::file-selector-button:hover {
  background: #C8E3D0;
}

.form-confirm {
  display: none; grid-column: 1 / -1; padding: 1.2rem 1.3rem;
  border: 1px solid var(--green); background: var(--green-100); border-radius: var(--r-md);
  color: var(--green-700);
}
.form-confirm.is-visible { display: block; }
.form-confirm strong { color: var(--ink); }

/* contact info */
.info-list { display: grid; gap: 1.3rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.info-list .info-row .label { font-family: var(--ff-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.info-list .info-row .value { font-size: 1.1rem; color: var(--ink); }
.placeholder { color: var(--muted); font-style: italic; }
.branch { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.branch:first-child { border-top: 1px solid var(--line); }
.branch .h3 { margin-bottom: .3rem; }
.branch p { color: var(--muted); font-size: .95rem; }

/* map placeholder */
.map-ph {
  border: 1px dashed var(--line); border-radius: var(--r-md); background:
    repeating-linear-gradient(45deg, #fff, #fff 14px, var(--paper) 14px, var(--paper) 28px);
  min-height: 280px; display: grid; place-items: center; color: var(--muted);
  font-family: var(--ff-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(2.8rem, 6vw, 4.2rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-logotype { font-family: var(--ff-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; color: #fff; }
.footer-logotype span { color: #6FC79A; }
.footer-note { color: var(--muted-dk); font-size: .92rem; margin-top: .5rem; }
.footer-areas { color: var(--muted-dk); font-size: .86rem; margin-top: .9rem; font-family: var(--ff-mono); line-height: 1.7; }
.footer-head { font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 1rem; }
.footer-col a, .footer-col p.line { display: block; text-decoration: none; color: #D7DEE1; font-size: .95rem; padding: .28rem 0; }
.footer-col a:hover { color: #fff; }
.footer-legal p { color: var(--muted-dk); font-size: .84rem; line-height: 1.55; }
.footer-legal .ncr { color: #D7DEE1; font-family: var(--ff-mono); margin-top: .6rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  color: var(--muted-dk); font-size: .82rem;
}
.footer-bottom p { font-family: var(--ff-mono); }

/* skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: clamp(2.2rem, 6vw, 3.2rem); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: .35rem; }
  .cta-strip { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1rem;
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .nav-cta { margin: .7rem 0 0; text-align: center; border-radius: var(--r-sm); }
  .form-grid { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.1rem; }
}

/* ---------- animations ---------- */

@keyframes _fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes _slide-right {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes _ledger-pulse {
  0%   { color: var(--green); }
  100% { color: var(--green-700); }
}

/* hero — above fold, animate immediately on load */
.hero .eyebrow   { animation: _fade-up     .50s            cubic-bezier(.22,1,.36,1) both; }
.hero h1         { animation: _fade-up     .60s .07s       cubic-bezier(.22,1,.36,1) both; }
.hero .lead      { animation: _fade-up     .60s .15s       cubic-bezier(.22,1,.36,1) both; }
.hero-actions    { animation: _fade-up     .60s .23s       cubic-bezier(.22,1,.36,1) both; }
.hero-meta       { animation: _fade-up     .60s .33s       cubic-bezier(.22,1,.36,1) both; }
.hero .statement { animation: _slide-right .70s .10s       cubic-bezier(.22,1,.36,1) both; }

/* ledger total flash when slider moves */
.ledger-pulse { animation: _ledger-pulse .30s ease; }

/* scroll-reveal — requires .js class on <html> (added by app.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .58s cubic-bezier(.22,1,.36,1),
              transform .58s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="left"]  { transform: translateX(-22px); }
.js [data-reveal="scale"] { transform: translateY(10px) scale(.92); }
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- colorize ---------- */

/* green dot prefix on every eyebrow */
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-right: .5rem;
  vertical-align: middle;
  position: relative; top: -1px;
}
.section--ink .eyebrow::before { background: #6FC79A; }

/* card accent top borders + green-card surface tint */
.card-g { border-top: 3px solid var(--green); background: #F2FAF5; }
.section--paper .card-g { background: #ECF7F1; }
.card-n { border-top: 3px solid var(--navy-soft); }
.card-a { border-top: 3px solid #6FC79A; }

/* page intro gradient — first section on inner pages */
.page-intro {
  background: linear-gradient(160deg, #E8F5EE 0%, var(--surface) 55%);
  border-bottom: 1px solid #C8E3D0;
}

/* highlighted spec row on light background */
.spec__row--hl dt { color: var(--green-700); font-weight: 600; }
.spec__row--hl dd { color: var(--green-700); font-weight: 700; }

/* ---------- ui-ux-pro-max ---------- */

/* card hover lift */
.card { transition: box-shadow .22s ease, transform .18s ease; }
.card:hover {
  box-shadow: 0 2px 8px rgba(20,34,43,.07), 0 18px 36px -16px rgba(20,34,43,.22);
  transform: translateY(-3px);
}

/* nav animated underline indicator */
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 6px; left: .8rem; right: .8rem;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .18s ease;
}
.site-nav a:not(.nav-cta):hover::after  { transform: scaleX(1); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta)::after { display: none; }
}

/* table row hover */
table.terms tbody tr { transition: background .12s ease; }
table.terms tbody tr:hover { background: var(--green-100) !important; }

/* area chip hover */
.area-chip { transition: background .15s ease, border-color .15s ease, color .15s ease; cursor: default; }
.area-chip:hover { background: var(--green-100); border-color: var(--green); color: var(--green-700); }
.section--ink .area-chip:hover { background: rgba(46,125,85,.38); border-color: rgba(111,199,154,.7); color: #fff; }

/* branch heading colour on hover */
.branch .h3 { transition: color .15s ease; }
.branch:hover .h3 { color: var(--green-700); }

/* dark-section spec overrides */
.section--ink .spec { border-top-color: rgba(255,255,255,.16); }
.section--ink .spec__row { border-bottom-color: rgba(255,255,255,.16); }
.section--ink .spec__row dt { color: var(--muted-dk); }
.section--ink .spec__row dd { color: var(--paper); }
.section--ink .spec__row--hl dt { color: #6FC79A; }
.section--ink .spec__row--hl dd { color: #6FC79A; font-weight: 700; }

/* spec row hover */
.spec__row { transition: background .12s ease; }
.spec__row:hover { background: #F4F8F6; }
.section--ink .spec__row:hover { background: rgba(255,255,255,.05); }

/* form input hover */
.field input:hover:not(:focus),
.field select:hover:not(:focus),
.field textarea:hover:not(:focus) { border-color: var(--muted-dk); }

/* solid button hover glow */
.btn:not(.btn--ghost):hover { box-shadow: 0 6px 18px -4px rgba(46,125,85,.30); }

/* ID field character counter */
.char-counter { font-family: var(--ff-mono); font-size: .76rem; color: var(--muted-dk); }
.char-counter.is-full { color: var(--green-700); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- image layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--img-right .split__img { order: 2; }
.split--img-right .split__copy { order: 1; }

.split__img {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.split__img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.split__img:hover img { transform: scale(1.03); }

/* Ink-section image — dim slightly to sit on dark bg */
.split__img--ink img {
  filter: brightness(0.82) saturate(0.85);
  border-radius: var(--r-lg);
}

/* Apply page image strip (above form) */
.apply-img-strip {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.apply-img-strip img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.apply-img-strip:hover img { transform: scale(1.02); }

/* Contact page full-width image strip */
.contact-img-strip {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.contact-img-strip img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.contact-img-strip:hover img { transform: scale(1.02); }

/* Apply sidebar image */
.sidebar-img {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.sidebar-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--img-right .split__img,
  .split--img-right .split__copy { order: unset; }
  .split__img img { height: 320px; }
  .contact-img-strip img { height: 240px; }
}
@media (max-width: 520px) {
  .split__img img { height: 220px; }
  .sidebar-img img { height: 160px; }
}
