/* ===========================================================
   Insert MD — Design System
   Luxury medical-wellness: warm charcoal, ivory, champagne
   gold, deep botanical green. Cormorant Garamond + Manrope.
   No build step. Self-contained, production-ready CSS.
   =========================================================== */

:root {
  /* Surfaces */
  --ink: #131110;            /* near-black warm charcoal */
  --ink-2: #1a1714;          /* elevated dark surface */
  --ink-3: #221e1a;          /* dark card */
  --ivory: #f4efe5;          /* warm ivory page */
  --ivory-2: #ece5d6;        /* deeper ivory band */
  --paper: #fbf8f2;          /* card on ivory */

  /* Accents */
  --gold: #c6a878;           /* champagne gold */
  --gold-2: #dcc59b;         /* light gold (on dark) */
  --gold-deep: #9b7d4c;      /* readable gold on light */
  --green: #2b4a3c;          /* deep botanical green */
  --green-2: #39604d;

  /* Text */
  --text: #29251f;
  --muted: #736c63;
  --text-inv: #efe8db;
  --muted-inv: #a89f93;

  /* Lines */
  --line: rgba(19, 17, 16, .12);
  --line-strong: rgba(19, 17, 16, .24);
  --line-inv: rgba(244, 239, 229, .14);
  --line-inv-strong: rgba(244, 239, 229, .3);

  /* Shape */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 24px 60px -30px rgba(19, 17, 16, .35);

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fine film grain over everything, very low opacity */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
p { margin: 0 0 1rem; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 880px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--band { background: var(--ivory-2); }
.section--ink { background: var(--ink-2); color: var(--text-inv); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--text-inv); }
.section--ink h2 em { color: var(--gold-2); }
.section--ink p { color: var(--muted-inv); }
.section--ink a { color: var(--gold-2); }
.section--ink a:hover { color: var(--text-inv); }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--ink .hairline { background: var(--line-inv); }

/* ---------- Labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section--ink .eyebrow { color: var(--gold); }
.section-head { max-width: 760px; margin: 0 auto 72px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0 auto; max-width: 620px; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head--left .eyebrow::after { display: none; }
.section-head--left p { margin-left: 0; }
.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.75; }
.section--ink .lead { color: var(--muted-inv); }
.small { font-size: .9rem; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 17px 30px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.section--ink .btn-primary, .section--ink .btn-primary:hover, .site-header .btn-primary, .site-header .btn-primary:hover { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: transparent; color: var(--text-inv); border-color: var(--line-inv-strong); }
.btn-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-lg { padding: 19px 32px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-arrow::after { content: "→"; font-family: var(--serif); font-size: 1.2rem; line-height: 0; transition: transform .3s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); background: none; border: 0; padding: 0; cursor: pointer;
}
.text-link::after { content: "→"; font-family: var(--serif); font-size: 1.15rem; line-height: 0; transition: transform .3s var(--ease); }
.text-link:hover { color: var(--ink); }
.text-link:hover::after { transform: translateX(4px); }
.section--ink .text-link { color: var(--gold-2); }
.section--ink .text-link:hover { color: var(--text-inv); }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic {
  width: 46px; height: 46px; border-radius: var(--radius);
  border: 1px solid var(--gold-deep); color: var(--gold-deep);
  display: grid; place-items: center; margin-bottom: 22px;
}
.section--ink .ic { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 17, 16, .78);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line-inv);
  color: var(--text-inv);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-inv); }
.brand:hover { color: var(--text-inv); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; color: var(--gold-2);
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: .04em; flex-shrink: 0;
}
.brand > span { white-space: nowrap; }
.brand .word { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .01em; line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.nav-mobile-cta { display: none; }
.brand small { display: block; font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .24em; color: var(--muted-inv); text-transform: uppercase; margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted-inv); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav-links a:hover { color: var(--text-inv); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-actions .btn { padding: 13px 22px; font-size: .7rem; }
.nav-phone { color: var(--text-inv); font-size: .88rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.nav-phone:hover { color: var(--gold-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text-inv); margin: 6px 0; transition: transform .35s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--text-inv); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(198, 168, 120, .16), transparent 60%),
    radial-gradient(700px 520px at 0% 100%, rgba(43, 74, 60, .45), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 120px; }
.hero h1 { color: var(--text-inv); margin-bottom: 28px; max-width: 12ch; }
.hero h1 em { color: var(--gold-2); }
.hero .lead { max-width: 520px; color: var(--muted-inv); font-size: 1.1rem; }
.hero .eyebrow { color: var(--gold); }
.hero-cta { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; margin: 28px 0 36px; }
.hero-link { color: var(--gold-2); padding: 12px 0; }
.hero-link:hover { color: var(--text-inv); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted-inv); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-trust span { display: inline-flex; align-items: center; gap: 10px; }
.hero-trust span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.hero-visual { position: relative; padding: 0 0 56px 0; }
.hero-frame { position: relative; margin-left: 24px; }
.hero-frame::before {
  content: ""; position: absolute; inset: 0; transform: translate(-22px, 22px);
  border: 1px solid var(--gold); opacity: .55; border-radius: var(--radius-lg); pointer-events: none;
}
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); position: relative; filter: saturate(.92) contrast(1.02); }
.hero-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19,17,16,0) 55%, rgba(19,17,16,.35) 100%);
  pointer-events: none;
}
.hero-card {
  position: absolute; left: -12px; bottom: 0; width: 300px; z-index: 2;
  background: rgba(19, 17, 16, .72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line-inv-strong); border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.hc-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line-inv); margin-bottom: 8px; }
.hc-top b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--text-inv); }
.hc-badge { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); display: inline-flex; align-items: center; gap: 8px; }
.hc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(198,168,120,.18); }
.hc-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.hc-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line-inv-strong); color: var(--gold-2); display: grid; place-items: center; flex-shrink: 0; }
.hc-icon .icon { width: 18px; height: 18px; }
.hc-row b { color: var(--text-inv); display: block; font-size: .9rem; font-weight: 600; }
.hc-row small { color: var(--muted-inv); font-size: .78rem; }

/* ---------- Credentials strip ---------- */
.creds { background: var(--ink); color: var(--text-inv); border-top: 1px solid var(--line-inv); }
.creds .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 36px 28px; border-left: 1px solid var(--line-inv); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.2rem; color: var(--gold-2); line-height: 1; margin-bottom: 8px; }
.cred span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-inv); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: var(--gold-deep); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 20px; font-size: .97rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.card ul li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .92rem; color: var(--text); }
.card ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold-deep); }
.card .text-link { margin-top: auto; }
.section--ink .card { background: var(--ink-3); border-color: var(--line-inv); }
.section--ink .card:hover { border-color: var(--gold); }
.section--ink .card p { color: var(--muted-inv); }
.section--ink .card ul li { color: var(--text-inv); }
.section--ink .card ul li::before { background: var(--gold); }

/* ---------- Programs ---------- */
.prog-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.prog-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); box-shadow: var(--shadow); }
.prog-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory-2); position: relative; }
.prog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: saturate(.9); }
.prog-card:hover .prog-img img { transform: scale(1.04); }
.prog-img .num { position: absolute; top: 16px; left: 18px; font-family: var(--serif); font-size: .95rem; color: var(--text-inv); background: rgba(19,17,16,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-inv-strong); padding: 4px 10px; border-radius: var(--radius-sm); letter-spacing: .08em; }
.prog-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.prog-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.prog-body p { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.prog-note { margin-top: auto; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 32px 0 0; margin-right: 32px; position: relative; }
.step:last-child { margin-right: 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--gold-deep); }
.step .num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold-deep); margin-bottom: 22px; font-weight: 400; }
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; }
.section--ink .steps { border-top-color: var(--line-inv); }
.section--ink .step::before { background: var(--gold); }
.section--ink .step .num { color: var(--gold-2); }

/* ---------- Split / checklist ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; }
.checklist li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--muted); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li b { color: var(--ink); font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 30px; width: 14px; height: 1px; background: var(--gold-deep); }
.section--ink .checklist li { border-color: var(--line-inv); color: var(--muted-inv); }
.section--ink .checklist li b { color: var(--text-inv); }
.section--ink .checklist li::before { background: var(--gold); }
.hero .checklist li { border-color: var(--line-inv); color: var(--muted-inv); }
.hero .checklist li b { color: var(--text-inv); }
.hero .checklist li::before { background: var(--gold); }

.media-card {
  background: var(--ink-2); color: var(--text-inv); border: 1px solid var(--line-inv-strong);
  border-radius: var(--radius-lg); padding: 44px 40px; position: relative; overflow: hidden;
}
.media-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(198,168,120,.14), transparent 65%); pointer-events: none; }
.media-card > * { position: relative; }
.media-card h3 { color: var(--text-inv); font-size: 1.7rem; margin-bottom: 14px; }
.mc-stat { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-inv); }
.mc-stat:last-of-type { border-bottom: 0; }
.mc-stat b { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: var(--gold-2); line-height: 1; min-width: 96px; }
.mc-stat span { color: var(--muted-inv); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.quote .qmark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--gold); margin-bottom: 18px; display: block; }
.quote p { color: var(--text); font-size: 1.05rem; line-height: 1.7; font-family: var(--serif); font-size: 1.28rem; font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.quote .who .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold); padding: 2px; }
.quote .who .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: saturate(.85); }
.quote .who b { color: var(--ink); display: block; font-weight: 600; font-size: .95rem; }
.quote .who small { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 26px 0; font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 1.45rem; line-height: 1.25;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q .chev { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold-deep); display: grid; place-items: center; font-family: var(--sans); font-size: 1.2rem; font-weight: 300; line-height: 1; flex-shrink: 0; transition: transform .4s var(--ease), border-color .3s; }
.faq-item.open .chev { transform: rotate(45deg); border-color: var(--gold-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 64px 28px 0; color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: var(--text-inv);
  border: 1px solid var(--line-inv-strong); border-radius: var(--radius-lg);
  padding: 96px 60px;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% 120%, rgba(198,168,120,.22), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: var(--gold); justify-content: center; }
.cta-band .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.cta-band h2 { color: var(--text-inv); }
.cta-band h2 em { color: var(--gold-2); }
.cta-band p { color: var(--muted-inv); max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  border-left: 1px solid var(--gold-deep); padding: 4px 0 4px 22px;
  color: var(--muted); font-size: .84rem; line-height: 1.7; margin: 0; max-width: 960px;
}
.section--ink .disclaimer { border-left-color: var(--gold); color: var(--muted-inv); }
.mt-lg { margin-top: 56px; }
.mt-md { margin-top: 36px; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: transparent; transition: border-color .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fine { font-size: .78rem; color: var(--muted); margin: 16px 0 0; text-align: center; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--ink); color: var(--text-inv); padding: 96px 0 88px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 420px at 90% 0%, rgba(198,168,120,.14), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--text-inv); font-size: clamp(2.6rem, 5vw, 4.2rem); margin-bottom: 20px; }
.page-hero h1 em { color: var(--gold-2); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lead { color: var(--muted-inv); }
.page-hero--center { text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.page-hero--center .lead { margin: 0 auto; max-width: 640px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.75rem; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 26px; font-size: 1.3rem; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { color: var(--muted-inv); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.prose .notice { background: var(--paper); border: 1px solid var(--line); border-left: 1px solid var(--gold-deep); padding: 20px 24px; border-radius: var(--radius); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-inv); padding: 88px 0 36px; border-top: 1px solid var(--line-inv); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-inv); }
.footer-grid--resources { grid-template-columns: 1.2fr 0.7fr 1.75fr 0.7fr 0.7fr; }
.site-footer .brand { margin-bottom: 22px; }
.site-footer h4 { color: var(--text-inv); font-family: var(--sans); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer a { color: var(--muted-inv); font-size: .94rem; }
.site-footer a:hover { color: var(--gold-2); }
.footer-mission { color: var(--muted-inv); font-size: .95rem; max-width: 420px; line-height: 1.7; }
.footer-disclaimer { color: var(--muted-inv); opacity: .8; font-size: .8rem; max-width: 980px; line-height: 1.7; margin: 40px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line-inv); font-size: .74rem; letter-spacing: .06em; color: var(--muted-inv); opacity: .8; }
.cert { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-inv-strong); padding: 9px 14px; border-radius: var(--radius-sm); color: var(--gold-2); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-top: 20px; }
.cert .icon { width: 14px; height: 14px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(19, 17, 16, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  max-width: 620px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow);
  animation: pop .45s var(--ease);
}
@keyframes pop { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 40px 40px 0; position: relative; }
.modal-head h2 { font-size: 2rem; margin-bottom: 6px; }
.modal-head .sub { color: var(--muted); font-size: .95rem; }
.modal-body { padding: 10px 40px 12px; }
.modal-body p { color: var(--muted); }
.modal-body ul { list-style: none; padding: 0; margin: 0 0 6px; }
.modal-body ul li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--muted); font-size: .95rem; }
.modal-body ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--gold-deep); }
.modal-body ul li b { color: var(--ink); font-weight: 600; }
.modal-body .fine { font-size: .82rem; margin-top: 16px; }
.modal-foot { padding: 14px 40px 40px; }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1; transition: border-color .25s, color .25s;
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- PepPal app section ---------- */
.app-wrap { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: center; }
.app-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line-inv-strong);
  color: var(--text-inv); padding: 12px 18px; border-radius: var(--radius-sm); transition: border-color .3s, color .3s;
}
.store-badge:hover, .section--ink .store-badge, .section--ink .store-badge:hover { border-color: var(--gold-2); color: var(--text-inv); }
.section--ink .store-badge { border-color: var(--line-inv-strong); }
.store-badge .icon { width: 20px; height: 20px; color: var(--gold-2); }
.store-badge .big { font-size: .95rem; font-weight: 600; line-height: 1.1; }
.store-badge small { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-inv); font-weight: 600; margin-bottom: 3px; }
.app-note { margin-top: 18px; font-size: .88rem; color: var(--muted-inv); }

.phone-stage { position: relative; display: grid; place-items: center; padding: 30px 0; }
.phone-stage::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--line-inv); }
.phone-stage::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; border: 1px solid var(--line-inv); opacity: .6; }
.phone {
  position: relative; z-index: 1; width: 290px; height: 600px;
  background: #0c0a09; border-radius: 42px; padding: 12px;
  border: 1px solid var(--line-inv-strong);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.8);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #0c0a09; border-radius: 14px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--ivory); display: flex; flex-direction: column; }
.ps-top { background: var(--ink); color: var(--text-inv); padding: 54px 20px 22px; position: relative; }
.ps-top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 160px at 100% 0%, rgba(198,168,120,.22), transparent 70%); pointer-events: none; }
.ps-top > * { position: relative; }
.pp-logo { display: flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.pp-logo img { width: 26px; height: 26px; border-radius: 7px; }
.ps-top h4 { color: var(--text-inv); margin: 20px 0 4px; font-size: 1.5rem; }
.ps-top p { color: var(--muted-inv); font-size: .78rem; margin: 0; }
.ps-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ps-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; display: flex; align-items: center; gap: 10px; }
.ps-card .ic2 { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; }
.ps-card .ic2 .icon { width: 16px; height: 16px; }
.ps-card > div { flex: 1; min-width: 0; }
.ps-card b { font-size: .78rem; color: var(--ink); display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-card small { font-size: .68rem; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-card .pp-pill { flex-shrink: 0; font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 3px 6px; border-radius: var(--radius-sm); border: 1px solid var(--gold-deep); color: var(--gold-deep); white-space: nowrap; }

/* ---------- Oversight / experts ---------- */
.expert { text-align: center; align-items: center; }
.expert .av-lg {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px;
  border: 1px solid var(--gold-deep); color: var(--gold-deep);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; font-weight: 500;
  overflow: hidden; padding: 0; background: var(--ivory-2);
}
.expert .av-lg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.expert b { color: var(--ink); display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; margin-bottom: 6px; }
.expert .role { display: block; color: var(--gold-deep); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.expert p { color: var(--muted); font-size: .93rem; margin: 0; }
.team-founders { max-width: 860px; margin: 0 auto 24px; }
.team-ops { max-width: 1100px; margin: 0 auto; }

/* ---------- Trust chips ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 12px 18px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--text);
}
.badge-chip .icon { width: 16px; height: 16px; color: var(--gold-deep); }

/* ---------- Safety callout ---------- */
.safety { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 36px; }
.safety-item { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; }
.safety-item:last-child { border-bottom: 0; }
.safety-item .icon { width: 24px; height: 24px; color: var(--gold-deep); margin-top: 6px; }
.safety-item h4 { margin-bottom: 8px; }
.safety-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Revenue calculator ---------- */
.calc {
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--ink-3); border: 1px solid var(--line-inv-strong); border-radius: var(--radius-lg);
  overflow: hidden; max-width: 1000px; margin: 0 auto;
}
.calc-inputs { padding: 48px 44px; }
.calc-field { margin-bottom: 36px; }
.calc-field:last-child { margin-bottom: 6px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted-inv); margin-bottom: 16px; }
.calc-field label b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--text-inv); letter-spacing: 0; text-transform: none; line-height: 1; }
.calc-field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1px; background: var(--line-inv-strong); outline: none; cursor: pointer; margin: 12px 0; }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(198,168,120,.14); cursor: pointer; transition: box-shadow .25s; }
.calc-field input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 8px rgba(198,168,120,.2); }
.calc-field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(198,168,120,.14); cursor: pointer; }
.calc-field input[type="range"]::-moz-range-track { height: 1px; background: var(--line-inv-strong); }
.calc-result {
  background: var(--ink); border-left: 1px solid var(--line-inv); color: var(--text-inv);
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; overflow: hidden;
}
.calc-result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px 260px at 50% 100%, rgba(198,168,120,.18), transparent 70%); pointer-events: none; }
.calc-result > * { position: relative; }
.calc-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-inv); font-weight: 600; }
.calc-big { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -.01em; margin: 14px 0 8px; color: var(--gold-2); line-height: 1; }
.calc-sub { color: var(--muted-inv); font-size: .95rem; }
.calc-sub b { color: var(--text-inv); font-weight: 600; }
.calc-result .btn { margin-top: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .1s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .2s; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .3s; }
.grid > .reveal:nth-child(5) { transition-delay: .4s; }
.grid > .reveal:nth-child(6) { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .brand small { display: none; }
  .nav-phone { display: none; }
  .nav-links { gap: 22px; }
}
@media (max-width: 1020px) {
  .section { padding: 96px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
  .hero h1 { max-width: none; }
  .hero-visual { max-width: 520px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps { gap: 0 32px; border-top: 0; }
  .step { border-top: 1px solid var(--line); margin-right: 0; padding-right: 0; }
  .section--ink .step { border-top-color: var(--line-inv); }
  .calc { grid-template-columns: 1fr; max-width: 560px; }
  .calc-result { border-left: 0; border-top: 1px solid var(--line-inv); }
  .split, .app-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid,
  .footer-grid--resources { grid-template-columns: 1fr 1fr; }
  .creds .container { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(3) { border-left: 0; padding-left: 0; }
  .cred { padding: 28px 24px; }
  .phone-stage::after { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .container { padding: 0 20px; }
  .nav { height: 70px; }
  .nav-links, .nav-phone { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-inv); padding: 12px 20px 24px;
  }
  .nav-links.open li { width: 100%; border-bottom: 1px solid var(--line-inv); }
  .nav-links.open li:last-child { border-bottom: 0; }
  .nav-links.open a { display: block; padding: 16px 0; font-size: .82rem; }
  .nav-links.open a::after { display: none; }
  .nav-links.open .nav-mobile-cta { border-bottom: 0; padding-top: 16px; }
  .nav-links.open .nav-mobile-cta a { display: inline-flex; padding: 15px 24px; color: var(--ink); }
  .nav-mobile-cta { display: none; }
  .nav-links.open .nav-mobile-cta { display: block; }
  .hero-inner { padding-top: 56px; padding-bottom: 80px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-cta .btn { width: 100%; }
  .hero-visual { padding-bottom: 0; }
  .hero-frame { margin-left: 16px; margin-right: 8px; }
  .hero-frame::before { transform: translate(-14px, 14px); }
  .hero-card { position: static; width: 100%; margin-top: 32px; }
  .grid-3, .grid-2, .steps, .field-row { grid-template-columns: 1fr; }
  .steps { gap: 0; }
  .cta-band { padding: 64px 24px; }
  .footer-grid,
  .footer-grid--resources { grid-template-columns: 1fr 1fr; gap: 32px; }
  .calc-inputs, .calc-result { padding: 36px 24px; }
  .safety { padding: 4px 22px; }
  .safety-item { grid-template-columns: 1fr; gap: 8px; }
  .safety-item .icon { margin-top: 0; }
  .form-card { padding: 28px 22px; }
  .faq-q { font-size: 1.2rem; padding: 20px 0; }
  .faq-a p { padding-right: 0; }
  .modal-head, .modal-body, .modal-foot { padding-left: 24px; padding-right: 24px; }
  .modal-head { padding-top: 32px; }
  .phone { width: 270px; height: 560px; }
  .phone-stage::before { width: 340px; height: 340px; }
  .media-card { padding: 34px 26px; }
  .mc-stat b { min-width: 0; }
  .mc-stat { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .creds .container { grid-template-columns: 1fr 1fr; }
  .cred b { font-size: 1.7rem; }
  .cred { padding: 22px 16px; }
  .cred:first-child, .cred:nth-child(3) { padding-left: 0; }
}
@media (max-width: 440px) {
  .footer-grid,
  .footer-grid--resources { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: 10px; }
}

.footer-resources { min-width: 0; }
.footer-resources-label {
  color: var(--gold-2);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 14px 0 10px;
  opacity: .9;
}
.footer-resources-label:first-of-type { margin-top: 0; }
/* Single column by default (mobile / tablet). Desktop switches to a
   true 2-col grid so left/right items share a row baseline — CSS
   multi-column was filling vertically and wrapping mid-label. */
.footer-resources-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.footer-resources-list li { margin-bottom: 0; }
.footer-resources-list a {
  font-size: .82rem;
  white-space: nowrap;
  display: inline-block;
}
@media (min-width: 1100px) {
  .footer-grid--resources { grid-template-columns: 1.1fr 0.65fr 2fr 0.65fr 0.65fr; gap: 36px; }
  .footer-resources-list {
    grid-template-columns: max-content max-content;
    grid-auto-flow: column;
    column-gap: 40px;
    row-gap: 8px;
  }
  /* Preserve vertical fill order (first half left, rest right) while
     locking equal row tracks so pairs share a baseline. */
  .footer-resources > .footer-resources-list:first-of-type {
    /* 12 audience links → 6 rows in 2-col flow */
    grid-template-rows: repeat(6, auto);
  }
  .footer-resources > .footer-resources-list:last-of-type {
    /* All Resources + guide links = 12 items → 6 rows in 2-col flow */
    grid-template-rows: repeat(6, auto);
  }
}
@media (max-width: 1099px) {
  /* Narrow viewports: one column of one-line links; allow soft wrap
     only if a label still overflows the cell. */
  .footer-resources-list a { white-space: nowrap; }
}
