/* ==========================================================================
   Cresta Growth — design system
   Dark editorial + premium SaaS. Single committed theme, painted explicitly.
   No framework, no build step.
   ========================================================================== */

:root{
  /* --- ground & surfaces --- */
  --ink-0:#0A0A0B;      /* page ground */
  --ink-1:#0E0E10;      /* alternating section */
  --ink-2:#151519;      /* card */
  --ink-3:#1B1B20;      /* inner card / input */
  --line:#27272D;       /* visible border */
  --line-soft:#1E1E23;  /* hairline */

  /* --- type colours --- */
  /* Every step below clears WCAG AA (4.5:1) on the darkest surface it is
     used on (--ink-3), while keeping four distinct levels of hierarchy. */
  --ivory:#F5F1E9;      /* 15.1:1 on --ink-0 */
  --ivory-dim:#D3CDC2;  /* 12.5:1 */
  --muted:#ABA69C;      /*  8.2:1 on ground, 7.1:1 on --ink-3 */
  --faint:#8B867E;      /*  5.5:1 on ground, 4.7:1 on --ink-3 */

  /* --- accent: taken straight from the logo, so the mark and the interface
         are one colour rather than two warm tones that nearly agree.
         #F7EFC0 is the cream of the domes and the "Growth" block. --- */
  --gold:#F7EFC0;
  --gold-bright:#FFFAD9;
  --gold-dim:#A89C6E;
  --gold-wash:rgba(247,239,192,.08);
  --gold-line:rgba(247,239,192,.24);

  /* --- semantic states (separate from accent) --- */
  --green:#7BE495;
  --green-wash:rgba(123,228,149,.10);
  --warn:#E0A874;
  --leak:#D8836A;
  --leak-wash:rgba(216,131,106,.10);

  /* --- type --- */
  --display:'Playfair Display',Georgia,'Times New Roman',serif;
  --sans:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;

  /* --- rhythm --- */
  --gutter:clamp(20px,5vw,40px);
  --section-y:clamp(72px,10vw,132px);
  --maxw:1180px;
  --radius:14px;
  --radius-sm:10px;
}

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

html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

body{
  margin:0;
  background:var(--ink-0);
  color:var(--ivory-dim);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

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

::selection{background:var(--gold);color:#0A0A0B;}

a{color:inherit;}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:3px;}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);}
.container-narrow{max-width:860px;}

/* Grid and flex children default to a min-size of max-content, which lets one
   wide child stretch the whole track past the viewport. Reset it everywhere
   we lay out in columns. */
.hero-inner > *,
.system > *,
.card-grid > *,
.leak-grid > *,
.footer-grid > *,
.step > *,
.field-row > *,
.lead-row > *,
.leak-step > *,
.audit-body > *,
.audit-kv > *{min-width:0;}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--gold);color:#0A0A0B;padding:12px 20px;
  font-weight:700;font-size:14px;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0;}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,h2,h3,h4{margin:0;font-family:var(--display);font-weight:600;color:var(--ivory);
  letter-spacing:-.015em;line-height:1.08;text-wrap:balance;}

.h-display{font-size:clamp(38px,6.4vw,72px);line-height:1.02;letter-spacing:-.022em;}
.h-1{font-size:clamp(32px,5vw,56px);line-height:1.06;}
.h-2{font-size:clamp(27px,3.6vw,42px);line-height:1.12;}
.h-3{font-size:clamp(20px,2.2vw,26px);line-height:1.25;letter-spacing:-.01em;}

/* champagne second line — the brand's signature headline treatment */
.gold{color:var(--gold);}
em.gold{font-style:italic;}

.eyebrow{
  font-family:var(--sans);font-size:11.5px;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;color:var(--gold);
  margin:0 0 20px;display:block;
}
.eyebrow-muted{color:var(--faint);}

.lede{
  font-size:clamp(17px,1.9vw,20px);line-height:1.6;color:var(--muted);
  max-width:62ch;margin:22px 0 0;
}
.lede-center{margin-left:auto;margin-right:auto;text-align:center;}

p{margin:0 0 18px;}
p:last-child{margin-bottom:0;}

.small{font-size:14.5px;color:var(--faint);line-height:1.6;}

/* Inline links inside running copy. Underlined so they read as links without
   relying on colour alone. */
.tlink{
  color:var(--gold);text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:1px;text-decoration-color:var(--gold-line);
  transition:text-decoration-color .2s ease;
}
.tlink:hover{text-decoration-color:var(--gold);}
.mono-label{
  font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--faint);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--sans);font-size:15px;font-weight:700;letter-spacing:.01em;
  padding:16px 28px;border-radius:100px;border:1px solid transparent;
  text-decoration:none;cursor:pointer;white-space:nowrap;max-width:100%;
  transition:background-color .22s ease,border-color .22s ease,color .22s ease,transform .22s ease;
}
/* Long CTA labels must wrap rather than force the layout wider than the
   viewport. nowrap on a grid child is the classic source of that blowout. */
@media (max-width:520px){
  .btn{white-space:normal;text-align:center;}
  .btn-lg{padding:17px 24px;font-size:15px;}
}
.btn:active{transform:translateY(1px);}

.btn-gold{background:var(--gold);color:#0A0A0B;border-color:var(--gold);}
.btn-gold:hover{background:var(--gold-bright);border-color:var(--gold-bright);}

.btn-ghost{background:transparent;color:var(--ivory);border-color:var(--line);}
.btn-ghost:hover{border-color:var(--gold-line);color:var(--gold);}

.btn-lg{padding:19px 36px;font-size:16px;}
.btn-sm{padding:11px 20px;font-size:13.5px;}
.btn-block{width:100%;}

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

.cta-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:34px;}
.cta-note{font-size:13.5px;color:var(--faint);margin-top:18px;}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav{
  position:sticky;top:0;z-index:100;
  background:rgba(10,10,11,.82);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;height:74px;}

.logo{display:inline-flex;align-items:center;text-decoration:none;flex-shrink:0;}
/* The lockup carries the wordmark, so no text sits beside it. Height is fixed
   and width follows, so the logo never distorts. */
.logo-img{height:42px;width:auto;display:block;}
.logo-img-full{height:56px;}          /* footer version, includes ESTD 2026 */

.nav-links{display:flex;align-items:center;gap:34px;list-style:none;margin:0;padding:0;}
.nav-links a{
  text-decoration:none;font-size:14.5px;font-weight:500;color:var(--ivory-dim);
  transition:color .2s ease;position:relative;padding:6px 0;
}
.nav-links a:hover{color:var(--gold);}
.nav-links a[aria-current="page"]{color:var(--gold);}

.nav-right{display:flex;align-items:center;gap:18px;}

.nav-toggle{
  display:none;background:none;border:1px solid var(--line);border-radius:8px;
  width:42px;height:42px;cursor:pointer;padding:0;place-items:center;
}
.nav-toggle span{display:block;width:17px;height:1.5px;background:var(--ivory);
  position:relative;transition:background .2s ease;}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:17px;height:1.5px;background:var(--ivory);
  transition:transform .25s ease;
}
.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);}

.nav-drawer{display:none;}

@media (max-width:940px){
  .nav-links,.nav-right .btn{display:none;}
  .nav-toggle{display:grid;}
  .nav-drawer{
    display:block;border-top:1px solid var(--line-soft);
    background:var(--ink-0);padding:8px var(--gutter) 28px;
  }
  .nav-drawer[hidden]{display:none;}
  .nav-drawer ul{list-style:none;margin:0;padding:0;}
  .nav-drawer li{border-bottom:1px solid var(--line-soft);}
  .nav-drawer a{
    display:block;padding:18px 0;text-decoration:none;
    font-size:17px;font-weight:500;color:var(--ivory);
  }
  .nav-drawer .btn{margin-top:24px;width:100%;}
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section{padding:var(--section-y) 0;position:relative;}
.section-alt{background:var(--ink-1);border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);}
.section-head{max-width:64ch;margin-bottom:clamp(40px,5vw,64px);}
.section-head-center{margin-left:auto;margin-right:auto;text-align:center;}

.rule{height:1px;background:var(--line-soft);border:0;margin:0;}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{padding:clamp(56px,8vw,96px) 0 clamp(64px,8vw,110px);position:relative;overflow:hidden;}
.hero::before{
  content:"";position:absolute;top:-30%;left:50%;transform:translateX(-50%);
  width:min(900px,120vw);height:600px;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(201,183,143,.07) 0%,transparent 62%);
}
.hero-inner{position:relative;display:grid;grid-template-columns:1.05fr .95fr;
  gap:clamp(36px,5vw,72px);align-items:center;}
@media (max-width:960px){.hero-inner{grid-template-columns:1fr;gap:48px;}}

.hero h1{margin-bottom:0;}
.hero .lede{margin-top:26px;}

/* ==========================================================================
   UI mockups — believable interface, built in CSS. No images, no fake photos.
   ========================================================================== */

.ui-card{
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:20px;position:relative;
}
.ui-card-glow{box-shadow:0 0 0 1px rgba(201,183,143,.08),0 30px 70px -30px rgba(0,0,0,.9);}

.ui-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line-soft);
}
.ui-title{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gold);}

/* sample-data disclosure — used everywhere UI is illustrative */
.sample-tag{
  display:inline-flex;align-items:center;gap:7px;
  font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--faint);border:1px solid var(--line);border-radius:100px;padding:4px 11px;
}
.sample-tag::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--faint);}

/* monogram avatars — deliberately not photographs of real people */
.avatar{
  width:38px;height:38px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;
  background:var(--ink-3);border:1px solid var(--line);
  font-size:13px;font-weight:700;color:var(--gold);letter-spacing:.02em;
}
.avatar-sm{width:32px;height:32px;font-size:12px;}

.lead-row{
  display:flex;align-items:center;gap:13px;padding:13px;border-radius:var(--radius-sm);
  background:var(--ink-3);border:1px solid var(--line-soft);margin-bottom:9px;
}
.lead-row:last-child{margin-bottom:0;}
/* These are spans inside a flex item, so they must be blockified explicitly —
   left inline they run together and wrap around the status pill. */
.lead-name{display:block;font-size:14.5px;font-weight:700;color:var(--ivory);line-height:1.3;}
.lead-meta{display:block;font-size:13px;color:var(--faint);margin-top:3px;line-height:1.4;}

.status-pill{
  display:inline-flex;align-items:center;gap:7px;flex-shrink:0;
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:6px 12px;border-radius:100px;white-space:nowrap;
}
.status-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;}
.pill-green{background:var(--green-wash);color:var(--green);}
.pill-gold{background:var(--gold-wash);color:var(--gold);}
.pill-leak{background:var(--leak-wash);color:var(--leak);}

/* chat thread */
.chat{display:flex;flex-direction:column;gap:11px;}
.chat-line{display:flex;gap:10px;align-items:flex-end;max-width:88%;}
.chat-line.us{align-self:flex-end;flex-direction:row-reverse;}
.bubble{
  padding:12px 15px;border-radius:14px;font-size:14.5px;line-height:1.5;
  background:var(--ink-3);border:1px solid var(--line-soft);color:var(--ivory-dim);
}
.chat-line.them .bubble{border-bottom-left-radius:5px;}
.chat-line.us .bubble{
  border-bottom-right-radius:5px;
  background:rgba(201,183,143,.08);border-color:var(--gold-line);color:var(--ivory);
}
.chat-time{font-size:11px;color:var(--faint);margin-top:6px;display:block;}

/* ==========================================================================
   The leak path — problem visualisation
   ========================================================================== */

.leak-path{display:flex;flex-direction:column;gap:0;}
.leak-step{
  display:flex;align-items:center;gap:16px;padding:16px 18px;
  border:1px solid var(--line-soft);border-radius:var(--radius-sm);
  background:var(--ink-2);
}
.leak-step-label{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;}
.leak-step-body{font-size:14.5px;color:var(--muted);}
.leak-connector{
  width:1px;height:22px;margin-left:34px;
  background:linear-gradient(to bottom,var(--line),transparent);
}
.leak-step.is-start .leak-step-label{color:var(--gold);}
.leak-step.is-cold .leak-step-label{color:var(--leak);}
.leak-step.is-cold{border-color:rgba(216,131,106,.22);}

.leak-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(258px,1fr));gap:18px;}
.leak-card{
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 24px;display:flex;flex-direction:column;gap:14px;
  transition:border-color .25s ease,transform .25s ease;
}
.leak-card:hover{border-color:var(--gold-line);transform:translateY(-3px);}
.leak-card h3{font-size:20px;}
.leak-card p{font-size:15px;color:var(--muted);margin:0;}
.leak-viz{
  margin-top:auto;padding-top:18px;border-top:1px solid var(--line-soft);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}

/* small timing bars used inside leak cards */
.bar-track{flex:1;height:4px;border-radius:100px;background:var(--ink-3);overflow:hidden;min-width:70px;}
.bar-fill{height:100%;border-radius:100px;background:var(--leak);display:block;}
.bar-fill.good{background:var(--green);}
.bar-val{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.02em;}

/* ==========================================================================
   System diagram — the centrepiece
   ========================================================================== */

.system{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);
  gap:clamp(28px,4vw,56px);align-items:start;}
@media (max-width:900px){.system{grid-template-columns:1fr;}}

.system-track{display:flex;flex-direction:column;gap:0;}

.node{
  width:100%;text-align:left;cursor:pointer;font-family:var(--sans);
  display:flex;align-items:center;gap:18px;
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:20px 22px;color:var(--ivory-dim);
  transition:border-color .25s ease,background-color .25s ease;
}
.node:hover{border-color:var(--gold-line);}
.node[aria-selected="true"]{
  border-color:var(--gold);background:rgba(201,183,143,.05);
}
.node-num{
  font-family:var(--display);font-size:15px;color:var(--gold);
  width:30px;flex-shrink:0;
}
.node-name{font-size:17px;font-weight:700;color:var(--ivory);letter-spacing:.01em;}
.node-hint{font-size:13.5px;color:var(--faint);margin-top:2px;}
.node-link{
  width:1px;height:16px;margin-left:44px;
  background:var(--line);
}

.system-detail{
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px 26px;position:sticky;top:98px;
}
.system-detail h3{font-size:23px;margin-bottom:12px;}
.system-detail p{font-size:15.5px;color:var(--muted);}

/* ==========================================================================
   Numbered steps
   ========================================================================== */

.steps{display:flex;flex-direction:column;}
.step{
  display:grid;grid-template-columns:96px 1fr;gap:0 28px;
  padding:32px 0;border-top:1px solid var(--line-soft);
}
.step:last-child{border-bottom:1px solid var(--line-soft);}
.step-num{
  font-family:var(--display);font-size:clamp(28px,3.4vw,40px);color:var(--gold);
  line-height:1;letter-spacing:-.02em;
}
.step h3{font-size:23px;margin-bottom:9px;}
.step p{color:var(--muted);max-width:58ch;margin:0;}
@media (max-width:640px){
  .step{grid-template-columns:1fr;gap:12px;}
}

/* ==========================================================================
   Sample audit report
   ========================================================================== */

.audit-report{
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;
}
.audit-top{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:20px 24px;border-bottom:1px solid var(--line-soft);background:var(--ink-3);
}
.audit-body{padding:26px 24px;display:grid;gap:26px;}

.audit-journey{display:flex;align-items:flex-start;gap:0;flex-wrap:nowrap;overflow-x:auto;
  padding-bottom:6px;}
.j-step{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:96px;flex:1;}
.j-dot{
  width:15px;height:15px;border-radius:50%;border:2px solid var(--line);
  background:var(--ink-2);flex-shrink:0;
}
.j-dot.done{border-color:var(--green);background:var(--green);}
.j-dot.gap{border-color:var(--leak);background:transparent;
  box-shadow:0 0 0 4px rgba(216,131,106,.12);}
.j-label{font-size:12px;color:var(--muted);text-align:center;line-height:1.35;}
.j-line{height:2px;flex:1;background:var(--line-soft);margin-top:6px;min-width:20px;}
.j-line.gap{background:repeating-linear-gradient(90deg,var(--leak) 0 4px,transparent 4px 9px);}

.audit-finding{
  border:1px solid var(--line-soft);border-radius:var(--radius-sm);padding:20px;
  background:var(--ink-3);
}
.audit-finding + .audit-finding{margin-top:14px;}
.audit-finding h4{font-family:var(--sans);font-size:15px;font-weight:700;color:var(--ivory);
  margin:10px 0 7px;letter-spacing:0;}
.audit-finding p{font-size:14.5px;color:var(--muted);margin:0;}

.audit-kv{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;font-size:14.5px;}
.audit-kv dt{color:var(--faint);}
.audit-kv dd{margin:0;color:var(--ivory);text-align:right;font-weight:600;}

/* ==========================================================================
   Review scope cards / value cards
   ========================================================================== */

.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;}
.card{
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px 25px;transition:border-color .25s ease;
}
.card:hover{border-color:var(--gold-line);}
.card h3{font-size:20px;margin-bottom:10px;}
.card p{font-size:15px;color:var(--muted);margin:0;}
.card-num{font-family:var(--display);font-size:14px;color:var(--gold);display:block;margin-bottom:14px;}

/* ==========================================================================
   Contact cards
   ========================================================================== */

.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:18px;}
.contact-grid > *{min-width:0;}
.contact-card{
  display:flex;flex-direction:column;gap:9px;
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 24px;text-decoration:none;
  transition:border-color .25s ease,transform .25s ease;
}
.contact-card:hover{border-color:var(--gold-line);transform:translateY(-3px);}
.contact-addr{
  font-size:16.5px;font-weight:700;color:var(--ivory);line-height:1.35;
  overflow-wrap:anywhere;transition:color .2s ease;
}
.contact-card:hover .contact-addr{color:var(--gold);}
.contact-note{font-size:14.5px;color:var(--muted);line-height:1.5;margin-top:2px;}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq{border-top:1px solid var(--line-soft);}
.faq details{border-bottom:1px solid var(--line-soft);}
.faq summary{
  display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  padding:26px 0;cursor:pointer;list-style:none;
  font-family:var(--display);font-size:clamp(18px,2.1vw,22px);color:var(--ivory);
  line-height:1.35;transition:color .2s ease;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary:hover{color:var(--gold);}
.faq-icon{
  flex-shrink:0;width:22px;height:22px;position:relative;margin-top:6px;
}
.faq-icon::before,.faq-icon::after{
  content:"";position:absolute;background:var(--gold);
  transition:transform .25s ease,opacity .25s ease;
}
.faq-icon::before{top:10px;left:2px;width:18px;height:1.5px;}
.faq-icon::after{top:1.5px;left:10.5px;width:1.5px;height:18px;}
.faq details[open] .faq-icon::after{transform:rotate(90deg);opacity:0;}
.faq-answer{padding:0 0 28px;max-width:68ch;color:var(--muted);font-size:16px;}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-panel{
  background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(26px,4vw,40px);
}
.field{margin-bottom:20px;}
.field label{
  display:block;font-size:13px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);margin-bottom:9px;
}
.field .req{color:var(--gold);}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--sans);font-size:16px;color:var(--ivory);
  background:var(--ink-3);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:15px 16px;transition:border-color .2s ease,background-color .2s ease;
}
.field input::placeholder,.field textarea::placeholder{color:#7E7970;}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--gold);background:#1F1F25;
}
.field select{appearance:none;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--gold) 50%),
                   linear-gradient(135deg,var(--gold) 50%,transparent 50%);
  background-position:calc(100% - 21px) 23px,calc(100% - 15px) 23px;
  background-size:6px 6px,6px 6px;background-repeat:no-repeat;}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;}
@media (max-width:600px){.field-row{grid-template-columns:1fr;}}

.consent{
  display:flex;gap:13px;align-items:flex-start;
  border-top:1px solid var(--line-soft);padding-top:22px;margin-bottom:24px;
}
.consent input{width:19px;height:19px;flex-shrink:0;margin-top:2px;accent-color:var(--gold);cursor:pointer;}
.consent label{font-size:13.5px;color:var(--faint);line-height:1.55;
  text-transform:none;letter-spacing:0;font-weight:400;margin:0;}

.form-status{margin-top:20px;font-size:15px;padding:16px 18px;border-radius:var(--radius-sm);}
.form-status[hidden]{display:none;}
.form-status.ok{background:var(--green-wash);color:var(--green);border:1px solid rgba(123,228,149,.28);}
.form-status.err{background:var(--leak-wash);color:var(--leak);border:1px solid rgba(216,131,106,.28);}

/* ==========================================================================
   Final CTA band
   ========================================================================== */

.cta-band{
  background:var(--ink-1);border-top:1px solid var(--line-soft);
  padding:var(--section-y) 0;text-align:center;position:relative;overflow:hidden;
}
.cta-band::before{
  content:"";position:absolute;top:-50%;left:50%;transform:translateX(-50%);
  width:min(760px,110vw);height:520px;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(201,183,143,.08) 0%,transparent 65%);
}
.cta-band .container{position:relative;}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{border-top:1px solid var(--line-soft);padding:60px 0 40px;background:var(--ink-0);}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1.15fr auto;gap:40px;margin-bottom:44px;}
@media (max-width:980px){.footer-grid{grid-template-columns:1fr 1fr;gap:36px 32px;}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr;gap:34px;}}

/* Instagram QR. Standard polarity — dark modules on the brand cream — so any
   scanner reads it, and sized well above the point where it stops decoding. */
.qr-link{display:inline-flex;flex-direction:column;gap:11px;text-decoration:none;}
.qr{
  width:128px;height:128px;display:block;border-radius:8px;
  border:1px solid var(--gold-line);
}
.qr-caption{font-size:13px;line-height:1.45;color:var(--faint);max-width:150px;
  transition:color .2s ease;}
.qr-caption b{color:var(--ivory-dim);font-weight:600;}
.qr-link:hover .qr-caption,.qr-link:hover .qr-caption b{color:var(--gold);}
.footer h4{
  font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--faint);margin:0 0 18px;
}
.footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.footer a{color:var(--ivory-dim);text-decoration:none;font-size:15px;transition:color .2s ease;}
.footer a:hover{color:var(--gold);}
.footer-blurb{color:var(--muted);font-size:15px;max-width:38ch;margin:18px 0 0;}
.footer-bottom{
  border-top:1px solid var(--line-soft);padding-top:26px;
  display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;
  font-size:13.5px;color:var(--faint);
}

/* ==========================================================================
   Motion — content is visible at rest; animation only enhances.
   ========================================================================== */

/* Content is visible by default. The hidden state is applied only once JS has
   confirmed it is running (html.js), so a script failure can never leave the
   page blank — the exact failure mode found on the old site. */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{
    opacity:.001;transform:translateY(14px);
    transition:opacity .7s cubic-bezier(.2,.7,.3,1),transform .7s cubic-bezier(.2,.7,.3,1);
  }
  .js .reveal.in{opacity:1;transform:none;}
}

/* ==========================================================================
   Small screens — the layouts that need to stop being two columns
   ========================================================================== */

@media (max-width:520px){
  /* Uppercase tracked labels read fine at 11px on a monitor and poorly on a
     phone. Nothing on a small screen goes below 12px, and the wide tracking
     comes down so the letters group into words again. */
  .eyebrow{font-size:12.5px;letter-spacing:.16em;}
  .ui-title{font-size:12px;letter-spacing:.14em;}
  .mono-label{font-size:12px;letter-spacing:.14em;}
  .sample-tag{font-size:12px;letter-spacing:.1em;padding:5px 12px;}
  .status-pill{font-size:12px;letter-spacing:.07em;padding:6px 12px;}
  .footer h4{font-size:12px;letter-spacing:.14em;}
  .j-label{font-size:12.5px;}
  .lead-meta{font-size:13.5px;}
  .node-hint{font-size:14px;}
  .card-num{font-size:15px;}
  .small,.cta-note{font-size:15px;}
  .field label{font-size:13.5px;letter-spacing:.04em;}
  .consent label{font-size:14px;}
  .footer-bottom{font-size:14px;}

  /* Label / value pairs read better stacked than squeezed into two columns. */
  .audit-kv{grid-template-columns:1fr;gap:0;}
  .audit-kv dt{margin-top:12px;}
  .audit-kv dd{text-align:left;margin-top:2px;}
  .audit-kv dt:first-child{margin-top:0;}

  /* The leak/step rows carry a fixed-width label set inline in the markup. */
  .leak-step{flex-direction:column;align-items:flex-start;gap:7px;}
  .leak-step > .leak-step-label{width:auto !important;}

  /* Give the name/meta column the full width and drop the pill beneath it. */
  .lead-row{flex-wrap:wrap;}
  .lead-row > .status-pill{margin-left:51px;}

  .logo-img{height:36px;}
  .logo-img-full{height:48px;}
  .ui-card{padding:17px;}
  .node{padding:17px 18px;gap:14px;}
  .system-detail{padding:24px 22px;position:static;}
}

@media (max-width:380px){
  .lead-row > .status-pill{margin-left:0;}
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.stack-sm > * + *{margin-top:12px;}
.stack > * + *{margin-top:20px;}
.stack-lg > * + *{margin-top:34px;}
.mt-0{margin-top:0;}
.mt-lg{margin-top:clamp(34px,4vw,52px);}
.center{text-align:center;}
.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
