/* ============================================================
   Fryckle v3 — "anti-vibe" operational token system
   Clinical off-white, midnight slate ink, crisp 1px borders,
   Margin Green conversion accents. No fuzzy shadows, no radial
   gradients, no abstract fades.
   Type: Hanken Grotesk + Bricolage Grotesque + IBM Plex Mono.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #F8FAFC;
  --bg-2:      #F1F5F9;
  --panel:     #FFFFFF;
  --panel-2:   #F8FAFC;
  --line:      #E2E8F0;
  --line-2:    #CBD5E1;

  /* Ink — Midnight Slate */
  --ink:       #0F172A;
  --ink-soft:  #334155;
  --ink-mute:  #475569;
  --ink-faint: #64748B;

  /* Margin Green — conversion accents */
  --green:       #10B981;
  --green-deep:  #059669;
  --green-ink:   #047857;
  --green-dark:  #04251B;
  --green-tint:  rgba(16, 185, 129, 0.10);

  /* Legacy aliases */
  --gold:        var(--green-ink);
  --gold-hi:     var(--green-deep);
  --gold-deep:   #065F46;
  --gold-bright: var(--green);
  --gold-glow:   rgba(16, 185, 129, 0.14);
  --navy:        #334155;
  --navy-hi:     #475569;

  /* WhatsApp (chat mock only) */
  --wa-bg:     #0B141A;
  --wa-in:     #1F2C33;
  --wa-out:    #144D3F;
  --wa-green:  #25D366;
  --wa-tick:   #53BDEB;

  /* States */
  --good:      #059669;
  --warn:      #B45309;
  --bad:       #B91C1C;

  --maxw: 1200px;
  --r:    8px;

  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Hanken Grotesk", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--green); color: var(--green-dark); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { position: relative; padding: 120px 0; }
.section--tight { padding: 92px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--green-ink);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }

.h-display {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.h-section {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -0.028em;
  line-height: 1.02;
  font-weight: 700;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 400;
  text-wrap: pretty;
}
.text-gold { color: var(--green-ink); }
.text-soft { color: var(--ink-soft); }
.text-mute { color: var(--ink-mute); }
.mono { font-family: var(--mono); }

/* ---- Buttons (flat, crisp) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 560;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-gold, .btn-green {
  background: var(--green);
  color: var(--green-dark);
  border-color: var(--green-deep);
}
.btn-gold:hover, .btn-green:hover { background: #0DA271; }
.btn-ghost, .btn-outline {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover, .btn-outline:hover { border-color: var(--ink); }
.btn-arrow svg { transition: transform .18s ease; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; }
.brand-name { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-soft); padding: 8px 13px; border-radius: 6px;
  transition: color .15s ease, background .15s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden;
  background: var(--panel);
}
.lang-opt {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  padding: 7px 11px; border: 0; background: transparent; color: var(--ink-mute);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.lang-opt + .lang-opt { border-left: 1px solid var(--line-2); }
.lang-opt:hover { color: var(--ink); }
.lang-opt.active { background: var(--ink); color: #fff; }
.lang-opt:focus-visible { outline: 2px solid var(--green-deep); outline-offset: -2px; }
.nav-cta .ghost-link { font-size: 14.5px; color: var(--ink-soft); transition: color .15s; }
.nav-cta .ghost-link:hover { color: var(--ink); }
.nav-cta .btn { padding: 10px 18px; font-size: 14.5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 88px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/brand/hero-warehouse.jpg") center 32% / cover no-repeat;
  filter: saturate(0.82) contrast(1.03) brightness(1.02);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.18), rgba(15,23,42,0.04) 40%);
  mix-blend-mode: multiply;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(105deg,
      #F8FAFC 0%, #F8FAFC 37%,
      rgba(248,250,252,0.90) 50%,
      rgba(248,250,252,0.55) 70%,
      rgba(248,250,252,0.38) 100%),
    linear-gradient(to bottom,
      rgba(248,250,252,0.45) 0%, rgba(248,250,252,0) 20%,
      rgba(248,250,252,0) 64%, #F8FAFC 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px;
  align-items: start;
}
.hero-messaging { padding-top: 10px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  color: var(--ink-mute);
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel);
  margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); outline: 3px solid var(--green-tint); }
.hero h1 { margin-bottom: 24px; }
.hero h1 .hl { color: var(--green-ink); }
.hero .lede { max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* MetricDataGrid */
.metric-grid {
  margin-top: 42px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-2);
  background: var(--panel);
  max-width: 560px;
}
.metric { padding: 18px 20px 15px; border-left: 1px solid var(--line-2); min-width: 0; }
.metric:first-child { border-left: 0; }
.metric b {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(20px, 2.3vw, 29px);
  letter-spacing: -0.02em; color: var(--ink);
  display: block; line-height: 1.1; white-space: nowrap;
}
.metric span { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; line-height: 1.35; }

/* IntegrationBadges */
.int-row { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.int-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); white-space: nowrap;
}
.int-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.int-pill {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
  transition: border-color .15s ease;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 9px;
}
.int-pill:hover { border-color: var(--line-2); }
.ip-logo {
  width: 19px; height: 19px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  font-style: normal; line-height: 1;
}
.ip-exact { background: #E2231A; color: #fff; border-radius: 4px; font-weight: 700; font-size: 13px; font-family: Georgia, "Times New Roman", serif; padding-bottom: 2px; }
.ip-wa { background: #25D366; color: #fff; border-radius: 50%; }
.ip-csv { background: var(--ink); color: #fff; border-radius: 4px; }

/* ---- WhatsAppSimulator ---- */
.hero-sim {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 412px; justify-self: end;
}
.sim-frame { position: relative; }
.sync-chip {
  position: absolute; z-index: 4; top: 14px; right: -10px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .01em;
  background: var(--panel); color: var(--ink-soft);
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 7px 11px; white-space: nowrap;
}
.sync-chip .pin { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--wa-green); margin-left: 1px;
  transform: translateY(2px);
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { display: none; } }
.phone {
  position: relative;
  background: var(--wa-bg);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
#simChat {
  height: 430px; min-height: 0;
  overflow-y: auto;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
#simChat > :first-child { margin-top: auto; }
#simChat::-webkit-scrollbar { width: 6px; }
#simChat::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.wa-head {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  background: #1F2C33;
  border-bottom: 1px solid rgba(0,0,0,.35);
}
.wa-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #16263B;
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.wa-avatar img { width: 24px; height: 24px; }
.wa-head .who { display: flex; flex-direction: column; line-height: 1.2; }
.wa-head .who b { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #E9EDEF; letter-spacing: -0.01em; }
.wa-head .who span { font-size: 12px; color: #8696A0; }
.wa-head .who span.online { color: var(--wa-green); }
.wa-head .icons { margin-left: auto; display: flex; gap: 18px; color: #8696A0; }

.wa-body {
  position: relative;
  background-color: var(--wa-bg);
  padding: 18px 14px 16px;
  min-height: 430px;
  display: flex; flex-direction: column; gap: 10px;
  justify-content: flex-end;
  overflow: hidden;
}
.wa-date {
  align-self: center; font-size: 11px; color: #8696A0;
  background: #1F2C33; padding: 4px 12px; border-radius: 6px;
  margin-bottom: 4px;
}
.msg {
  max-width: 86%; padding: 8px 11px 7px; border-radius: 8px;
  font-size: 14px; line-height: 1.42; position: relative;
  word-wrap: break-word;
}
.msg .t { font-size: 10px; color: rgba(233,237,239,.55); float: right; margin: 6px 0 -2px 10px; display: inline-flex; align-items: center; gap: 3px; }
.msg .t svg { color: var(--wa-tick); }
.msg.in  { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 3px; color: #E9EDEF; }
.msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 3px; color: #E9EDEF; }
.msg.out .txt::after { content: ""; }

/* typing indicator */
.typing { align-self: flex-start; background: var(--wa-in); padding: 11px 14px; border-radius: 8px; border-top-left-radius: 3px; display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }

/* margin-check system indicator */
.sys-check {
  align-self: center;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .01em;
  color: #34D399;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.38);
  border-radius: 6px; padding: 5px 11px;
  white-space: nowrap;
}
.sys-check svg { flex-shrink: 0; }

/* verified ERP invoice card */
.msg.inv-card {
  background: var(--panel); color: var(--ink);
  width: 100%; max-width: 94%;
  align-self: flex-start;
  padding: 0; overflow: hidden;
  border-radius: 8px; border-top-left-radius: 3px;
  border: 1px solid rgba(255,255,255,.14);
}
.inv-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.inv-check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: #FFFFFF;
  display: grid; place-items: center;
}
.inv-head .ih { min-width: 0; }
.inv-head .ih b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.inv-head .ih span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); margin-top: 1px; }
.inv-badge {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-ink); border: 1px solid var(--green-deep);
  border-radius: 4px; padding: 2px 6px;
}
.inv-body { padding: 10px 12px 11px; }
.inv-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-soft); align-items: baseline; }
.inv-line .val { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.inv-meta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); margin: 3px 0 0; }
.inv-note { font-size: 11.5px; color: var(--ink-mute); margin-top: 6px; }
.inv-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: 9px; padding-top: 8px;
}
.inv-total span { font-size: 11.5px; color: var(--ink-mute); }
.inv-total b { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.inv-foot {
  padding: 8px 12px; background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-mute);
}
.inv-foot b { color: var(--ink); }

/* simulator entrance */
@media (prefers-reduced-motion: no-preference) {
  .sim-in { animation: simIn .32s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes simIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* input tray */
.sim-tray {
  border: 1px solid var(--line-2); background: var(--panel);
  border-radius: 8px; padding: 14px;
}
.sim-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 10px;
}
.sim-label .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.sim-chips { display: flex; flex-direction: column; gap: 8px; }
.sim-chip {
  display: flex; align-items: center; gap: 10px;
  text-align: left; width: 100%; cursor: pointer;
  font-size: 13.5px; line-height: 1.35; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sim-chip::after {
  content: "\2192"; margin-left: auto; font-family: var(--mono);
  color: var(--ink-faint); flex-shrink: 0;
  transition: color .15s ease, transform .15s ease;
}
.sim-chip:hover { border-color: var(--green-deep); color: var(--ink); }
.sim-chip:hover::after { color: var(--green-ink); transform: translateX(2px); }
.sim-chip.active { border-color: var(--green-deep); background: var(--green-tint); color: var(--ink); }
.sim-chip.active::after { color: var(--green-ink); }
.sim-chip:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 1px; }

/* ============================================================
   Section header
   ============================================================ */
.sec-head { max-width: 720px; margin-bottom: 60px; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head h2 { margin-bottom: 20px; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); background: var(--panel); }
.prob {
  background: var(--panel);
  border-left: 1px solid var(--line-2);
  padding: 30px 28px 32px; position: relative;
  transition: background .2s ease;
}
.prob:first-child { border-left: 0; }
.prob:hover { background: var(--bg); }
.prob .pico {
  width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center;
  background: var(--panel); color: var(--bad); margin-bottom: 22px;
  border: 1px solid var(--line-2);
}
.prob h3 { font-size: 20px; margin-bottom: 10px; }
.prob p { font-size: 15px; color: var(--ink-mute); line-height: 1.5; }
.prob .old { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); display: flex; align-items: center; gap: 8px; }
.prob .old s { color: var(--bad); text-decoration-color: rgba(185,28,28,.5); }
.prob .old .arrow { color: var(--ink-faint); }
.prob .old b { color: var(--green-ink); }

/* ============================================================
   PILLARS — feature rows
   ============================================================ */
.pillar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px 0;
}
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar.reverse .pillar-media { order: -1; }
.pillar-num { font-family: var(--mono); font-size: 13px; color: var(--green-ink); letter-spacing: .1em; margin-bottom: 18px; }
.pillar-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 16px; letter-spacing: -0.025em; }
.pillar-copy > p { font-size: 17px; color: var(--ink-soft); margin-bottom: 24px; max-width: 480px; }
.pillar-list { display: flex; flex-direction: column; gap: 12px; }
.pillar-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.pillar-list li .ck { flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px; background: var(--green-tint); border: 1px solid rgba(16,185,129,.35); display: grid; place-items: center; color: var(--green-ink); margin-top: 1px; }

.pillar-media { position: relative; }
.mock {
  background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 10px;
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-bar .title { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); letter-spacing: .03em; }
.mock-body { padding: 18px; }
.dtable { font-family: var(--mono); font-size: 12.5px; }
.dt-row { display: grid; grid-template-columns: 1fr 84px 30px 64px; gap: 4px 10px; align-items: baseline; padding: 5px 0; color: var(--ink-soft); }
.dt-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-row .r { text-align: right; }
.dt-head { color: var(--ink-mute); border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 5px; letter-spacing: .04em; }
.mock .wa-body { min-height: auto; }
.mock-body .text-gold { color: var(--green-ink); }

/* ============================================================
   PIPELINE / MOAT
   ============================================================ */
.moat { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.tree-legend { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.tree-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tree-legend i { width: 9px; height: 9px; border-radius: 2px; }
.tree-wrap { margin-top: 30px; }
.tree { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; aspect-ratio: 1160 / 500; }
.tree-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.tline { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 7; stroke-linecap: round; opacity: 0; transition: opacity .5s ease; }
.tline.gold { stroke: var(--green-deep); stroke-width: 1.8; }
.tree.drawn .tline { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tree.drawn .tline { animation: antflow 1.3s linear infinite; }
  .tree.drawn .tline.gold { animation: antflow 1s linear infinite; }
}
@keyframes antflow { to { stroke-dashoffset: -22; } }
.tdot { fill: var(--green); stroke: var(--panel); stroke-width: 2; opacity: 0; transition: opacity .4s ease .3s; }
.tree.drawn .tdot { opacity: 1; }
.tdot-live { fill: var(--green); opacity: 0; }
.tree.drawn .tdot-live { opacity: 1; }
.tree.drawn .tdot-ring { transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .tree.drawn .tdot-ring { animation: livepulse 2s ease-out infinite; }
}
@keyframes livepulse { 0% { opacity:.6; transform: scale(.6);} 70%,100% { opacity:0; transform: scale(2.4);} }

.tnode {
  position: absolute; z-index: 2;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 12px 14px; min-height: 60px;
  display: flex; gap: 11px; align-items: center;
  opacity: 0; transform: translateY(12px);
}
.tree.drawn .tnode { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
.tnode.lit { border-color: var(--green-deep); outline: 1px solid var(--green-deep); }
.tic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: #fff; }
.tic.green { background: var(--good); }
.tic.navy  { background: var(--navy); }
.tic.gold  { background: var(--ink); color: #fff; }
.tic.amber { background: var(--warn); color: #fff; }
.tt { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.ts { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 4px; line-height: 1.35; display: block; }
.ts b { color: var(--green-ink); font-weight: 500; }
.ts .ok { color: var(--good); }

/* node positions */
.n-trig   { left: 1.4%;  top: 41.5%; width: 18.3%; }
.n-f1     { left: 27.2%; top: 5.5%;  width: 21.7%; }
.n-f2     { left: 27.2%; top: 28%;   width: 21.7%; }
.n-f3     { left: 27.2%; top: 50.5%; width: 21.7%; }
.n-f4     { left: 27.2%; top: 73%;   width: 21.7%; }
.n-margin { left: 54%;   top: 39.5%; width: 20.3%; }
.n-out    { left: 78.6%; top: 24.5%; width: 20%;  }
.n-flag   { left: 78.6%; top: 55.5%; width: 20%;  }
.tnode.n-f1 { transition-delay: .12s; }
.tnode.n-f2 { transition-delay: .2s; }
.tnode.n-f3 { transition-delay: .28s; }
.tnode.n-f4 { transition-delay: .36s; }
.tnode.n-margin { transition-delay: .5s; }
.tnode.n-out { transition-delay: .64s; }
.tnode.n-flag { transition-delay: .7s; }

@media (max-width: 880px) {
  .tree { aspect-ratio: auto; max-width: 440px; padding-left: 16px; }
  .tree::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 18px; width: 2px; background: repeating-linear-gradient(var(--green-deep) 0 5px, transparent 5px 11px); opacity: .5; }
  .tree-svg { display: none; }
  .tnode { position: relative !important; width: 100% !important; opacity: 1 !important; transform: none !important; margin-bottom: 12px; }
  .tnode::before { content: ""; position: absolute; left: -13px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg-2); transform: translateY(-50%); }
}

/* ============================================================
   AUTOMATIONS
   ============================================================ */
.auto-wrap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: start; }
.auto-list { display: flex; flex-direction: column; gap: 10px; }
.auto-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 16px 0 4px; }
.auto-cat:first-child { margin-top: 0; }
.auto-chip {
  text-align: left; width: 100%; cursor: pointer;
  display: flex; align-items: center; gap: 13px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; color: var(--ink-soft); font-family: inherit; font-size: 14.5px;
  transition: border-color .15s ease, background .15s ease, color .15s;
}
.auto-chip:hover { border-color: var(--line-2); background: var(--bg); }
.auto-chip.active { border-color: var(--green-deep); background: var(--green-tint); color: var(--ink); }
.auto-chip .ci { flex-shrink: 0; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }
.auto-chip.active .ci { background: var(--panel); border-color: var(--green-deep); color: var(--green-ink); }
.auto-chip .label { flex: 1; }
.auto-chip .label small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.auto-chip .go { color: var(--ink-faint); transition: transform .15s, color .15s; }
.auto-chip.active .go { color: var(--green-ink); transform: translateX(2px); }

.auto-stage { position: sticky; top: 100px; }
.auto-phone {
  background: var(--wa-bg); border-radius: 16px; border: 1px solid var(--line-2);
  overflow: hidden;
}
.auto-phone .wa-body { min-height: 360px; padding: 20px 16px; }
.auto-tools {
  margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
}
.auto-tools .tcount { color: var(--green-ink); }

/* chat reveal animation */
.chat-step { opacity: 0; transform: translateY(10px); }
.chat-step.show { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.3,1); }

/* ============================================================
   PROOF
   ============================================================ */
.proof-card {
  background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 56px; position: relative; overflow: hidden;
}
.proof-card .quote-mark { font-family: Georgia, serif; font-size: 120px; line-height: 0; color: var(--green); opacity: .25; position: absolute; top: 60px; left: 40px; }
.proof-card blockquote {
  position: relative; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.32;
  letter-spacing: -0.02em; font-weight: 500; max-width: 860px; margin-bottom: 34px;
  text-wrap: balance;
}
.proof-card blockquote em { color: var(--green-ink); font-style: normal; }
.proof-by { display: flex; align-items: center; gap: 14px; }
.proof-by .pb-avatar { width: 50px; height: 50px; border-radius: 50%; background: #16263B; border: 1px solid var(--line-2); display: grid; place-items: center; }
.proof-by .pb-avatar img { width: 34px; height: 34px; }
.proof-by b { font-size: 16px; display: block; }
.proof-by span { font-size: 14px; color: var(--ink-mute); }
.proof-side { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line-2); margin-top: 26px; }
.proof-side .ps { background: var(--bg); padding: 24px 22px; border-left: 1px solid var(--line-2); }
.proof-side .ps:first-child { border-left: 0; }
.proof-side .ps b { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--green-ink); letter-spacing: -0.02em; display: block; }
.proof-side .ps span { font-size: 13.5px; color: var(--ink-mute); margin-top: 4px; display: block; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 120px 0; background: var(--panel); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.035em; margin-bottom: 22px; }
.cta-band p { font-size: 1.2rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 38px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: 14px; color: var(--ink-mute); line-height: 1.5; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-soft); padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--green-ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-bottom span { font-size: 13px; color: var(--ink-mute); font-family: var(--mono); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat-step { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Enhancements — scroll-spy, sticky mini-CTA, ROI calculator
   ============================================================ */
.nav-links a.active { color: var(--ink); background: var(--bg-2); }

/* ============================================================
   Type pairings — data-type on <html>
   ============================================================ */
html[data-type="editorial"] { --display: "Newsreader", Georgia, serif; }
html[data-type="editorial"] h1,
html[data-type="editorial"] h2,
html[data-type="editorial"] h3 { font-weight: 500; letter-spacing: -0.015em; }
html[data-type="editorial"] .h-display { font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
html[data-type="editorial"] .h-section { font-weight: 500; letter-spacing: -0.015em; line-height: 1.06; }
html[data-type="editorial"] .brand-name { font-weight: 600; }

/* WhatsApp quick reply */
.wa-quick { display: flex; justify-content: center; align-self: stretch; margin-top: 2px; }
.wa-yes {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--wa-green); background: rgba(37, 211, 102, 0.08);
  border: 1px solid var(--wa-green); border-radius: 999px;
  padding: 9px 30px; cursor: pointer; min-height: 38px;
  transition: background .15s ease;
}
.wa-yes:hover { background: rgba(37, 211, 102, 0.18); }
.wa-yes:focus-visible { outline: 2px solid var(--wa-green); outline-offset: 2px; }

.mini-cta {
  position: fixed; left: 50%; bottom: 18px; z-index: 90;
  transform: translate(-50%, 90px);
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 10px 10px 18px;
  opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .35s ease;
}
.mini-cta.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mini-cta .mc-msg { font-size: 14.5px; color: var(--ink-soft); white-space: nowrap; }
.mini-cta .mc-msg b { color: var(--ink); }
.mini-cta .btn { padding: 11px 16px; font-size: 14px; }
.mini-cta .mc-x {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--bg); border-radius: 6px;
  cursor: pointer; color: var(--ink-mute); font-size: 14px; line-height: 1;
  transition: color .15s ease, border-color .15s ease;
}
.mini-cta .mc-x:hover { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 600px) {
  .mini-cta { left: 12px; right: 12px; transform: translateY(90px); justify-content: space-between; }
  .mini-cta.show { transform: none; }
  .mini-cta .mc-msg { display: none; }
  .mini-cta .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .mini-cta { transition: opacity .2s ease; } }

.roi {
  max-width: 620px; margin: 0 auto 38px;
  border: 1px solid var(--line-2); background: var(--bg);
  text-align: left; padding: 22px 24px;
}
.roi-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px;
}
.roi-row { display: flex; align-items: center; gap: 16px; }
.roi-row label { font-size: 14.5px; color: var(--ink-soft); white-space: nowrap; }
.roi-row input[type="range"] { flex: 1; accent-color: var(--green); cursor: pointer; min-width: 0; }
.roi-val { font-family: var(--mono); font-weight: 600; font-size: 16px; min-width: 52px; text-align: right; }
.roi-out {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2); background: var(--panel); margin-top: 18px;
}
.roi-out > div { padding: 14px 16px; border-left: 1px solid var(--line-2); }
.roi-out > div:first-child { border-left: 0; }
.roi-out b { font-family: var(--mono); font-size: 24px; font-weight: 600; display: block; color: var(--green-ink); letter-spacing: -0.02em; }
.roi-out span { font-size: 12.5px; color: var(--ink-mute); display: block; margin-top: 3px; line-height: 1.4; }
.roi-note { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); }
@media (max-width: 560px) {
  .roi-row { flex-wrap: wrap; }
  .roi-out { grid-template-columns: 1fr; }
  .roi-out > div { border-left: 0; border-top: 1px solid var(--line-2); }
  .roi-out > div:first-child { border-top: 0; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-scrim {
    background: linear-gradient(to bottom,
      rgba(248,250,252,0.93) 0%, rgba(248,250,252,0.74) 46%,
      rgba(248,250,252,0.82) 72%, #F8FAFC 100%);
  }
  .sync-chip { right: 10px; }
  .hero-sim { justify-self: stretch; max-width: 430px; margin: 0 auto; }
  .pillar, .pillar.reverse { grid-template-columns: 1fr; gap: 36px; }
  .pillar.reverse .pillar-media { order: 0; }
  .auto-wrap { grid-template-columns: 1fr; gap: 32px; }
  .auto-stage { position: static; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .hero { padding: 130px 0 72px; }
  .problem-grid { grid-template-columns: 1fr; }
  .prob { border-left: 0; border-top: 1px solid var(--line-2); }
  .prob:first-child { border-top: 0; }
  .proof-card { padding: 34px 26px; }
  .proof-side { grid-template-columns: 1fr; }
  .proof-side .ps { border-left: 0; border-top: 1px solid var(--line-2); }
  .proof-side .ps:first-child { border-top: 0; }
  .foot-top { flex-direction: column; }
  .nav-cta .ghost-link { display: none; }
  .metric-grid { max-width: none; }
}
@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric { border-left: 0; border-top: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 12px; padding: 13px 16px; }
  .metric:first-child { border-top: 0; }
  .metric span { margin-top: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
