/* =====================================================================
   Reyes PEO Advisory  -  app.css
   Demo D  -  "The Owner-Operator"  -  warm, editorial, human
   One combined stylesheet. Tokens first. Authored, not framework dump.
   NOTE (production): self-host the woff2 files in /assets/fonts and
   replace the async font links in <head> to satisfy the self-hosted
   hard rule. This demo uses the SOP async fallback.
   ===================================================================== */

:root{
  --paper:       #F6F4EF;  /* warm linen background */
  --ink:         #23211E;  /* warm charcoal, never pure black */
  --forest:      #1F5C4A;  /* primary brand and the one CTA */
  --forest-deep: #143C30;  /* dark sections and footer */
  --clay:        #BE6E4E;  /* small warm human accent only */
  --stone:       #E7E0D5;  /* warm panels and dividers */
  --muted:       #6E6A62;  /* captions and labels */
  --wrap:        1200px;
  --header-h:    64px;

  --paper-2:     #FBFAF7;  /* card surface, a touch lighter than paper */
  --hair:        #DAD3C6;  /* hairline on paper */
  --forest-soft: rgba(31,92,74,.08);
  --shadow-sm:   0 1px 2px rgba(35,33,30,.05), 0 2px 8px rgba(35,33,30,.05);
  --shadow-md:   0 4px 14px rgba(35,33,30,.08), 0 12px 34px rgba(35,33,30,.07);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --script: "Sacramento", "Snell Roundhand", cursive;
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:18px;
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:var(--forest); text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:3px; }
h1,h2,h3,h4{ margin:0; font-family:var(--serif); font-weight:500; color:var(--ink); line-height:1.12; letter-spacing:-.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }
:focus-visible{ outline:3px solid var(--forest); outline-offset:3px; border-radius:3px; }

/* ---------- layout ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 28px; }
.band{ padding:88px 0; }
.band--tight{ padding:56px 0; }
.band--stone{ background:var(--stone); }
.band--paper2{ background:var(--paper-2); }
.band--forest{ background:var(--forest-deep); color:var(--paper); }
.band--forest h1,.band--forest h2,.band--forest h3{ color:var(--paper); }
main{ display:block; }

/* ---------- typography helpers ---------- */
.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--forest);
  font-weight:500;
  margin:0 0 18px;
  display:inline-block;
}
.band--forest .eyebrow{ color:var(--clay); }
.lead{ font-size:21px; line-height:1.55; color:var(--ink); max-width:60ch; }
.section-head{ max-width:760px; margin:0 0 36px; }
.section-head .lead{ margin-top:14px; color:var(--muted); }
.muted{ color:var(--muted); }

h1.h-display{ font-size:clamp(34px, 5.2vw, 60px); letter-spacing:-.02em; }
h2.h-section{ font-size:clamp(27px, 3.4vw, 38px); }
h3.h-card{ font-size:21px; letter-spacing:-.005em; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  height:var(--header-h);
  background:rgba(246,244,239,.86);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--hair);
}
.site-header .wrap{ height:100%; display:flex; align-items:center; gap:28px; }
.brand{ display:flex; align-items:baseline; gap:8px; font-family:var(--serif); font-size:21px; font-weight:600; color:var(--ink); letter-spacing:-.01em; white-space:nowrap; }
.brand:hover{ text-decoration:none; }
.brand .brand-mark{ color:var(--forest); }
.nav{ display:flex; align-items:center; gap:26px; margin-left:8px; }
.nav a{ color:var(--ink); font-size:15.5px; font-weight:500; padding:6px 0; position:relative; }
.nav a:hover{ text-decoration:none; color:var(--forest); }
.nav a[aria-current="page"]{ color:var(--forest); }
.nav a[aria-current="page"]::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--clay); border-radius:2px; }
.header-spacer{ flex:1; }
.btn-nav-cta{ white-space:nowrap; }
.nav-toggle{ display:none; }

/* mobile drawer */
.drawer{ display:none; }
@media (max-width:920px){
  .nav, .header-cta-desktop{ display:none; }
  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    margin-left:auto; width:44px; height:44px; border:1px solid var(--hair);
    background:var(--paper-2); border-radius:8px; cursor:pointer; color:var(--ink);
  }
  .nav-toggle svg{ width:22px; height:22px; }
  .drawer{
    display:block; position:fixed; inset:var(--header-h) 0 auto 0; z-index:55;
    background:var(--paper); border-bottom:1px solid var(--hair);
    transform:translateY(-12px); opacity:0; visibility:hidden;
    transition:transform .22s ease, opacity .22s ease, visibility .22s;
    box-shadow:var(--shadow-md);
  }
  .drawer.open{ transform:translateY(0); opacity:1; visibility:visible; }
  .drawer .wrap{ padding-top:14px; padding-bottom:22px; display:flex; flex-direction:column; gap:2px; }
  .drawer a{ color:var(--ink); font-size:18px; font-weight:500; padding:14px 4px; border-bottom:1px solid var(--hair); }
  .drawer a:hover{ text-decoration:none; color:var(--forest); }
  .drawer .btn{ margin-top:16px; justify-content:center; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--sans); font-weight:600; font-size:16px; line-height:1;
  padding:14px 24px; border-radius:10px; border:1px solid transparent;
  cursor:pointer; transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration:none;
}
.btn:hover{ text-decoration:none; }
.btn--primary{ background:var(--forest); color:#fff; box-shadow:0 1px 0 rgba(0,0,0,.06); }
.btn--primary:hover{ background:#1a5040; transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.btn--primary:active{ transform:translateY(0); }
.btn--ghost{ background:transparent; color:var(--forest); border-color:var(--forest); }
.btn--ghost:hover{ background:var(--forest-soft); }
.btn--onforest{ background:var(--paper); color:var(--forest-deep); }
.btn--onforest:hover{ background:#fff; transform:translateY(-1px); }
.btn--sm{ padding:10px 18px; font-size:15px; }
.btn .arr{ transition:transform .15s ease; }
.btn:hover .arr{ transform:translateX(3px); }

/* ---------- hero ---------- */
.hero{ padding:64px 0 72px; }
.hero .eyebrow{ margin-bottom:20px; }
.hero h1{ margin-bottom:22px; max-width:18ch; }
.hero .hero-sub{ font-size:21px; line-height:1.55; color:var(--ink); max-width:62ch; margin-bottom:30px; }
.hero-actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.hero-trust{ font-family:var(--sans); font-size:15px; color:var(--muted); margin-top:22px; display:flex; align-items:center; gap:9px; }
.hero-trust::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--clay); flex:none; }

.hero--split .hero-grid{ display:grid; grid-template-columns:1.04fr .96fr; gap:56px; align-items:center; }
.hero--split h1{ max-width:none; }
.sig{ font-family:var(--script); font-size:46px; line-height:1; color:var(--forest); margin-top:30px; display:inline-block; transform:rotate(-3deg); }
.sig-row{ display:flex; align-items:center; gap:16px; margin-top:28px; }
.sig-row .sig{ margin-top:0; }
.sig-row .sig-note{ font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }

@media (max-width:920px){
  .hero--split .hero-grid{ grid-template-columns:1fr; gap:34px; }
  .hero{ padding:44px 0 52px; }
}

/* ---------- image placeholders (no real photography in demo) ---------- */
.ph-img{
  position:relative; border-radius:14px; overflow:hidden;
  background:
    repeating-linear-gradient(135deg, rgba(31,92,74,.07) 0 14px, rgba(31,92,74,0) 14px 28px),
    var(--stone);
  border:1px solid var(--hair);
  display:flex; align-items:flex-end;
  box-shadow:var(--shadow-md);
}
.ph-img--portrait{ aspect-ratio:4/5; }
.ph-img--wide{ aspect-ratio:16/10; }
.ph-img--square{ aspect-ratio:1/1; }
.ph-img .ph-label{
  margin:16px; padding:7px 11px; background:rgba(35,33,30,.82); color:var(--paper);
  font-family:var(--mono); font-size:11px; letter-spacing:.04em; line-height:1.5;
  border-radius:7px; max-width:84%;
}
.ph-img .ph-label b{ color:var(--clay); font-weight:500; }

/* ---------- placeholder body (the DUMMY tell) ---------- */
.ph-body{ margin-top:14px; }
.ph-tag{
  display:inline-block; font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted); background:var(--paper);
  border:1px dashed var(--hair); padding:4px 9px; border-radius:6px; margin-bottom:14px;
}
.ph-note{ font-size:16.5px; line-height:1.6; color:var(--muted); font-style:italic; max-width:62ch; margin-bottom:18px; }
.ph-lines{ display:flex; flex-direction:column; gap:11px; max-width:54ch; }
.ph-lines span{ height:11px; border-radius:6px; background:linear-gradient(90deg, var(--stone), rgba(231,224,213,.45)); display:block; }
.ph-lines span:nth-child(1){ width:100%; }
.ph-lines span:nth-child(2){ width:92%; }
.ph-lines span:nth-child(3){ width:74%; }

/* ---------- real portrait photo ---------- */
.hero-portrait{
  width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center 22%;
  border-radius:14px; border:1px solid var(--hair); box-shadow:var(--shadow-md);
  background:var(--stone); display:block;
}
.split--portrait .hero-portrait{ aspect-ratio:4/5; }

/* ---------- section primitives ---------- */
.section{ }
.section + .section{ margin-top:64px; }
.section > .section-head{ margin-bottom:18px; }

/* grid of cards */
.cards{ display:grid; gap:22px; }
.cards--2{ grid-template-columns:repeat(2,1fr); }
.cards--3{ grid-template-columns:repeat(3,1fr); }
.card{
  background:var(--paper-2); border:1px solid var(--hair); border-radius:14px;
  padding:26px 24px; box-shadow:var(--shadow-sm);
}
.card h3{ margin-bottom:12px; }
.card .ph-note{ font-size:15.5px; margin-bottom:14px; }
.card .ph-lines{ max-width:none; }
@media (max-width:820px){ .cards--3,.cards--2{ grid-template-columns:1fr; } }

/* numbered steps */
.steps{ display:flex; flex-direction:column; gap:0; counter-reset:step; }
.step{ display:grid; grid-template-columns:64px 1fr; gap:26px; padding:30px 0; border-top:1px solid var(--hair); }
.step:first-child{ border-top:0; }
.step-num{
  counter-increment:step; font-family:var(--serif); font-size:30px; color:var(--forest);
  width:56px; height:56px; border-radius:50%; border:1.5px solid var(--forest);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.step-num::before{ content:counter(step); }
.step-body h3{ margin-bottom:10px; }
@media (max-width:680px){ .step{ grid-template-columns:1fr; gap:14px; } .step-num{ width:48px; height:48px; font-size:24px; } }

/* two-column section with portrait */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.split--portrait{ grid-template-columns:1fr .82fr; }
@media (max-width:820px){ .split,.split--portrait{ grid-template-columns:1fr; gap:30px; } }

/* ---------- conversion: MINI ---------- */
.mini{
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:28px;
  background:var(--forest-deep); color:var(--paper);
  border-radius:18px; padding:34px 38px; box-shadow:var(--shadow-md);
}
.mini .eyebrow{ color:var(--clay); margin-bottom:10px; }
.mini h3{ color:var(--paper); font-size:25px; margin-bottom:6px; max-width:24ch; }
.mini p{ color:rgba(246,244,239,.82); font-size:16px; max-width:48ch; }
@media (max-width:680px){ .mini{ grid-template-columns:1fr; gap:20px; } }

/* ---------- conversion: the analysis / EMBED panel ---------- */
.analysis-panel{
  background:var(--paper-2); border:1px solid var(--hair); border-radius:18px;
  box-shadow:var(--shadow-md); overflow:hidden;
}
.analysis-head{ padding:24px 30px; border-bottom:1px solid var(--hair); display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.analysis-head .dot{ width:10px; height:10px; border-radius:50%; background:var(--forest); box-shadow:0 0 0 4px var(--forest-soft); flex:none; }
.analysis-head .a-title{ font-family:var(--serif); font-size:20px; color:var(--ink); }
.analysis-head .a-meta{ font-family:var(--mono); font-size:11.5px; letter-spacing:.06em; color:var(--muted); margin-left:auto; text-transform:uppercase; }
.embed-mount{ min-height:620px; padding:8px; background:var(--paper-2); }
.embed-mount iframe{ width:100% !important; min-height:600px !important; border:0; }
.embed-note{ padding:16px 30px; border-top:1px solid var(--hair); font-size:14.5px; color:var(--muted); background:var(--paper); }

/* ---------- conversion: FORM ---------- */
.lead-form{
  background:var(--paper-2); border:1px solid var(--hair); border-radius:18px;
  padding:34px 34px 30px; box-shadow:var(--shadow-md); max-width:680px;
}
.lead-form.wide{ max-width:820px; }
.lead-form h3{ font-size:24px; margin-bottom:8px; }
.lead-form .form-intro{ color:var(--muted); font-size:16.5px; margin-bottom:24px; max-width:54ch; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:14.5px; font-weight:600; color:var(--ink); margin-bottom:7px; }
.field .req{ color:var(--clay); }
.field input, .field select, .field textarea{
  width:100%; font-family:var(--sans); font-size:16px; color:var(--ink);
  background:var(--paper); border:1.5px solid var(--hair); border-radius:10px;
  padding:12px 14px; transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--forest); box-shadow:0 0 0 3px var(--forest-soft);
}
.field textarea{ min-height:120px; resize:vertical; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-actions{ display:flex; align-items:center; gap:16px; margin-top:8px; flex-wrap:wrap; }
.form-fine{ font-size:13.5px; color:var(--muted); margin-top:14px; }
.cond{ display:none; }
.cond.show{ display:block; }
.form-status{ font-size:15px; margin-top:6px; }

/* inline thank-you */
.form-thanks{
  display:none; padding:30px 30px 26px; border-radius:14px;
  background:var(--forest-soft); border:1px solid rgba(31,92,74,.25);
}
.form-thanks.show{ display:block; }
.form-thanks h3{ color:var(--forest-deep); margin-bottom:8px; }
.form-thanks .sig{ font-size:34px; margin-top:14px; }

/* ---------- footer ---------- */
.site-footer{ background:var(--forest-deep); color:var(--paper); padding:64px 0 30px; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
.footer-brand .brand{ color:var(--paper); }
.footer-brand .brand .brand-mark{ color:var(--clay); }
.footer-brand p{ color:rgba(246,244,239,.72); font-size:15px; margin-top:14px; max-width:34ch; }
.footer-brand .sig{ font-size:34px; color:var(--paper); margin-top:18px; opacity:.92; }
.footer-col h3{ font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--clay); margin-bottom:16px; font-weight:500; }
.footer-col a{ display:block; color:rgba(246,244,239,.82); font-size:15px; padding:6px 0; }
.footer-col a:hover{ color:#fff; text-decoration:none; }
.footer-legal{ margin-top:48px; padding-top:24px; border-top:1px solid rgba(246,244,239,.16); display:flex; align-items:center; gap:10px 22px; flex-wrap:wrap; font-size:13.5px; color:rgba(246,244,239,.7); }
.footer-legal a{ color:rgba(246,244,239,.7); }
.footer-legal a:hover{ color:#fff; }
.footer-legal .disclosure{ color:var(--paper); font-weight:600; }
.footer-legal .credit{ margin-left:auto; color:rgba(246,244,239,.7); }
@media (max-width:820px){ .footer-top{ grid-template-columns:1fr 1fr; gap:30px; } .footer-legal .credit{ margin-left:0; } }
@media (max-width:520px){ .footer-top{ grid-template-columns:1fr; } }

/* ---------- exit-intent ---------- */
.exit-overlay{
  position:fixed; inset:0; z-index:90; background:rgba(20,28,24,.5);
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; transition:opacity .22s ease, visibility .22s;
}
.exit-overlay.open{ opacity:1; visibility:visible; }
.exit-card{
  background:var(--paper); border-radius:18px; max-width:520px; width:100%;
  box-shadow:var(--shadow-md); padding:38px 36px 32px; position:relative;
  transform:translateY(10px); transition:transform .22s ease;
}
.exit-overlay.open .exit-card{ transform:translateY(0); }
.exit-card .eyebrow{ margin-bottom:14px; }
.exit-card h3{ font-size:27px; margin-bottom:12px; }
.exit-card p{ color:var(--muted); font-size:16.5px; margin-bottom:24px; }
.exit-card .exit-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.exit-close{ position:absolute; top:14px; right:14px; width:40px; height:40px; border-radius:50%; border:1px solid var(--hair); background:var(--paper-2); cursor:pointer; color:var(--muted); font-size:20px; line-height:1; }
.exit-close:hover{ color:var(--ink); }
.demo-tell{
  margin-top:22px; padding:14px 16px; border-radius:10px; background:var(--stone);
  border:1px dashed var(--clay); font-size:13.5px; color:var(--ink); line-height:1.55;
}
.demo-tell b{ font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--clay); display:block; margin-bottom:5px; }

/* ---------- scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; will-change:opacity, transform; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- misc page bits ---------- */
.pill-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.pill{ font-family:var(--mono); font-size:12.5px; letter-spacing:.04em; color:var(--forest); background:var(--forest-soft); border:1px solid rgba(31,92,74,.18); padding:7px 12px; border-radius:999px; }
.note-strip{ background:var(--stone); border-left:3px solid var(--clay); padding:18px 22px; border-radius:0 10px 10px 0; color:var(--ink); font-size:16px; }
.kicker-link{ display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--forest); margin-top:20px; }
.kicker-link .arr{ transition:transform .15s ease; }
.kicker-link:hover{ text-decoration:none; }
.kicker-link:hover .arr{ transform:translateX(3px); }

/* faq */
.faq-group{ margin-bottom:40px; }
.faq-group > h3{ font-size:16px; font-family:var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--forest); margin-bottom:20px; }
.qa{ border-top:1px solid var(--hair); padding:22px 0; }
.qa h4{ font-family:var(--serif); font-size:20px; margin-bottom:10px; }

/* legal / stub pages */
.doc{ max-width:760px; }
.doc h2{ font-size:26px; margin:36px 0 14px; }
.doc p{ color:var(--ink); margin-bottom:16px; }
.doc .ph-note{ margin-bottom:16px; }
.stub-hero{ padding:96px 0 40px; }
.stub-hero h1{ font-size:clamp(32px,4.4vw,48px); margin-bottom:18px; }
.optout-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:24px 0; padding:18px 22px; background:var(--stone); border-radius:12px; }

/* big closing CTA */
.closing{ text-align:center; }
.closing .eyebrow{ color:var(--clay); }
.closing h2{ font-size:clamp(30px,4vw,46px); max-width:18ch; margin:0 auto 18px; }
.closing p{ color:rgba(246,244,239,.82); max-width:52ch; margin:0 auto 30px; font-size:18px; }
.closing .sig{ color:var(--paper); margin-top:26px; font-size:40px; }

/* consent opt-out notice */
.optout-notice{
  position:fixed; left:18px; bottom:18px; z-index:80; max-width:340px;
  background:var(--ink); color:var(--paper); border-radius:12px; padding:16px 18px;
  box-shadow:var(--shadow-md); font-size:13.5px; line-height:1.55;
  display:none;
}
.optout-notice.show{ display:block; }
.optout-notice a{ color:var(--clay); }
.optout-notice .oc{ display:flex; gap:12px; margin-top:12px; }
.optout-notice button{ background:none; border:1px solid rgba(246,244,239,.3); color:var(--paper); padding:7px 12px; border-radius:8px; font-size:13px; cursor:pointer; }
.optout-notice button.primary{ background:var(--paper); color:var(--ink); border-color:var(--paper); font-weight:600; }

/* skip link */
.skip{ position:absolute; left:-9999px; top:0; background:var(--forest); color:#fff; padding:10px 16px; border-radius:0 0 8px 0; z-index:100; }
.skip:focus{ left:0; }
