/* ============================================================================
   CareOFEET x ADELEV8 - presentation site
   Design system: "Top 0.001% minimal light"
   Dieter Rams discipline x Swiss typographic grid x Apple/Linear craft.
   Light theme only. Zero dependencies. No gradients. Hairlines everywhere.
   ========================================================================= */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Colour - accent discipline: flame = action, verify = verified, alert = block */
  --bg:           #FAF8F5;
  --surface:      #FFFFFF;
  --surface-2:    #F3F0EA;
  --ink:          #1A1815;
  --ink-2:        #57534B;
  --ink-3:        #8A857B;
  --line:         rgba(26, 24, 21, .10);
  --line-strong:  rgba(26, 24, 21, .22);
  --flame:        #C4502A;
  --flame-deep:   #A8431F;
  --flame-tint:   #F6E3D9;
  --verify:       #1E7A55;
  --verify-tint:  #E2F0E8;
  --alert:        #A33B3B;
  --alert-tint:   #F5E1E1;

  /* Type */
  --font-sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(44px, 8vw, 112px);
  --fs-h2:      clamp(30px, 4.4vw, 56px);
  --fs-h3:      clamp(20px, 2.4vw, 28px);
  --fs-body:    clamp(15px, 1.05vw, 17.5px);
  --fs-small:   13.5px;
  --fs-micro:   11.5px;

  /* Space - 8px baseline */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --container: 1200px;
  --container-wide: 1360px;
  --section-pad: clamp(72px, 10vw, 140px);
  --gutter: clamp(20px, 4vw, 48px);

  /* Geometry */
  --r-card: 10px;
  --r-pill: 999px;
  --r-input: 8px;
  --shadow-1: 0 1px 2px rgba(26, 24, 21, .04), 0 8px 24px rgba(26, 24, 21, .05);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-reveal: 600ms;
}

/* --- 2. Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }

::selection { background: var(--flame-tint); }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-input);
}
.skip:focus { left: 16px; top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. Typography ------------------------------------------------------ */
.display {
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 500;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 500;
  max-width: 24ch;
}
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.015em; font-weight: 500; }
.h4 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.body-muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}
.micro {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  font-weight: 500;
}
.micro.strong { color: var(--ink-2); }
.lede-note { color: var(--ink-3); font-size: var(--fs-small); }

/* --- 4. Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--container-wide); }

.section { padding: var(--section-pad) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .rule { height: 1px; background: var(--line-strong); margin-bottom: var(--s4); }
.sec-head .kicker { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.sec-head .num-label { white-space: nowrap; }
.sec-title-grid { display: grid; gap: var(--s5); align-items: end; margin-top: var(--s4); }
.sec-head p { max-width: 66ch; }
.sec-head .h2 + p { margin-top: var(--s4); }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.stack { display: grid; gap: var(--s4); }
.stack-lg { display: grid; gap: var(--s6); }

/* --- 5. Cards, chips, buttons ------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: var(--shadow-1);
}
.card.flat { background: transparent; box-shadow: none; }
.card.well { background: var(--surface-2); }
.card p + p { margin-top: var(--s3); }
.hairline { border-top: 1px solid var(--line); margin: var(--s4) 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms linear,
              border-color 160ms linear, box-shadow 160ms linear, color 160ms linear;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover { background: var(--flame-deep); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-1px); border-color: var(--ink); background: var(--surface); }
.btn-ghost:active { transform: translateY(0); }
.btn-quiet { border-color: var(--line); color: var(--ink-2); min-height: 44px; background: var(--surface); }
.btn-quiet:hover { color: var(--ink); border-color: var(--line-strong); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-icon { min-width: 48px; padding: 0; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .42; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-2); font-weight: 500;
}
.chip-hi { border-color: var(--line-strong); color: var(--ink-3); }
.chip-moment {
  font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--ink-2);
  font-weight: 400; cursor: pointer; text-align: left; min-height: 36px;
  transition: border-color 150ms linear, color 150ms linear, transform 150ms var(--ease-out);
}
.chip-moment:hover { border-color: var(--flame); color: var(--ink); transform: translateY(-1px); }
.chip-moment .chip-time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--flame); }
.chip-moment[aria-current="true"] { border-color: var(--flame); background: var(--flame-tint); }

.tag-verify { color: var(--verify); border-color: var(--verify); background: var(--verify-tint); }
.tag-alert { color: var(--alert); border-color: var(--alert); background: var(--alert-tint); }

.badge-mockup {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px 10px; background: rgba(255, 255, 255, .82); white-space: nowrap;
}

.note {
  font-size: var(--fs-small); color: var(--ink-2);
  border-left: 2px solid var(--line-strong); padding-left: var(--s3);
}
.note.flame { border-left-color: var(--flame); }

/* --- 6. Reveal engine --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
.no-js .reveal { opacity: 1; transform: none; }

/* --- 7. Nav ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 245, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.wordmark {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap;
  text-decoration: none;
}
.wordmark .x { color: var(--ink-3); font-weight: 400; }
.wordmark .vendor { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--ink-2); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 10px 12px; border-radius: var(--r-pill); white-space: nowrap;
  transition: color 140ms linear, background-color 140ms linear;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-cta { margin-left: var(--s4); }
.nav-inner > * { flex-shrink: 0; }
@media (max-width: 1260px) {
  .nav-links a { font-size: 13px; padding: 9px 9px; }
  .wordmark .vendor { display: none; }
  .nav-cta { padding: 0 16px; }
}
.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line-strong);
  border-radius: var(--r-input); width: 46px; height: 46px; background: var(--surface);
}

/* --- 8. Hero ------------------------------------------------------------ */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px); }
.hero .kicker { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; margin-bottom: var(--s6); }
.hero h1 { max-width: 20ch; }
.hero .sub {
  margin-top: var(--s6); font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 2.6vw, 34px); line-height: 1.25; color: var(--ink-2); max-width: 34ch;
}
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s7); }
.hero-meta {
  margin-top: var(--s8); border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5);
  padding-top: var(--s4);
}
.hero-meta dt { margin-bottom: 6px; }
.hero-meta dd { margin: 0; font-size: 15px; color: var(--ink); }

/* --- 9. C1 - call player & transcript explorer -------------------------- */
.call-grid {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px); align-items: start;
}
.player {
  position: sticky; top: 88px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow-1);
}
.player-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.player-title { font-weight: 600; font-size: 15px; }
.time-row {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 22px; letter-spacing: -.02em;
}
.time-row .sep, .time-row .total { color: var(--ink-3); font-size: 15px; }
.scrub {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent; margin: var(--s2) 0; cursor: pointer;
}
.scrub::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
.scrub::-moz-range-track { height: 2px; background: var(--line-strong); }
.scrub::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--flame); margin-top: -6px; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--flame);
}
.scrub::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--flame);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--flame);
}
.transport { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.transport .btn-icon { border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); }
.transport .btn-icon:hover { border-color: var(--ink); }
.transport .btn-play { background: var(--flame); color: #fff; border-color: var(--flame); }
.transport .btn-play:hover { background: var(--flame-deep); border-color: var(--flame-deep); }
.player-meta { margin-top: var(--s4); display: grid; gap: 6px; }
.playback-badge { display: none; }
.playback-badge.is-on {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .1em;
  color: var(--flame); border: 1px solid var(--flame); border-radius: var(--r-pill);
  padding: 3px 10px; background: var(--flame-tint);
}
.player-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

.search-row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s4); }
.input {
  min-height: 44px; padding: 10px 14px; border-radius: var(--r-input);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  width: 100%; font-size: 15px;
}
.input::placeholder { color: var(--ink-3); }
.input:focus-visible { border-color: var(--flame); }
.search-input { max-width: 320px; }
.field { display: grid; gap: 6px; }
.field .field-label { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }

.moments-rail { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.moments-rail .moments-label { width: 100%; margin-bottom: 2px; }

.transcript-pane {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface-2); max-height: 620px; overflow-y: auto;
  padding: var(--s4) var(--s4) var(--s4) var(--s2);
}
.seg {
  display: grid; grid-template-columns: 58px minmax(0, 1fr);
  gap: var(--s2); width: 100%; text-align: left;
  padding: 7px 10px; border-radius: 6px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
  transition: background-color 140ms linear, color 140ms linear;
}
.seg:hover { background: var(--surface); color: var(--ink); }
.seg .seg-t { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.seg .seg-body { display: block; }
.seg .seg-chip { margin-left: 8px; vertical-align: 2px; padding: 1px 7px; font-size: 9.5px; }
.seg.is-active { background: var(--surface); color: var(--ink); box-shadow: inset 2px 0 0 var(--flame); }
.seg.is-active .seg-t { color: var(--flame); }
.seg.is-flash { animation: segflash 1.1s var(--ease-out) 1; }
@keyframes segflash {
  0%   { background: var(--flame-tint); box-shadow: inset 2px 0 0 var(--flame); }
  100% { background: transparent; box-shadow: none; }
}
.seg.is-hidden { display: none; }
.seg.is-moment { color: var(--ink); }

.moment-hit { border: 1px solid var(--line); border-radius: var(--r-input); background: var(--surface); padding: 10px 12px; margin-bottom: var(--s3); display: grid; gap: 4px; }
.moment-hit .mh-top { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.moment-hit .mh-quote { font-size: 13.5px; color: var(--ink-2); font-family: var(--font-serif); font-style: italic; }

.empty-state { padding: var(--s6) var(--s4); color: var(--ink-3); font-size: 14px; text-align: center; }
.transcript-foot { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); flex-wrap: wrap; align-items: center; }

/* --- 10. Blind channel cards -------------------------------------------- */
.blind-card { display: grid; gap: var(--s3); align-content: start; }
.blind-card .blind-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.blind-card p { color: var(--ink-2); font-size: 15px; }
.jump {
  display: inline-flex; align-items: center; gap: 8px; align-self: start;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--flame);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; min-height: 40px; background: var(--surface);
  transition: border-color 150ms linear, transform 150ms var(--ease-out);
}
.jump:hover { border-color: var(--flame); transform: translateY(-1px); }

/* --- 11. Mechanism (engines) -------------------------------------------- */
.engines {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(16px, 2.6vw, 40px); box-shadow: var(--shadow-1);
}
.engines svg { width: 100%; height: auto; }
.engine-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s6); }
.engine-legend .k { font-family: var(--font-mono); font-size: 12px; color: var(--flame); }
.engine-legend p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.dg-node rect { fill: #fff; stroke: var(--line-strong); }
.dg-node.is-flame rect { stroke: var(--flame); }
.dg-node.is-verify rect { stroke: var(--verify); }
.dg-label { font-family: var(--font-sans); font-size: 12.5px; fill: var(--ink); font-weight: 500; }
.dg-sub { font-family: var(--font-mono); font-size: 10.5px; fill: #8A857B; }
.dg-line { stroke: var(--line-strong); fill: none; }
.dg-line-flame { stroke: var(--flame); fill: none; }
.dg-verify { stroke: var(--verify); fill: none; }
.dg-dot { fill: var(--flame); }

/* --- 12. C2 - dual-experience simulator --------------------------------- */
.tabs { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; background: var(--surface); }
.tab {
  min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color 160ms linear, color 160ms linear;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--flame); color: #fff; }
.tabpanel[hidden] { display: none; }
.sim-head { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; justify-content: space-between; margin-bottom: var(--s6); }
.sim-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }

.phone {
  position: relative; width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 26px; padding: 10px; box-shadow: var(--shadow-1);
}
.phone-screen {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; min-height: 540px; display: grid; grid-template-rows: auto 1fr auto;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; font-size: 11px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em;
}
.phone-body { padding: var(--s4); display: grid; gap: var(--s4); align-content: start; }
.phone-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); }
.phone-nav button {
  min-height: 52px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); display: grid; place-items: center; gap: 2px;
  border-right: 1px solid var(--line);
}
.phone-nav button:last-child { border-right: 0; }
.phone-nav button[aria-current="true"] { color: var(--flame); }
.phone-nav button:hover { color: var(--ink); }
.mockup-flag { position: absolute; top: -11px; right: 14px; z-index: 2; }
.mockup-inline { display: inline-flex; }

.points-hero { display: grid; gap: 4px; }
.points-value { font-family: var(--font-mono); font-size: 42px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.points-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }

.viewfinder {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-card);
  background: var(--surface-2); border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center;
}
.viewfinder .qr-grid { width: 60%; }
.scanline {
  position: absolute; left: 8%; right: 8%; height: 2px; top: 12%;
  background: var(--flame); box-shadow: 0 0 12px rgba(196, 80, 42, .55);
  animation: sweep 1.6s ease-in-out infinite;
}
@keyframes sweep { 0% { top: 12%; } 50% { top: 84%; } 100% { top: 12%; } }
.viewfinder .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--ink-3); }
.viewfinder .c1 { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.viewfinder .c2 { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.viewfinder .c3 { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.viewfinder .c4 { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.code-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.code-btn {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em;
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
  padding: 9px 12px; min-height: 44px; color: var(--ink-2); background: var(--surface);
}
.code-btn:hover { border-color: var(--ink); color: var(--ink); }

.toast {
  border-radius: var(--r-input); padding: 12px 14px; font-size: 14px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  display: grid; gap: 4px; min-height: 64px; align-content: center;
}
.toast .toast-main { font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toast.is-verify { background: var(--verify-tint); border-color: var(--verify); color: var(--verify); }
.toast.is-alert { background: var(--alert-tint); border-color: var(--alert); color: var(--alert); }
.toast.is-neutral { background: var(--flame-tint); border-color: var(--flame); color: var(--flame-deep); }
.toast .toast-sub { font-size: 12px; color: var(--ink-3); }
.toast.is-verify .toast-sub, .toast.is-alert .toast-sub { color: inherit; opacity: .8; }

.ledger { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.ledger-head, .ledger-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px;
  gap: var(--s3); padding: 10px 14px; align-items: baseline;
}
.ledger-head {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.ledger-row { border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .lname { display: block; }
.ledger-row .lmeta { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ledger-row .amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; font-size: 14.5px; }
.ledger-row.is-credit .amt { color: var(--verify); }
.ledger-row.is-debit .amt { color: var(--ink); }
.ledger-empty { padding: var(--s5) 14px; color: var(--ink-3); font-size: 13.5px; background: var(--surface); }

.mall-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.reward { display: grid; gap: var(--s3); align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3); }
.reward .reward-art { aspect-ratio: 21 / 9; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.reward .reward-name { font-weight: 600; font-size: 14.5px; }
.reward .reward-cost { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reward .reward-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.reward.is-locked { opacity: .6; }

.pad { display: grid; gap: var(--s5); }
.sku-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3) var(--s4); align-items: center;
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.sku-row:last-of-type { border-bottom: 0; }
.sku-name { font-weight: 600; font-size: 15px; }
.sku-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-input); overflow: hidden; background: var(--surface); }
.stepper button { width: 44px; height: 44px; font-size: 17px; color: var(--ink-2); display: grid; place-items: center; }
.stepper button:hover { background: var(--surface-2); color: var(--ink); }
.stepper .qty { min-width: 56px; text-align: center; font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.sku-line-total { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.pad-foot { display: grid; gap: var(--s4); }

.meter { display: grid; gap: var(--s2); }
.meter-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { height: 100%; background: var(--ink-3); transition: width 300ms var(--ease-out), background-color 200ms linear; }
.meter.is-warn .meter-fill { background: var(--flame); }
.meter.is-block .meter-fill { background: var(--alert); }
.meter-legend { display: flex; justify-content: space-between; gap: var(--s3); font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--ink-2); font-size: 14px; }
.kv dd, .kv .v { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.kv.kv-total .v { font-size: 20px; letter-spacing: -.02em; }

.alert-block {
  border: 1px solid var(--alert); background: var(--alert-tint); color: var(--alert);
  border-radius: var(--r-input); padding: 12px 14px; font-size: 14px; display: grid; gap: 3px;
}
.alert-block .ab-main { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.alert-block .ab-sub { font-size: 12.5px; opacity: .85; }

.timeline { display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 9px 0; }
.tl-step .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); margin-left: 6px; }
.tl-step .tl-name { font-size: 14px; color: var(--ink-3); text-transform: capitalize; }
.tl-step .tl-ts { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.tl-step.is-done .dot { background: var(--verify); border-color: var(--verify); }
.tl-step.is-done .tl-name { color: var(--ink); }
.tl-step.is-active .dot { background: var(--flame); border-color: var(--flame); animation: pulse 1.2s ease-in-out infinite; }
.tl-step.is-active .tl-name { color: var(--ink); font-weight: 500; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }

.invoice { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: var(--s5); display: grid; gap: var(--s4); }
.invoice .inv-head { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; align-items: flex-start; }
.invoice table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice th, .invoice td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.invoice th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; }
.invoice td.n, .invoice th.n { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.offline-banner {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  border: 1px dashed var(--line-strong); border-radius: var(--r-input);
  padding: 10px 14px; font-size: 13px; color: var(--ink-2); background: var(--surface-2);
}

/* --- 13. C3 - Chingari pull-demand spark -------------------------------- */
.spark-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(24px, 3vw, 48px); align-items: start; }
.spark-stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(16px, 2.2vw, 28px); box-shadow: var(--shadow-1); }
.spark-stage svg { width: 100%; height: auto; }
.spark-svg .sp-path { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.spark-svg .sp-trace { stroke: var(--flame); stroke-width: 2; fill: none; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.spark-svg.is-live .sp-trace { animation: draw 900ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spark-packet { fill: var(--flame); opacity: 0; }
.spark-svg.is-live .spark-packet { animation: travel 900ms var(--ease-out) forwards; }
@keyframes travel { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(var(--dx, 200px)); } }
.node-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: var(--s4); display: grid; gap: var(--s2); }
.node-card .nc-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.node-card .nc-name { font-weight: 600; font-size: 14.5px; }
.node-card .nc-msg { font-size: 13.5px; color: var(--ink-2); }
.node-card[data-state="notifying"] { border-color: var(--flame); }
.node-card[data-state="received"] { border-color: var(--verify); }
.status-pill {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px 9px; color: var(--ink-3);
}
.node-card[data-state="notifying"] .status-pill { color: var(--flame); border-color: var(--flame); }
.node-card[data-state="received"] .status-pill { color: var(--verify); border-color: var(--verify); background: var(--verify-tint); }
.counter { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.quote-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); display: grid; gap: var(--s3); }
.quote-card blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; color: var(--ink); }

/* --- 14. C4 - architecture & OTP cost calculator ------------------------ */
.arch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(16px, 2.4vw, 32px); box-shadow: var(--shadow-1); display: grid; gap: var(--s4); }
.arch-layer { display: grid; gap: var(--s2); }
.arch-layer .layer-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.arch-boxes { display: flex; flex-wrap: wrap; gap: var(--s2); }
.arch-box {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-input);
  padding: 9px 12px; font-size: 13px; background: var(--surface); color: var(--ink-2);
}
.arch-box.accent { border-color: var(--flame); color: var(--flame-deep); background: var(--flame-tint); }
.arch-box[data-tip] { cursor: help; }
.arch-box[data-tip]:hover::after,
.arch-box[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
  width: max(220px, 100%); background: var(--ink); color: var(--bg);
  font-size: 12px; line-height: 1.45; letter-spacing: 0; text-transform: none;
  padding: 10px 12px; border-radius: var(--r-input); box-shadow: var(--shadow-1);
}
.arch-arrow { height: 14px; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.calc-inputs { display: grid; gap: var(--s4); }
.range-row { display: flex; align-items: center; gap: var(--s3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--flame); margin-top: -7px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--flame); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--flame); border: 2px solid var(--surface); }
.rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.calc-out { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: var(--s5); display: grid; gap: var(--s2); box-shadow: var(--shadow-1); }
.calc-out .big { font-family: var(--font-mono); font-size: 40px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chan-rows { display: grid; gap: 2px; margin: var(--s3) 0; }

/* --- 15. Moats (why this wins) ------------------------------------------ */
.moat { display: grid; gap: var(--s3); align-content: start; }
.moat .moat-k { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.moat h3 { font-size: 19px; }
.moat p { color: var(--ink-2); font-size: 15px; }

/* --- 16. C5 - blueprint ------------------------------------------------- */
.bp { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.bp-bar { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.bp-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.bp-tabs { display: flex; gap: 2px; overflow-x: auto; padding: var(--s2) var(--s3) 0; border-bottom: 1px solid var(--line); }
.bp-tab {
  min-height: 44px; padding: 0 14px; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.bp-tab:hover { color: var(--ink); }
.bp-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--flame); font-weight: 500; }
.bp-panel { padding: clamp(20px, 2.6vw, 40px); }
.bp-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.bp-sec + .bp-sec { margin-top: var(--s6); }
.bp-sec h4 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: var(--s3); }
.bp-sec p { color: var(--ink-2); max-width: 78ch; }
.bp-sec p + p { margin-top: var(--s3); }
.bp-sec ul { display: grid; gap: var(--s2); }
.bp-sec ul li { color: var(--ink-2); padding-left: var(--s4); position: relative; }
.bp-sec ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 1px; background: var(--ink-3); }
.bp-table-wrap { overflow-x: auto; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.bp-table th, .bp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.bp-table th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
.bp-table td:first-child { color: var(--ink); font-weight: 500; }
.bp-table td .mono { font-size: 13px; }

/* --- 17. Footer / CTA --------------------------------------------------- */
.footer { padding: var(--section-pad) 0 var(--s8); border-top: 1px solid var(--line-strong); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 56px); }
.next-steps { display: grid; gap: 0; }
.next-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: start; }
.next-steps li:last-child { border-bottom: 0; }
.next-steps .idx { font-family: var(--font-mono); font-size: 12px; color: var(--flame); padding-top: 3px; }
.foot-base { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; align-items: flex-end; }
.foot-base p { font-size: var(--fs-small); color: var(--ink-3); }
.contact-slot { font-family: var(--font-mono); font-size: 13px; color: var(--flame-deep); background: var(--flame-tint); border: 1px solid var(--flame); border-radius: var(--r-input); padding: 8px 12px; display: inline-block; }

/* --- 18. Print ---------------------------------------------------------- */
@media print {
  :root { --section-pad: 24px; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .nav, .skip, .hero, #call, #blind, #engines, #simulator, #architecture, #why, .footer,
  .bp-bar, .bp-tabs, .reveal { display: none !important; }
  /* Invoice print mode: print only the invoice that was handed to window.print() */
  body.print-invoice > * { display: none !important; }
  body.print-invoice #print-mount { display: block !important; }
  body.print-invoice #print-mount .invoice { border: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .section { padding: 0 0 18px; border: 0 !important; }
  .sec-head { margin-bottom: 12px; page-break-after: avoid; }
  .sec-head .rule { background: #000; }
  .bp { border: 0; box-shadow: none; }
  .bp-panel { display: block !important; padding: 0; page-break-before: always; }
  .bp-panel::before { content: attr(data-print-title); display: block; font-size: 15pt; font-weight: 600; margin: 0 0 10px; }
  .bp-panel:first-of-type { page-break-before: avoid; }
  .bp-sec { page-break-inside: avoid; }
  .bp-table th { background: #eee !important; }
  .bp-table th, .bp-table td { border-bottom: 1px solid #999; color: #000; }
  .micro, .lede-note, .foot-base p { color: #333 !important; }
  .badge-mockup { border-color: #999; color: #333; }
  a { text-decoration: none; color: #000; }
}

/* --- 19. Responsive ----------------------------------------------------- */
@media (max-width: 1180px) {
  .spark-grid { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1040px) {
  .sim-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { margin: 0; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-legend { grid-template-columns: minmax(0, 1fr); }
  .call-grid { grid-template-columns: minmax(0, 1fr); }
  .player { position: static; }
}
@media (max-width: 980px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--s3) var(--gutter) var(--s5);
  }
  .nav-links[hidden] { display: none !important; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .rate-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-panel { padding: var(--s4); }
  .ledger-head, .ledger-row { grid-template-columns: minmax(0, 1fr) 78px; }
  .sim-head { align-items: flex-start; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 12px; }
}
@media (max-width: 420px) {
  html { scroll-padding-top: 76px; }
  .time-row { font-size: 20px; }
  .points-value { font-size: 36px; }
  .wordmark .vendor { display: none; }
  .seg { grid-template-columns: 46px minmax(0, 1fr); }
}

/* --- 20. Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scanline { top: 50%; }
  .spark-svg .sp-trace { stroke-dashoffset: 0 !important; }
  .spark-packet { opacity: 1 !important; }
}

/* --- 21. Utilities used by the markup ----------------------------------- */
.subhead { margin-top: clamp(56px, 7vw, 112px); }
.mt-4 { margin-top: var(--s4); }
.mb-2 { margin-bottom: var(--s2); }
#print-mount { display: none; }
.dg-node rect[data-state="notifying"] { stroke: var(--flame); }
.dg-node rect[data-state="received"] { stroke: var(--verify); }
.sku-ctrl { display: grid; gap: 6px; justify-items: end; }
.sku-pairs { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }

/* ============================================================================
   Adelev8 Enterprise Track Record & Aqualite Pragati Design System Extensions
   ========================================================================= */

/* --- Case Study & Clients Grid ------------------------------------------- */
.case-study-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s6);
}
.case-badge-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.case-badge {
  background: var(--flame-tint);
  color: var(--flame-deep);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.case-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
.case-title {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  margin-bottom: var(--s4);
  letter-spacing: -.02em;
}
.case-desc {
  font-size: var(--fs-body);
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: var(--s3);
  max-width: 82ch;
}
.case-link {
  color: var(--flame);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin: var(--s6) 0 var(--s5);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cm-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cm-val {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--ink);
}
.cm-lbl {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.case-cta-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s4);
}

.portfolio-wrap {
  margin-top: var(--s6);
}
.portfolio-head {
  margin-bottom: var(--s4);
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}
.client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s4) var(--s4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.client-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: var(--line-strong);
}
.client-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.client-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--flame);
}
.client-detail {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 2px;
}

/* --- Aqualite Pragati Modeled Phone Screen -------------------------------- */
.phone-pragati {
  width: 380px;
  max-width: 100%;
  border-radius: 38px;
  border: 10px solid #1A1815;
  background: #FAF8F5;
  box-shadow: 0 24px 56px rgba(0,0,0,0.12);
  overflow: hidden;
  position: relative;
}
.appbar-pragati {
  background: linear-gradient(135deg, #B82828 0%, #A01E1E 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.appbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.appbar-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
}
.appbar-brand {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  opacity: .9;
}
.appbar-right {
  position: relative;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: #FFD700;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
}
.phone-body-pragati {
  padding: 14px 14px 74px 14px;
  min-height: 520px;
  max-height: 580px;
  overflow-y: auto;
}

.welcome-strip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.welcome-text {
  font-size: 15px;
  color: var(--ink);
}
.welcome-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.promo-card {
  background: linear-gradient(135deg, #FAF4EF 0%, #F5EAE1 100%);
  border: 1px solid rgba(196,80,42,.15);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.promo-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--flame);
  display: block;
  margin-bottom: 4px;
}
.promo-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px 0;
}
.promo-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0;
}
.promo-dots {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.promo-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
}
.promo-dots .dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--flame);
}

.points-bar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.pbc-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pbc-lbl {
  font-size: 11.5px;
  color: var(--ink-3);
}
.pbc-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.pbc-btn {
  background: var(--flame);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
}

.quick-hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 8px;
  margin-bottom: 12px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 6px;
}
.hub-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  transition: transform 150ms ease;
}
.hub-item:hover {
  transform: translateY(-2px);
}
.hub-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--flame-tint);
  color: var(--flame-deep);
  display: grid;
  place-items: center;
}
.hub-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.2;
}

.kyc-banner-card {
  background: #EDF7F2;
  border: 1px solid rgba(30,122,85,0.22);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kyc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--verify);
  display: block;
}
.kyc-sub {
  font-size: 10.5px;
  color: var(--ink-2);
}
.badge-verify {
  font-size: 9.5px;
  text-transform: uppercase;
  background: var(--verify);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
}

.support-card-compact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc-title {
  font-size: 10.5px;
  color: var(--ink-3);
  display: block;
}
.sc-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.bottom-nav-pragati {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  z-index: 10;
}
.bnav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 500;
  transition: color 140ms ease;
}
.bnav-btn:hover {
  color: var(--flame);
}
.bnav-fab {
  transform: translateY(-16px);
}
.bnav-fab .fab-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B82828 0%, #A01E1E 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(184,40,40,.35);
  transition: transform 150ms ease;
}
.bnav-fab:hover .fab-circle {
  transform: scale(1.05);
}

/* --- Passbook Mint Tiles (image copy 3.png) ------------------------------ */
.passbook-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.pb-tile {
  background: #EAF7EE;
  border: 1px solid rgba(30,122,85,0.18);
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.pb-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.pb-num {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.pb-lbl {
  font-size: 10px;
  color: var(--ink-2);
}

.pb-options-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.pb-opt-heading {
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  display: block;
  background: var(--surface-2);
  color: var(--ink-2);
}
.pb-opt-row {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 140ms ease;
}
.pb-opt-row:last-child {
  border-bottom: none;
}
.pb-opt-row:hover, .pb-opt-row.active {
  background: var(--surface-2);
}
.pb-opt-info strong {
  font-size: 12.5px;
  display: block;
  color: var(--ink);
}
.pb-opt-info span {
  font-size: 10.5px;
  color: var(--ink-3);
}
.pb-opt-row .arrow {
  color: var(--ink-3);
  font-size: 16px;
  font-family: var(--font-mono);
}

.inner-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.btn-back {
  background: none;
  border: none;
  color: var(--flame);
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  padding: 2px 0;
}
.inner-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* --- Lookbook & Pull-Demand ----------------------------------------------- */
.lookbook-list {
  display: grid;
  gap: 10px;
}
.lb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lb-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lb-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.lb-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.lb-spark-btn {
  font-size: 11.5px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* --- Quick Dialog Modals -------------------------------------------------- */
.app-modal {
  position: fixed;
  inset: 0;
  background: rgba(26,24,21,0.5);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.app-modal[hidden] {
  display: none !important;
}
.app-modal-dialog {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
}
.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.app-modal-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink-3);
  line-height: 1;
}

@media (max-width: 980px) {
  .case-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .clients-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- 28. Commercials & Costing Justification --- */
.pricing-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s5);
  margin-top: var(--s5);
  margin-bottom: var(--s6);
}
.pricing-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s5);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border: 2px solid var(--flame);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(229, 57, 53, 0.08);
}
.pricing-badge-highlight {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--flame);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin: var(--s3) 0 var(--s2);
}
.pricing-amount.market {
  color: var(--ink-3);
  font-size: 30px;
}
.pricing-sub {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: var(--s4);
}
.pricing-item-list {
  list-style: none;
  padding: 0;
  margin: var(--s4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.pricing-item-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.pricing-item-list .icon-check {
  color: var(--flame);
  flex-shrink: 0;
  margin-top: 3px;
  font-weight: 700;
}
.pricing-item-list .icon-cross {
  color: var(--alert);
  flex-shrink: 0;
  margin-top: 3px;
  font-weight: 700;
}

/* Micro-costing Table */
.costing-table-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-top: var(--s5);
}
.costing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.costing-table th {
  background: var(--surface-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.costing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.costing-table tr:last-child td {
  border-bottom: none;
}
.costing-table tr.total-row {
  background: var(--surface-muted);
  font-weight: 700;
  font-size: 15px;
}
.costing-table tr.total-row td {
  border-top: 2px solid var(--line-strong);
}

/* Value & ROI Cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}
.value-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s4);
}
.value-card .value-metric {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--flame);
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .pricing-compare-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
}

