/* ==========================================================================
   SetMeld — site stylesheet
   Design tokens are taken from the primary logo:
   navy #002060 · silver #B4B4B4 · black
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0C1017;
  --ink-deep:   #002060;   /* brand navy — every dark surface */
  --ink-soft:   #262B36;
  --gray:       #8A8D95;
  --silver:     #B4B4B4;
  --gray-500:   #5F636E;
  --gray-400:   #666A75;
  --gray-300:   #C4C8D2;
  --accent:     #002060;
  --accent-600: #001A4E;
  --accent-100: #E9EEF7;
  --azure:      #2F6BE0;
  --azure-300:  #8FB4FF;

  /* Action accent. Navy is the brand and reads as structure, so calls to
     action get a complementary warm colour. #D14009 is the most vivid
     orange that still clears 4.5:1 against white button text; --cta-300 is
     its counterpart for navy backgrounds (6.6:1). */
  --cta:        #D14009;
  --cta-600:    #B03506;
  --cta-300:    #FF8A5B;
  --cta-100:    #FFF1EA;
  --navy-tint:  #F2F5FB;

  --bg:         #FFFFFF;
  --bg-alt:     #F4F6FA;
  --bg-tint:    #FAFBFD;
  --line:       #E3E7EF;
  --line-soft:  #EDF0F6;
  --line-dark:  rgba(255, 255, 255, .14);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 16, 47, .06), 0 1px 3px rgba(0, 16, 47, .04);
  --shadow:    0 4px 12px rgba(0, 16, 47, .06), 0 12px 32px rgba(0, 16, 47, .07);
  --shadow-lg: 0 8px 24px rgba(0, 16, 47, .08), 0 40px 80px rgba(0, 16, 47, .16);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "cv11" 1, "ss01" 1;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.wrap-mid { max-width: 1000px; }

.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }
.section-alt { background: var(--bg-alt); }
.section-line { border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
}

.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.stack > * + * { margin-top: 20px; }
.center { text-align: center; }
.center .measure { margin-left: auto; margin-right: auto; }
.measure { max-width: 68ch; }
.measure-sm { max-width: 54ch; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cta);
  font-weight: 500;
  margin-bottom: 18px;
  display: block;
}
.eyebrow-muted { color: var(--gray-500); }

.h-display { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.033em; }
.h2 { font-size: clamp(29px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.022em; }
.h4 { font-size: 20px; line-height: 1.3; letter-spacing: -.018em; }
.h5 { font-size: 17px; line-height: 1.4; letter-spacing: -.012em; }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--gray-500); }
.body-lg { font-size: 18px; line-height: 1.6; }
.muted { color: var(--gray-500); }
.small { font-size: 15px; line-height: 1.55; }
.tiny { font-size: 13px; line-height: 1.5; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.balance { text-wrap: balance; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, gap .18s ease;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover { color: var(--cta); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cta); color: #fff;
  box-shadow: 0 2px 5px rgba(209, 64, 9, .26), 0 8px 20px rgba(209, 64, 9, .16);
}
.btn-primary:hover {
  background: var(--cta-600);
  box-shadow: 0 2px 6px rgba(209, 64, 9, .32), 0 10px 26px rgba(209, 64, 9, .22);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #EDF0F6; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}

.logo { display: inline-flex; align-items: center; flex: none; }
/* The lockup's circle spans the full image height while the wordmark is only
   ~36% of it, so size by the image and the mark reads oversized. 36px puts the
   circle at just over half the header height and the logotype a shade above the
   nav links, which is the ratio this lockup wants. */
.logo img { height: 36px; width: auto; }
.footer .logo img { height: 40px; }
@media (max-width: 520px) { .logo img { height: 32px; } }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 13px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease, background .15s ease;
  cursor: pointer; background: none; border: 0;
}
.nav-link:hover, .nav-item.open .nav-link { color: var(--ink); background: var(--bg-alt); }
.nav-link .chev { width: 10px; height: 10px; opacity: .5; transition: transform .2s ease; }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }
.nav-link[aria-current] { color: var(--accent); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dropdown-wide { min-width: 680px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-link {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 10px;
  transition: background .14s ease;
}
.dd-link:hover { background: var(--bg-alt); }
.dd-ico {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-alt); color: var(--accent);
  display: grid; place-items: center;
}
.dd-ico svg { width: 16px; height: 16px; }
.dd-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dd-t { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.dd-d { display: block; font-size: 12.5px; color: var(--gray-500); line-height: 1.45; }
.dd-head {
  grid-column: 1 / -1;
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gray-400); padding: 12px 12px 6px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; place-items: center; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 1040px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .header-actions { gap: 8px; }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .header-actions .btn-sm { padding: 0 13px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  .header-actions .btn-primary { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0; left: 0; z-index: 99;
  background: #fff; overflow-y: auto;
  padding: 20px var(--gutter) 60px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }
.mnav-group { border-bottom: 1px solid var(--line); padding: 6px 0; }
.mnav-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 14px 2px; cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: -.02em; text-align: left;
}
.mnav-head svg { width: 12px; height: 12px; opacity: .45; transition: transform .2s ease; }
.mnav-group.open .mnav-head svg { transform: rotate(180deg); }
.mnav-panel { display: none; padding: 0 2px 14px; }
.mnav-group.open .mnav-panel { display: block; }
.mnav-panel a { display: block; padding: 9px 0; font-size: 15px; color: var(--gray-500); }
.mnav-panel a:hover { color: var(--accent); }
.mnav-cta { display: grid; gap: 10px; margin-top: 26px; }
.mnav-cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 76px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background:
    radial-gradient(58% 60% at 18% 0%, rgba(0, 32, 96, .10), transparent 62%),
    radial-gradient(48% 55% at 82% 6%, rgba(47, 107, 224, .10), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero .h-display { max-width: 15ch; }

/* Centered variant: short headline, symmetric scene beneath. */
.hero-center { text-align: center; }
.hero-center .h-display { max-width: none; margin: 0 auto; }
.hero-center .hero-sub { max-width: 52ch; margin-left: auto; margin-right: auto; }
.hero-center .btn-row { justify-content: center; }
.hero-sub { margin-top: 22px; max-width: 56ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--gray-500); line-height: 1.55; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--gray-400); }
.hero-media { margin-top: 60px; }

@media (max-width: 860px) { .hero { padding: 44px 0 52px; } .hero-media { margin-top: 40px; } }

/* Pill badge */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 32px; padding: 4px 14px 4px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.pill b { font-weight: 600; }
.pill .tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--accent-100); color: var(--accent-600);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pill:hover { border-color: var(--gray-300); }

/* ---------- Product frame ---------- */
.frame {
  border-radius: var(--radius-lg);
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  background: #232326; border-bottom: 1px solid rgba(255,255,255,.07);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3d3d42; display: block; }
.frame-bar .frame-title {
  margin-left: 12px; font-family: var(--mono); font-size: 11px; color: #77777e; letter-spacing: .02em;
}
.frame img { width: 100%; display: block; }
.frame-glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  border-radius: inherit;
}
.frame-crop { max-height: 460px; overflow: hidden; }
.frame-crop img { object-fit: cover; object-position: top center; }

.media-caption { margin-top: 14px; font-size: 13.5px; color: var(--gray-400); text-align: center; }

/* ---------- Logo strip ---------- */
.logostrip { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logostrip-label {
  text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 26px;
}
.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 52px;
}
.logos span {
  font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--gray-500);
  opacity: 1; transition: color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.logos span:hover { color: var(--ink); opacity: 1; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card-hover:hover { border-color: var(--gray-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-500); font-size: 15.5px; line-height: 1.6; }
.card-ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-100); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-ico svg { width: 21px; height: 21px; }
.card-flat { border: 0; padding: 0; background: transparent; }
.card-num {
  font-family: var(--mono); font-size: 12px; color: var(--cta);
  letter-spacing: .1em; margin-bottom: 14px; display: block;
}

.card-link { display: block; }
.card-link .card-more {
  margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover .card-more { color: var(--accent); }
.card-link:hover .card-more svg { transform: translateX(3px); }
.card-more svg { width: 13px; height: 13px; transition: transform .2s ease; }

/* ---------- Dark sections ---------- */
.dark {
  background: var(--ink-deep); color: #fff;
  --line: rgba(255,255,255,.12);
  --line-soft: rgba(255,255,255,.08);
}
.dark .muted, .dark .lede, .dark .card p { color: rgba(255,255,255,.7); }
.dark .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.dark .card-ico { background: rgba(143, 180, 255, .16); color: var(--azure-300); }
.dark .eyebrow-muted { color: rgba(255,255,255,.45); }
.dark .link-arrow { color: #fff; }
.dark .link-arrow:hover { color: var(--cta-300); }
.dark hr { border-color: rgba(255,255,255,.12); }
/* accents that need to lift off a navy background */
.dark .eyebrow { color: var(--cta-300); }
.dark .card-num { color: var(--cta-300); }
.dark .accent { color: var(--azure-300); }
.dark .stat-n em { color: var(--cta-300); }
.dark :focus-visible { outline-color: var(--azure-300); }
.dark .quote { border-left-color: var(--azure-300); }
.dark .src-chip .dot { background: var(--azure-300); }
.dark .logos span { color: rgba(255,255,255,.6); }
.dark .logos span:hover { color: #fff; }

.dark-grid {
  position: relative;
}
.dark-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
}
.dark-grid > * { position: relative; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 34px 28px; }
.dark .stat { background: var(--ink-deep); }
.stat-n { font-size: clamp(38px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.dark .stat-n { color: #fff; }
.stat-n em { font-style: normal; color: var(--cta); }
.stat-l { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--gray-500); }
.stat-s { margin-top: 8px; font-size: 13px; color: var(--gray-400); }
.stat-src { margin-top: 12px; font-size: 12.5px; color: var(--gray-400); }
.stat-src a { border-bottom: 1px solid currentColor; }
/* On navy these have to leave the gray ramp entirely: --gray-500 lands at
   2.54:1 against #002060. Each takes the white tier its light-mode grey maps
   to — .7 for supporting copy, .55 for a source line. */
.dark .stat-l { color: rgba(255,255,255,.7); }
.dark .stat-s, .dark .stat-src { color: rgba(255,255,255,.55); }
.dark .stat-src a:hover { color: #fff; }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .stats, .stats-2 { grid-template-columns: 1fr; } }

/* ---------- Split feature rows ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center;
}
.split-rev { grid-template-columns: 1.15fr 1fr; }
.split-rev .split-text { order: 2; }
@media (max-width: 940px) {
  .split, .split-rev { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .split-text { order: 0; }
}
.split + .split { margin-top: 112px; }
@media (max-width: 940px) { .split + .split { margin-top: 72px; } }

.feature-list { margin-top: 26px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; list-style: none; font-size: 15.5px; color: var(--gray-500); line-height: 1.55; }
.feature-list li strong { color: var(--ink); font-weight: 600; }
.dark .feature-list li strong { color: #fff; }
.feature-list .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  background: var(--accent-100); color: var(--accent); display: grid; place-items: center;
}
.dark .feature-list .tick { background: rgba(143, 180, 255, .18); color: var(--azure-300); }
.feature-list .tick svg { width: 11px; height: 11px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.step { background: #fff; padding: 30px 28px; display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; }
.step-n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--gray-500); font-size: 15.5px; }
@media (min-width: 900px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } .step { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--gray-500);
  cursor: pointer; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabpanel[hidden] { display: none; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
table.cmp th, table.cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.cmp thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--gray-500); font-weight: 500; background: var(--bg-alt); white-space: nowrap;
}
table.cmp tbody th { font-weight: 600; letter-spacing: -.012em; }
table.cmp td { text-align: center; }
table.cmp td:last-child { text-align: left; color: var(--gray-500); font-size: 14px; }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: 0; }
table.cmp .row-us { background: rgba(209, 64, 9, .05); }
table.cmp .row-us th { color: var(--cta); }
/* The SetMeld row carries the action accent so the eye lands on it. */
table.cmp .row-us .yes { background: var(--cta); }
.yes, .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.yes { background: var(--accent); color: #fff; }
.no { background: #EDF0F6; color: var(--gray-400); }
.yes svg, .no svg { width: 11px; height: 11px; }

/* ---------- Quote ---------- */
.quote { border-left: 3px solid var(--accent); padding-left: 26px; }
.quote blockquote { margin: 0; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.35; letter-spacing: -.024em; font-weight: 600; }
.quote figcaption { margin-top: 22px; font-size: 14.5px; color: var(--gray-500); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.dark .quote figcaption strong { color: #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 17.5px; font-weight: 600; letter-spacing: -.018em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .faq-a { padding: 0 60px 24px 0; color: var(--gray-500); font-size: 16px; line-height: 1.65; }
.faq .faq-a a { color: var(--accent); border-bottom: 1px solid rgba(0, 32, 96, .32); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-deep); color: #fff; border-radius: var(--radius-xl); padding: 68px 56px; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -60% 38%; height: 460px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(209, 64, 9, .55), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .h2 { max-width: 18ch; }
.cta-band.center .h2 { margin-inline: auto; }
@media (max-width: 700px) { .cta-band { padding: 44px 26px; border-radius: var(--radius-lg); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: rgba(255,255,255,.68); padding: 76px 0 34px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--silver); font-weight: 500; margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a:hover { color: #fff; }
.footer-blurb { margin-top: 18px; max-width: 34ch; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer-bottom {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
  font-size: 13.5px; color: rgba(255,255,255,.62);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; transition: background .18s ease, border-color .18s ease;
}
.social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.social svg { width: 15px; height: 15px; }

/* ---------- Page header (interior pages) ---------- */
.pagehead { padding: 76px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.pagehead::before {
  content: ""; position: absolute; inset: -30% -12% -30% -12%;
  background:
    radial-gradient(38% 46% at 16% 46%, rgba(0, 32, 96, .09), transparent 66%),
    radial-gradient(34% 44% at 88% 12%, rgba(47, 107, 224, .08), transparent 66%);
  pointer-events: none;
}
.pagehead > * { position: relative; }
.pagehead .h1 { max-width: 17ch; }
.pagehead .lede { margin-top: 22px; max-width: 60ch; }
.pagehead .btn-row { margin-top: 32px; }
@media (max-width: 860px) { .pagehead { padding: 48px 0 40px; } }

.breadcrumb { font-size: 13.5px; color: var(--gray-400); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Prose ---------- */
.prose { font-size: 17px; line-height: 1.72; color: var(--ink-soft); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 28px; margin-top: 52px; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 38px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 10px; }
.prose li { line-height: 1.68; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(0, 32, 96, .28); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-size: 19px; line-height: 1.55; color: var(--ink);
}

/* ---------- Misc utilities ---------- */
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gray-500);
}
.badge-accent { background: var(--cta-100); border-color: rgba(209, 64, 9, .22); color: var(--cta); }
.dark .badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; color: var(--gray-500);
}
.dark .chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }

.kicker-line { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.kicker-line::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.section-head { max-width: 66ch; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head .lede { margin-top: 18px; }

.pricing-card { display: flex; flex-direction: column; height: 100%; }
.pricing-card .price { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 4px; }
.pricing-card ul { list-style: none; display: grid; gap: 12px; margin: 24px 0 28px; }
.pricing-card li { display: flex; gap: 10px; font-size: 15px; color: var(--gray-500); line-height: 1.5; }
.pricing-card .btn { margin-top: auto; }
.pricing-card.featured { border-color: var(--ink); box-shadow: var(--shadow); }

.note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; background: var(--bg-tint); font-size: 15px; color: var(--gray-500);
}

.dl { display: grid; gap: 0; }
.dl-row { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dl-row dt { font-weight: 600; font-size: 15.5px; letter-spacing: -.012em; }
.dl-row dd { margin: 0; color: var(--gray-500); font-size: 15.5px; }
@media (max-width: 680px) { .dl-row { grid-template-columns: 1fr; gap: 6px; } }

/* form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,36,54,.08);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.src-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
}
.src-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dark .src-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* ==========================================================================
   Hero scene — siloed sources -> pipeline -> knowledge graph
   Layout geometry lives in tools/hero_scene.py; only presentation is here.
   ========================================================================== */

.hero-scene-frame {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(175deg, #FCFDFF 0%, var(--bg-alt) 100%);
  box-shadow: var(--shadow-sm);
}
.hero-scene {
  position: relative;
  aspect-ratio: 1200 / 500;
  font-family: var(--font);
}
@media (max-width: 900px) {
  .hero-scene-frame { margin-top: 30px; padding: 10px; border-radius: var(--radius-lg); }
  /* The tall layout is 0.64:1, so left unbounded it becomes absurdly tall on a
     tablet. Cap it and center it. */
  .hero-scene { aspect-ratio: 420 / 660; max-width: 440px; margin: 0 auto; }
}

.scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene-tall { display: none; }
@media (max-width: 900px) {
  .scene-wide { display: none; }
  .scene-tall { display: block; }
}

/* ---- static furniture ---- */
.scene .zone {
  font-family: var(--mono); font-size: 12px; letter-spacing: .13em;
  text-transform: uppercase; fill: var(--gray-400);
}
.scene .src-box { fill: #fff; stroke: var(--line); stroke-width: 1; }
.scene .src-label { font-size: 14.5px; font-weight: 500; fill: var(--ink); }
.scene .src-label-sm { font-size: 12.5px; }
.scene .src-more { font-size: 12.5px; fill: var(--gray-400); }

.scene .wire { fill: none; stroke: #D3D9E6; stroke-width: 1.5; }
.scene .wire-pulse { fill: none; stroke: var(--azure); stroke-width: 2.5; stroke-linecap: round; }

.scene .ch-body { fill: #fff; stroke: #D5DBE8; stroke-width: 1; }
.scene .ch-dot { fill: var(--gray-300); }
.scene .ch-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; fill: var(--gray-400); }
.scene .ch-screen { fill: #0B0F1A; }
.scene .port { fill: var(--accent); }

.scene .stage-dot { fill: var(--gray-300); }
.scene .stage-label { font-size: 13px; fill: var(--ink-soft); }
.scene .stage-label-sm { font-size: 11px; }
.scene .stage-track { fill: #E7EBF3; }
.scene .stage-fill { fill: var(--accent); transform: scaleX(0); transform-box: fill-box; transform-origin: left center; }
.scene .pill-box { fill: #F4F6FA; stroke: var(--line); stroke-width: 1; }

.scene .kg-link { fill: none; stroke: #C5CCDC; stroke-width: 1.3; opacity: .3; }
.scene .kg-link-soft { stroke-dasharray: 3 4; }
.scene .kg-node { fill: var(--accent); opacity: .16; transform: scale(.55); transform-box: fill-box; transform-origin: center; }
.scene .kg-node-soft { fill: var(--silver); }

/* ---- the video ---- */
.video-dock {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  background: #0B0F1A;
  box-shadow: 0 6px 18px rgba(0, 16, 47, .18);
  transition: transform 1.05s cubic-bezier(.62, .02, .2, 1), box-shadow 1.05s ease;
  will-change: transform;
  z-index: 2;
}
.dock-poster,
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-video { z-index: 1; }
.no-video .scene-video { display: none; }

.video-tag {
  position: absolute; left: 50%; transform: translateX(-50%);
  margin: 0; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gray-400); white-space: nowrap;
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
  max-width: 94%; text-align: center;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}
@media (max-width: 620px) {
  .video-tag { font-size: 9.5px; letter-spacing: .05em; white-space: normal; line-height: 1.5; }
}

/* ---- phase: showcase ---- */
.hero-scene .scene { transition: opacity .55s ease; }
.hero-scene.is-expanded .scene { opacity: .16; }
.hero-scene.is-expanded .video-dock {
  transform: translateY(var(--exp-shift)) scale(var(--exp-scale));
  box-shadow: 0 10px 30px rgba(0, 16, 47, .16);
}
.hero-scene.is-expanded .video-tag { opacity: 1; transition-delay: .5s; }

/* ---- phase: flow ---- */
@keyframes sm-pulse {
  0%   { stroke-dashoffset: 118; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.scene .wire-pulse { stroke-dasharray: 18 100; stroke-dashoffset: 118; opacity: 0; }
.is-flowing .wire-pulse {
  animation: sm-pulse 1.9s cubic-bezier(.45, 0, .55, 1) infinite;
  animation-delay: calc(var(--i, 0) * .16s);
}
.is-flowing .wire-out { animation-delay: calc(1s + var(--i, 0) * .16s); }

@keyframes sm-emit {
  0%, 100% { stroke: var(--line); }
  14%      { stroke: var(--azure); }
}
.is-flowing .src-box {
  animation: sm-emit 1.9s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .16s);
}

@keyframes sm-grow { to { transform: scaleX(1); } }
.is-flowing .stage-fill {
  animation: sm-grow 1.15s cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: calc(.7s + var(--i) * .42s);
}
@keyframes sm-lit { to { fill: var(--accent); } }
.is-flowing .stage-dot {
  animation: sm-lit .3s linear forwards;
  animation-delay: calc(.7s + var(--i) * .42s);
}
@keyframes sm-lit-pill { to { fill: #EAEFF9; stroke: var(--azure); } }
.is-flowing .pill-box {
  animation: sm-lit-pill .3s linear forwards;
  animation-delay: calc(.7s + var(--i) * .42s);
}

@keyframes sm-pop {
  0%   { opacity: .16; transform: scale(.55); }
  55%  { opacity: 1;   transform: scale(1.18); }
  100% { opacity: 1;   transform: scale(1); }
}
.is-flowing .kg-node {
  animation: sm-pop .62s cubic-bezier(.2, 1.5, .4, 1) forwards;
  animation-delay: calc(1.8s + var(--i) * .1s);
}
@keyframes sm-link-in { to { opacity: 1; } }
.is-flowing .kg-link { animation: sm-link-in .6s ease forwards; animation-delay: 2.2s; }

/* ---- phase: settled (graph stays built until the next cycle) ---- */
.is-built .kg-node { opacity: 1; transform: scale(1); }
.is-built .kg-link { opacity: 1; }
.is-built .stage-fill { transform: scaleX(1); }
.is-built .stage-dot { fill: var(--accent); }
.is-built .pill-box { fill: #EAEFF9; stroke: var(--azure); }

/* ---- reduced motion: no cycle, show the finished state ---- */
@media (prefers-reduced-motion: reduce) {
  .video-dock { transition: none; }
  .hero-scene .scene { transition: none; opacity: 1 !important; }
  .hero-scene .kg-node { opacity: 1; transform: scale(1); }
  .hero-scene .kg-link { opacity: 1; }
  .hero-scene .stage-fill { transform: scaleX(1); }
  .hero-scene .stage-dot { fill: var(--accent); }
  .hero-scene .pill-box { fill: #EAEFF9; stroke: var(--azure); }
  .video-tag { opacity: 1; }
}

/* ---- hero at phone widths: keep the CTAs on one row and lift the scene ---- */
@media (max-width: 620px) {
  .hero { padding: 34px 0 44px; }
  .hero-center .pill { font-size: 12px; }
  .hero-center .hero-sub { margin-top: 18px; }
  .hero-center .hero-cta { margin-top: 26px; gap: 10px; }
  .hero-center .btn-lg { height: 48px; padding: 0 18px; font-size: 14.5px; }
}

/* ---------- Deferred third-party embed (booking calendar) ---------- */
.embed-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.embed-invite { text-align: center; padding: 44px 30px; max-width: 44ch; }
.embed-shell.is-loaded { display: block; min-height: 0; padding: 0; }
.embed-shell.is-loaded .embed-invite { display: none; }
.embed-shell iframe { width: 100%; height: 660px; border: 0; display: block; }
@media (max-width: 900px) {
  .embed-shell { min-height: 360px; }
  .embed-shell iframe { height: 620px; }
}

/* ---------- Analytics consent ---------- */
/* Present only on a deployed build. Anchored bottom-left rather than across
   the full width so it never sits over the footer's legal links, and never
   over a call to action on mobile. */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  max-width: 420px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.consent-text {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray-500);
}
.consent-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
