/* =============================================================
   LeafLogic® — marketing site  ·  warm / agricultural theme
   Fonts: Bitter (headings) + Mulish (body)
   ============================================================= */
:root{
  /* surfaces — cool mist neutrals */
  --paper:#eef2f1;
  --paper-rgb:238,242,241;
  --paper-2:#e2eae8;
  --surface:#ffffff;
  --footer:#1b231c;

  /* ink */
  --ink:#23211b;
  --ink-soft:#4c473c;
  --muted:#807866;

  /* lines */
  --line:#dde7e4;
  --line-2:#cbdad6;

  /* brand greens (from logo) */
  --green:#1f7a44;
  --green-dark:#175e35;
  --green-bright:#46a345;
  --green-tint:#e9f1e6;
  --green-tint-2:#dcebd9;

  /* earth accent */
  --soil:#876338;

  /* secondary highlight — gold */
  --gold:#c79a3a;
  --gold-bright:#e0b54e;
  --gold-dark:#9a7322;

  --r-sm:8px;
  --r:14px;
  --r-lg:22px;
  --shadow:0 1px 2px rgba(40,32,12,.04), 0 8px 26px rgba(40,32,12,.06);
  --shadow-lg:0 18px 50px rgba(40,32,12,.12);
  --maxw:1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:90px; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:"Mulish",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:"Bitter",Georgia,serif; font-weight:700; line-height:1.1; letter-spacing:-.01em; margin:0; color:var(--ink); }
h1{ font-size:clamp(38px,5vw,60px); letter-spacing:-.02em; }
h2{ font-size:clamp(28px,3.4vw,42px); }
h3{ font-size:21px; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
section{ position:relative; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding-left:clamp(20px,5vw,56px); padding-right:clamp(20px,5vw,56px); }
.sec{ padding-top:clamp(64px,8vw,110px); padding-bottom:clamp(64px,8vw,110px); }
.eyebrow{ font-family:"Mulish",sans-serif; font-weight:700; font-size:13px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--green); }
.lead{ font-size:clamp(17px,1.5vw,19px); color:var(--ink-soft); }
.muted{ color:var(--muted); }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:"Mulish",sans-serif; font-weight:700; font-size:16px; cursor:pointer;
  padding:14px 26px; border-radius:var(--r-sm); border:1.6px solid transparent;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease; white-space:nowrap; }
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--green); color:#fff; box-shadow:0 6px 16px rgba(31,122,68,.22); }
.btn-primary:hover{ background:var(--green-dark); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line-2); }
.btn-ghost:hover{ background:#fff; border-color:var(--green); color:var(--green-dark); transform:translateY(-2px); }
.btn-outline-green{ background:transparent; color:var(--green-dark); border-color:var(--green); }
.btn-outline-green:hover{ background:var(--green); color:#fff; }
.btn-sm{ padding:10px 18px; font-size:14.5px; }
.btn-block{ width:100%; }

/* ---------- header ---------- */
.site-header{ position:sticky; top:0; z-index:100; background:rgba(var(--paper-rgb),.82);
  backdrop-filter:blur(10px); border-bottom:1px solid transparent; transition:border-color .2s, box-shadow .2s, background .2s; }
.site-header.scrolled{ border-color:var(--line); box-shadow:0 4px 20px rgba(40,32,12,.05); background:rgba(var(--paper-rgb),.94); }
.header-inner{ display:flex; align-items:center; gap:28px; height:74px; }
.logo{ height:34px; width:auto; flex:none; }
.main-nav{ display:flex; align-items:center; gap:26px; }
.main-nav a{ font-weight:600; font-size:15.5px; color:var(--ink-soft); transition:color .15s; }
.main-nav a:hover{ color:var(--green-dark); }
.nav-sep{ width:1px; height:18px; background:var(--line-2); }
.header-actions{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:8px; color:var(--ink); }
.nav-toggle svg{ width:26px; height:26px; }

/* ---------- hero ---------- */
.hero{ padding-top:clamp(48px,6vw,84px); padding-bottom:clamp(56px,7vw,96px); }
.hero-grid{ display:grid; grid-template-columns:1fr 1.34fr; gap:clamp(32px,5vw,72px); align-items:center; }
.hero-copy{ display:flex; flex-direction:column; gap:22px; max-width:540px; }
.hero h1{ margin-top:4px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:4px; }
.hero-trust{ display:flex; align-items:center; gap:18px; margin-top:10px; color:var(--muted); font-size:14.5px; }
.hero-trust .dot{ width:5px; height:5px; border-radius:50%; background:var(--green-bright); }

/* hero media — drop the 3D render here */
.hero-media{ position:relative; }
.hero-frame{ position:relative; border-radius:var(--r-lg); overflow:hidden;
  aspect-ratio:13/10; box-shadow:var(--shadow-lg); border:1px solid var(--line-2);
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(70,163,69,.16), transparent 55%),
    linear-gradient(160deg,#f0e9da 0%, #e7dcc6 55%, #e0d3b8 100%); }
.hero-frame img{ width:100%; height:100%; object-fit:cover; }
/* hide the placeholder dot-grid overlay once a real image is in */
.hero-frame.has-image::after{ display:none; }
/* placeholder shown until a render is dropped in */
.hero-frame .render-note{ position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:12px; text-align:center; padding:32px; }
.hero-frame .render-note .tag{ font-family:"IBM Plex Mono","SFMono-Regular",monospace; font-size:11px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--green-dark); background:rgba(255,255,255,.7);
  border:1px solid var(--green-tint-2); padding:6px 12px; border-radius:100px; }
.hero-frame .render-note p{ font-size:14px; color:var(--soil); max-width:300px; line-height:1.5; }
.hero-frame::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(rgba(135,99,56,.16) 1px, transparent 1px); background-size:16px 16px; opacity:.5; }

/* floating stat card */
.hero-stat{ position:absolute; left:-22px; bottom:-26px; background:#fff; border-radius:var(--r);
  border:1px solid var(--line); box-shadow:var(--shadow-lg); padding:18px 22px; display:flex; flex-direction:column; gap:2px; }
.hero-stat .num{ font-family:"Bitter",serif; font-weight:700; font-size:30px; color:var(--green-dark); line-height:1; }
.hero-stat .lbl{ font-size:13px; color:var(--muted); }

/* ---------- section header ---------- */
.sec-head{ display:flex; flex-direction:column; gap:14px; }
.sec-head.center{ align-items:center; text-align:center; max-width:620px; margin:0 auto; }

/* ---------- overview ---------- */
.overview{ background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.overview-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,6vw,80px); align-items:center; }
.steps{ display:flex; flex-direction:column; gap:6px; }
.step{ display:flex; gap:20px; padding:22px; border-radius:var(--r); transition:background .15s; }
.step:hover{ background:var(--paper); }
.step .badge{ flex:none; width:46px; height:46px; border-radius:12px; background:var(--green-tint);
  color:var(--green-dark); display:flex; align-items:center; justify-content:center;
  font-family:"Bitter",serif; font-weight:700; font-size:18px; }
.step h3{ margin-bottom:4px; }
.step p{ color:var(--muted); font-size:15.5px; }

/* ---------- features ---------- */
.features-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:48px; }
.feature-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:34px; box-shadow:var(--shadow); transition:transform .18s, box-shadow .18s; }
.feature-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.feature-icon{ width:54px; height:54px; border-radius:14px; background:var(--green-tint);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.feature-icon svg{ width:26px; height:26px; color:var(--green); stroke-width:1.9; }
.feature-card h3{ margin-bottom:10px; }
.feature-card p{ color:var(--muted); font-size:15.5px; }

/* ---------- technical ---------- */
.technical{ background:var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.tech-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(36px,5vw,72px); align-items:center; }
.metrics{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.metric{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:24px; box-shadow:var(--shadow); }
.metric .num{ font-family:"Bitter",serif; font-weight:700; font-size:clamp(26px,3vw,34px); color:var(--green-dark); line-height:1; }
.metric .lbl{ font-size:14px; color:var(--muted); margin-top:8px; }
.tech-copy{ display:flex; flex-direction:column; gap:18px; }
.tech-figure{ border-radius:var(--r); border:1px dashed var(--line-2); background:
    repeating-linear-gradient(45deg,#fff,#fff 12px,var(--paper) 12px,var(--paper) 24px);
  min-height:180px; display:flex; align-items:center; justify-content:center; margin-top:6px; }
.tech-figure .tag{ font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--soil);
  background:#fff; border:1px solid var(--line); padding:6px 12px; border-radius:6px; }
/* real diagram dropped in — clean framed look, no dashed placeholder */
.tech-figure.has-image{ border:1px solid var(--line); border-style:solid; background:#fff;
  padding:0; overflow:hidden; min-height:0; box-shadow:var(--shadow); }
.tech-figure.has-image img{ width:100%; height:auto; display:block; }
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.chip{ display:inline-flex; align-items:center; gap:8px; background:var(--green-tint); color:var(--green-dark);
  border-radius:100px; padding:8px 15px; font-size:14px; font-weight:600; }
.chip svg{ width:15px; height:15px; }
.metric-ast{ color:var(--green-bright); font-size:.6em; vertical-align:super; margin-left:1px; }
.tech-disclaimer{ font-size:12.5px; line-height:1.5; color:var(--muted); margin-top:6px; max-width:520px; }
.tech-disclaimer span{ color:var(--green-bright); font-weight:700; }

/* ---------- pricing ---------- */
.pricing{ background:var(--paper); }
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  align-items:stretch; margin-top:56px; }

.price-card{ position:relative; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); overflow:hidden; display:flex; flex-direction:column;
  box-shadow:var(--shadow); transition:transform .18s, box-shadow .18s; }
.price-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }

/* price header band */
.price-top{ position:relative; padding:30px 30px 26px; background:var(--green-tint);
  border-bottom:1px solid var(--line); }
.price-top h3{ font-size:19px; }
.price-tag{ display:none; }
.price{ display:flex; align-items:baseline; gap:6px; margin-top:14px; flex-wrap:wrap; }
.price .amount{ font-family:"Bitter",serif; font-weight:700; font-size:46px; color:var(--green-dark); line-height:.95; flex:none; }
.price .amount.call{ font-size:34px; }
.price .per{ font-size:16px; color:var(--green-dark); font-weight:600; opacity:.7; flex:none; white-space:nowrap; }
.billed{ font-size:13.5px; color:var(--muted); margin-top:6px; }

/* body */
.price-body{ padding:28px 30px 30px; display:flex; flex-direction:column; gap:24px; flex:1; }
.price-features{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0; flex:1; }
.price-features li{ display:flex; align-items:flex-start; gap:11px; font-size:15px; color:var(--ink-soft);
  padding:11px 0; border-bottom:1px solid var(--line); }
.price-features li:first-child{ padding-top:0; }
.price-features li:last-child{ border-bottom:0; }
.price-features i{ width:18px; height:18px; flex:none; color:var(--green); stroke-width:2.6; margin-top:1px; }

/* featured — lifted, solid green header, subtle green frame */
.price-card.featured{ border-color:var(--green); box-shadow:0 22px 48px rgba(23,94,53,.18);
  transform:translateY(-16px); }
.price-card.featured:hover{ transform:translateY(-20px); }
.price-card.featured .price-top{ background:var(--green); border-bottom-color:var(--green-dark); padding-top:26px; }
.price-card.featured .price-top h3{ color:#fff; }
.price-card.featured .price .amount,
.price-card.featured .price .per{ color:#fff; }
.price-card.featured .price .per{ opacity:.85; }
.price-card.featured .billed{ color:rgba(255,255,255,.82); }

.price-flag{ display:inline-block; margin-bottom:14px;
  background:linear-gradient(180deg,var(--gold-bright),var(--gold)); color:#3d2c08;
  font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  padding:5px 12px; border-radius:100px; box-shadow:0 3px 10px rgba(154,115,34,.4); }

.pricing-note{ font-size:12.5px; line-height:1.6; color:var(--muted); margin-top:40px;
  max-width:760px; margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,5vw,72px); align-items:start; }
.contact-info{ display:flex; flex-direction:column; gap:18px; }
.contact-detail{ display:flex; align-items:center; gap:13px; color:var(--ink-soft); font-weight:600; }
.contact-detail svg{ width:20px; height:20px; color:var(--green); flex:none; }
.contact-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:34px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:18px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:14px; font-weight:700; color:var(--ink-soft); }
.field input, .field textarea{ font-family:inherit; font-size:16px; color:var(--ink);
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--r-sm);
  padding:13px 15px; transition:border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--green);
  box-shadow:0 0 0 3px rgba(31,122,68,.14); background:#fff; }
.field select{ font-family:inherit; font-size:16px; color:var(--ink); background:var(--paper);
  border:1.5px solid var(--line); border-radius:var(--r-sm); padding:13px 40px 13px 15px;
  transition:border-color .15s, box-shadow .15s; appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23707064' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; }
.field select:focus{ outline:none; border-color:var(--green);
  box-shadow:0 0 0 3px rgba(31,122,68,.14); background-color:#fff; }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:13px; color:var(--muted); }

/* ---------- footer ---------- */
.site-footer{ background:var(--footer); color:#c9c6bd; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px;
  padding-top:64px; padding-bottom:48px; }
.footer-logo{ height:30px; margin-bottom:18px; }
.footer-brand p{ font-size:14.5px; color:#9a978d; max-width:280px; }
.site-footer h4{ font-family:"Mulish",sans-serif; font-weight:700; font-size:13px; letter-spacing:.1em;
  text-transform:uppercase; color:#fff; margin:0 0 16px; }
.footer-links{ display:flex; flex-direction:column; gap:11px; }
.footer-links a{ font-size:14.5px; color:#a7a499; transition:color .15s; }
.footer-links a:hover{ color:var(--green-bright); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding:22px 0;
  display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; justify-content:space-between;
  font-size:13px; color:#7e7b72; }

/* ---------- mobile menu panel ---------- */
.mobile-menu{ display:none; }

/* =============================================================
   DOC PAGES (Terms, Changelog)
   ============================================================= */
.doc-hero{ background:var(--surface); border-bottom:1px solid var(--line);
  padding-top:clamp(48px,6vw,76px); padding-bottom:clamp(40px,5vw,60px); }
.breadcrumb{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--muted);
  font-weight:600; margin-bottom:18px; }
.breadcrumb a{ color:var(--green-dark); }
.breadcrumb a:hover{ text-decoration:underline; }
.breadcrumb svg{ width:14px; height:14px; }
.doc-hero h1{ font-size:clamp(32px,4.2vw,50px); }
.doc-hero .doc-sub{ margin-top:14px; font-size:clamp(16px,1.5vw,19px); color:var(--ink-soft); max-width:640px; }
.doc-hero .doc-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }

/* cross-nav between doc pages */
.doc-nav{ display:flex; flex-wrap:wrap; gap:8px; margin-top:26px; }
.doc-nav a{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600;
  color:var(--ink-soft); background:var(--paper); border:1px solid var(--line-2);
  padding:9px 16px; border-radius:100px; transition:background .15s, color .15s, border-color .15s; }
.doc-nav a svg{ width:15px; height:15px; }
.doc-nav a:hover{ background:#fff; border-color:var(--green); color:var(--green-dark); }
.doc-nav a.active{ background:var(--green); border-color:var(--green); color:#fff; }

.doc-body{ padding-top:clamp(44px,5vw,68px); padding-bottom:clamp(64px,8vw,100px); }
.doc-layout{ display:grid; grid-template-columns:240px 1fr; gap:clamp(36px,5vw,64px); align-items:start; }

/* sticky side nav */
.doc-toc{ position:sticky; top:96px; display:flex; flex-direction:column; gap:2px; }
.doc-toc .toc-label{ font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted); margin-bottom:10px; }
.doc-toc a{ font-size:14.5px; color:var(--ink-soft); padding:8px 12px; border-radius:8px;
  border-left:2px solid transparent; transition:background .15s, color .15s, border-color .15s; }
.doc-toc a:hover{ background:var(--paper-2); color:var(--green-dark); }
.doc-toc a.active{ background:var(--green-tint); color:var(--green-dark); border-left-color:var(--green); font-weight:700; }

/* prose */
.prose{ max-width:760px; }
.prose .doc-intro{ font-size:17px; color:var(--ink-soft); background:var(--green-tint);
  border:1px solid var(--green-tint-2); border-radius:var(--r); padding:22px 24px; margin-bottom:38px; }
.prose .doc-intro strong{ color:var(--green-dark); }
.clause{ padding:28px 0; border-bottom:1px solid var(--line); scroll-margin-top:96px; }
.clause:first-of-type{ padding-top:0; }
.clause:last-of-type{ border-bottom:0; }
.clause h2{ font-size:21px; display:flex; align-items:baseline; gap:12px; }
.clause h2 .cnum{ font-family:"Bitter",serif; font-size:15px; font-weight:700; color:var(--green);
  background:var(--green-tint); border-radius:7px; padding:3px 10px; flex:none; }
.clause p{ margin-top:12px; color:var(--ink-soft); }
.doc-download{ display:flex; align-items:center; gap:16px; margin-top:42px; padding:22px 24px;
  background:var(--paper-2); border:1px solid var(--line-2); border-radius:var(--r); }
.doc-download .dl-ico{ width:42px; height:42px; border-radius:10px; background:var(--surface);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center; flex:none; }
.doc-download .dl-ico svg{ width:20px; height:20px; color:var(--green); }
.doc-download .dl-text{ flex:1; }
.doc-download .dl-text strong{ display:block; font-size:15px; }
.doc-download .dl-text span{ font-size:13.5px; color:var(--muted); }

/* changelog */
.cl-current{ background:var(--green); color:#fff; border-radius:var(--r-lg); padding:32px 34px; margin-bottom:14px; }
.cl-current .cl-badge{ display:inline-block; background:rgba(255,255,255,.16); color:#fff;
  font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:5px 12px;
  border-radius:100px; margin-bottom:14px; }
.cl-current h2{ color:#fff; font-size:26px; }
.cl-current ul{ margin:16px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:9px; }
.cl-current li{ display:flex; align-items:flex-start; gap:10px; font-size:15.5px; color:#eef6ec; }
.cl-current li svg{ width:17px; height:17px; flex:none; color:#bfe6bd; margin-top:2px; stroke-width:2.6; }

.cl-list{ display:flex; flex-direction:column; }
.cl-entry{ display:grid; grid-template-columns:200px 1fr; gap:28px; padding:24px 0;
  border-bottom:1px solid var(--line); scroll-margin-top:96px; }
.cl-entry:last-child{ border-bottom:0; }
.cl-ver{ display:flex; flex-direction:column; gap:5px; }
.cl-ver .vtag{ font-family:"IBM Plex Mono",monospace; font-size:14px; font-weight:600; color:var(--green-dark); }
.cl-ver .vdate{ font-size:13px; color:var(--muted); }
.cl-changes{ display:flex; flex-direction:column; gap:7px; }
.cl-changes .chg{ display:flex; align-items:flex-start; gap:10px; font-size:15px; color:var(--ink-soft); }
.cl-changes .chg::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--green-bright);
  flex:none; margin-top:8px; }
.cl-major{ font-family:"Bitter",serif; font-weight:700; font-size:13px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--soil); padding:30px 0 6px; }

@media(max-width:880px){
  .doc-layout{ grid-template-columns:1fr; }
  .doc-toc{ position:static; flex-direction:row; flex-wrap:wrap; gap:8px;
    padding-bottom:20px; border-bottom:1px solid var(--line); margin-bottom:28px; }
  .doc-toc .toc-label{ width:100%; margin-bottom:4px; }
  .doc-toc a{ border-left:0; border:1px solid var(--line); }
  .doc-toc a.active{ border-color:var(--green); }
  .cl-entry{ grid-template-columns:1fr; gap:12px; }
}

/* ---------- about ---------- */
.about-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(36px,6vw,72px); align-items:start; }
.about-prose p{ color:var(--ink-soft); font-size:16.5px; line-height:1.7; }
.about-prose p + p{ margin-top:18px; }
.about-prose .lead-line{ font-family:"Bitter",serif; font-size:clamp(20px,2.3vw,26px); font-weight:600;
  line-height:1.35; color:var(--ink); margin-bottom:26px; }
.about-panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--shadow); overflow:hidden; position:sticky; top:96px; }
.about-panel .ap-figure{ aspect-ratio:4/3; overflow:hidden; border-bottom:1px solid var(--line); }
.about-panel .ap-figure img{ width:100%; height:100%; object-fit:cover; display:block; }
.about-stats{ display:grid; grid-template-columns:1fr 1fr; }
.about-stats .as-cell{ padding:22px 24px; border-top:1px solid var(--line); }
.about-stats .as-cell:nth-child(odd){ border-right:1px solid var(--line); }
.about-stats .as-num{ font-family:"Bitter",serif; font-size:30px; font-weight:700; color:var(--green-dark); line-height:1; }
.about-stats .as-lab{ font-size:13px; color:var(--muted); margin-top:7px; font-weight:600; }

.founder{ display:flex; align-items:center; gap:22px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:26px 30px; box-shadow:var(--shadow); flex-wrap:wrap; }
.founder .f-avatar{ width:66px; height:66px; border-radius:50%; flex:none; display:flex; align-items:center;
  justify-content:center; font-family:"Bitter",serif; font-weight:700; font-size:24px; color:#fff;
  background:linear-gradient(135deg,var(--green),var(--green-dark)); box-shadow:0 6px 16px rgba(31,122,68,.3); }
.founder .f-name{ font-family:"Bitter",serif; font-size:19px; font-weight:700; }
.founder .f-role{ font-size:14px; color:var(--muted); margin-top:2px; }
.founder .f-link{ margin-left:auto; }

.about-cta{ background:var(--green); border-radius:var(--r-lg); padding:clamp(40px,6vw,64px);
  text-align:center; color:#fff; box-shadow:var(--shadow-lg); position:relative; overflow:hidden; }
.about-cta::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(120% 140% at 50% -20%, rgba(255,255,255,.16), transparent 60%); }
.about-cta h2{ color:#fff; font-size:clamp(26px,3.2vw,38px); position:relative; }
.about-cta p{ color:rgba(255,255,255,.86); font-size:17px; max-width:520px; margin:14px auto 0; position:relative; }
.about-cta .cta-actions{ margin-top:28px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; position:relative; }
.about-cta .btn-primary{ background:#fff; color:var(--green-dark); border-color:#fff; }
.about-cta .btn-primary:hover{ background:var(--paper); color:var(--green-dark); }
.about-cta .btn-outline-green{ border-color:rgba(255,255,255,.5); color:#fff; }
.about-cta .btn-outline-green:hover{ background:rgba(255,255,255,.12); border-color:#fff; }

/* ---------- responsive ---------- */
@media(max-width:980px){
  .hero-grid, .overview-grid, .tech-grid, .contact-grid, .about-grid{ grid-template-columns:1fr; }
  .about-panel{ position:static; }
  .pricing-grid{ grid-template-columns:1fr; max-width:420px; margin-left:auto; margin-right:auto; }
  .price-card.featured{ transform:none; }
  .hero-media{ order:-1; }
  .hero-stat{ left:auto; right:16px; bottom:-22px; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
}
@media(max-width:760px){
  body{ font-size:16px; }
  .main-nav, .header-actions .btn{ display:none; }
  .nav-toggle{ display:inline-flex; margin-left:auto; }
  .features-grid, .metrics{ grid-template-columns:1fr; }
  .pricing-grid{ grid-template-columns:1fr; }
  .price-card.featured{ transform:none; }
  .price-card.featured:hover{ transform:translateY(-4px); }
  .price-card.featured .price-top{ padding-top:30px; }
  .footer-grid{ grid-template-columns:1fr; }
  /* slide-down mobile menu */
  .mobile-menu{ display:block; max-height:0; overflow:hidden; background:var(--surface);
    border-bottom:1px solid var(--line); transition:max-height .28s ease; }
  .mobile-menu.open{ max-height:420px; }
  .mobile-menu .mm-inner{ display:flex; flex-direction:column; gap:4px; padding:14px 0 22px; }
  .mobile-menu a{ font-weight:600; font-size:17px; color:var(--ink); padding:12px 4px; border-bottom:1px solid var(--line); }
  .mobile-menu .btn{ margin-top:14px; }
}

/* =============================================================
   DARK THEME
   Activated by [data-theme="dark"] on <html>. A head-script sets
   it from saved preference or the OS setting before paint; the
   sun/moon button in the header toggles + persists it.
   ============================================================= */
[data-theme="dark"]{
  --paper:#14130d;
  --paper-2:#1d1a13;
  --surface:#1e1b14;
  --footer:#0d0c08;
  --ink:#f2ece0;
  --ink-soft:#cabfa9;
  --muted:#948a74;
  --line:#322d21;
  --line-2:#443c2c;
  --green:#3ba65f;
  --green-dark:#2f8a4f;
  --green-bright:#69c878;
  --green-tint:#1a2a1d;
  --green-tint-2:#26392b;
  --soil:#c0935a;
  --gold:#d3a648;
  --gold-bright:#e7bf5b;
  --gold-dark:#a87f2c;
  --shadow:0 1px 2px rgba(0,0,0,.45), 0 8px 26px rgba(0,0,0,.5);
  --shadow-lg:0 18px 50px rgba(0,0,0,.6);
}
[data-theme="dark"] .site-header{ background:rgba(20,19,13,.82); }
[data-theme="dark"] .site-header.scrolled{ background:rgba(20,19,13,.94); border-bottom-color:var(--line); box-shadow:0 4px 20px rgba(0,0,0,.4); }
[data-theme="dark"] .hero-stat{ background:var(--surface); }
[data-theme="dark"] .btn-ghost:hover{ background:var(--surface); color:var(--green-bright); }
[data-theme="dark"] .hero-frame{ border-color:var(--line-2); }
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .price-card:hover{ box-shadow:0 18px 44px rgba(0,0,0,.55); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select{ background:#100f0a; }

/* sun/moon toggle */
.theme-toggle{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px;
  border-radius:10px; border:1.5px solid var(--line-2); background:transparent; color:var(--ink-soft);
  cursor:pointer; flex:none; transition:background .15s, color .15s, border-color .15s; }
.theme-toggle:hover{ color:var(--green-dark); border-color:var(--green); background:var(--surface); }
.theme-toggle span{ display:inline-flex; align-items:center; justify-content:center; }
.theme-toggle svg{ width:19px; height:19px; }
.theme-toggle .icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:inline-flex; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }

/* =============================================================
   AUTH PAGES (login / password reset / set new password)
   Split layout: branded image panel + focused form panel.
   ============================================================= */
.auth{ min-height:100vh; display:grid; grid-template-columns:35fr 65fr; }

.auth-brand{ position:relative; padding:clamp(34px,4vw,56px); color:#fff;
  display:flex; flex-direction:column; gap:24px;
  background:linear-gradient(155deg, rgba(23,94,53,.46), rgba(15,33,23,.49)),
    url('assets/hero-factory-v2.png') center/cover no-repeat; }
.auth-brand .ab-logo{ height:34px; width:auto; filter:brightness(0) invert(1); }
.auth-brand .ab-mid{ margin-top:auto; max-width:440px; }
.auth-brand .ab-eyebrow{ font-size:13px; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(255,255,255,.72); font-weight:700; }
.auth-brand h2{ color:#fff; font-size:clamp(28px,3vw,40px); margin-top:14px; }
.auth-brand .ab-mid > p{ color:rgba(255,255,255,.85); margin-top:14px; font-size:16px; }
.auth-updates{ margin-top:auto; background:rgba(15,45,28,.66); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r); padding:18px 20px; backdrop-filter:blur(2px); width:100%; }
.auth-updates .u-label{ font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.72); }
.auth-updates .u-ver{ font-family:"IBM Plex Mono",monospace; color:#fff; font-weight:600; margin-top:8px; display:block; font-size:14px; }
.auth-updates ul{ margin:8px 0 0; padding-left:18px; color:rgba(255,255,255,.82); font-size:14px; }
.auth-updates a{ color:var(--gold-bright); font-size:13.5px; font-weight:700; display:inline-block; margin-top:12px; }

.auth-main{ position:relative; display:flex; align-items:flex-start; justify-content:center;
  padding:clamp(28px,4vw,56px); padding-top:max(clamp(28px,4vw,56px), 13vh); background:var(--paper); }
.auth-toggle{ position:absolute; top:20px; right:20px; }
.auth-card{ width:100%; max-width:406px; }
.ac-logo{ display:none; margin-bottom:26px; }
.ac-logo .logo{ height:32px; width:auto; }
.ac-head{ margin-bottom:26px; }
.ac-head h1{ font-size:clamp(26px,3vw,33px); }
.ac-head .ac-sub{ color:var(--muted); margin-top:11px; font-size:15.5px; }
.auth-form{ display:flex; flex-direction:column; gap:17px; }
.auth-form .field label{ font-size:13.5px; }
.auth-rowend{ display:flex; justify-content:flex-end; margin-top:-4px; }
.auth-rowend a{ font-size:13.5px; color:var(--green-dark); font-weight:600; }
.auth-rowend a:hover{ text-decoration:underline; }
.auth-legal{ font-size:12.5px; color:var(--muted); line-height:1.6; margin-top:2px; }
.auth-legal a{ color:var(--green-dark); font-weight:600; }
.auth-alt{ text-align:center; font-size:14px; color:var(--muted); margin-top:26px;
  padding-top:22px; border-top:1px solid var(--line); }
.auth-alt a{ color:var(--green-dark); font-weight:700; }
.auth-foot{ position:absolute; bottom:16px; left:0; right:0; text-align:center; font-size:12px; color:var(--muted); }
.auth-foot a{ color:var(--muted); font-weight:600; }

/* status alert (reusable for all sign-in messages) */
.auth-alert{ display:flex; align-items:flex-start; gap:11px; padding:13px 15px; border-radius:var(--r-sm);
  font-size:14px; line-height:1.45; margin-bottom:22px; border:1px solid; }
.auth-alert[hidden]{ display:none; }
.auth-alert svg{ width:18px; height:18px; flex:none; margin-top:1px; }
.auth-alert .aclose{ margin-left:auto; cursor:pointer; opacity:.55; background:none; border:0; color:inherit; padding:0; line-height:1; }
.auth-alert .aclose:hover{ opacity:1; }
.auth-alert.info{ background:var(--green-tint); border-color:var(--green-tint-2); color:var(--green-dark); }
.auth-alert.warn{ background:#fbf2dd; border-color:#f0dca8; color:#876338; }
.auth-alert.error{ background:#fbe9e4; border-color:#f0c9bd; color:#9a3b25; }

/* hCaptcha placeholder */
.captcha-box{ display:flex; align-items:center; gap:13px; border:1px solid var(--line-2); border-radius:var(--r-sm);
  background:var(--surface); padding:13px 16px; }
.captcha-box .cb-check{ width:24px; height:24px; border:2px solid var(--line-2); border-radius:5px; flex:none; }
.captcha-box .cb-text{ font-size:14px; color:var(--ink-soft); }
.captcha-box .cb-brand{ margin-left:auto; font-size:10.5px; color:var(--muted); text-align:right; line-height:1.3; }

@media(max-width:860px){
  .auth{ grid-template-columns:1fr; }
  .auth-brand{ display:none; }
  .ac-logo{ display:block; }
}
