/* ============================================================
   DecisionDeck.ai — site chrome & components
   Built on UMNAI Design System v3.0 tokens. Light default.
   Load order: tokens.css → infographic.css → site.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }

/* ── Layout helpers ─────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.wrap--narrow { max-width: 920px; }
section { position: relative; }
.sec { padding-block: 96px; }
.sec--tight { padding-block: 64px; }
.sec--sunken { background: var(--surface-sunken); }
.sec--dark { background: var(--brand-bg); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ── Eyebrow / kicker ───────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow--plain::before { display: none; }
.sec--dark .eyebrow, .on-dark .eyebrow { color: var(--lime-300); }



/* ── Headings scale ─────────────────────────────── */
.h-display { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; }
.h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; }
.h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-body); }
.muted { color: var(--text-muted); }
.sec--dark, .sec--dark p, .sec--dark .lede { color: var(--text-body); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4 { color: #FFFFFF; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-size: 14.5px; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-md);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn .ar { transition: transform .15s ease; }
.btn:hover .ar { transform: translateX(3px); }
.btn--primary { background: var(--accent-fill); color: var(--accent-on-fill); border-color: var(--accent-fill); }
.btn--primary:hover { background: var(--lime-400); border-color: var(--lime-400); color: #0E0E0E; box-shadow: 0 6px 20px rgba(220,255,80,0.28); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); background: var(--surface-sunken); }
.btn--ghost { background: transparent; color: var(--link); border-color: transparent; padding-inline: 6px; }
.btn--ghost:hover { color: var(--link-hover); }
.btn--lg { font-size: 15px; padding: 12px 22px; }
.btn--sm { font-size: 13.5px; padding: 8px 14px; }

/* on dark surfaces */
.sec--dark .btn--secondary, .on-dark .btn--secondary { color: #FFFFFF; border-color: var(--neutral-600); }
.sec--dark .btn--secondary:hover, .on-dark .btn--secondary:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.06); color:#FFFFFF; }
.sec--dark .btn--ghost, .on-dark .btn--ghost { color: var(--lime-300); }
.sec--dark .btn--ghost:hover, .on-dark .btn--ghost:hover { color: var(--lime-200); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* arrow glyph link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px; color: var(--link);
}
.arrow-link .ar { transition: transform .15s ease; }
.arrow-link:hover .ar { transform: translateX(3px); }
.sec--dark .arrow-link { color: var(--lime-300); }

/* ── Top navigation ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease;
  will-change: transform;
}
.nav--hidden { transform: translateY(-100%); }

.nav__inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 66px; display: flex; align-items: center; gap: 8px; }
.nav__brand { display: flex; align-items: center; gap: 9px; margin-right: 18px; flex: 1 1 0; min-width: 0; }
.nav__brand img.mark { height: 26px; width: auto; }
.nav__brand .name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; color: var(--text); }
.nav__brand .name b { color: var(--text); }
.nav__brand .by { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; align-self: flex-end; margin-bottom: 3px; }
.nav__links { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 0 1 auto; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: var(--radius-md); font-size: 14.5px; font-weight: 500; color: var(--text-body); cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1; }
.nav__link:hover { color: var(--text); background: var(--surface-sunken); }
.nav__link .chev { width: 12px; height: 12px; opacity: .55; flex: none; }
.nav__spacer { display: none; }
.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1 1 0; }
.nav__actions .talk { font-size: 14.5px; font-weight: 500; color: var(--text); padding: 9px 12px; border-radius: var(--radius-md); }
.nav__actions .talk:hover { background: var(--surface-sunken); }

/* Dropdown / mega menu — hover only on devices that actually support hover */
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 300px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
@media (hover: hover) and (pointer: fine) {
  .nav__item:hover .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
}
.nav__menu--wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav__menu--right { left: auto; right: 0; }
.menu-link { display: block; padding: 10px 12px; border-radius: var(--radius-md); }
.menu-link:hover { background: var(--surface-sunken); }
.menu-link b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.menu-link span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 1px; line-height: 1.4; }
.menu-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 12px 12px 6px; }
.menu-link--all { position: relative; margin-top: 6px; padding: 12px; border: 1px solid var(--border, rgba(0,0,0,.12)); border-radius: 10px; background: linear-gradient(180deg, color-mix(in oklab, var(--lime-300, #DCFF50) 14%, transparent), transparent); }
.menu-link--all:hover { background: linear-gradient(180deg, color-mix(in oklab, var(--lime-300, #DCFF50) 22%, transparent), var(--surface-sunken)); }
.menu-link--all b { display: inline-flex; align-items: center; gap: 8px; }
.menu-link__badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: var(--neutral-900, #111); color: var(--lime-300, #DCFF50); margin-right: 6px; vertical-align: 1px; }

/* mobile nav toggle */
.nav__burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text); }
.nav__mobile { display: none; }

@media (max-width: 1024px) {
  .nav__inner { height: 60px; padding: 0 18px; }
  .nav__links, .nav__spacer, .nav__actions .talk { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions { margin-left: auto; gap: 6px; }
  .nav__actions .btn { padding: 8px 14px; font-size: 13.5px; }
  .nav__mobile {
    display: block; position: fixed; left: 0; right: 0; top: 60px;
    height: calc(100dvh - 60px); background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 18px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease;
    -webkit-overflow-scrolling: touch; z-index: 99;
  }
  .nav__mobile.open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { position: fixed; top: 0; left: 0; right: 0; }

  .m-grp { border-bottom: 1px solid var(--border); }
  .m-grp__head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px; background: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text);
    text-align: left; text-decoration: none;
  }
  .m-grp__head .chev { width: 14px; height: 14px; opacity: .55; transition: transform .2s ease; }
  .m-grp.open .m-grp__head .chev { transform: rotate(180deg); }
  .m-grp--leaf .m-grp__head .chev { display: none; }
  .m-grp__body { display: none; padding: 0 4px 14px; }
  .m-grp.open .m-grp__body { display: block; }
  .m-grp__body .m-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 12px 0 4px; }
  .m-grp__body a { display: block; padding: 10px 0; font-size: 15px; color: var(--text); border-bottom: 1px dashed var(--border); }
  .m-grp__body a:last-child { border-bottom: 0; }
  .m-grp__body a b { display: block; font-weight: 600; }
  .m-grp__body a span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

  .nav__mobile .m-cta { display: grid; gap: 10px; margin-top: 22px; }
  .nav__mobile .m-cta a { display: flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px; text-decoration: none; }
  .nav__mobile .m-cta .talk { border: 1px solid var(--border-strong); color: var(--text); }
  .nav__mobile .m-cta .demo { background: var(--accent-fill); color: var(--accent-on-fill); }
}

/* ── Footer ─────────────────────────────────────── */
.footer { background: var(--brand-bg); color: var(--neutral-300); padding: 72px 0 36px; }
.footer a { color: var(--neutral-300); }
.footer a:hover { color: #FFFFFF; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand .mark { height: 30px; margin-bottom: 18px; }
.footer__brand p { font-size: 14px; color: var(--neutral-400); max-width: 34ch; line-height: 1.6; }
.footer__brand .cta { margin-top: 22px; }
.footer__col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-500); margin: 0 0 16px; font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--neutral-800); }
.footer__bottom p { font-size: 13px; color: var(--neutral-500); }
.footer__bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom .legal a { font-size: 13px; color: var(--neutral-500); }
.footer__powered { font-family: var(--font-mono); font-size: 12px; color: var(--neutral-500); }
.footer__powered b { color: var(--lime-300); font-weight: 500; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }

/* ── Generic card ───────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-8);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-panel); transform: translateY(-3px); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-sunken); border: 1px solid var(--border); color: var(--text);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; color: var(--text); }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--text-body); }
a.card, a.card:hover, a.card:visited { color: var(--text); text-decoration: none; }
a.card h3 { color: var(--text); }
a.card p { color: var(--text-body); }


/* icon accent variants */
.ic-cer { background: var(--cer-50); border-color: var(--cer-100); color: var(--cer-600); }
.ic-amber { background: var(--amber-50); border-color: var(--amber-100); color: var(--amber-600); }
.ic-violet { background: var(--violet-50); border-color: var(--violet-100); color: var(--violet-600); }
.ic-coral { background: var(--coral-50); border-color: var(--coral-100); color: var(--coral-600); }
.ic-lime { background: var(--lime-300); border-color: var(--lime-300); color: #0E0E0E; }
.ic-dark { background: var(--neutral-900); border-color: var(--neutral-900); color: var(--lime-300); }

/* ── Section header block ───────────────────────── */
.sec-head { max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .h2 { margin-bottom: 18px; }
.sec-head p { font-size: 18px; line-height: 1.55; }

/* ── Pill / tag / badge ─────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; font-family: var(--font-mono);
  letter-spacing: .02em; padding: 6px 12px; border-radius: var(--radius-full);
  background: var(--surface-sunken); border: 1px solid var(--border); color: var(--text-body);
}
.pill--lime { background: var(--lime-300); border-color: var(--lime-300); color: #0E0E0E; }
.pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success-base); }

/* lime highlight on dark text (approved usage) */
.hl { background: var(--lime-300); color: #0E0E0E; padding: 0 .18em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* skip + utility */
.center { text-align: center; }
.mt-0{margin-top:0}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mt-10{margin-top:40px}
.maxw-60{max-width:60ch}

/* ── Global mobile safety net ───────────────────── */
html, body { overflow-x: clip; max-width: 100vw; }
img, svg, video, canvas { max-width: 100%; height: auto; }
table { display: block; max-width: 100%; overflow-x: auto; }

@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  .sec { padding-block: 64px; }
  .sec--tight { padding-block: 44px; }
  .phead { padding: 56px 0 14px; }
  .h-display { font-size: clamp(34px, 9vw, 48px); }
  .h1 { font-size: clamp(28px, 7vw, 38px); }
  .h2 { font-size: clamp(24px, 6vw, 32px); }
  .lede { font-size: 16px; }
  .btn--lg { font-size: 14.5px; padding: 11px 18px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }
  .card { padding: 22px; }
  .footer { padding: 56px 0 32px; }
  .footer__bottom { margin-top: 36px; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .sec { padding-block: 48px; }
  .nav__brand .name { font-size: 16px; }
  .nav__actions .btn { padding: 7px 12px; font-size: 13px; }
}

/* ─── Phosphor + inline-SVG icon normalization ─── */
.ph, [class^="ph-"], [class*=" ph-"] { font-size: 24px; line-height: 1; display: inline-block; vertical-align: middle; }
.dir__ic svg, .phead-art__tile .ic svg, .explain__ic svg { stroke-width: 1.75; }

/* ─── Cookie consent bar ─── */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 16px; pointer-events: none; }
.cookie-bar__inner { max-width: 960px; margin: 0 auto; background: #0A0A0A; color: #F7F4F0; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; box-shadow: 0 18px 50px rgba(0,0,0,0.35); pointer-events: auto; }
.cookie-bar__msg { flex: 1; min-width: 0; }
.cookie-bar__eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--lime-300, #DCFF50); margin: 0 0 6px; }
.cookie-bar__text { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(247,244,240,0.82); }
.cookie-bar__text a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-bar__btn { height: 36px; padding: 0 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease; font-family: inherit; }
.cookie-bar__btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.32); }
.cookie-bar__btn--ghost:hover { border-color: rgba(255,255,255,0.6); }
.cookie-bar__btn--solid { background: #FFFFFF; color: #0A0A0A; }
.cookie-bar__btn--solid:hover { background: var(--lime-300, #DCFF50); }
@media (max-width: 640px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; }
  .cookie-bar__actions { justify-content: flex-end; }
}

/* footer legal row spacing for added Privacy link */
.footer__bottom .legal a + a { margin-left: 18px; }
