/* ==========================================================================
   EcomWithUsman - Design Tokens & Stylesheet
   Inspired by clean Apple / Verso minimalism with modern editorial elegance.
   ========================================================================== */

:root {
  --ink: #1d1d1f;          /* primary text */
  --ink-2: #48484a;        /* secondary text / links */
  --muted: #6e6e73;        /* labels, captions (4.9:1 on white) */
  --line: #e3e3e8;         /* hairlines & borders */
  --wash: #f5f5f7;         /* soft off-white surfaces */
  --wash-dark: #ebebee;
  --white: #ffffff;
  --black: #000000;
  --accent: #0071e3;       /* electric blue accent */
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --emerald: #10b981;      /* profit green */
  --emerald-soft: rgba(16, 185, 129, 0.1);
  --emerald-dark: #047857;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --gutter: clamp(20px, 4vw, 40px);
}

/* Base Reset & Typography */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.012em; font-size: 1.08em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 20px var(--gutter) 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  max-width: 1080px;
  height: 64px;
  margin: 0 auto;
  padding: 0 10px 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 14px 34px -14px rgba(0,0,0,.14);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -.035em;
  transition: opacity .3s;
}
.brand:hover { opacity: .7; }

.links { display: flex; align-items: center; gap: 2px; }
.lk {
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .3s, background .3s;
}
.lk:hover, .lk[aria-expanded="true"], .lk.active {
  color: var(--ink);
  background: #f2f2f4;
}
.lk .pill-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.chev { transition: transform .45s var(--ease); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.cta-wrap {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lk-auth {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
  cursor: pointer;
}
.lk-auth:hover {
  color: var(--ink);
  background: #f2f2f4;
}
.user-greeting {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.012em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .45s var(--ease), background .3s, box-shadow .45s, border-color .3s;
  cursor: pointer;
}
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 26px -14px rgba(0,0,0,.55); }
.btn-line { background: var(--white); color: var(--ink); border-color: #d2d2d7; }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 14.5px; }

/* Dropdown Mega-Menu */
.panel {
  position: absolute;
  left: 50%;
  top: 100%;
  width: min(800px, calc(100% - 24px));
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(.985);
  transform-origin: 50% 0;
  transition: opacity .3s ease, transform .5s var(--ease), visibility 0s .3s;
}
.dd.open .panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}
.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 30px 60px -24px rgba(0,0,0,.2);
}
.col-a {
  background: var(--wash);
  border-radius: 22px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
}
.col-b { padding: 18px 8px 14px 14px; }
.lab {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 8px;
}
.it {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border-radius: 16px;
  transition: background .3s;
}
.it b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.it span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.col-a .it:hover { background: var(--white); }
.col-b .it:hover { background: var(--wash); }
.it.tiny { padding: 8px 10px; gap: 1px; }
.it.tiny b { font-size: 13.5px; font-weight: 500; }
.it.tiny span { font-size: 12px; }
.lab.gap { margin-top: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.foot-link {
  margin-top: auto;
  padding: 14px 12px 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .35s var(--ease);
}
.foot-link:hover { gap: 10px; }

/* Burger & Mobile Menu */
.burger {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background .3s;
}
.burger:hover { background: #f2f2f4; }
.burger i {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger i:nth-child(1) { top: 18px; }
.burger i:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.m {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 18px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 30px 60px -24px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .5s var(--ease), visibility 0s .3s;
}
.m.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.row {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  border-top: 1px solid #eeeef0;
  padding: 0 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.025em;
  cursor: pointer;
  text-align: left;
}
.m > .row:first-child, .m > div:first-child > .row { border-top: 0; }
.acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc.open { grid-template-rows: 1fr; }
.acc-in { min-height: 0; overflow: hidden; }
.sub {
  display: block;
  padding: 10px 6px 10px 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink-2);
}
.acc-in .sub:last-child { margin-bottom: 12px; }
.m .btn { width: 100%; height: 50px; margin-top: 14px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(64px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .8fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--ink); opacity: .5; }

.h1 {
  font-size: clamp(44px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 600;
  margin-top: 26px;
  max-width: 12.5em;
}
.h1 .ln { display: block; }

.sub-copy {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.54;
  letter-spacing: -.012em;
  color: var(--ink-2);
  max-width: 31em;
  margin-top: 28px;
}

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.trust {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 35em;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.trust i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}
.trust b { font-weight: 500; color: var(--ink); }

.also { display: block; margin-top: 4px; }
.swap { display: none; vertical-align: bottom; overflow: hidden; height: 1.5em; line-height: 1.5; }
.rot .swap { display: inline-grid; }
.rot .also-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.swap .w {
  grid-area: 1/1;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translateY(70%);
  transition: opacity .6s ease, transform .8s var(--ease);
}
.swap .w.on { opacity: 1; transform: none; }
.swap .w.out { opacity: 0; transform: translateY(-70%); }

/* Founder Portrait */
.founder { width: 100%; max-width: 440px; justify-self: end; }
.portrait { position: relative; }
.frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 999px 999px 36px 36px;
  overflow: hidden;
  background: #e8e5df;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 40px 70px -34px rgba(0,0,0,.35);
}
.media { position: absolute; inset: 0; overflow: hidden; }
.layer {
  position: absolute;
  inset: -4% 0;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.layer > svg, .layer > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo { object-fit: cover; object-position: 50% 20%; opacity: 0; transition: opacity .6s ease; }
.photo.loaded { opacity: 1; }
.ph-note {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(29,29,31,.35);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #4a4742;
  white-space: nowrap;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
}
.photo.loaded ~ .ph-note { display: none; }

/* Glass Details on Portrait */
.glass {
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 36px -16px rgba(0,0,0,.25);
}
.tag {
  position: absolute;
  left: -24px;
  top: 22%;
  height: 38px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  z-index: 2;
}
.tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.plate {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 24px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}
.plate b { font-size: 19px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.plate span { font-size: 13.5px; color: var(--muted); }
.bio {
  margin-top: 22px;
  padding: 0 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.bio .serif { color: var(--ink); font-size: 1.15em; }

/* ==========================================================================
   Section: Live Profit Graph & Store Management Proof
   ========================================================================== */
.section-graph {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-tag {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.12;
  color: var(--ink);
}
.sec-sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Dashboard Card */
.dashboard-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 30px 60px -28px rgba(0,0,0,.15);
}

/* Stat Metrics Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.stat-box {
  padding: 16px 20px;
  background: var(--wash);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.03);
}
.stat-val {
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}
.stat-val.green { color: var(--emerald-dark); }
.stat-lbl {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  margin-top: 6px;
}

/* Tab Filter for Graph */
.graph-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.tab-pills {
  display: inline-flex;
  padding: 4px;
  background: var(--wash);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .25s ease;
}
.tab-btn.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  font-weight: 600;
}
.graph-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.legend-dot.blue { background: var(--accent); }
.legend-dot.green { background: var(--emerald); }

/* SVG Graph Area */
.graph-stage {
  position: relative;
  width: 100%;
  height: 320px;
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 20px;
  padding: 16px;
}
.graph-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.grid-line { stroke: #ededf2; stroke-width: 1; stroke-dasharray: 4 4; }
.axis-text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.curve-area-rev { fill: url(#gradRev); opacity: 0.15; }
.curve-line-rev { stroke: var(--accent); stroke-width: 3.2; fill: none; stroke-linecap: round; }
.curve-area-profit { fill: url(#gradProfit); opacity: 0.22; }
.curve-line-profit { stroke: var(--emerald); stroke-width: 3.2; fill: none; stroke-linecap: round; }

.pt-hover {
  cursor: pointer;
  transition: transform .2s ease;
}
.pt-hover:hover { transform: scale(1.4); }

/* Profit Callout Card inside Graph */
.management-breakdown {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.mgmt-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mgmt-col p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ==========================================================================
   Services Section (High-Fidelity Grid & Interactive Category Filters)
   ========================================================================== */
.section-services {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--white);
}
.service-scope {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}
.service-scope span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #f8faff);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 5px 16px rgba(20, 35, 60, .035);
}

/* ============================================================
   Interactive Services Showcase (Split Stage Layout)
   ============================================================ */
.cats {
  display: flex;
  justify-content: center;
  margin: 36px 0 32px;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  background: #f0eee8;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 22px;
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.seg button:hover {
  color: var(--ink);
}
.seg button.on {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  font-weight: 600;
}

.stage {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 18px 20px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
}
.item .ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f0eee8;
  color: var(--ink);
  transition: all .3s var(--ease);
}
.item .ic svg {
  width: 22px;
  height: 22px;
}
.item .tx {
  flex: 1;
  min-width: 0;
}
.item .tx b {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.3;
}
.item .tx span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.item .chev {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all .3s var(--ease);
}
.item:hover {
  background: rgba(255, 255, 255, .7);
}
.item.on {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 14px 30px -18px rgba(30, 28, 20, .2);
}
.item.on .ic {
  background: var(--ink);
  color: #fff;
}
.item.on .chev {
  opacity: 1;
  transform: none;
  color: var(--ink);
}

.stage-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #fcfcfe 68%, #f7faff 100%);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  min-height: 560px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 30px 60px -28px rgba(0,0,0,.08);
}
.stage-panel::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(0, 113, 227, 0.12)), transparent 68%);
  pointer-events: none;
}
.stage-panel > * {
  position: relative;
}
.stage-panel.service-swap > * {
  animation: srvSwap .55s var(--ease) both;
}
.stage-panel.service-swap > *:nth-child(2) { animation-delay: .05s; }
.stage-panel.service-swap > *:nth-child(3) { animation-delay: .1s; }
.stage-panel.service-swap > *:nth-child(4) { animation-delay: .15s; }

@keyframes srvSwap {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.p-cat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.p-cat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}
.p-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.stage-panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 640px;
}
.stage-panel .lead {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
}

.stage-panel .p-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.service-details-btn { gap: 8px; }
.service-details-btn:focus-visible { outline: 3px solid rgba(0,113,227,.35); outline-offset: 3px; }

.p-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  margin-top: 36px;
  flex: 1;
  align-items: stretch;
}
.incl h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.incl ul {
  list-style: none;
  display: grid;
  gap: 0;
}
.incl li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.incl li:last-child {
  border-bottom: 1px solid var(--line);
}
.incl li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #10b981;
}

.out {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
}
.out::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 68%);
}
.out-brand {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px rgba(0,0,0,.12);
}
.out-brand svg { width: 48px; height: 48px; max-width: 100%; }
.out-brand-ebay svg { width: 78px; height: 36px; }
.out-brand-etsy svg { width: 72px; height: 34px; }
.out small {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9c9a93;
  margin-bottom: 10px;
}
.out b {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -.02em;
  line-height: 1;
  font-size: 38px;
}
.out b.num {
  font-size: 78px;
  letter-spacing: -.035em;
}
.out span {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 13.5px;
  color: #c4c2ba;
  max-width: 260px;
  line-height: 1.45;
}
.bar {
  position: relative;
  z-index: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .15);
  margin-top: 20px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #6ee7b7);
  width: 0;
  transition: width 1s var(--ease) .25s;
}

.p-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

@media (max-width: 1020px) {
  .stage {
    grid-template-columns: 1fr;
  }
  .list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .list::-webkit-scrollbar { display: none; }
  .item {
    flex: none;
    width: auto;
    padding: 12px 18px 12px 12px;
    background: var(--white);
    border-color: var(--line);
    border-radius: 999px;
  }
  .item .tx span, .item .chev { display: none; }
  .item .ic { width: 36px; height: 36px; border-radius: 50%; }
  .item .ic svg { width: 18px; height: 18px; }
  .item .tx b { white-space: nowrap; font-size: 14px; }
  .stage-panel { min-height: 0; }
}

@media (max-width: 680px) {
  .stage-panel { padding: 26px 20px; border-radius: 24px; }
  .p-body { grid-template-columns: 1fr; }
  .stage-panel .p-actions .btn { flex: 1 1 100%; justify-content: center; }
}


.svc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 40px;
}
.svc-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--wash);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .25s ease;
}
.svc-filter-btn:hover {
  background: #ebebee;
  color: var(--ink);
}
.svc-filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,.2);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .3s;
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: #c0c0c6;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 28px 56px -22px rgba(0,0,0,.14);
}
.svc-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
  border-color: #d2d2d7;
}

.svc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.svc-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--wash);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
  transition: transform .35s var(--ease);
}
.svc-card:hover .svc-logo-box {
  transform: scale(1.08);
}
.svc-badge-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--muted);
}
.svc-badge-pill.hot {
  background: rgba(241, 100, 30, 0.1);
  border-color: rgba(241, 100, 30, 0.25);
  color: #c74b0c;
}
.svc-badge-pill.core {
  background: var(--accent-soft);
  border-color: rgba(0, 113, 227, 0.2);
  color: var(--accent);
}

.svc-card h3 {
  font-size: 20.5px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.25;
}
.svc-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 22px;
  flex-grow: 1;
}

.svc-features {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.svc-feat {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-feat i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  flex-shrink: 0;
}

.svc-card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.svc-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s var(--ease), color .2s;
}
.svc-cta-link svg {
  transition: transform .3s var(--ease);
}
.svc-card:hover .svc-cta-link {
  color: var(--accent);
}
.svc-card:hover .svc-cta-link svg {
  transform: translateX(4px);
}
.svc-metric-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 3px 8px;
  border-radius: 999px;
}


/* ==========================================================================
   Case Studies / Work Section
   ========================================================================== */
.section-work {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--wash);
  border-top: 1px solid var(--line);
}
.case-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 40px;
  align-items: center;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 24px 50px -22px rgba(0,0,0,.15);
}
.case-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.case-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.case-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.case-quote {
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid var(--ink);
  padding-left: 14px;
}
.case-stats {
  background: var(--wash);
  border-radius: 22px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cs-num {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
}
.cs-num.emerald { color: var(--emerald-dark); }
.cs-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* Evidence-led case studies */
.case-list { margin-top: 40px; }
.case-card-evidence { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 20px 36px; align-items: stretch; }
.case-evidence { grid-column: 1; grid-row: 1 / span 2; margin: 0; min-width: 0; display: flex; flex-direction: column; }
.case-evidence-frame { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 21px; background: linear-gradient(145deg,#f7f8fa,#eef1f5); box-shadow: 0 10px 30px rgba(20,28,39,.06); }
.case-evidence-toolbar { min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid rgba(21,29,39,.08); background: rgba(255,255,255,.86); }
.case-evidence-toolbar > span, .work-empty-window-bar > span { display: flex; gap: 5px; }
.case-evidence-toolbar i, .work-empty-window-bar i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #d2d5db; }
.case-evidence-toolbar i:first-child, .work-empty-window-bar i:first-child { background: #ef8e82; }
.case-evidence-toolbar i:nth-child(2), .work-empty-window-bar i:nth-child(2) { background: #e7bd70; }
.case-evidence-toolbar i:nth-child(3), .work-empty-window-bar i:nth-child(3) { background: #7fc19b; }
.case-evidence-toolbar b { margin-left: 3px; font-size: 10px; line-height: 1.2; font-weight: 650; color: #5d626a; }
.case-evidence-toolbar small { margin-left: auto; color: #81858d; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.case-evidence-frame > a { position: relative; display: flex; min-height: 250px; max-height: 390px; align-items: center; justify-content: center; overflow: hidden; }
.case-evidence img { width: 100%; height: 100%; min-height: 250px; max-height: 390px; object-fit: contain; display: block; transition: transform .45s var(--ease); }
.case-evidence-frame > a:hover img, .case-evidence-frame > a:focus-visible img { transform: scale(1.025); }
.case-image-open { position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: rgba(26,29,34,.86); font-size: 11px; font-weight: 600; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }
.case-evidence-frame > a:hover .case-image-open, .case-evidence-frame > a:focus-visible .case-image-open { opacity: 1; transform: none; }
.case-evidence figcaption { display: flex; align-items: flex-start; gap: 8px; margin: 10px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.case-evidence-check { flex: 0 0 16px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: #087a5b; background: #e1f5ee; font-size: 10px; font-weight: 700; }
.case-copy { grid-column: 2; grid-row: 1; }
.case-card-evidence .case-title { font-size: clamp(21px,2vw,27px); }
.case-card-evidence .case-desc { margin-bottom: 12px; }
.case-card-evidence .case-badge { background: #f5f7f8; color: #535a64; }
.case-card-evidence .case-quote { margin: 18px 0 0; padding: 2px 0 2px 15px; border-left: 2px solid var(--emerald); color: #68717c; font-size: 14px; line-height: 1.55; }
.case-card-evidence .case-stats { grid-column: 2; grid-row: 2; align-self: start; padding: 20px; gap: 18px 12px; background: linear-gradient(140deg,#f6f7f8,#f0f2f3); border: 1px solid rgba(28,35,43,.035); }
.case-card-evidence .case-stats > div { min-width: 0; }
.case-card-evidence .cs-num { font-size: clamp(20px,2vw,28px); overflow-wrap: anywhere; }
.case-card-evidence .cs-lbl { font-size: 11px; line-height: 1.4; }
.case-card-evidence.sr { transition-duration: .72s; }
.work-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 32px 0 -12px; }
.work-filters a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 15px; border: 1px solid rgba(28,35,43,.12); border-radius: 999px; color: var(--ink-2); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 600; text-decoration: none; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.work-filters a:hover { transform: translateY(-1px); border-color: rgba(0,120,212,.35); color: var(--accent); }
.work-filters a.active { border-color: #1b1d20; color: #fff; background: #1b1d20; }
.work-empty { min-height: 330px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(260px,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(28px,5vw,70px); padding: clamp(28px,5vw,58px); border: 1px solid rgba(26,35,45,.1); border-radius: 30px; background: radial-gradient(ellipse at 7% 8%,rgba(29,130,104,.1),transparent 35%),linear-gradient(130deg,#fff 0%,#f5f7f8 62%,#edf2f4 100%); box-shadow: 0 20px 60px rgba(21,30,42,.055); }
.work-empty-art { min-height: 230px; position: relative; display: grid; place-items: center; }
.work-empty-window { z-index: 1; width: min(100%,390px); min-height: 198px; overflow: hidden; padding: 0 18px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: linear-gradient(145deg,#252c34,#14191f); box-shadow: 0 24px 50px rgba(17,24,33,.2); transform: rotate(-2deg); }
.work-empty-window-bar { height: 38px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.09); color: #bbc1c9; }
.work-empty-window-bar small { margin-left: 3px; font-size: 8px; letter-spacing: .11em; }
.work-empty-window-bar b { margin-left: auto; padding: 5px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #8d99a6; font-size: 7px; letter-spacing: .08em; }
.work-empty-chart { height: 118px; display: flex; align-items: end; gap: 7px; padding: 15px 5px 0; background: repeating-linear-gradient(to bottom,transparent 0,transparent 28px,rgba(255,255,255,.07) 29px,transparent 30px); }
.work-empty-chart span { flex: 1; height: var(--bar-height); min-width: 5px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg,#51c99b,#19876c); transform: scaleY(.08); transform-origin: bottom; opacity: .68; }
.work-empty.in .work-empty-chart span { animation: report-bar-rise .6s var(--ease) calc(var(--bar-order,0) * 45ms + 100ms) both; }
.work-empty-chart span:nth-child(1) { --bar-height: 23%; --bar-order: 0; }.work-empty-chart span:nth-child(2) { --bar-height: 34%; --bar-order: 1; }.work-empty-chart span:nth-child(3) { --bar-height: 28%; --bar-order: 2; }.work-empty-chart span:nth-child(4) { --bar-height: 46%; --bar-order: 3; }.work-empty-chart span:nth-child(5) { --bar-height: 38%; --bar-order: 4; }.work-empty-chart span:nth-child(6) { --bar-height: 57%; --bar-order: 5; }.work-empty-chart span:nth-child(7) { --bar-height: 49%; --bar-order: 6; }.work-empty-chart span:nth-child(8) { --bar-height: 68%; --bar-order: 7; }.work-empty-chart span:nth-child(9) { --bar-height: 61%; --bar-order: 8; }.work-empty-chart span:nth-child(10) { --bar-height: 78%; --bar-order: 9; }.work-empty-chart span:nth-child(11) { --bar-height: 70%; --bar-order: 10; }.work-empty-chart span:nth-child(12) { --bar-height: 92%; --bar-order: 11; }
.work-empty-caption { display: flex; justify-content: space-between; margin-top: 13px; }
.work-empty-caption span { height: 5px; width: 34%; border-radius: 99px; background: rgba(255,255,255,.15); }.work-empty-caption span:last-child { width: 19%; }
.work-empty-orbit { position: absolute; width: 210px; height: 210px; border: 1px solid rgba(19,131,99,.11); border-radius: 50%; }
.work-empty-orbit-one { transform: translate(29px,-8px); }.work-empty-orbit-two { width: 278px; height: 278px; transform: translate(-15px,12px); }
.work-empty-copy { position: relative; z-index: 1; max-width: 470px; }
.work-empty-kicker { display: inline-flex; align-items: center; gap: 9px; color: #087a5b; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.work-empty-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #11a579; box-shadow: 0 0 0 4px rgba(17,165,121,.11); }
.work-empty-copy h2 { max-width: 410px; margin: 15px 0 12px; color: var(--ink); font-family: var(--serif); font-size: clamp(30px,4vw,44px); font-weight: 400; letter-spacing: -.035em; line-height: 1.06; }
.work-empty-copy p { max-width: 430px; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.work-empty-note { display: block; max-width: 390px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(30,38,47,.1); color: var(--muted); font-size: 11px; line-height: 1.55; }
@keyframes report-bar-rise { to { transform: scaleY(1); opacity: .9; } }
.work-more { display: flex; justify-content: center; margin-top: 30px; }
.work-more .btn { gap: 18px; }
.case-empty { text-align: center; background: white; border: 1px solid var(--line); border-radius: 26px; padding: 56px 24px; }
.case-empty > span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.case-empty h2 { margin: 12px 0; font-size: 24px; }
.case-empty p { max-width: 560px; margin: auto; color: var(--ink-2); line-height: 1.6; font-size: 14px; }

/* Case study showcase inspired by the supplied preview. */
.case-story { min-width: 0; }
.case-story-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(30px, 5vw, 58px);
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 34px;
  color: #fff;
  background: radial-gradient(620px 380px at 0% 100%, rgba(22,163,74,.38), transparent 70%), radial-gradient(560px 340px at 100% 0%, rgba(37,99,235,.4), transparent 70%), #0b0b0c;
}
.case-story-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 22px; }
.case-story-tag { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 7px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #cfd4de; background: rgba(255,255,255,.05); font-size: 12px; line-height: 1.4; font-weight: 500; }
.case-story-tag i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #2fd36f; }
.case-story-title { margin: 0; color: #fff; font-size: clamp(30px,3.4vw,42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.case-story-lead { max-width: 460px; margin: 0; color: #b9bfcb; font-size: 17px; line-height: 1.6; }
.case-story-actions { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.case-story-actions li { display: flex; align-items: flex-start; gap: 12px; color: #e7eaf0; font-size: 14px; line-height: 1.5; }
.case-story-actions li::before { content: "✓"; width: 21px; height: 21px; flex: 0 0 21px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; color: #fff; background: #16a34a; font-size: 12px; font-weight: 700; }
.case-story-gallery { position: relative; min-width: 0; }
.case-report-tabs { display: inline-flex; max-width: 100%; gap: 4px; overflow-x: auto; margin-bottom: 17px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.08); scrollbar-width: thin; }
.case-report-tab { flex: 0 0 auto; padding: 10px 17px; border: 0; border-radius: 999px; color: #aab1bf; background: transparent; font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s ease, background .2s ease; }
.case-report-tab[aria-selected="true"] { color: #0b0b0c; background: #fff; }
.case-report-frame { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); }
.case-report-toolbar, .case-report-lightbox-toolbar { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid #e3e6ec; color: #3b4150; background: #f3f5f9; }
.case-report-toolbar > span, .case-report-lightbox-toolbar > span { display: flex; gap: 6px; }
.case-report-toolbar i, .case-report-lightbox-toolbar i { width: 9px; height: 9px; display: block; border-radius: 50%; background: #d2d5db; }
.case-report-toolbar i:first-child, .case-report-lightbox-toolbar i:first-child { background: #ff6159; }
.case-report-toolbar i:nth-child(2), .case-report-lightbox-toolbar i:nth-child(2) { background: #ffbd2e; }
.case-report-toolbar i:nth-child(3), .case-report-lightbox-toolbar i:nth-child(3) { background: #28c940; }
.case-report-toolbar b, .case-report-lightbox-toolbar b { min-width: 0; margin-left: 5px; overflow: hidden; color: #3b4150; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.case-report-toolbar small { margin-left: auto; color: #7b8190; font-size: 10px; white-space: nowrap; }
.case-report-panel[hidden] { display: none; }
.case-report-panel.is-active { animation: case-report-fade .28s ease both; }
@keyframes case-report-fade { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.case-report-open { position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; background: #fff; cursor: zoom-in; }
.case-report-shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.case-report-shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.case-report-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; color: #fff; background: rgba(11,11,12,.86); font-size: 11px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.case-report-open:hover .case-report-hint, .case-report-open:focus-visible .case-report-hint { opacity: 1; transform: none; }
.case-report-caption { margin: 0; padding: 10px 14px 12px; border-top: 1px solid #e3e6ec; color: #7b8190; font-size: 11px; line-height: 1.45; }
.case-story-chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.case-story-chip { position: absolute; display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.case-story-chip-growth { top: 65px; right: -14px; }
.case-story-chip-margin { bottom: 25px; left: -20px; }
.case-story-chip b { font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.case-story-chip span { color: var(--muted); font-size: 10px; font-weight: 500; }
.case-story-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; margin-top: 18px; }
.case-story-metric { min-width: 0; padding: 23px 24px 21px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.case-story-metric b { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.case-story-metric b.is-growth { color: #0f7b4f; }
.case-story-metric b small { color: var(--muted); font-size: .55em; font-weight: 600; }
.case-story-metric span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.case-story-quote { max-width: 820px; margin: 42px auto 0; text-align: center; }
.case-story-quote blockquote { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(23px, 2.8vw, 32px); line-height: 1.3; }
.case-story-quote figcaption { margin-top: 13px; color: var(--muted); font-size: 12px; }
.case-disclosure { max-width: 760px; margin: 25px auto 0; color: var(--muted); font-size: 11px; line-height: 1.65; text-align: center; }
.work-page-head { max-width: 800px; }
.work-page-head .work-back-link { display: table; margin-bottom: 17px; text-decoration: none; }
.work-page-cta { margin-top: 54px; padding: clamp(30px, 5vw, 54px); border: 1px solid var(--line); border-radius: 30px; background: var(--white); text-align: center; }
.work-page-cta h2 { margin: 0; color: var(--ink); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; }
.work-page-cta p { max-width: 540px; margin: 12px auto 24px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.work-page-cta .btn { gap: 12px; }
.case-report-lightbox { width: min(1120px, 94vw); max-width: none; max-height: none; margin: auto; padding: 0; overflow: visible; border: 0; border-radius: 17px; background: transparent; }
.case-report-lightbox::backdrop { background: rgba(5,6,8,.82); backdrop-filter: blur(4px); }
.case-report-lightbox-card { overflow: hidden; border-radius: 17px; background: #fff; }
.case-report-lightbox-toolbar { min-height: 46px; }
.case-report-lightbox-toolbar button { margin-left: auto; padding: 7px 12px; border: 0; border-radius: 999px; color: #fff; background: #202329; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.case-report-lightbox-card > img { display: block; width: 100%; max-height: min(76vh, 900px); object-fit: contain; background: #fff; }

@media (max-width: 1040px) {
  .case-story-stage { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 38px 30px 42px; }
  .case-story-info { max-width: 700px; }
  .case-story-gallery { width: 100%; }
  .case-story-chip-growth { right: -7px; }
  .case-story-chip-margin { left: -8px; }
}
@media (max-width: 640px) {
  .case-story-stage { gap: 26px; padding: 29px 18px 24px; border-radius: 25px; }
  .case-story-info { gap: 17px; }
  .case-story-title { font-size: clamp(28px, 8vw, 36px); }
  .case-story-lead { font-size: 15px; }
  .case-story-actions li { font-size: 13px; }
  .case-report-tabs { width: 100%; margin-bottom: 13px; }
  .case-report-tab { padding: 9px 13px; font-size: 11px; }
  .case-report-toolbar { min-height: 38px; gap: 5px; padding: 0 10px; }
  .case-report-toolbar b { font-size: 9px; }
  .case-report-toolbar small { font-size: 8px; }
  .case-story-chips { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
  .case-story-chip, .case-story-chip-growth, .case-story-chip-margin { position: static; min-width: 0; padding: 11px 12px; border-radius: 13px; }
  .case-story-chip b { font-size: 19px; overflow-wrap: anywhere; }
  .case-story-chip span { font-size: 9px; }
  .case-story-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
  .case-story-metric { padding: 16px 14px 14px; border-radius: 16px; }
  .case-story-metric b { font-size: clamp(19px, 6vw, 26px); }
  .case-story-metric span { margin-top: 7px; font-size: 10px; }
  .case-story-quote { margin-top: 30px; }
  .work-page-cta { margin-top: 38px; border-radius: 23px; }
}

/* ==========================================================================
   Store Audit / Contact Form Section
   ========================================================================== */
.section-audit {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 80px);
}
.audit-form-box {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 20px 40px -20px rgba(0,0,0,.08);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}
textarea.form-control {
  height: 110px;
  padding: 14px 16px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.audit-notice {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 14px;
  text-align: center;
}

/* Form success alert */
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  padding: 20px;
  color: #065f46;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(64px, 8vw, 96px) 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-brand {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 14px;
}
.foot-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #a1a1a6;
  max-width: 24em;
}
.foot-col h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 18px;
}
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-links a {
  font-size: 14.5px;
  color: #d2d2d7;
  transition: color .2s;
}
.foot-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #86868b;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.rv {
  opacity: 0;
  animation: rise 1.05s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 95ms + 120ms);
}
.media { animation: reveal 1.5s var(--ease) .35s both; }
.layer > svg, .layer > img { animation: settle 1.9s var(--ease) .35s both; }
.plate { animation: fade .9s var(--ease) 1.25s both; }
.tag { animation: fade .9s var(--ease) 1.45s both; }
.bio { animation: rise 1s var(--ease) 1.5s both; }

.js.animations-ready .sr {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js.animations-ready .sr.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .js .sr { opacity: 1; transform: none; }
  .layer { transform: none !important; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .founder {
    max-width: none;
    justify-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
  }
  .bio { margin-top: 0; padding: 0 0 8px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 8px 0 22px; }
  .links, .cta-wrap, .panel { display: none; }
  .burger { display: block; }
  .m { display: block; }
  .management-breakdown { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .case-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .case-card-evidence .case-evidence, .case-card-evidence .case-copy, .case-card-evidence .case-stats { grid-column: 1; grid-row: auto; }
  .case-card-evidence .case-evidence { min-height: 210px; }
  .case-card-evidence .case-evidence > a, .case-card-evidence .case-evidence img, .case-evidence-empty { min-height: 210px; }
  .case-card-evidence .case-evidence-frame > a { min-height: 210px; }
  .work-empty { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 28px 24px; }
  .work-empty-art { min-height: 205px; }
  .work-empty-window { max-width: 370px; }
  .work-empty-copy { max-width: 560px; }
}

@media (max-width: 640px) {
  .nav-shell { padding-top: 12px; }
  .founder { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 420px; margin: 0 auto; }
  .hero { padding-top: 36px; }
  .h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .tag { left: 12px; top: 10%; }
  .ctas { flex-direction: column; }
  .ctas .btn { width: 100%; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .case-card-evidence { padding: 20px; border-radius: 24px; }
  .case-card-evidence .case-stats { padding: 16px; gap: 15px 10px; border-radius: 17px; }
  .case-evidence-toolbar { gap: 8px; padding: 0 10px; }
  .case-evidence-toolbar b { font-size: 9px; }
  .case-evidence-toolbar small { font-size: 8px; }
  .work-empty { padding: 24px 20px 28px; border-radius: 24px; }
  .work-empty-art { min-height: 178px; }
  .work-empty-window { min-height: 178px; padding: 0 13px 14px; border-radius: 15px; }
  .work-empty-chart { height: 100px; gap: 5px; }
  .work-empty-orbit { width: 170px; height: 170px; }
  .work-empty-orbit-two { width: 224px; height: 224px; }
}

/* Footer social and messaging links */
.footer-book-link{color:var(--accent)!important;font-weight:600;margin-top:8px}.footer-book-link span{display:inline-block;transition:transform .2s}.footer-book-link:hover span{transform:translateX(3px)}.footer-socials{display:flex;gap:9px;margin-top:8px}.footer-socials a{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.16);border-radius:50%;color:#e8e8eb;transition:background .2s,border-color .2s,color .2s,transform .2s}.footer-socials a:hover{background:#fff;border-color:#fff;color:#17191c;transform:translateY(-2px)}.footer-socials svg{width:17px;height:17px;fill:currentColor}

/* ==========================================================================
   HOW IT WORKS SECTION
   Clean, Apple-inspired 4-step store operations lifecycle.
   ========================================================================== */
.hiw-section {
  padding: 104px 0 112px;
  background: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.08) 0%, rgba(245, 246, 249, 0) 65%), #f5f6f9;
  color: #0b0b0c;
  position: relative;
  overflow: hidden;
}

.hiw-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hiw-head {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.hiw-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #2563eb;
  margin-bottom: 16px;
}

.hiw-label::before,
.hiw-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #2563eb;
  opacity: 0.45;
}

.hiw-title {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #0b0b0c;
  margin: 0;
}

.hiw-title .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}

.hiw-sub {
  margin: 18px auto 0;
  max-width: 660px;
  font-size: 19px;
  line-height: 1.55;
  color: #4a4f57;
}

/* Progress rail (desktop only) */
.hiw-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 22px;
  align-items: center;
}

.hiw-rail-step {
  display: flex;
  align-items: center;
  width: 100%;
}

.hiw-rail-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e3e6ec;
  background: #ffffff;
  color: #7b8190;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  z-index: 2;
}

.hiw-rail-node.active {
  background: #0b0b0c;
  border-color: #0b0b0c;
  color: #ffffff;
}

.hiw-rail-line {
  flex-grow: 1;
  height: 2px;
  background: #e3e6ec;
  position: relative;
  margin-left: 12px;
  border-radius: 2px;
  overflow: hidden;
}

.hiw-rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #2563eb;
  border-radius: 2px;
  transition: width 0.45s ease-out;
}

/* 4-card Grid */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.hiw-card {
  background: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 26px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
  min-height: 520px;
}

/* Featured dark card (Step 3) */
.hiw-card-dark {
  background: #0b0b0c;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hiw-card-badge {
  display: none; /* hidden on desktop, visible on tablet/mobile */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0b0b0c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hiw-card-dark .hiw-card-badge {
  background: #2563eb;
  color: #ffffff;
}

.hiw-card-head {
  margin-bottom: 20px;
}

.hiw-card-title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #0b0b0c;
  margin: 0 0 10px;
  line-height: 1.2;
}

.hiw-card-dark .hiw-card-title {
  color: #ffffff;
}

.hiw-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #4a4f57;
  margin: 0 0 8px;
}

.hiw-card-dark .hiw-card-desc {
  color: #d1d5db;
}

.hiw-card-desc strong,
.hiw-card-desc b {
  font-weight: 600;
  color: #0b0b0c;
}

.hiw-card-dark .hiw-card-desc strong,
.hiw-card-dark .hiw-card-desc b {
  color: #ffffff;
}

/* Illustration Box */
.hiw-screen {
  height: 262px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f3f7fd 0%, #e8f0fe 100%);
  border: 1px solid #dce6f5;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.hiw-screen-takeover {
  justify-content: flex-start;
  gap: 10px;
}

.hiw-card-dark .hiw-screen {
  background: #14161c;
  border-color: rgba(255, 255, 255, 0.08);
}

.hiw-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hiw-screen-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -.01em;
}

.hiw-card-dark .hiw-screen-title {
  color: #ffffff;
}

/* Chips */
.hiw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.hiw-chip-green {
  background: #eaf7ee;
  color: #16a34a;
}

.hiw-chip-amber {
  background: #fdf0d9;
  color: #b45309;
}

.hiw-chip-red {
  background: #fde8e6;
  color: #b42318;
}

.hiw-chip-blue {
  background: #e0edff;
  color: #2563eb;
}

/* Screen 1 Rows */
.hiw-audit-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hiw-audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Screen 2 Tabs & Switch */
.hiw-switch-bar {
  display: flex;
  background: #dce3ee;
  padding: 3px;
  border-radius: 999px;
  gap: 3px;
  margin-bottom: 12px;
}

.hiw-switch-tab {
  flex: 1;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
}

.hiw-switch-tab.active {
  background: #ffffff;
  color: #0b0b0c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hiw-switch-tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.hiw-check-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hiw-check-rows[hidden] {
  display: none !important;
}

.hiw-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hiw-tick-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eaf7ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-tick-circle svg {
  stroke: #16a34a;
}

/* Screen 3 Rows (Dark) */
.hiw-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
}

.hiw-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: hiwPulse 2s infinite ease-in-out;
}

@keyframes hiwPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

.hiw-dark-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hiw-dark-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #1d212a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  color: #e5e7eb;
}

.hiw-dark-icon {
  width: 16px;
  height: 16px;
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Screen 4 Chart & Pills */
.hiw-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 120px;
  padding: 10px 14px 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  gap: 18px;
}

.hiw-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  flex: 1;
}

.hiw-chart-bar {
  width: 100%;
  max-width: 42px;
  border-radius: 6px 6px 0 0;
  transition: height 0.3s ease;
}

.hiw-bar-sales {
  height: 88%;
  background: #2563eb;
}

.hiw-bar-costs {
  height: 54%;
  background: #94a3b8;
}

.hiw-bar-profit {
  height: 34%;
  background: #16a34a;
}

.hiw-chart-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.hiw-chart-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.hiw-report-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hiw-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
}

/* Small note under cards */
.hiw-disclaimer {
  text-align: center;
  font-size: 13.5px;
  color: #7b8190;
  margin: 30px auto 44px;
}

/* Call-to-Action Panel */
.hiw-cta {
  background: radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.32) 0%, rgba(11, 11, 12, 0) 65%), #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.hiw-cta-copy {
  max-width: 660px;
}

.hiw-cta-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.03em;
  color: #ffffff;
  margin: 0 0 12px;
}

.hiw-cta-title .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
}

.hiw-cta-text {
  font-size: 16px;
  line-height: 1.6;
  color: #9ca3af;
  margin: 0;
}

.hiw-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: 250px;
}

.hiw-btn-white {
  background: #ffffff !important;
  color: #0b0b0c !important;
  font-weight: 600;
  border: 1px solid #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease !important;
}

.hiw-btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.hiw-btn-white:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hiw-btn-dark-line {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  transition: transform 0.25s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}

.hiw-btn-dark-line:hover {
  transform: translateY(-1px);
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.hiw-btn-dark-line:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .hiw-rail {
    display: none;
  }
  .hiw-card-badge {
    display: inline-flex;
  }
  .hiw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .hiw-section {
    padding: 76px 0 84px;
  }
  .hiw-head {
    margin-bottom: 36px;
    text-align: left;
  }
  .hiw-title {
    font-size: 34px;
  }
  .hiw-sub {
    font-size: 16px;
    margin-top: 14px;
  }
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hiw-card {
    min-height: auto;
    padding: 22px 18px 18px;
    border-radius: 22px;
  }
  .hiw-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 22px;
    border-radius: 24px;
  }
  .hiw-cta-actions {
    min-width: 100%;
    margin-top: 8px;
  }
  .hiw-cta-actions .btn {
    width: 100%;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hiw-rail-node,
  .hiw-rail-fill,
  .hiw-live-dot,
  .hiw-btn-white,
  .hiw-btn-dark-line {
    transition: none !important;
    animation: none !important;
  }
  .hiw-rail-node {
    background: #0b0b0c !important;
    border-color: #0b0b0c !important;
    color: #ffffff !important;
  }
  .hiw-rail-fill {
    width: 100% !important;
  }
}

