/* ============================================================
   Meridian Retail Systems — v2
   Architectural / tech. Near-white canvas, near-black ink,
   electric-ultramarine accent. Bricolage Grotesque + Hanken.
   ============================================================ */

:root{
  --bg:      #ffffff;
  --alt:     #f4f4f1;   /* warm-neutral band */
  --panel:   #ffffff;
  --ink:     #0b0d11;   /* near-black */
  --ink-2:   #23262c;
  --muted:   #63676f;
  --line:    #e7e7e2;
  --line-2:  #d7d7d1;
  --accent:  #305bec;   /* refined cobalt */
  --accent-press:#2247cc;
  --accent-tint:#eef2fe;
  --dark:    #0b0d11;
  --dark-2:  #14171d;
  --dark-line: rgba(255,255,255,.11);
  --dark-muted:#9aa0ab;

  --sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --disp: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --r: 16px;
  --r-sm: 11px;
  --shadow: 0 1px 2px rgba(11,13,17,.04), 0 22px 48px -30px rgba(11,13,17,.32);
  --shadow-lg: 0 2px 6px rgba(11,13,17,.06), 0 50px 90px -44px rgba(11,13,17,.4);
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-size:17px; line-height:1.6; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--disp); font-weight:600; letter-spacing:-.025em; line-height:1.04; }
p{ margin:0; }
::selection{ background:var(--accent); color:#fff; }
:focus-visible{ outline:2.5px solid var(--accent); outline-offset:3px; border-radius:4px; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding-inline:var(--gutter); }

.skip-link{ position:fixed; left:16px; top:-60px; z-index:200; background:var(--ink); color:#fff; padding:10px 16px; border-radius:8px; transition:top .18s ease; }
.skip-link:focus{ top:16px; }

/* ---------- eyebrow ---------- */
.eyebrow{
  font-family:var(--mono); font-size:12px; font-weight:500; letter-spacing:.04em;
  text-transform:uppercase; color:var(--accent); margin:0 0 20px;
  display:inline-flex; align-items:center; gap:9px;
}
.eyebrow .pulse{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(48,91,236,.5); animation:pulse 2.4s infinite; }
.eyebrow.light{ color:#93a7f6; }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(48,91,236,.45);} 70%{box-shadow:0 0 0 8px rgba(48,91,236,0);} 100%{box-shadow:0 0 0 0 rgba(48,91,236,0);} }

/* ---------- buttons ---------- */
.btn{
  --py:12px; --px:20px;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:var(--py) var(--px); font-family:var(--sans); font-size:15px; font-weight:600; line-height:1;
  border-radius:10px; border:1.5px solid transparent; cursor:pointer;
  transition:transform .14s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space:nowrap;
}
.btn svg{ transition:transform .2s ease; }
.btn-lg{ --py:15px; --px:26px; font-size:16px; }
.btn-solid{ background:var(--accent); color:#fff; box-shadow:0 8px 18px -10px rgba(48,91,236,.6); }
.btn-solid:hover{ background:var(--accent-press); transform:translateY(-2px); box-shadow:0 14px 26px -12px rgba(48,91,236,.7); }
.btn-solid:hover svg{ transform:translateX(3px); }
.btn-line{ border-color:var(--line-2); color:var(--ink); background:var(--bg); }
.btn-line:hover{ border-color:var(--ink); transform:translateY(-2px); }
.btn-ghost{ color:var(--ink); padding-inline:12px; }
.btn-ghost:hover{ color:var(--accent); }
.btn-invert{ background:var(--bg); color:var(--ink); }
.btn-invert:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -14px rgba(0,0,0,.5); }
.btn-invert:hover svg{ transform:translateX(3px); }

/* ============================================================
   ANNOUNCE + HEADER
   ============================================================ */
.announce{ background:var(--ink); color:#eef0f4; font-size:13.5px; }
.announce-inner{ display:flex; align-items:center; justify-content:center; gap:12px; padding:9px var(--gutter); position:relative; }
.announce-tag{ font-family:var(--mono); font-size:11px; letter-spacing:.05em; text-transform:uppercase; background:var(--accent); color:#fff; padding:3px 8px; border-radius:999px; margin-right:8px; }
.announce a{ color:#fff; border-bottom:1px solid rgba(255,255,255,.4); padding-bottom:1px; }
.announce a:hover{ border-color:#fff; }
.announce p{ text-align:center; }
.announce-x{ position:absolute; right:var(--gutter); background:none; border:0; color:var(--dark-muted); cursor:pointer; font-size:13px; padding:4px; }
.announce-x:hover{ color:#fff; }
.announce.is-hidden{ display:none; }

.site-header{
  position:sticky; top:0; z-index:100;
  background:color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid transparent; transition:border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck{ border-bottom-color:var(--line); box-shadow:0 8px 30px -26px rgba(11,13,17,.5); }
.header-inner{ display:flex; align-items:center; gap:24px; height:70px; }
.brand{ display:inline-flex; align-items:center; gap:10px; }
.brand-name{ font-family:var(--disp); font-size:21px; font-weight:700; letter-spacing:-.03em; }
.primary-nav{ display:flex; gap:2px; margin-left:auto; }
.primary-nav a{ font-size:15px; font-weight:500; color:var(--ink-2); padding:8px 14px; border-radius:9px; transition:color .16s ease, background .16s ease; }
.primary-nav a:hover{ color:var(--ink); background:rgba(11,13,17,.05); }
.primary-nav a[aria-current="true"]{ color:var(--accent); }
.header-cta{ display:flex; align-items:center; gap:8px; }

.nav-toggle{ display:none; margin-left:auto; width:44px; height:44px; border:1px solid var(--line-2); background:var(--bg); border-radius:11px; cursor:pointer; padding:0; flex-direction:column; align-items:center; justify-content:center; gap:5px; }
.nav-toggle span{ width:18px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.nav-backdrop{ position:fixed; inset:0; z-index:110; background:rgba(11,13,17,.45); opacity:0; transition:opacity .3s ease; }
.nav-backdrop.open{ opacity:1; }

.mobile-nav{
  position:fixed; top:0; right:0; bottom:0; z-index:120;
  width:min(84vw,340px);
  display:none; flex-direction:column;
  padding:18px var(--gutter) 26px;
  background:var(--bg); border-left:1px solid var(--line);
  box-shadow:-24px 0 60px -34px rgba(11,13,17,.5);
  transform:translateX(100%);
  transition:transform .34s cubic-bezier(.16,.84,.44,1);
  overflow-y:auto; overscroll-behavior:contain;
}
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.mn-title{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.nav-close{ width:40px; height:40px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line-2); background:var(--bg); border-radius:10px; cursor:pointer; color:var(--ink); }
.nav-close:hover{ border-color:var(--ink); }
.mobile-nav-links{ display:flex; flex-direction:column; }
.mobile-nav-links a{ padding:15px 4px; font-size:18px; font-weight:500; color:var(--ink-2); border-bottom:1px solid var(--line); transition:color .15s ease; }
.mobile-nav-links a:hover, .mobile-nav-links a[aria-current="true"]{ color:var(--accent); }
.mobile-nav > .btn{ margin-top:22px; justify-content:center; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ padding:clamp(44px,6vw,80px) 0 clamp(40px,5vw,64px); position:relative; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:0 0 auto 0; height:640px; z-index:-1;
  background:
    radial-gradient(48% 60% at 88% -6%, rgba(41,71,255,.10), transparent 62%),
    linear-gradient(180deg, var(--alt), transparent 46%);
  -webkit-mask:linear-gradient(#000,#000);
}
.hero-top{ max-width:1000px; }
.hero h1{ font-size:clamp(2.7rem, 6.4vw, 5.2rem); font-weight:700; letter-spacing:-.04em; line-height:.98; margin:0 0 30px; max-width:16ch; }
.hero h1 .hl{ color:var(--accent); }
.hero-lower{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:26px; }
.lede{ font-size:clamp(1.05rem,1.5vw,1.24rem); color:var(--ink-2); max-width:50ch; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }

/* product panel */
.hero-panel{ margin-top:clamp(36px,5vw,56px); background:var(--panel); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-lg); overflow:hidden; }
.panel-chrome{ display:flex; align-items:center; gap:16px; padding:12px 18px; border-bottom:1px solid var(--line); background:#fbfbf9; }
.pc-dot{ width:11px; height:11px; border-radius:50%; background:var(--accent); flex:0 0 auto; }
.pc-tabs{ display:flex; gap:20px; font-family:var(--mono); font-size:12px; color:var(--muted); }
.pc-tabs .is-active{ color:var(--ink); position:relative; }
.pc-tabs .is-active::after{ content:""; position:absolute; left:0; right:0; bottom:-13px; height:2px; background:var(--accent); }
.pc-url{ margin-left:auto; font-family:var(--mono); font-size:12px; color:var(--muted); }
.panel-body{ display:grid; grid-template-columns:74px 1fr; }
.panel-side{ border-right:1px solid var(--line); padding:20px 16px; display:flex; flex-direction:column; gap:15px; background:#fafaf8; }
.ps-logo{ width:28px; height:28px; border-radius:8px; background:var(--ink); }
.ps-item{ height:9px; border-radius:5px; background:var(--line-2); }
.ps-item.is-active{ background:var(--accent); }
.ps-item.short{ width:60%; }
.panel-main{ padding:clamp(18px,2.5vw,30px); display:flex; flex-direction:column; gap:20px; }
.panel-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.ph-k{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.ph-v{ font-family:var(--disp); font-size:clamp(1.7rem,3vw,2.4rem); font-weight:700; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.ph-chip{ font-family:var(--mono); font-size:12px; padding:6px 11px; border-radius:999px; background:var(--accent-tint); color:var(--accent-press); }
.panel-kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.pk{ border:1px solid var(--line); border-radius:var(--r-sm); padding:13px 14px; }
.pk span{ font-family:var(--mono); font-size:10px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.pk b{ display:block; margin-top:6px; font-family:var(--disp); font-size:1.25rem; font-weight:600; font-variant-numeric:tabular-nums; }
.panel-chart{ border:1px solid var(--line); border-radius:var(--r-sm); padding:16px; }
.panel-chart svg{ width:100%; height:clamp(90px,12vw,130px); }
.panel-chart .area{ fill:url(#g1); stroke:none; }
.panel-chart .line{ fill:none; stroke:var(--accent); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.bars{ display:flex; align-items:flex-end; gap:8px; height:38px; margin-top:14px; }
.bars i{ flex:1; height:var(--h); background:var(--accent); opacity:.16; border-radius:3px 3px 0 0; }
.bars i:last-child{ opacity:.9; }

.hero-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin:clamp(40px,5vw,56px) 0 0; padding-top:30px; border-top:1px solid var(--line); }
.hero-stats div{ display:flex; flex-direction:column; gap:4px; }
.hero-stats dt{ font-family:var(--disp); font-size:clamp(1.7rem,2.8vw,2.3rem); font-weight:700; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.hero-stats dd{ margin:0; font-family:var(--mono); font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; background:var(--bg); padding:18px 0; }
.marquee-track{ display:flex; align-items:center; gap:34px; width:max-content; animation:scroll 34s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee span{ font-family:var(--disp); font-size:1.5rem; font-weight:600; letter-spacing:-.02em; color:var(--ink); white-space:nowrap; }
.marquee i{ color:var(--accent); font-style:normal; }
@keyframes scroll{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; flex-wrap:wrap; width:auto; justify-content:center; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section{ padding:clamp(60px,7.5vw,110px) 0; }
.section-alt{ background:var(--alt); }
.section-dark{ background:var(--dark); color:#e9ecf1; }
.section-dark h2,.section-dark h3,.section-dark h4{ color:#fff; }

.section-head{ max-width:660px; margin-bottom:clamp(38px,5vw,60px); }
.section-head h2{ font-size:clamp(1.95rem,3.6vw,3rem); font-weight:700; letter-spacing:-.03em; margin-bottom:16px; }
.section-intro{ color:var(--ink-2); font-size:1.08rem; }
.section-dark .section-intro{ color:var(--dark-muted); }
.section-head.split{ max-width:none; display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(24px,4vw,64px); align-items:end; }

/* ---------- value rail ---------- */
.value-rail{ display:grid; grid-template-columns:repeat(5,1fr); gap:0; border-top:1px solid var(--line-2); }
.value{ padding:30px 26px 30px 0; border-right:1px solid var(--line); position:relative; }
.value:last-child{ border-right:0; }
.value:not(:first-child){ padding-left:26px; }
.v-num{ font-family:var(--mono); font-size:12px; color:var(--accent); display:block; margin-bottom:22px; }
.value h3{ font-size:1.2rem; font-weight:600; margin-bottom:9px; letter-spacing:-.02em; }
.value p{ font-size:.95rem; color:var(--muted); }

/* ============================================================
   BENTO SOLUTIONS
   ============================================================ */
.bento{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.tile{
  position:relative; padding:26px 24px; border-radius:var(--r);
  background:var(--panel); border:1px solid var(--line); overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--line-2); }
.tile-lg{ grid-row:span 2; }
.tile-wide{ grid-column:span 2; }
.tile-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.tico{ display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; border-radius:11px; background:var(--accent-tint); color:var(--accent); }
.tico svg{ width:23px; height:23px; }
.tnum{ font-family:var(--mono); font-size:12px; color:var(--muted); }
.tile h3{ font-size:1.24rem; font-weight:600; letter-spacing:-.02em; margin-bottom:8px; }
.tile-lg h3{ font-size:1.5rem; }
.tile p{ color:var(--muted); font-size:.97rem; }
.tile-lg p{ font-size:1.02rem; color:var(--ink-2); }

/* mini POS visual */
.tile-mini{ margin-top:auto; padding-top:22px; display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:end; }
.rcpt{ background:#fafaf8; border:1px solid var(--line); border-radius:10px; padding:14px; display:flex; flex-direction:column; gap:8px; }
.rcpt span{ height:7px; border-radius:4px; background:var(--line-2); }
.rcpt span.w{ width:55%; }
.rcpt b{ margin-top:6px; font-family:var(--disp); font-size:1.15rem; font-weight:700; color:var(--accent); }
.pad{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.pad i{ aspect-ratio:1; border-radius:8px; background:#f1f1ee; border:1px solid var(--line); }
.pad i.a{ background:var(--accent); border-color:var(--accent); }

/* mini spark */
.tile-spark{ margin-top:auto; padding-top:22px; display:flex; align-items:flex-end; gap:9px; height:64px; }
.tile-spark i{ flex:1; height:var(--h); border-radius:4px 4px 0 0; background:linear-gradient(180deg, var(--accent), rgba(48,91,236,.35)); }

/* cta tile */
.tile-cta{ background:var(--ink); color:#fff; justify-content:space-between; gap:26px; }
.tile-cta:hover{ border-color:var(--ink); }
.tile-cta > span:first-child{ font-family:var(--disp); font-size:1.3rem; font-weight:600; letter-spacing:-.02em; max-width:16ch; }
.tile-cta-go{ display:inline-flex; align-items:center; gap:8px; font-weight:600; color:#fff; }
.tile-cta-go svg{ transition:transform .2s ease; }
.tile-cta:hover .tile-cta-go svg{ transform:translateX(4px); }

/* ============================================================
   PILLARS
   ============================================================ */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,72px); }
.pillar-tag{ font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:18px; }
.pillar h2{ font-size:clamp(1.6rem,2.6vw,2.15rem); font-weight:700; letter-spacing:-.03em; margin-bottom:15px; }
.pillar > p{ color:var(--ink-2); margin-bottom:24px; max-width:44ch; }
.tick-list{ list-style:none; margin:0; padding:0; display:grid; gap:0; }
.tick-list li{ position:relative; padding:13px 0 13px 30px; border-top:1px solid var(--line); color:var(--ink-2); }
.tick-list li::before{
  content:""; position:absolute; left:0; top:15px; width:18px; height:18px; border-radius:6px; background:var(--accent-tint);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%232947ff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industry-grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.industry-grid li{
  display:flex; align-items:center; gap:14px; padding:20px; border:1px solid var(--line); border-radius:var(--r);
  background:var(--panel); font-size:1.02rem; font-weight:500; color:var(--ink);
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.industry-grid li:hover{ border-color:var(--accent); transform:translateY(-3px); box-shadow:var(--shadow); }
.ind-i{ display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center; border-radius:10px; background:var(--accent-tint); color:var(--accent); flex:0 0 auto; }
.ind-i svg{ width:22px; height:22px; }

/* ============================================================
   STEPPER
   ============================================================ */
.stepper{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(7,1fr); gap:0; border-top:2px solid var(--ink); }
.stepper li{ position:relative; padding:26px 18px 0 0; }
.stepper li::before{ content:""; position:absolute; top:-2px; left:0; width:calc(100% - 8px); height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .5s ease; }
.stepper li.in::before{ transform:scaleX(1); }
.s-num{ font-family:var(--mono); font-size:12px; color:var(--accent); display:block; margin-bottom:14px; }
.stepper h3{ font-size:1.08rem; font-weight:600; letter-spacing:-.02em; margin-bottom:7px; }
.stepper p{ font-size:.9rem; color:var(--muted); padding-right:8px; }

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-lead{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,4vw,64px); align-items:start; margin-bottom:clamp(40px,5vw,60px); }
.case-lead h2{ font-size:clamp(1.9rem,3.2vw,2.7rem); font-weight:700; letter-spacing:-.03em; }
.case-lead blockquote{ margin:0; font-family:var(--disp); font-size:clamp(1.15rem,1.7vw,1.4rem); font-weight:500; line-height:1.4; color:#f2f4f8; letter-spacing:-.01em; }
.case-lead cite{ display:block; margin-top:18px; font-family:var(--mono); font-size:12px; font-style:normal; letter-spacing:.03em; color:var(--dark-muted); }
.case-lead cite b{ color:#fff; font-weight:500; }

.case-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--dark-line); border-bottom:1px solid var(--dark-line); }
.cstat{ padding:32px 24px 32px 0; border-right:1px solid var(--dark-line); }
.cstat:last-child{ border-right:0; padding-right:0; }
.cstat:not(:first-child){ padding-left:24px; }
.cstat b{ display:block; font-family:var(--disp); font-size:clamp(2.6rem,4.5vw,3.6rem); font-weight:700; letter-spacing:-.03em; color:var(--accent); line-height:1; margin-bottom:12px; }
.cstat span{ font-size:.92rem; color:var(--dark-muted); }

.case-detail{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(24px,3vw,44px); margin-top:clamp(36px,4vw,52px); }
.case-detail-4{ grid-template-columns:repeat(2,1fr); margin-top:0; }
.case-placeholder{ color:var(--dark-muted) !important; font-style:italic; }
.cd h4{ font-size:1.05rem; font-weight:600; margin-bottom:10px; display:flex; align-items:center; gap:11px; }
.cd h4::before{ content:""; width:20px; height:2px; background:var(--accent); }
.cd p{ color:var(--dark-muted); font-size:.97rem; }

/* ============================================================
   FEATURES (chips)
   ============================================================ */
.two-col-lead{ align-items:center; }
.feature-lead h2{ font-size:clamp(1.7rem,2.8vw,2.4rem); font-weight:700; letter-spacing:-.03em; margin-bottom:16px; }
.feature-lead > p{ color:var(--ink-2); margin-bottom:26px; max-width:38ch; }
.chip-list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:11px; }
.chip-list li{
  font-family:var(--sans); font-size:1rem; font-weight:500; padding:12px 18px;
  border:1px solid var(--line-2); border-radius:999px; background:var(--panel);
  transition:border-color .18s ease, color .18s ease, transform .18s ease;
}
.chip-list li:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band{ background:var(--accent); color:#fff; }
.cta-inner{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; padding:clamp(44px,6vw,72px) var(--gutter); }
.cta-band h2{ font-size:clamp(1.7rem,3vw,2.5rem); font-weight:700; letter-spacing:-.03em; max-width:20ch; color:#fff; }
.cta-band p{ margin-top:12px; color:rgba(255,255,255,.85); font-size:1.06rem; }

/* ============================================================
   FAQ
   ============================================================ */
.two-col-faq{ grid-template-columns:.85fr 1.15fr; align-items:start; }
.faq-head{ margin-bottom:0; position:sticky; top:104px; }
.faq-head .btn{ margin-top:24px; }
.faq-list{ border-top:1px solid var(--line-2); }
.faq-item{ border-bottom:1px solid var(--line-2); }
.faq-item summary{ list-style:none; cursor:pointer; padding:22px 4px; display:flex; align-items:center; justify-content:space-between; gap:20px; font-family:var(--disp); font-size:1.2rem; font-weight:600; letter-spacing:-.02em; color:var(--ink); transition:color .18s ease; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary:hover{ color:var(--accent); }
.chev{ position:relative; width:16px; height:16px; flex:0 0 auto; }
.chev::before,.chev::after{ content:""; position:absolute; top:50%; width:10px; height:2px; background:var(--accent); border-radius:2px; transition:transform .25s ease; }
.chev::before{ left:0; transform:translateY(-50%) rotate(45deg); }
.chev::after{ right:0; transform:translateY(-50%) rotate(-45deg); }
.faq-item[open] .chev::before{ transform:translateY(-50%) rotate(-45deg); }
.faq-item[open] .chev::after{ transform:translateY(-50%) rotate(45deg); }
.faq-a p{ padding:0 4px 24px; color:var(--ink-2); max-width:62ch; }
.faq-item[open] .faq-a{ animation:fadeDown .28s ease; }
@keyframes fadeDown{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr 1.05fr; gap:clamp(36px,5vw,80px); align-items:start; }
.contact-copy h2{ font-size:clamp(1.85rem,3vw,2.6rem); font-weight:700; letter-spacing:-.03em; margin-bottom:16px; }
.contact-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.contact-panel{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:8px clamp(22px,2.6vw,30px); box-shadow:var(--shadow); }
.contact-panel .contact-details{ margin:0; }
.contact-panel .contact-details li:first-child{ border-top:0; }
.contact-panel .contact-details li:last-child{ border-bottom:0; }
.contact-details{ list-style:none; margin:34px 0 0; padding:0; display:grid; gap:0; }
.contact-details li{ display:flex; gap:16px; align-items:center; padding:18px 0; border-top:1px solid var(--line); }
.contact-details li:last-child{ border-bottom:1px solid var(--line); }
.cd-i{ display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius:11px; background:var(--accent-tint); color:var(--accent); flex:0 0 auto; }
.cd-i svg{ width:21px; height:21px; }
.contact-details li > span:not(.cd-i){ display:block; }
.cd-k{ font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; display:block; }
.contact-details a{ color:var(--ink); font-weight:500; border-bottom:1px solid transparent; transition:border-color .18s ease; }
.contact-details a:hover{ border-bottom-color:var(--accent); }

.contact-form{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:clamp(24px,3vw,38px); box-shadow:var(--shadow); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.field label{ font-size:13.5px; font-weight:600; color:var(--ink-2); }
.field .opt{ color:var(--muted); font-weight:400; }
.field input,.field select,.field textarea{ font-family:var(--sans); font-size:15.5px; color:var(--ink); padding:12px 14px; border:1px solid var(--line-2); border-radius:10px; background:#fff; transition:border-color .18s ease, box-shadow .18s ease; width:100%; }
.field textarea{ resize:vertical; min-height:96px; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(48,91,236,.14); }
.field select{ appearance:none; 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'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2363676f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:40px; }
.contact-form .btn{ width:100%; margin-top:6px; }
.form-note{ font-size:12.5px; color:var(--muted); text-align:center; margin-top:14px; }

/* ============================================================
   LEGAL / PROSE PAGE
   ============================================================ */
.page-hero{ padding:clamp(40px,6vw,72px) 0 clamp(26px,3.5vw,38px); border-bottom:1px solid var(--line); }
.page-hero h1{ font-size:clamp(2.2rem,4.6vw,3.3rem); font-weight:700; letter-spacing:-.03em; margin-bottom:14px; }
.page-hero .lede{ color:var(--ink-2); font-size:1.08rem; max-width:60ch; }
.updated{ font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-top:16px; }

.prose{ max-width:760px; margin:0 auto; padding:clamp(40px,6vw,72px) 0; }
.prose h2{ font-family:var(--disp); font-size:1.42rem; font-weight:700; letter-spacing:-.02em; margin:40px 0 12px; }
.prose h2:first-child{ margin-top:0; }
.prose p{ color:var(--ink-2); font-size:1.02rem; line-height:1.72; margin:0 0 14px; }
.prose ul{ margin:0 0 16px; padding-left:22px; }
.prose li{ color:var(--ink-2); font-size:1.02rem; line-height:1.65; margin-bottom:8px; }
.prose a{ color:var(--accent); border-bottom:1px solid transparent; transition:border-color .16s ease; }
.prose a:hover{ border-bottom-color:var(--accent); }
.legal-note{ margin:0 0 34px; padding:16px 18px; border:1px dashed var(--line-2); border-radius:12px; background:var(--alt); color:var(--muted); font-size:.94rem; line-height:1.6; }
.legal-note strong{ color:var(--ink-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--dark); color:#c9cfd8; padding-top:clamp(54px,6vw,78px); overflow:hidden; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px 32px; padding-bottom:48px; }
.footer-brand .brand-name{ color:#fff; }
.footer-brand p{ color:var(--dark-muted); max-width:34ch; font-size:.96rem; margin-top:16px; }
.footer-col h4{ font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:#93a7f6; margin-bottom:16px; }
.footer-col a{ display:block; color:var(--dark-muted); padding:6px 0; font-size:.97rem; transition:color .16s ease; }
.footer-col a:hover{ color:#fff; }
.footer-word{ font-family:var(--disp); font-weight:700; letter-spacing:-.04em; color:rgba(255,255,255,.045); font-size:clamp(4rem,17vw,15rem); line-height:.8; text-align:center; user-select:none; margin:0 auto -.12em; }
.footer-base{ display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; padding:24px 0 30px; border-top:1px solid var(--dark-line); }
.footer-base p{ color:var(--dark-muted); font-size:13.5px; }
.footer-legal{ display:flex; gap:22px; }
.footer-legal a{ color:var(--dark-muted); transition:color .16s ease; }
.footer-legal a:hover{ color:#fff; }

/* ============================================================
   TOAST (email copy confirmation)
   ============================================================ */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,20px); z-index:200;
  display:flex; align-items:center; gap:9px;
  background:var(--ink); color:#fff; font-size:14px; font-weight:500;
  padding:12px 18px; border-radius:999px; box-shadow:0 16px 34px -14px rgba(0,0,0,.55);
  opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease; max-width:90vw;
}
.toast.show{ opacity:1; transform:translate(-50%,0); }
.toast svg{ width:16px; height:16px; color:#7fa2ff; flex:0 0 auto; }
@media (prefers-reduced-motion: reduce){ .toast{ transition:opacity .01s; } }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important; transition:none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .primary-nav a{ padding:8px 10px; font-size:14px; }
  .value-rail{ grid-template-columns:repeat(2,1fr); border-top:0; }
  .value{ border:1px solid var(--line); border-radius:var(--r); margin-bottom:14px; padding:24px !important; }
  .stepper{ grid-template-columns:repeat(2,1fr); border-top:0; gap:14px; }
  .stepper li{ border:1px solid var(--line); border-radius:var(--r); padding:22px; }
  .stepper li::before{ display:none; }
  .industry-grid{ grid-template-columns:repeat(2,1fr); }
  .case-stats{ grid-template-columns:repeat(2,1fr); }
  .cstat{ border-right:0; border-bottom:1px solid var(--dark-line); padding:24px 0 !important; }
  .cstat:nth-child(odd){ border-right:1px solid var(--dark-line); padding-right:24px !important; }
  .cstat:nth-child(even){ padding-left:24px !important; }
}
@media (max-width:900px){
  .primary-nav,.header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .mobile-nav{ display:flex; }
  .section-head.split{ grid-template-columns:1fr; gap:16px; }
  .two-col,.contact-grid,.two-col-faq,.case-lead,.case-detail{ grid-template-columns:1fr; }
  .faq-head{ position:static; }
  .bento{ grid-template-columns:repeat(2,1fr); }
  .tile-lg,.tile-wide{ grid-column:auto; grid-row:auto; }
  .panel-kpis{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  body{ font-size:16px; }
  .hero-lower{ flex-direction:column; align-items:stretch; }
  .hero-stats{ grid-template-columns:repeat(2,1fr); gap:22px 20px; }
  .value-rail{ grid-template-columns:1fr; }
  .bento,.industry-grid,.field-row{ grid-template-columns:1fr; }
  .panel-side{ display:none; }
  .panel-body{ grid-template-columns:1fr; }
  .panel-kpis{ grid-template-columns:repeat(2,1fr); }
  .case-stats{ grid-template-columns:1fr; }
  .cstat{ border-right:0 !important; padding:22px 0 !important; }
  .tile-mini{ grid-template-columns:1fr; }
  .cta-inner{ flex-direction:column; align-items:flex-start; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
