/* ==========================================================================
   ZelarSOAR marketing site — design system
   Palette + type locked per build brief. No frameworks, no build step.
   ========================================================================== */

:root {
  /* Palette (locked) */
  --teal: #01696F;          /* accent, links, CTAs */
  --teal-deep: #004C50;     /* hover, secondary */
  --ink: #28251D;           /* body text */
  --mute: #6B655A;          /* secondary text */
  --pill: #E8F2F2;          /* subtle accent surface */
  --gold: #C79A2E;          /* single "receipt signed" moment */
  --warn: #964219;
  --success: #2E7D32;
  --bg: #F7F6F2;            /* warm off-white primary */
  --dark: #0F1614;         /* dark hero + footer */
  --dark-2: #16211F;       /* dark elevated surface */
  --dark-line: #2A3A37;    /* dark hairlines */
  --on-dark: #F0EEE8;      /* text on dark */
  --on-dark-mute: #9BAAA6; /* muted text on dark */
  --line: #E2DFD6;         /* light hairlines */
  --card: #FFFFFF;         /* light card surface */

  --maxw: 1200px;
  --wide: 1280px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(40,37,29,.05), 0 8px 28px rgba(40,37,29,.06);
  --shadow-lg: 0 2px 6px rgba(40,37,29,.08), 0 24px 60px rgba(40,37,29,.10);

  --fs-hero: clamp(2.4rem, 5.2vw, 3.9rem);
  --fs-page: clamp(1.9rem, 3.6vw, 2.6rem);
  --fs-sec: clamp(1.35rem, 2.2vw, 1.7rem);
  --fs-body: 1.0625rem;   /* ~17px */
  --fs-lead: 1.1875rem;   /* ~19px */
  --fs-cap: .8125rem;     /* ~13px */

  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

/* -------- skip link + focus -------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible, .site-header :focus-visible { outline-color: #6FD0D8; }

/* -------- layout -------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-wide { max-width: var(--wide); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.measure { max-width: 62ch; }
.center { text-align: center; }

/* -------- eyebrow -------- */
.eyebrow {
  font-family: var(--body);
  font-size: var(--fs-cap);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .9rem;
}
.on-dark .eyebrow { color: #5BC2CA; }

/*--------------------------------------*/
.demo-banner{
    padding:4rem 2rem;
    background:linear-gradient(135deg,#01696F,#004C50);
    border-radius:20px;
}

.demo-banner .wrap{
    max-width:800px;
    margin:auto;
    text-align:center;
}

.demo-banner .eyebrow{
    color:#B6F1F5;
}

.demo-banner h2{
    margin:.75rem 0 1rem;
    color:#fff;
}

.demo-banner p{
    max-width:650px;
    margin:0 auto 2rem;
    color:rgba(255,255,255,.85);
}

.demo-actions{
    display:flex;
    justify-content:center;
    gap:1rem;
    flex-wrap:wrap;
}

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--pill); color: var(--teal-deep); }
.on-dark .btn-primary { background: var(--teal); }
.on-dark .btn-primary:hover { background: #058089; }
.on-dark .btn-ghost { color: var(--on-dark); border-color: var(--dark-line); }
.on-dark .btn-ghost:hover { border-color: #5BC2CA; color: #fff; background: rgba(91,194,202,.08); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.textlink { font-weight: 600; }
.textlink .arrow { display: inline-block; transition: transform .15s ease; }
.textlink:hover .arrow { transform: translateX(3px); }

/* -------- header / nav -------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,242,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { display: block; }
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }

/* -------- hero (dark) -------- */
.hero-dark { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-dark h1 { color: var(--on-dark); font-size: var(--fs-hero); max-width: 16ch; }
.hero-dark .lead { color: var(--on-dark-mute); font-size: var(--fs-lead); max-width: 54ch; margin-top: 1.2rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-shot {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--dark-line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hero-shot img { width: 100%; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; margin-top: 2.4rem; }
.stat { background: var(--dark-2); padding: 1.3rem 1.4rem; }
.stat .num { font-family: var(--sans); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); color: #55C6CE; line-height: 1; letter-spacing: -.02em; }
.stat .lbl { color: var(--on-dark-mute); font-size: var(--fs-cap); margin-top: .5rem; }

/* -------- section headings -------- */
.sec-head { max-width: 60ch; margin-bottom: 2.6rem; }
.sec-head h2 { font-size: var(--fs-page); }
.sec-head .lead { color: var(--mute); font-size: var(--fs-lead); margin-top: .9rem; }

/* -------- posture/proof/action triptych -------- */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.loop-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); position: relative; }
.loop-card .step { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--body); font-weight: 600; font-size: var(--fs-cap); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; }
.loop-card h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.loop-card p { color: var(--mute); margin: 0; }
.loop-card.is-action { border-color: var(--teal); background: linear-gradient(180deg, var(--pill), var(--card) 60%); }

/* -------- feature grid -------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--mute); margin: 0; }
.card .k { font-family: var(--sans); font-weight: 700; font-size: 1.7rem; color: var(--teal); letter-spacing: -.02em; }

/* -------- proof callout with number -------- */
.proofline { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--line); }
.proofline .pk { font-family: var(--sans); font-weight: 700; color: var(--teal); font-size: 1.5rem; min-width: 4.5ch; }
.proofline .pt { color: var(--ink); }

/* -------- dark band (emphasis) -------- */
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark h2 { color: var(--on-dark); }
.band-dark .lead { color: var(--on-dark-mute); }


/**---------------------------------------*/
/* ==========================
   Explore Demo Section
========================== */

.demo-section{
    background:#0F1614;
    color:#F7F6F2;
}

.demo-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.demo-content h2{
    font-size:clamp(2rem,4vw,3rem);
    line-height:1.15;
    margin:12px 0 20px;
    color:#fff;
}

.demo-content .lead{
    color:#b8c0bc;
    max-width:600px;
}

.demo-features{
    display:grid;
    grid-template-columns:repeat(2,minmax(220px,1fr));
    gap:18px;
    margin-top:36px;
}

.demo-features div{
    background:#161d1b;
    border:1px solid rgba(255,255,255,.08);
    padding:16px 18px;
    border-radius:12px;
    color:#fff;
    font-weight:500;
}

.demo-image img{
    width:100%;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 30px 60px rgba(0,0,0,.35);
}

@media(max-width:991px){

.demo-grid{
    grid-template-columns:1fr;
}

.demo-image{
    order:-1;
}

.demo-features{
    grid-template-columns:1fr;
}

}
/* -------- receipt artifact -------- */
.receipt {
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; font-family: var(--mono); color: var(--on-dark); overflow-x: auto;
}
.receipt .r-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; font-size: .9rem; }
.receipt .r-time { color: var(--gold); font-weight: 500; white-space: nowrap; }
.receipt .r-status { color: #55C6CE; white-space: nowrap; }
.receipt .r-meta { color: var(--on-dark-mute); font-size: var(--fs-cap); margin-top: .7rem; letter-spacing: .02em; }
.receipt .r-sig { color: var(--gold); }

/* -------- comparison table (bake-off) -------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 820px; }
table.compare thead th {
  text-align: left; font-family: var(--body); font-weight: 600; font-size: var(--fs-cap);
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: bottom;
}
table.compare tbody td { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; line-height: 1.55; color: var(--ink); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare th[scope="row"] { text-align: left; font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1rem; padding: 1.1rem 1.2rem; vertical-align: top; }
table.compare .cell-mute { color: var(--mute); }
table.compare tr.zelar-row td, table.compare tr.zelar-row th[scope="row"] { background: var(--pill); }
table.compare tr.zelar-row { outline: 2px solid var(--teal); outline-offset: -2px; }
table.compare tr.zelar-row th[scope="row"] { color: var(--teal-deep); }
.dash { color: var(--mute); }

/* -------- three-question cards -------- */
.q-card { background: var(--pill); border-radius: var(--radius); padding: 1.5rem; }
.q-card h3 { font-size: 1.125rem; margin-bottom: .9rem; }
.q-card ul { list-style: none; }
.q-card li { color: var(--mute); font-size: .95rem; padding: .18rem 0; }
.q-card li.win { color: var(--ink); font-weight: 700; }
.q-card li.win::before { content: "→ "; color: var(--teal); }

/* -------- compliance framework rows -------- */
.fw-list { display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.fw-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.fw-row:last-child { border-bottom: 0; }
.fw-name { font-family: var(--sans); font-weight: 600; }
.fw-sub { color: var(--mute); font-size: var(--fs-cap); font-family: var(--body); font-weight: 400; margin-top: .15rem; }
.fw-count { font-family: var(--mono); font-size: .95rem; color: var(--ink); white-space: nowrap; }
.fw-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fw-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--success); }
.fw-bar.amber > span { background: var(--gold); }
.fw-bar.warn > span { background: var(--warn); }

/* -------- pill / badge -------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--pill); color: var(--teal-deep); font-weight: 600; font-size: var(--fs-cap); padding: .35rem .75rem; border-radius: 999px; }

/* -------- CTA footer band -------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-page); max-width: 20ch; margin-inline: auto; }
.cta-band .lead { color: var(--mute); font-size: var(--fs-lead); max-width: 52ch; margin: 1rem auto 1.8rem; }
.band-dark.cta-band .lead { color: var(--on-dark-mute); }
.cta-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* -------- forms -------- */
.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { color: var(--mute); font-size: var(--fs-cap); margin-top: .35rem; }
.form-note { color: var(--mute); font-size: var(--fs-cap); }

/* -------- contact split -------- */
/* Team Headshots */
.team-photo{
    width:100%;
    aspect-ratio:4/5;
    object-fit:cover;
    object-position:center;
    display:block;
    border-radius:18px;
}
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.contact-card + .contact-card { margin-top: 1.2rem; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.contact-card p { color: var(--mute); margin: 0 0 .6rem; }

/* -------- team placeholders -------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--pill);
  border: 1px dashed #B9D3D3; display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: var(--fs-cap); text-align: center; padding: 1rem; margin-bottom: .8rem;
}
.team-card h3 { font-size: 1.05rem; }
.team-card .role { color: var(--mute); font-size: .9rem; }

/* -------- footer -------- */
.site-footer { background: var(--dark); color: var(--on-dark-mute); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--on-dark); font-family: var(--body); font-size: var(--fs-cap); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: var(--on-dark-mute); font-size: .95rem; display: block; padding: .28rem 0; }
.site-footer a:hover { color: var(--on-dark); }
.footer-brand .tagline { color: var(--on-dark-mute); font-size: .95rem; margin-top: .9rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--dark-line); margin-top: 2.6rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-cap); }
.footer-mark { display: inline-flex; align-items: center; gap: .5rem; color: var(--on-dark); font-family: var(--sans); font-weight: 700; }

/* -------- 404 -------- */
.big404 { font-family: var(--sans); font-weight: 700; font-size: clamp(4rem, 14vw, 9rem); color: var(--teal); line-height: 1; letter-spacing: -.03em; }

/* -------- legal / fine print -------- */
.fineprint { color: var(--mute); font-size: var(--fs-cap); max-width: 70ch; }

/* -------- reveal motion -------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* -------- responsive -------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .hero-grid.hero-stack { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 24px 1rem;
  }
  .site-header.open .nav-links a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .triptych, .grid-2, .grid-3, .team-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* -------- reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
