/* ==========================================================================
   TrueDose — Design System
   Clinical-trust aesthetic: high-contrast, editorial, one sharp accent.
   Hand-written CSS using CSS variables (no framework).
   ========================================================================== */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* Color */
  --ink:        #08111A;  /* near-black blue, body text + "True" */
  --paper:      #FFFFFF;  /* clean white background */
  --teal:       #04C0BD;  /* primary accent, "Dose", CTAs */
  --teal-deep:  #067F7C;  /* hover/pressed */
  --signal:     #F2452C;  /* alert/counterfeit red, used sparingly */
  --verified:   #10C06C;  /* genuine/verified green */
  --slate:      #3E4C56;  /* secondary text */
  --line:       #E4E0D8;  /* hairline borders */
  --ink-panel:  #0B141B;  /* dark section background */

  /* Derived */
  --paper-2:    #F4F5F5;  /* faint panel fill on light bg */
  --ink-2:      #15212b;  /* slightly raised dark panel */
  --ink-line:   #1d2c37;  /* hairline on dark */
  --ink-soft:   #9fb0ba;  /* secondary text on dark */
  --signal-bg:  #fde9e4;
  --verified-bg:#dcf8ea;
  --teal-bg:    #d8f6f4;

  /* Type */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --pad:  clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --radius-sm: 9px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14,26,36,.06), 0 1px 3px rgba(14,26,36,.05);
  --shadow-md: 0 6px 20px rgba(14,26,36,.08), 0 2px 6px rgba(14,26,36,.05);
  --shadow-lg: 0 24px 60px rgba(14,26,36,.16), 0 8px 20px rgba(14,26,36,.08);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .55s;
}

/* ----- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.012em; /* Inter reads tighter with a touch of negative tracking */
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----- Typography -------------------------------------------------------- */
/* Instrument Serif ships a single 400 weight — use it at normal weight so it never faux-bolds */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: -0.01em; }
p { color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--slate); line-height: 1.55; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--teal); display: inline-block;
}

/* ----- Layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; }
.divider { border: 0; border-top: 1px solid var(--line); }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn-on-dark { background: transparent; color: var(--paper); border-color: var(--ink-line); }
.btn-on-dark:hover { border-color: var(--teal); color: #fff; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* ----- Nav --------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.brand .t-true { color: var(--ink); }
.brand .t-dose { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { font-size: .98rem; font-weight: 500; color: var(--ink); position: relative; padding: .25rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--teal); transition: width .22s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 10px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: .2s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile dropdown menu is hidden on desktop; only the inline nav-links show there */
.nav-menu { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: block;
    position: fixed; inset: 72px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.25rem; }
  .nav-menu li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-menu .btn { display: flex; justify-content: center; margin-top: 1rem; padding: .9rem 1.4rem; border-bottom: 0; }
}

/* ----- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 .accent { color: var(--teal); }
.hero-sub { max-width: 36ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.trust-strip {
  font-family: var(--font-mono); font-size: .8rem; color: var(--slate);
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; line-height: 1.5;
}
.trust-strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* Hero visual (coded — IMG-01) */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.phone {
  position: relative; aspect-ratio: 9 / 17.6; background: var(--ink-panel);
  border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-line);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #11212b, #0b141b);
  display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 6px; border-radius: 6px; background: #000; opacity: .5; z-index: 3; }
.cam-view { flex: 1; position: relative; background:
  radial-gradient(120% 80% at 50% 0%, #1b2f3a 0%, #0d1820 70%);
  display: flex; align-items: center; justify-content: center; }
/* blister pack illustration */
/* Centered within the scan-corner frame (corners span 16%–70%, centre ≈ 43%) */
.blister { width: 60%; aspect-ratio: 3/4; background: linear-gradient(135deg,#d9dde0,#aeb6bc); border-radius: 10px; position: absolute; top: 43%; left: 50%; transform: translate(-50%, -50%) rotate(-6deg); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.blister::before {
  content: ""; position: absolute; inset: 12% 10%;
  background-image: radial-gradient(circle, #f4f6f7 38%, #c4cace 40%);
  background-size: 25% 20%; background-position: 0 0;
  opacity: .9; border-radius: 4px;
}
.blister .strip { position:absolute; top: 6%; left: 8%; right: 8%; height: 14%; background: var(--teal); border-radius: 4px; opacity: .85; }
.scan-line { position: absolute; left: 8%; right: 8%; height: 2px; background: var(--verified); box-shadow: 0 0 14px 2px var(--verified); top: 30%; animation: scan 2.8s var(--ease) infinite; }
.scan-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--teal); }
.scan-corner.tl { top: 16%; left: 12%; border-right: 0; border-bottom: 0; }
.scan-corner.tr { top: 16%; right: 12%; border-left: 0; border-bottom: 0; }
.scan-corner.bl { bottom: 30%; left: 12%; border-right: 0; border-top: 0; }
.scan-corner.br { bottom: 30%; right: 12%; border-left: 0; border-top: 0; }
@keyframes scan { 0%,100% { top: 22%; } 50% { top: 64%; } }

.verdict-card {
  position: absolute; left: 8%; right: 8%; bottom: 5%;
  background: rgba(251,250,247,.97); border-radius: 14px; padding: .9rem 1rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.35); z-index: 4;
}
.verdict-top { display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono);
  font-weight: 600; font-size: .72rem; letter-spacing: .08em; padding: .28rem .6rem; border-radius: 999px;
}
.pill-verified { background: var(--verified-bg); color: #0c7a47; }
.pill-suspect  { background: var(--signal-bg);  color: #b8341f; }
.pill svg { width: 13px; height: 13px; }
.verdict-card .drug { font-weight: 600; font-size: .92rem; }
.verdict-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--slate); margin-top: .15rem; }
/* offset "verified" stamp — grid-breaking pull element */
.stamp {
  position: absolute; top: -18px; right: -18px; width: 96px; height: 96px;
  display: grid; place-items: center; transform: rotate(12deg); z-index: 6;
  filter: drop-shadow(0 8px 16px rgba(14,26,36,.18));
}
.stamp svg { width: 100%; height: 100%; }

/* ----- Cards & grids ----------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--teal-bg); color: var(--teal-deep); margin-bottom: 1rem;
}
.card .icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--slate); font-size: .98rem; }

/* Stat cards */
.stat-card { text-align: left; }
.stat-card .stat-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink); margin-bottom: .5rem; }
.stat-card .stat-num.signal { color: var(--signal); }
.stat-card .label { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: .65rem; }
.stat-card .src { font-size: .82rem; color: var(--slate); margin-top: .8rem; }
.stat-card .src a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ----- How it works steps ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.step::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); }
.step:hover::before { transform: scaleX(1); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .98rem; }

/* ----- Dark sections ----------------------------------------------------- */
.dark { background: var(--ink-panel); color: var(--paper); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark p { color: var(--ink-soft); }
.dark .eyebrow { color: var(--teal); }
.dark .eyebrow::before { background: var(--teal); }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); box-shadow: none; }
.dark .card:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--ink-line)); }
.dark .card p { color: var(--ink-soft); }
.dark .divider { border-top-color: var(--ink-line); }

/* AI blocks */
.ai-block { padding: 1.5rem; border: 1px solid var(--ink-line); border-radius: var(--radius); background: var(--ink-2); }
.ai-block .label { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .7rem; display: block; }
.ai-block p { color: var(--ink-soft); font-size: .97rem; }

/* Architecture diagram */
.arch { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.arch svg { width: 100%; height: auto; }

/* ----- Product (tabs + mockups) ----------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tab {
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--slate);
  background: none; border: 0; border-bottom: 2px solid transparent; padding: .7rem 1rem; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease); margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--teal-deep); border-bottom-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s var(--ease); }
.product-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.product-copy h3 { margin-bottom: .6rem; }
.product-copy p { color: var(--slate); }
.product-copy ul.ticks { margin-top: 1.1rem; display: grid; gap: .6rem; }
.product-copy ul.ticks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; }
.product-copy ul.ticks svg { width: 18px; height: 18px; color: var(--verified); flex: none; margin-top: .2rem; }

/* Mockup chrome */
.mockup { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.mockup-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.mockup-bar .url { font-family: var(--font-mono); font-size: .72rem; color: var(--slate); margin-left: .6rem; }
.mockup-body { padding: 1.1rem; }

/* phone mockup variant (scan result) */
.mock-phone { max-width: 320px; margin-inline: auto; border-radius: 26px; padding: .8rem; background: var(--ink-panel); border: 1px solid var(--ink-line); box-shadow: var(--shadow-lg); }
.mock-phone .screen { background: var(--paper); border-radius: 18px; overflow: hidden; }
.mock-phone .thumb { height: 120px; background: radial-gradient(120% 90% at 50% 0%, #20323d, #0d1820); display: grid; place-items: center; position: relative; }
.mock-phone .thumb .mini-blister { width: 46px; height: 62px; background: linear-gradient(135deg,#d9dde0,#aeb6bc); border-radius: 6px; transform: rotate(-7deg); }
.mock-phone .result-body { padding: 1rem; }
.mock-phone .big-pill { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; padding: .6rem .8rem; border-radius: 10px; margin-bottom: .9rem; }
.mock-phone .big-pill svg { width: 20px; height: 20px; }
.big-pill.verified { background: var(--verified-bg); color: #0c7a47; }
.big-pill.suspect { background: var(--signal-bg); color: #b8341f; }
.reason-line { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .78rem; color: var(--ink); padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.reason-line svg { width: 14px; height: 14px; flex: none; }
.reason-line .ok { color: var(--verified); }
.reason-line .bad { color: var(--signal); }
.mock-phone .stamp-foot { font-family: var(--font-mono); font-size: .7rem; color: var(--slate); margin-top: .8rem; display: flex; justify-content: space-between; }

/* dashboard mockup */
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; margin-bottom: 1rem; }
.metric { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; background: var(--paper); }
.metric .m-label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.metric .m-num { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.metric .m-num.alert { color: var(--signal); }
.metric .m-num.ok { color: var(--verified); }
table.data { width: 100%; border-collapse: collapse; font-size: .8rem; }
table.data th, table.data td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
table.data th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
table.data td.mono, table.data td .b { font-family: var(--font-mono); }
.verdict-tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.verdict-tag.g { background: var(--verified-bg); color: #0c7a47; }
.verdict-tag.s { background: var(--signal-bg); color: #b8341f; }
.verdict-tag.r { background: #efe9ff; color: #5b3fb8; }
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: 1rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.mini-chart i { flex: 1; background: var(--teal); border-radius: 3px 3px 0 0; opacity: .85; display: block; }
.mini-chart i.peak { background: var(--signal); }
.export-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; gap: 1rem; flex-wrap: wrap; }
.filter-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: .68rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--slate); }
.chip.on { background: var(--teal-bg); border-color: var(--teal); color: var(--teal-deep); }

/* regulator map */
.region-map { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: stretch; }
.map-canvas { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; position: relative; min-height: 200px; overflow: hidden; }
.cluster { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--signal) 30%, transparent); border: 1.5px solid var(--signal); display: grid; place-items: center; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; color: #b8341f; }
.region-list li { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.region-list .count { font-family: var(--font-mono); font-weight: 700; color: var(--signal); }

/* ----- Infrastructure ---------------------------------------------------- */
.infra-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.infra-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.infra-card .svc-list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.svc-tag { font-family: var(--font-mono); font-size: .72rem; padding: .3rem .6rem; border-radius: 7px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); }
.logo-strip { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper-2); }
.logo-strip .brand-logo { font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; color: var(--slate); font-size: 1.4rem; display: inline-flex; align-items: center; gap: .5rem; }
.disclaimer { font-size: .82rem; color: var(--slate); margin-top: 1rem; }
.stack-table { margin-top: 2rem; width: 100%; border-collapse: collapse; font-size: .9rem; }
.stack-table th, .stack-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.stack-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.stack-table td .b { font-family: var(--font-mono); font-size: .8rem; color: var(--teal-deep); }

/* ----- Why now ----------------------------------------------------------- */
.whynow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.whynow-list { display: grid; gap: 1.1rem; }
.whynow-list li { display: flex; gap: .9rem; align-items: flex-start; }
.whynow-list .num { font-family: var(--font-mono); color: var(--teal-deep); font-weight: 700; flex: none; }
.whynow-list b { display: block; font-family: var(--font-body); }
.whynow-list p { color: var(--slate); font-size: .96rem; margin-top: .15rem; }

/* ----- Market ------------------------------------------------------------ */
.market-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.market-card h3 { font-size: 1.2rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .55rem; }
.market-card ul li { padding: .4rem 0; border-bottom: 1px solid var(--line); color: var(--slate); font-size: .96rem; }
.market-card ul li:last-child { border-bottom: 0; }
.market-card .place { display: inline-block; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; font-size: .82rem; margin: .2rem .3rem 0 0; }

/* ----- Traction ---------------------------------------------------------- */
.status-list { display: grid; gap: 1rem; max-width: 760px; }
.status-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.status-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--verified); margin-top: .5rem; flex: none; box-shadow: 0 0 0 4px var(--verified-bg); }
.status-item .dot.pending { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-bg); }
.status-item p { font-size: .98rem; }
.status-item .tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.partner-row { margin-top: 2.5rem; }
.partner-logos { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.partner-ph { width: 150px; height: 64px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); font-family: var(--font-mono); font-size: .72rem; color: var(--slate); text-align: center; }
.note-flag { font-family: var(--font-mono); font-size: .78rem; color: var(--teal-deep); background: var(--teal-bg); border-radius: 6px; padding: .15rem .5rem; }

/* ----- Roadmap ----------------------------------------------------------- */
.roadmap-table { width: 100%; border-collapse: collapse; }
.roadmap-table th, .roadmap-table td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.roadmap-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.roadmap-table td:first-child { font-family: var(--font-mono); font-weight: 700; color: var(--teal-deep); white-space: nowrap; width: 1%; }
.roadmap-table tr:hover td { background: var(--paper-2); }
.phase-badge { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); margin-right: .6rem; }

/* ----- Team -------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.team-card { display: flex; align-items: center; gap: 1.8rem; text-align: left; padding: 2rem; }
.tc-info { min-width: 0; }
.avatar {
  width: 190px; height: 190px; border-radius: 16px; margin: 0; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 3.8rem; font-weight: 400;
  background: linear-gradient(150deg, var(--teal-bg), #fff); color: var(--teal-deep);
  border: 1px solid var(--line); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team-card h3 { font-size: 1.15rem; }
.team-card .role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); margin: .25rem 0 .6rem; }
.team-card .bio { font-size: .9rem; color: var(--slate); }
.team-card .li { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; font-size: .85rem; color: var(--teal-deep); font-weight: 600; }
.team-card .li svg { width: 16px; height: 16px; }
.team-note { margin-top: 1.6rem; color: var(--slate); font-size: .95rem; }

/* ----- Compliance -------------------------------------------------------- */
.compliance-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.commit-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.commit-list li svg { width: 19px; height: 19px; color: var(--teal); flex: none; margin-top: .2rem; }
.commit-list a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.disclaimer-box { background: var(--ink-panel); color: var(--paper); border-radius: var(--radius); padding: 1.6rem; }
.disclaimer-box .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.disclaimer-box p { color: var(--ink-soft); font-size: .98rem; }

/* ----- Contact / form ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-aside .email-link { font-family: var(--font-mono); font-size: 1.05rem; color: var(--teal-deep); display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.contact-aside ul.assure { margin-top: 1.6rem; display: grid; gap: .7rem; }
.contact-aside ul.assure li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; color: var(--slate); }
.contact-aside ul.assure svg { width: 17px; height: 17px; color: var(--verified); flex: none; }

form.pilot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2rem); box-shadow: var(--shadow-sm); }
/* The form is a white card inside the dark contact section — keep its text dark */
.dark form.pilot,
.dark form.pilot label,
.dark form.pilot input,
.dark form.pilot select,
.dark form.pilot textarea { color: var(--ink); }
.dark form.pilot .form-note { color: var(--slate); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field .req { color: var(--signal); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field .error-msg { color: var(--signal); font-size: .82rem; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--signal); }
.field.invalid .error-msg { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form-note { font-size: .8rem; color: var(--slate); }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: 10px; background: var(--verified-bg); color: #0c7a47; font-weight: 600; margin-bottom: 1.2rem; align-items: center; gap: .5rem; }
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; }

/* ----- Footer ------------------------------------------------------------ */
.footer { background: var(--ink-panel); color: #c6d0d6; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer a { color: #c6d0d6; }
.footer a:hover { color: #fff; }
/* Override the global `p { color: var(--ink) }` so footer paragraphs stay light on the dark panel */
.footer p { color: #c6d0d6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer .brand { color: #fff; margin-bottom: .8rem; }
.footer .brand .t-true { color: #fff; }
.footer .tagline { font-size: .95rem; max-width: 32ch; }
.footer h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; font-weight: 600; }
.footer ul li { padding: .3rem 0; }
.footer-links a { font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line); font-size: .85rem; }
.footer .social { display: inline-flex; gap: .8rem; }
.footer .social a { width: 38px; height: 38px; border: 1px solid var(--ink-line); border-radius: 9px; display: grid; place-items: center; transition: .2s var(--ease); }
.footer .social a:hover { border-color: var(--teal); background: var(--ink-2); }
.footer .social svg { width: 18px; height: 18px; }

/* ----- Legal pages ------------------------------------------------------- */
.legal { padding-top: clamp(7rem, 12vw, 9rem); padding-bottom: clamp(3rem,7vw,5rem); }
.legal-wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem,4vw,3rem); margin-bottom: .5rem; }
.legal .updated { font-family: var(--font-mono); font-size: .8rem; color: var(--slate); margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.4rem,2.4vw,1.8rem); margin: 2.5rem 0 .8rem; }
.legal h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--ink); font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal ul li { margin-bottom: .4rem; }
.legal a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal .callout { background: var(--paper-2); border-left: 3px solid var(--teal); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; font-size: .95rem; }
.legal .review-flag { font-family: var(--font-mono); font-size: .8rem; color: var(--signal); background: var(--signal-bg); padding: .6rem .9rem; border-radius: 8px; display: inline-block; margin-bottom: 2rem; }
.back-home { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--teal-deep); margin-top: 2.5rem; }

/* ----- Scroll reveal ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Hero staggered load */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .load { opacity: 0; animation: fadeUp .7s var(--ease) forwards; }
.hero .load.d1 { animation-delay: 0ms; }
.hero .load.d2 { animation-delay: 120ms; }
.hero .load.d3 { animation-delay: 240ms; }
.hero .load.d4 { animation-delay: 360ms; }

/* ----- Imagery ----------------------------------------------------------- */
/* Duotone photos: baked into the brand ramp at build time (tools/process-photos.mjs),
   so here they just need a consistent frame — same radius + crop per slot. */
.media-photo {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: var(--ink-panel); line-height: 0;
}
.media-photo img { width: 100%; height: 100%; object-fit: cover; }
.media-photo.problem-shelf { aspect-ratio: 3 / 2; }

/* Why-now context band spans the full grid width below the copy */
.whynow-photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Tiny brand favicon in the product mockups' address bar (realistic chrome) */
.mockup-bar .fav { width: 15px; height: 15px; flex: none; margin-left: .55rem; display: inline-flex; }
.mockup-bar .fav svg { width: 15px; height: 15px; }
.mockup-bar .fav + .url { margin-left: .4rem; }

/* Stat-card spot icons (Lucide) */
.stat-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.stat-head .label { margin-bottom: 0; }
.stat-ic {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--teal-bg); color: var(--teal-deep);
}
.stat-ic svg { width: 17px; height: 17px; }

/* How-it-works step illustration banner (single-accent --teal SVGs) */
.step-illus {
  position: relative; margin: -1.9rem -1.6rem 1.3rem; padding: 1.3rem 1.4rem .9rem;
  background: linear-gradient(160deg, var(--teal-bg), #fff);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
}
.step-illus img { width: 100%; max-width: 200px; height: auto; }
.step-illus .step-num {
  position: absolute; top: .55rem; right: .9rem; font-family: var(--font-display);
  font-size: 2.3rem; line-height: 1; color: color-mix(in srgb, var(--teal-deep) 26%, transparent);
}

/* Faint circuit dot-grid behind the dark AI band (~6% effective) */
#ai { position: relative; isolation: isolate; }
#ai::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/illustrations/ai-texture.svg");
  background-size: 48px 48px; opacity: .14;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 85%);
}
#ai > .wrap { position: relative; z-index: 1; }

/* Subtle film grain behind the hero for atmosphere (~4%) */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/illustrations/hero-grain.svg");
  background-size: 180px 180px; opacity: .04;
}
.hero > .wrap { position: relative; z-index: 1; }

/* ----- Impact (dark bento metrics band) --------------------------------- */
#impact { position: relative; isolation: isolate; overflow: hidden; }
#impact::before { /* faint circuit dot-grid for depth */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/illustrations/ai-texture.svg"); background-size: 48px 48px; opacity: .12;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
}
#impact::after { /* soft teal glow */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 58vw; height: 58vw; max-width: 720px; max-height: 720px; top: -20%; right: -8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 20%, transparent), transparent 62%);
}
#impact > .wrap { position: relative; z-index: 1; }

.impact-bento { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; align-items: stretch; }

.impact-feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .7rem;
  background: linear-gradient(165deg, color-mix(in srgb, var(--teal) 16%, var(--ink-2)), var(--ink-2));
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--ink-line));
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.1rem);
}
.impact-feature__num {
  font-family: var(--font-display); font-weight: 400; line-height: .95; color: #fff;
  font-size: clamp(3.2rem, 6.5vw, 5.2rem); margin-top: .2rem;
}
.impact-feature__lead { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.impact-feature .src { margin-top: auto; padding-top: .8rem; font-size: .8rem; }
.impact-feature .src a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

.impact-rows { display: grid; gap: 1.1rem; }
.impact-row {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.impact-row:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 50%, var(--ink-line)); }
.impact-row__ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, var(--ink-line));
}
.impact-row__ic svg { width: 22px; height: 22px; }
.impact-row__num { font-family: var(--font-display); font-weight: 400; line-height: 1; color: #fff; font-size: 1.85rem; }
.impact-row__body p { color: var(--ink-soft); font-size: .9rem; line-height: 1.45; margin-top: .3rem; }

.itag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--ink-line);
  background: rgba(255,255,255,.03); color: var(--ink-soft); white-space: nowrap;
}
.itag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.itag.goal { color: var(--teal); }
.itag.design { color: var(--verified); }
.impact-row .itag { align-self: center; }
.impact-note { margin-top: clamp(1.4rem, 3vw, 2rem); font-size: .85rem; color: var(--ink-soft); }

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; }
  .cols-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { flex-direction: column; text-align: center; gap: 1rem; }
  .team-card .avatar { margin-bottom: .25rem; }
  .product-layout, .whynow-grid, .compliance-grid, .contact-grid, .region-map, .impact-bento { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4, .steps, .infra-cols, .market-grid, .team-grid, .metric-row { grid-template-columns: 1fr; }
  .team-grid { max-width: 440px; margin-inline: auto; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Impact rows: drop the icon, float the tag top-right over the text */
  .impact-row { grid-template-columns: 1fr; padding-top: 2.6rem; }
  .impact-row__ic { display: none; }
  .impact-row .itag { position: absolute; top: 1.1rem; left: 1.4rem; }
  /* scan-result cards fill the column on mobile (auto margins would otherwise shrink them to content width) */
  .mock-phone { max-width: 100%; width: 100%; margin-inline: 0; }
  .stamp { width: 76px; height: 76px; top: -14px; right: -8px; }
}

/* ----- How-it-works autoplay tabs (Osmo Supply resource, themed) --------- */
.tab-layout__wrap {
  z-index: 1;
  grid-row-gap: 3em;
  flex-flow: wrap;
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  position: relative;
}
.tab-layout__col { width: 50%; padding-left: .5em; padding-right: .5em; }
.tab-content__inner {
  grid-column-gap: 3em; grid-row-gap: 3em;
  flex-flow: column; justify-content: space-between; align-items: flex-start;
  min-height: 100%; padding-top: 1em; padding-bottom: 0; padding-right: 2.5em; display: flex;
}
.tab-content__top {
  grid-column-gap: 2em; grid-row-gap: 1em;
  flex-flow: column; justify-content: flex-start; align-items: flex-start; display: flex;
}
.tab-heading { margin: 0; font-size: 3.5em; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.tab-visual__wrap { aspect-ratio: 1.4; height: 32em; position: relative; }
.tab-visual__item {
  visibility: hidden; justify-content: center; align-items: center;
  width: 100%; height: 100%; display: flex; position: absolute;
}
.tab-visual__item.active { visibility: visible; }
.tab-visual__inner {
  border: 1px solid var(--line); border-radius: .5em;
  width: 100%; height: 100%; padding: .5em; overflow: hidden;
}
.tab-image { object-fit: cover; object-position: 0% 50%; border-radius: .25em; width: 100%; height: 100%; position: relative; }
.tab-content__wrap { width: 100%; max-width: 36em; height: 100%; margin-left: auto; margin-right: 0; }
.tab-content__bottom {
  flex-flow: column; justify-content: space-between; align-items: stretch;
  width: 100%; max-width: 30em; margin: 0; padding-left: 0; display: flex;
}
.tab-content__item {
  color: var(--ink); width: 100%; padding-top: 2em; padding-bottom: 2em;
  text-decoration: none; opacity: .5; transition: opacity .25s var(--ease); position: relative;
}
.tab-content__item.active, .tab-content__item:hover { opacity: 1; }
.tab-content__item-main {
  grid-column-gap: 2em; grid-row-gap: 2em;
  justify-content: flex-start; align-items: flex-start; width: 100%; display: flex;
}
.content-item__nr {
  color: var(--paper); background-color: var(--ink); border: 1px solid var(--ink);
  border-radius: 100em; justify-content: center; align-items: center;
  width: 2.5em; height: 2.5em; margin-top: .2em;
  font-family: var(--font-mono); font-size: .75em; font-weight: 400;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s cubic-bezier(.625,.05,0,1);
  display: flex;
}
.tab-content__item.active .content-item__nr { background-color: var(--teal); border-color: var(--teal); }
.content-item__heading { margin: 0; font-size: 2em; font-weight: 400; line-height: 1; }
.tab-content__item-detail { width: 100%; height: 0; padding-left: 4em; overflow: hidden; }
.tab-description { margin-bottom: 0; font-size: 1em; color: var(--slate); }
.tab-description__spacer { padding-top: 1em; }
.tab-content__item-bottom {
  background-color: var(--line); width: 100%; height: 1px;
  transition: background-color .2s; position: absolute; inset: auto 0% 0%;
}
.tab-progress { transform-origin: 0%; background-color: var(--teal); width: 100%; height: 1px; transform: scale3d(0,1,1); }

/* Branded visual panels (illustration enlarged on a tinted, dot-textured card) */
.step-visual { position: relative; background: linear-gradient(160deg, var(--teal-bg), #fff); display: grid; place-items: center; }
.step-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/illustrations/ai-texture.svg"); background-size: 46px 46px; opacity: .4;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 42%, #000 35%, transparent 78%);
          mask-image: radial-gradient(80% 80% at 50% 42%, #000 35%, transparent 78%);
}
.step-visual__art { position: relative; width: 60%; max-width: 340px; height: auto; }
.step-visual__nr {
  position: absolute; top: .15em; left: .35em; font-family: var(--font-display); font-weight: 400;
  font-size: 9em; line-height: 1; color: color-mix(in srgb, var(--teal-deep) 12%, transparent);
}
.step-visual__label {
  position: absolute; bottom: 1.4em; font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep);
}

@media screen and (max-width: 991px) {
  .tab-layout__col { width: 100%; padding-left: 0; padding-right: 0; }
  .tab-content__inner { justify-content: space-between; align-items: stretch; padding: 0; }
  .tab-content__top { grid-column-gap: 1.5em; grid-row-gap: 1em; }
  .tab-visual__wrap { height: auto; padding-left: 0; padding-right: 0; }
  .tab-visual__item { overflow: hidden; }
  .tab-content__wrap { max-width: none; margin-left: 0; }
}
@media screen and (max-width: 767px) {
  .tab-layout__wrap { grid-row-gap: 2em; }
  .tab-heading { font-size: 2.8em; }
  .tab-content__bottom { max-width: none; }
  .tab-content__item-main { grid-column-gap: 1.5em; grid-row-gap: 1.5em; }
  .content-item__nr { margin-top: -.2em; }
  .content-item__heading { font-size: 1.5em; }
  .step-visual__nr { font-size: 7em; }
}
@media screen and (max-width: 479px) {
  .tab-heading { font-size: 2.6em; }
  .tab-content__item { padding-top: 1.5em; padding-bottom: 1.5em; }
  .tab-content__item-main { grid-column-gap: 1em; grid-row-gap: 1em; }
  .content-item__nr { flex: none; }
  .content-item__heading { font-size: 1.5em; }
  .tab-content__item-detail { padding-left: 3em; }
}

/* ----- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .scan-line { display: none; }
  .btn:hover, .card:hover { transform: none; }
}
