/* ==========================================================================
   Singula Decisions — site styles
   Design tokens + shared components, ported from the Claude Design handoff.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand / ink */
  --ink:        #0B2A33;   /* nav, hero, footer, dark cards */
  --navy-panel: #123842;   /* calculator results panel */
  --teal:       #06BEE1;   /* primary buttons, accents, full-stop dot */
  --teal-dark:  #0E8391;   /* hover, eyebrow labels on light */
  --teal-bright:#17C1DA;   /* heartbeat pulse */
  --teal-light: #7FD6E0;   /* accent text on navy */

  /* Surfaces */
  --page:  #F5F7F8;
  --tint:  #E4F1F2;
  --tint2: #EEF3F4;
  --white: #ffffff;

  /* Text */
  --heading:  #243039;
  --heading2: #142229;
  --body:     #5C6B72;
  --body2:    #4A5860;
  --muted:    #8A99A0;     /* secondary on light */
  --muted-2:  #7C8A91;
  --on-navy:  #CFDDE1;     /* hero subcopy */
  --on-navy-2:#A9BEC4;     /* nav links, calc body */
  --on-navy-3:#8FA6AD;

  /* Lines */
  --border:  #E7ECEE;
  --border-2:#DCE4E6;

  /* Lifecycle tints */
  --win-bg:#EAF6F7;  --win-br:#CDE7E9;
  --grow-bg:#D2EAEC; --grow-br:#B4DBDE;
  --keep-bg:#B7DDE1; --keep-br:#99CDD2;

  /* Type */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Shape */
  --maxw: 1200px;
  --pad: 32px;
  --shadow-card: 0 10px 26px rgba(20,34,41,.05);
  --shadow-card-lg: 0 12px 30px rgba(20,34,41,.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--heading2);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: color .18s ease; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: 1100px; }
.container--tight  { max-width: 1000px; }

.section { padding: 82px 0; }
.section--tight { padding: 56px 0; }
.section--flush-top { padding-top: 40px; }

.bg-tint  { background: var(--tint); }
.bg-tint2 { background: var(--tint2); }
.bg-white { background: var(--white); }
.bg-ink   { background: var(--ink); color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ---- Typography ---------------------------------------------------------- */
.eyebrow {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.eyebrow--wide { letter-spacing: 2.5px; }
.eyebrow--on-dark { color: var(--teal-light); font-weight: 600; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-light); font-weight: 600; letter-spacing: 2px;
  font-size: 12px; text-transform: uppercase;
  border: 1px solid rgba(127,214,224,.3); padding: 6px 12px; border-radius: 20px;
}

/* display-heading size utilities (card titles) */
.hd { font-family: var(--font-display); color: var(--heading); font-weight: 700; letter-spacing: -.3px; }
.hd-24 { font-size: 24px; }
.hd-22 { font-size: 22px; }
.hd-21 { font-size: 21px; }
.hd-19 { font-size: 19px; }
.hd-17 { font-size: 17.5px; letter-spacing: normal; }

.dot { color: var(--teal); }          /* teal full-stop motif */
.accent { color: var(--teal-dark); }  /* teal text on light */
.accent-bright { color: var(--teal); }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08;
  letter-spacing: -.6px; color: var(--heading); margin-bottom: 14px;
}
.h2--xl { font-weight: 800; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -.8px; }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 60ch; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 8px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }

.btn-secondary { border-color: rgba(255,255,255,.28); color: #fff; font-weight: 600; padding: 13px 26px; }
.btn-secondary:hover { border-color: var(--teal); background: rgba(6,190,225,.12); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; font-size: 16px; padding: 15px 34px; border-radius: 9px; }
.btn-dark:hover { background: #062028; color: #fff; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  background: var(--ink); position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: 66px;
  display: flex; align-items: center; padding: 0 var(--pad); gap: 24px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; }

.nav-wrap { display: flex; flex: 1; align-items: center; gap: 24px; }
.nav { display: flex; gap: 20px; margin-left: 4px; }
.nav a { color: var(--on-navy-2); font-size: 14px; font-weight: 600; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; border-bottom-color: var(--teal); }

.nav-actions { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.btn-nav-ghost {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 1.5px solid var(--teal); color: var(--teal-light);
  font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 7px;
}
.btn-nav-ghost:hover { background: rgba(6,190,225,.16); color: #fff; }
.btn-nav-solid {
  white-space: nowrap; background: var(--teal); color: #fff;
  font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 7px;
}
.btn-nav-solid:hover { background: var(--teal-dark); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 38px;
  background: transparent; border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 7px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* Sub-nav (Partners) */
.subnav {
  background: #0F3540; border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 66px; z-index: 49;
}
.subnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); height: 48px; display: flex; align-items: center; gap: 22px; }
.subnav-label { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal-light); }
.subnav a { color: #9FC0C6; font-size: 13.5px; font-weight: 600; }
.subnav a:hover { color: #fff; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -160px; top: -140px; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle at center, rgba(6,190,225,.26), transparent 60%);
  pointer-events: none;
}
.hero--dual::after {
  content: ""; position: absolute; left: -140px; bottom: -200px; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle at center, rgba(6,190,225,.12), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad) 70px; }
.hero-inner--split {
  padding: 72px var(--pad) 78px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
}

.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6vw, 74px); line-height: 1; letter-spacing: -1.4px;
  margin-bottom: 22px;
}
.hero--home h1 { font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -1.5px; margin: 24px 0 22px; }
.hero h1 .accent-bright, .hero h1 span.accent-bright { color: var(--teal); }

.hero-sub { font-size: 19px; line-height: 1.6; color: var(--on-navy); max-width: 62ch; margin-bottom: 34px; }
.hero-sub--lead { font-size: 20px; max-width: 34ch; margin-bottom: 14px; font-weight: 500; }
.hero-sub--fine { font-size: 15.5px; color: var(--on-navy-3); max-width: 46ch; margin-bottom: 30px; }

.hero-badge-row { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.pill-preview { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); background: var(--teal-light); padding: 3px 9px; border-radius: 20px; }

.btn-row { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 34px; }
.btn-row--flush { margin-bottom: 0; }

/* hero stat strip */
.stat-strip { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.stat-strip--wide { gap: 14px 44px; padding-top: 28px; }
.stat-mini { display: flex; align-items: center; gap: 9px; }
.stat-mini .ico { width: 30px; height: 30px; border-radius: 8px; background: rgba(6,190,225,.16); color: var(--teal-light); display: flex; align-items: center; justify-content: center; }
.stat-mini .t { font-size: 14px; font-weight: 700; }
.stat-mini .s { font-size: 11.5px; color: var(--on-navy-3); }

.stat-num { }
.stat-num .n { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--teal-light); line-height: 1; }
.stat-num .l { font-size: 13px; color: var(--on-navy-3); margin-top: 4px; }

/* hero product image + floating badge (home) */
.hero-visual { position: relative; }
.hero-frame { border-radius: 14px; border: 1px solid #1c4651; box-shadow: 0 40px 80px rgba(0,0,0,.5); overflow: hidden; background: #000; }
.hero-float {
  position: absolute; left: -22px; bottom: 34px; background: #fff; color: var(--heading2);
  border-radius: 12px; padding: 14px 18px; box-shadow: 0 20px 40px rgba(0,0,0,.28);
  display: flex; align-items: center; gap: 12px;
}
.hero-float .ico { width: 38px; height: 38px; border-radius: 9px; background: #E4F4F6; color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.hero-float .big { font-size: 20px; font-weight: 800; font-family: var(--font-display); line-height: 1; }
.hero-float .small { font-size: 12px; color: var(--body); }

/* ---- Cards --------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow-card); }
.card--lg { border-radius: 18px; padding: 36px 34px; box-shadow: var(--shadow-card-lg); }
.card--flat { box-shadow: none; }
.card--soft { background: #F7FAFB; border-radius: 14px; box-shadow: none; }
.card--pale { background: #fff; border-color: #D2E6E7; }
.card-dark { background: var(--ink); border: 1px solid var(--ink); border-radius: 18px; padding: 36px 34px; box-shadow: 0 16px 34px rgba(11,42,51,.2); color: #fff; }

.card h3 { font-family: var(--font-display); color: var(--heading); }

/* lifecycle tint cards */
.tint-win  { background: var(--win-bg);  border-color: var(--win-br); }
.tint-grow { background: var(--grow-bg); border-color: var(--grow-br); }
.tint-keep { background: var(--keep-bg); border-color: var(--keep-br); }

/* icon tiles */
.ico-tile { display: flex; align-items: center; justify-content: center; flex: none; }
.ico-tile--sm { width: 44px; height: 44px; border-radius: 11px; }
.ico-tile--md { width: 50px; height: 50px; border-radius: 13px; }
.ico-tile--lg { width: 52px; height: 52px; border-radius: 13px; }
.ico-teal { background: #E4F4F6; color: var(--teal-dark); }
.ico-ink  { background: var(--ink); color: var(--teal-light); }
.ico-ink-soft { background: rgba(6,190,225,.18); color: var(--teal-light); }

/* pills / chips */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--teal-dark); background: #E4F4F6; padding: 5px 13px; border-radius: 20px; }
.pill--sm { font-size: 11px; letter-spacing: .5px; padding: 4px 11px; }
.pill--solid { color: #fff; background: var(--teal-dark); text-transform: uppercase; }
.pill--flag { color: #fff; background: var(--teal-dark); text-transform: uppercase; }
.pill--on-dark { color: var(--teal-light); background: rgba(6,190,225,.18); }
.chip { font-size: 13px; font-weight: 500; color: var(--body2); background: var(--page); border: 1px solid var(--border); padding: 6px 14px; border-radius: 22px; }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px; }
.sublabel { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* check list */
.check-list { display: flex; flex-direction: column; gap: 13px; }
.check-list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.5; color: var(--body2); }
.check-list .ck { flex: none; color: var(--teal); margin-top: 2px; display: flex; }
.card-dark .check-list li { color: #CAD3DE; }
.card-dark .check-list .ck { color: var(--teal-light); }
.card-dark h3 { color: #fff; }

/* ---- Three numbers ------------------------------------------------------- */
.number-card .num-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.number-card .big { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: var(--heading); line-height: 1; letter-spacing: -1px; }
.number-card .word { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--heading); line-height: 1; letter-spacing: -.5px; }
.number-card .metric { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--body); text-transform: uppercase; margin-bottom: 12px; }
.number-card p { font-size: 14.5px; line-height: 1.55; color: var(--body); }

/* ---- Lifecycle loop (heartbeat) ----------------------------------------- */
.hb-wrap { position: relative; max-width: 1180px; margin: 34px auto 0; }
.hb-svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none; overflow: visible; }
.hb-cards { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 26px; }
.hb-card { flex: 1; border: 1px solid; border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow-card-lg); display: flex; flex-direction: column; }
.hb-card .stage { color: var(--muted); font-weight: 700; font-size: 11.5px; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 14px; }
.hb-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -.4px; color: var(--heading); margin-bottom: 10px; }
.hb-card .desc { font-size: 15px; color: var(--muted-2); line-height: 1.5; margin-bottom: 18px; }
.hb-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hb-card .outcome { border-top: 1px dashed #D9E0E3; padding-top: 18px; margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.hb-card .outcome .o { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--teal-dark); }
.hb-card .outcome .m { font-size: 14px; color: var(--muted); }

/* ---- Three outcomes ------------------------------------------------------ */
.outcome-card { background: #fff; border: 1px solid var(--border-2); border-radius: 16px; padding: 34px 30px; }
.outcome-card .ico-tile { margin-bottom: 20px; }
.outcome-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.2px; line-height: 1.2; margin-bottom: 10px; color: var(--heading); }
.outcome-card p { font-size: 14.5px; line-height: 1.55; color: var(--body); }

/* ---- Calculator ---------------------------------------------------------- */
.glow-section { position: relative; overflow: hidden; }
.glow-section::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle at center, rgba(6,190,225,.22), transparent 62%); pointer-events: none;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.4); align-items: stretch; }

/* inputs (white) */
.calc-inputs { background: #fff; color: var(--heading2); padding: 34px 32px; }
.calc-inputs .title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.calc-inputs label { display: block; font-size: 13px; font-weight: 600; color: var(--body); margin-bottom: 6px; }
.calc-inputs .fine { font-size: 12px; color: #8b979d; line-height: 1.5; margin-top: 4px; }

.cfield { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.cfield input { width: 100%; padding: 11px 13px; border: 1px solid #D3DEE0; border-radius: 8px; font-size: 15px; font-family: inherit; color: var(--heading2); background: #fff; }
.cfield input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(6,190,225,.14); }
.cfield .pre { position: absolute; left: 12px; font-size: 15px; color: var(--muted); pointer-events: none; }
.cfield.has-pre input { padding-left: 26px; }
.cfield .suf { position: absolute; right: 13px; font-size: 15px; color: var(--muted); pointer-events: none; }
.cfield.has-suf input { padding-right: 30px; }

.cur-toggle { display: flex; gap: 8px; margin-bottom: 20px; }
.cur-toggle button {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 7px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: 1px solid #D3DEE0; background: #fff; color: var(--body); font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cur-toggle button.is-active { border-color: var(--teal); background: var(--teal); color: #fff; }

/* results (navy) */
.calc-out { background: var(--navy-panel); padding: 34px 32px; display: flex; flex-direction: column; }
.calc-out .cap { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-light); margin-bottom: 16px; }

.results-wrap { position: relative; flex: 1; display: flex; flex-direction: column; }
.calc-results { display: flex; flex-direction: column; flex: 1; transition: opacity .3s ease, filter .3s ease; }
.results-wrap.locked .calc-results { opacity: .25; filter: blur(3px); pointer-events: none; }
.results-wrap.pop .calc-results { animation: calcpop .5s cubic-bezier(.2,.7,.2,1); }
@keyframes calcpop { 0% { transform: scale(.985); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }

.calc-results .subtitle { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 20px; }
.calc-results .rows { display: flex; flex-direction: column; gap: 15px; margin-bottom: 22px; }
.calc-results .row { border-bottom: 1px solid #24505c; padding-bottom: 13px; }
.calc-results .row:last-child { border-bottom: 0; padding-bottom: 0; }
.calc-results .v { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: #2FB6CB; line-height: 1; letter-spacing: -.5px; }
.calc-results .k { font-size: 13.5px; color: var(--on-navy-2); margin-top: 5px; }

.calc-badges { display: flex; gap: 8px; margin-bottom: 22px; }
.calc-badges span { flex: 1; text-align: center; background: var(--ink); border-radius: 8px; padding: 10px 4px; }
.calc-badges .bn { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--teal-light); }
.calc-badges .bl { font-size: 11px; color: var(--on-navy-3); }

.calc-chart { width: 100%; margin-bottom: 10px; }
.calc-chart svg { width: 100%; height: auto; display: block; }
.calc-legend { display: flex; gap: 18px; font-size: 11.5px; color: var(--on-navy-3); margin-bottom: 14px; }
.calc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calc-legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.calc-results .justify { font-size: 11.5px; color: #7c9199; line-height: 1.5; margin-top: auto; }

.calc-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; transition: opacity .3s ease; }
.results-wrap:not(.locked) .calc-lock { opacity: 0; pointer-events: none; }
.lock-inner { max-width: 240px; }
.lock-icon { font-size: 26px; color: var(--teal-light); margin-bottom: 10px; line-height: 1; }
.lock-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; margin-bottom: 6px; }
.lock-sub { font-size: 13px; color: var(--on-navy-2); line-height: 1.5; }

.calc-cta { margin-top: 20px; text-align: center; }
.calc-cta[hidden] { display: none; }
.calc-cta p { font-size: 14.5px; color: var(--on-navy); margin-bottom: 14px; line-height: 1.5; }
.calc-note { font-size: 12px; color: #7c9199; margin-top: 16px; max-width: 80ch; }

/* ---- Proof cards --------------------------------------------------------- */
.proof-card { background: #fff; border: 1px solid #E2E8EA; border-radius: 14px; padding: 26px 24px; }
.proof-card .badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--teal-dark); background: #E4F4F6; padding: 4px 10px; border-radius: 20px; margin-bottom: 16px; }
.proof-card .n { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--ink); line-height: 1; letter-spacing: -1px; margin-bottom: 12px; }
.proof-card p { font-size: 13.5px; line-height: 1.55; color: var(--body); margin-bottom: 14px; }
.proof-card .who { font-size: 13px; font-weight: 700; color: var(--heading2); }

/* stat cards (Success) */
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow-card); }
.stat-card .badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--teal-dark); background: #E4F4F6; padding: 5px 12px; border-radius: 20px; margin-bottom: 20px; }
.stat-card .n { font-family: var(--font-display); font-weight: 800; font-size: 52px; color: var(--ink); line-height: 1; letter-spacing: -1.5px; margin-bottom: 14px; }
.stat-card p { font-size: 14.5px; line-height: 1.55; color: var(--body); margin-bottom: 18px; }
.stat-card .who { font-size: 13.5px; font-weight: 700; color: var(--heading); padding-top: 14px; border-top: 1px solid var(--tint2); }

/* ---- Awards strip (Platform) -------------------------------------------- */
.awards { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.awards-title { display: flex; align-items: center; gap: 12px; }
.awards-title .t { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.2px; }
.awards-list { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.award-chip { font-size: 14px; font-weight: 600; color: #0B5560; background: #fff; border: 1px solid #C6E2E4; padding: 9px 18px; border-radius: 24px; }

/* ---- Notice banner (Singula IQ) ----------------------------------------- */
.notice { display: flex; align-items: center; gap: 14px; background: var(--tint); border: 1px solid #B9DBDE; border-radius: 14px; padding: 20px 24px; }
.notice p { font-size: 15.5px; line-height: 1.55; color: #0E5560; }
.notice strong { color: var(--ink); font-weight: 700; }

/* ---- Tool cards (Singula IQ) -------------------------------------------- */
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.tool-card .ico-tile { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; }
.tool-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.3px; color: var(--heading); margin-bottom: 8px; }
.tool-card p { font-size: 14px; line-height: 1.55; color: var(--body); margin-bottom: 18px; }
.tool-card .tag { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--teal-dark); }

/* ---- Client logo wall (Success) ----------------------------------------- */
.logo-wall { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.logo-tile { height: 78px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; color: #9AA7AD; font-weight: 700; font-size: 13.5px; }
.logo-tile img { max-height: 44px; max-width: 100%; width: auto; }

/* ---- Partners: stack equation ------------------------------------------- */
.stack-row { display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap; }
.stack-box { flex: 1; min-width: 230px; border-radius: 16px; padding: 26px 24px; text-align: center; }
.stack-box .t { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.stack-box .s { font-size: 13.5px; line-height: 1.6; }
.stack-box--your { background: #fff; border: 1px solid #D2E6E7; color: var(--heading); }
.stack-box--your .s { color: var(--body); }
.stack-box--ink { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.stack-box--ink .s { color: #9FB8BF; }
.stack-box--ink .note { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--teal-light); margin-top: 10px; }
.stack-box--teal { background: var(--teal); border: 1px solid var(--teal); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.stack-box--teal .t { font-weight: 800; font-size: 18px; line-height: 1.2; }
.stack-op { display: flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--teal-dark); }

/* co-brand lockup */
.lockup-col { display: flex; flex-direction: column; gap: 20px; max-width: 620px; margin: 0 auto; }
.lockup { display: flex; align-items: center; justify-content: center; gap: 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(127,214,224,.16); border-radius: 16px; padding: 26px 30px; }
.lockup-slot { flex: 1; height: 56px; border: 1.5px dashed rgba(255,255,255,.32); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--on-navy-3); font-weight: 600; font-size: 14px; }
.lockup-logo { flex: 1; display: flex; align-items: center; justify-content: center; }
.lockup-logo img { height: 40px; }
.lockup-x { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--teal-light); }

/* numbered steps */
.step-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 22px; box-shadow: var(--shadow-card); }
.step-card .num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--teal-light); line-height: 1; margin-bottom: 12px; }
.step-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--heading); margin-bottom: 7px; }
.step-card p { font-size: 13.5px; line-height: 1.5; color: var(--body); }
.step-card.card-dark h3 { color: #fff; }
.step-card.card-dark p { color: #9FB8BF; }

/* API code block */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.code-window { background: var(--ink); border-radius: 16px; padding: 26px; box-shadow: 0 26px 54px rgba(11,42,51,.28); overflow: hidden; }
.code-dots { display: flex; gap: 7px; margin-bottom: 18px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; background: #3a4c56; }
.code-window pre { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--on-navy); white-space: pre; overflow-x: auto; margin: 0; }
.cm { color: #6B8A93; }  /* comment */
.cv { color: var(--teal-light); }  /* verb */
.ck-key { color: #9FD9A0; }  /* json key */
.cs { color: #E9C083; }  /* string */
.cr { color: var(--teal); }  /* result */

/* ---- CTA band ------------------------------------------------------------ */
.cta { background: var(--teal); color: #fff; padding: 74px 0; text-align: center; }
.cta .inner { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.8px; margin-bottom: 14px; }
.cta p { font-size: 18px; color: #E1F4F6; margin-bottom: 28px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; color: var(--on-navy-3); max-width: 38ch; }
.footer-col .head { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col .links { display: flex; flex-direction: column; gap: 11px; }
.footer-col .links a, .footer-col .links span { font-size: 14.5px; color: var(--on-navy-2); }
.footer-col .links a:hover { color: #fff; }
.footer-col .links span { color: var(--on-navy-3); }
.footer-legal { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-legal span { font-size: 13px; color: var(--on-navy-3); }
.footer-legal .dotsep { width: 3px; height: 3px; border-radius: 50%; background: #4a5c66; }

/* ---- Singula IQ architecture diagram ------------------------------------ */
/* overflow visible on desktop so the hub's drop shadow isn't clipped into a
   hard line; only enable horizontal scroll when the 1120px diagram won't fit. */
.diagram-scroll { padding: 20px 2px 40px; }
@media (max-width: 1200px) {
  .diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.diagram { position: relative; width: 1120px; height: 500px; margin: 0 auto; font-family: var(--font-body); }
.diagram > svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.dg-node { position: absolute; z-index: 1; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card-lg); }
.dg-node .ico { width: 40px; height: 40px; border-radius: 11px; background: #EEF2F4; color: #3C4C53; display: flex; align-items: center; justify-content: center; }
.dg-title { font-family: var(--font-display); font-weight: 700; color: var(--heading); }
.dg-hub { position: absolute; z-index: 2; background: radial-gradient(120% 120% at 30% 0%, #124350, #0B2A33 62%); border: 2px solid var(--teal); border-radius: 20px; box-shadow: 0 30px 64px rgba(11,42,51,.4), 0 0 0 6px rgba(6,190,225,.08); padding: 24px 22px; display: flex; flex-direction: column; }
.dg-chip-label { position: absolute; transform: translate(-50%,-50%); z-index: 3; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: #fff; border: 1px solid #DCE7E9; color: var(--teal-dark); font-weight: 700; font-size: 12.5px; padding: 6px 13px; border-radius: 22px; box-shadow: 0 5px 14px rgba(20,34,41,.08); }

/* ---- Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hb-pulse { display: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner--split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }   /* hero product image not needed on stacked/mobile view */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .api-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-wrap {
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--pad) 20px; border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    display: none;
  }
  .nav-wrap.open { display: flex; }
  .nav { flex-direction: column; gap: 0; margin: 0; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a.is-active { border-bottom-color: rgba(255,255,255,.06); color: var(--teal-light); }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 14px 0 0; gap: 10px; }
  .btn-nav-ghost, .btn-nav-solid { justify-content: center; padding: 12px 15px; }

  /* lifecycle: stack the cards and drop the heartbeat pulse on mobile */
  .hb-svg { display: none; }
  .hb-cards { flex-direction: column; gap: 16px; }
  .hb-card { flex: none; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .stack-op { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .subnav-inner { gap: 16px; overflow-x: auto; }
  .hero-inner { padding: 56px var(--pad); }
  .hero-float { left: 12px; right: 12px; bottom: 12px; }
}

/* ==========================================================================
   Demo modal (overlay form)
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,42,51,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: relative; background: #fff; color: var(--heading2);
  width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  border-radius: 20px; padding: 44px 48px 34px;
  box-shadow: 0 40px 90px rgba(11,42,51,.45);
  transform: translateY(12px) scale(.985);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.modal-backdrop.open .modal { transform: none; }

.modal-close {
  position: absolute; top: 20px; right: 20px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--muted); transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--page); color: var(--heading); }

.modal .eyebrow { color: var(--teal); margin-bottom: 6px; }
.modal h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(25px, 3.2vw, 31px);
  line-height: 1.12; letter-spacing: -.5px; color: var(--heading); margin: 0 0 12px;
}
.modal .modal-sub { font-size: 16px; line-height: 1.55; color: var(--body); margin-bottom: 26px; }

.modal .field { margin-bottom: 18px; }
.modal .field label { display: block; font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.modal input[type="text"], .modal input[type="email"] {
  width: 100%; padding: 14px 16px; font-size: 15px; font-family: inherit;
  color: var(--heading2); background: #fff; border: 1px solid #D3DEE0; border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.modal textarea {
  width: 100%; padding: 14px 16px; font-size: 15px; font-family: inherit;
  color: var(--heading2); background: #fff; border: 1px solid #D3DEE0; border-radius: 10px;
  resize: vertical; min-height: 92px; transition: border-color .15s ease, box-shadow .15s ease;
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(6,190,225,.18); }
.modal .field.invalid textarea { border-color: #C0392B; }

.modal .consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; }
.modal .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.modal .consent label { font-weight: 400; font-size: 13.5px; line-height: 1.5; color: var(--body); margin: 0; }
.modal .consent a { color: var(--teal-dark); text-decoration: underline; }

.modal form .btn-primary { width: 100%; font-size: 16px; padding: 16px; }
.modal form .btn-primary[disabled] { opacity: .7; cursor: default; }
.modal .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-error { color: #C0392B; font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; text-align: center; }
.modal-error[hidden] { display: none; }
.modal .modal-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.modal .field-error { color: #C0392B; font-size: 12.5px; margin-top: 6px; display: none; }
.modal .field.invalid .field-error { display: block; }
.modal .field.invalid input { border-color: #C0392B; }

.modal-success { text-align: center; padding: 24px 0 12px; }
.modal-success .tick {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(6,190,225,.14); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.modal-success h2:focus { outline: none; }
.modal-success p { font-size: 16px; color: var(--body); line-height: 1.55; max-width: 42ch; margin: 0 auto; }

@media (max-width: 560px) {
  .modal { padding: 34px 22px 26px; border-radius: 16px; }
}
