/* ============================================================
   MarkVast — Shared Design System
   Green #5CB947 · Ink #101210 · Cream #F1EEE9
   EN: ITC Avant Garde Gothic · AR: AGC
   ============================================================ */

@font-face {
  font-family: "Avant Garde";
  src: url("../fonts/itc-avant-garde-gothic-std-book-58957161d80eb.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Avant Garde";
  src: url("../fonts/ITCAvantGardeStd Demi.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "AGC";
  src: url("../fonts/ArbFONTS-AGCRegular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "AGC";
  src: url("../fonts/ArbFONTS-AGCBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #5cb947;
  --green-deep: #2f6d1e; /* 5.5:1 on cream — AA for small text */
  --green-soft: rgba(92, 185, 71, 0.12);
  --ink: #101210;
  --ink-dim: #565b54;
  --cream: #f1eee9;
  --paper: #faf9f6;
  --line: rgba(16, 18, 16, 0.14);
  --frame: 14px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sans-en: "Avant Garde", "Century Gothic", Futura, -apple-system, sans-serif;
  --sans-ar: "AGC", "Segoe UI", Tahoma, sans-serif;
  --ui-size: 12px;
  --maxw: 1120px;

  /* type scale — mobile → desktop, fluid via clamp().
     Nothing on the site renders below 14px except the eyebrow. */
  --fs-display: clamp(30px, 24.4px + 1.5vw, 44px);
  --fs-h1: clamp(28px, 24px + 1.07vw, 38px);
  --fs-h2: clamp(22px, 19.6px + 0.64vw, 28px);
  --fs-h3: clamp(17px, 16.2px + 0.21vw, 19px);
  --fs-lead: clamp(17px, 16.2px + 0.21vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #f8f7f3;
  color: var(--ink);
  font-family: var(--sans-en);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--sans-ar); letter-spacing: 0 !important; line-height: 1.85; }
html[lang="ar"] .en-keep { font-family: var(--sans-en); }

/* language visibility */
html[lang="en"] .lang-ar { display: none !important; }
html[lang="ar"] .lang-en { display: none !important; }

img, video { max-width: 100%; display: block; }
a { color: inherit; }
a, button, input, select, textarea, summary { touch-action: manipulation; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
body.dark-page a:focus-visible, body.dark-page button:focus-visible { outline-color: var(--green); }

/* skip link */
.skip-link {
  position: fixed;
  top: -60px; inset-inline-start: 20px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible { top: 0; }

/* ---------- viewport frame (unifying device) ---------- */
.frame-border { position: fixed; background: var(--cream); z-index: 90; pointer-events: none; }
.frame-border.t { top: 0; left: 0; right: 0; height: var(--frame); border-bottom: 1px solid var(--ink); }
.frame-border.b { bottom: 0; left: 0; right: 0; height: var(--frame); border-top: 1px solid var(--ink); }
.frame-border.l { top: 0; bottom: 0; left: 0; width: var(--frame); border-right: 1px solid var(--ink); }
.frame-border.r { top: 0; bottom: 0; right: 0; width: var(--frame); border-left: 1px solid var(--ink); }
body.dark-page .frame-border { background: #060806; border-color: rgba(140, 200, 120, 0.35); }

.ui-label {
  font-size: var(--ui-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
html[lang="ar"] .ui-label { letter-spacing: 0.04em; font-size: 11px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: var(--frame); left: var(--frame); right: var(--frame);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 22px;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body.dark-page .site-header {
  background: rgba(6, 8, 6, 0.7);
  border-bottom-color: rgba(140, 200, 120, 0.2);
  color: #f2f6f0;
}

.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; }
.brand-img { height: 44px; width: auto; display: block; }
/* keep the strapline in the logo lockup legible on small screens */
@media (max-width: 600px) { .brand-img { height: 44px; } }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.brand-word span { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep); font-weight: 600; }
body.dark-page .brand-word span { color: var(--green); }
html[lang="ar"] .brand-word b { font-size: 18px; }
html[lang="ar"] .brand-word span { letter-spacing: 0; text-transform: none; font-size: 10px; }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
html[dir="rtl"] .main-nav a::after { transform-origin: left; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
html[dir="rtl"] .main-nav a:hover::after, html[dir="rtl"] .main-nav a.is-active::after { transform-origin: right; }
.main-nav a.is-active { color: var(--green-deep); }
body.dark-page .main-nav a.is-active { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--ink);
  background: transparent;
  color: inherit;
  font: 600 12px var(--sans-ar);
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
html[lang="ar"] .lang-toggle { font-family: var(--sans-en); letter-spacing: 0.1em; }
.lang-toggle:hover { background: var(--ink); color: var(--cream); }
body.dark-page .lang-toggle { border-color: rgba(242, 246, 240, 0.5); }
body.dark-page .lang-toggle:hover { background: #f2f6f0; color: var(--ink); }

/* burger — explicit color (inherits header ink / off-white on dark), 44×44 tap target */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: 0.3s var(--ease); }

/* language switch + CTA live inside the menu panel at mobile widths only */
.main-nav .nav-lang, .main-nav .nav-cta { display: none; }

@media (max-width: 980px) {
  /* backdrop-filter makes the header a containing block for fixed descendants,
     which would trap the full-screen .main-nav overlay inside the header box.
     Drop the blur on mobile so the menu is positioned against the viewport. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--cream);
  }
  body.dark-page .site-header { background: #060806; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    font-size: 20px;
    transform: translateY(-102%);
    /* visibility:hidden guarantees the closed menu is never painted — even if the
       transform animates for a frame on JS insert — so it can't flash on load.
       Visibility flips instantly on open, and after the slide on close. */
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
    z-index: 95;              /* above frame-border (90) and header (80) */
  }
  body.dark-page .main-nav { background: #060806; }
  body.nav-open .main-nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s var(--ease), visibility 0s;
  }
  /* mobile header = logo + hamburger only; toggle + CTA move into the panel */
  .header-actions .lang-toggle { display: none; }
  .main-nav { overflow-y: auto; padding: 90px 24px 40px; }
  .main-nav .nav-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: -1;
    border: 1px solid var(--ink);
    background: transparent;
    color: inherit;
    font: 600 14px var(--sans-ar);
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
  }
  html[lang="ar"] .main-nav .nav-lang { font-family: var(--sans-en); letter-spacing: 0.08em; }
  body.dark-page .main-nav .nav-lang { border-color: rgba(242, 246, 240, 0.5); }
  .main-nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 20rem);
    padding: 14px 28px;
    margin-top: 6px;
  }
  .main-nav a.nav-cta::after { display: none; }
  /* push frame borders behind the open nav overlay */
  body.nav-open .frame-border { z-index: 0; }
  /* prevent the page scrolling behind the open nav */
  body.nav-open { overflow: hidden; }
  .nav-burger { display: block; position: relative; z-index: 96; } /* above nav overlay (95) so the X can close it */
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* .btn-sm's display:inline-flex has equal specificity and comes later in the
     file — this selector must outrank it or the CTA pill stays in the header */
  .header-actions .header-cta.btn-sm { display: none; }
}

@media (max-width: 600px) {
  :root { --frame: 6px; }
  .frame-border.l,
  .frame-border.r { display: none; }
  .site-header {
    left: 0;
    right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  /* phones only — keep text off the screen edge; desktop keeps its clamp() padding */
  .wrap { padding: 0 24px; }
  main.page-main { padding-top: 84px; } /* clears the fixed header (~74px) with breathing room */
  /* inner-page headings and lead scale down a step on phones only */
  h1.display { font-size: 26px; }
  h2.title { font-size: 21px; }
  .lead { font-size: 16px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  font-family: inherit;
}
.btn-green { background: var(--green); color: #06210a; }
.btn-ink { background: var(--ink); color: var(--cream); }
/* hover effects only on devices that actually hover — taps on iOS otherwise
   leave the transform/shadow stuck until the next tap elsewhere */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-green:hover { box-shadow: 0 12px 30px rgba(92, 185, 71, 0.4); }
  .btn-ink:hover { box-shadow: 0 12px 30px rgba(16, 18, 16, 0.28); }
}
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
body.dark-page .btn-ghost { border-color: rgba(242, 246, 240, 0.55); color: #f2f6f0; }
body.dark-page .btn-ghost:hover { background: #f2f6f0; color: var(--ink); }
.btn-sm { padding: 12px 22px; font-size: var(--fs-small); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- layout / typography ---------- */
main.page-main { position: relative; z-index: 1; padding-top: 96px; }

/* 100vw ignores the scrollbar and overflows on iOS Safari — inset:0 alone
   sizes a fixed element to the viewport without creating horizontal scroll. */
#fluid-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#fluid-wrap canvas { width: 100%; height: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }

.section { padding: clamp(48px, 9vw, 112px) 0; }
.section + .section { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--green); }
html[lang="ar"] .eyebrow { letter-spacing: 0.04em; font-size: 13px; }

h1.display {
  font-size: var(--fs-h1);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 22px;
}
h2.title {
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 16px;
}
h3 { font-weight: 600; font-size: var(--fs-h3); margin-bottom: 8px; }
html[lang="ar"] h1.display, html[lang="ar"] h2.title { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
html[lang="ar"] h3 { line-height: 1.55; }

.lead { font-size: var(--fs-lead); color: var(--ink-dim); max-width: 34ch; text-wrap: pretty; }
@media (min-width: 700px) { .lead { max-width: 46rem; } }
html[lang="ar"] .lead { line-height: 1.85; }
.muted { color: var(--ink-dim); }
.accent { color: var(--green-deep); }
.pull {
  font-style: italic;
  color: var(--ink);
  border-inline-start: 3px solid var(--green);
  padding-inline-start: 20px;
  margin: 26px 0;
  max-width: 44rem;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}
body.dark-page .pull { color: #f2f6f0; }

.hero {
  /* padding-block only — the shorthand form was zeroing out .wrap's horizontal
     padding on `class="hero wrap"` sections, pushing text to the screen edge */
  padding-block: clamp(60px, 10vw, 130px) clamp(48px, 7vw, 90px);
}
.hero .btn { margin-top: 30px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 30px) clamp(20px, 2.8vw, 28px);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(16, 18, 16, 0.1);
    border-color: rgba(92, 185, 71, 0.55);
  }
}
a.card { display: block; text-decoration: none; color: inherit; }
.card .more-line {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}
.card .num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--green-deep);
  display: block;
  margin-bottom: 14px;
}
.card p { color: var(--ink-dim); font-size: var(--fs-body); }
.card a.more {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.25s;
}
.card a.more:hover { color: var(--green-deep); }

/* step list */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .step-num {
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green);
  line-height: 1;
}
.step .step-dur { font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.step p { color: var(--ink-dim); margin-top: 6px; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare thead th { background: var(--ink); color: var(--cream); font-weight: 600; }
.compare thead th:last-child { background: var(--green-deep); }
.compare td:last-child { font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:nth-child(even) { background: var(--paper); }

/* checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { padding-inline-start: 30px; position: relative; color: var(--ink-dim); }
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 14px; height: 8px;
  border-inline-start: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
html[dir="rtl"] .checklist li::before { transform: rotate(45deg) scaleX(-1); }

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--green-deep); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-dim); padding-top: 12px; max-width: 56rem; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 24px;
  padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse 40% 45% at 70% 20%, rgba(92, 185, 71, 0.35), transparent 70%),
              radial-gradient(ellipse 35% 40% at 20% 90%, rgba(92, 185, 71, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: rgba(241, 238, 233, 0.72); max-width: 40rem; margin: 0 auto 8px; }
.cta-band .btn { margin-top: 22px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: clamp(56px, 8vw, 100px);
  padding: clamp(48px, 6vw, 80px) 0 34px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(241, 238, 233, 0.16);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  font-weight: 600;
}
html[lang="ar"] .site-footer h4 { letter-spacing: 0.02em; font-size: 13px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: rgba(241, 238, 233, 0.72); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.site-footer a:hover { color: var(--green); }
.footer-img { height: 115px; width: auto; display: block; }
.footer-brand p { color: rgba(241, 238, 233, 0.6); font-size: var(--fs-small); max-width: 26rem; margin-top: 14px; }
.footer-tag { color: var(--green); font-weight: 600; margin-top: 14px; font-size: 15px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: var(--fs-small);
  color: rgba(241, 238, 233, 0.45);
}

/* ---------- PWA install banner ---------- */
.pwa-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: calc(var(--frame) + 14px);
  z-index: 120; /* above frame borders (90) and header (80) */
  max-width: 460px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid rgba(140, 200, 120, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 18px 44px rgba(6, 8, 6, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.pwa-banner.show { opacity: 1; transform: none; }
.pwa-banner .pwa-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.pwa-banner .pwa-text { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.pwa-banner .pwa-text b { font-size: var(--fs-body); }
.pwa-banner .pwa-sub { font-size: var(--fs-small); color: rgba(241, 238, 233, 0.72); }
.pwa-banner .pwa-actions { display: flex; gap: 8px; align-items: center; }
.pwa-banner .btn-ghost { border-color: rgba(242, 246, 240, 0.45); color: var(--cream); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.field textarea { min-height: 140px; resize: vertical; }

/* info panel */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.panel + .panel { margin-top: 18px; }

/* legal pages — h2 for correct heading order, styled at h3 scale */
.prose { max-width: 46rem; }
.prose h2, .prose h3 { margin-top: 30px; font-size: var(--fs-h3); font-weight: 600; margin-bottom: 8px; }
.prose p { color: var(--ink-dim); margin-bottom: 14px; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
