/* =========================================================
   CoherenzAI — site styles
   Neutral palette (black, white, warm greys). Colour comes from
   the glass orbs. Change the tokens below to restyle the site.
   ========================================================= */

:root {
  --ink: #0b0b0b;            /* text, black buttons, dark panels */
  --ink-2: #44403c;          /* secondary text */
  --muted: #78716c;          /* tertiary text */
  --faint: #a8a29e;          /* placeholder, inactive */
  --line: #e7e5e4;           /* hairlines */
  --line-2: #d6d3d1;         /* stronger hairline, inputs */
  --bg: #fdfdfc;             /* page */
  --panel: #f5f5f4;          /* grey panels and cards */
  --panel-2: #efeeec;        /* inset areas inside panels */
  --white: #ffffff;

  /* status colours, used only inside product mock-ups */
  --ok: #15803d;  --ok-soft: #dcfce7;
  --bad: #b91c1c; --bad-soft: #fee2e2;
  --warn: #b45309; --warn-soft: #fef3c7;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(12, 10, 9, .05);
  --shadow: 0 1px 2px rgba(12, 10, 9, .04), 0 12px 32px rgba(12, 10, 9, .07);
  --shadow-lg: 0 2px 4px rgba(12, 10, 9, .04), 0 30px 70px rgba(12, 10, 9, .12);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --container: 1200px;
  --gutter: 48px;            /* space between the frame lines and the content */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow { display: inline-block; font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: -0.005em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: .98rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { width: 17px; height: 17px; stroke-width: 1.8; transition: transform .2s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-dark, .btn-primary { background: var(--ink); color: #fff; }
.btn-dark:hover, .btn-primary:hover { background: #2a2826; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--line-2); background: #fafaf9; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; background: transparent; }  /* for dark panels */
.btn-ghost-light:hover { border-color: #fff; }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 253, 252, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 40px; height: 68px; }
.logo { font-weight: 600; font-size: 1.22rem; letter-spacing: -0.035em; color: var(--ink); }
.logo .ai { color: var(--ink); }
.nav-menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions a[aria-current="page"] { border-color: var(--ink); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 820px) {
  .nav { justify-content: space-between; gap: 16px; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  }
  .nav-burger span { width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(12, 10, 9, .06);
  }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { padding: 14px; }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--ink); outline-offset: 2px; }
}

/* ---------- Framed sections (thin rails at the container edges, hairline between sections) ---------- */
.band { border-top: 1px solid var(--line); }
.band > .container { border-inline: 1px solid var(--line); padding: 80px var(--gutter); }
.band-tight > .container { padding-block: 56px; }

.sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 48px; align-items: end; margin-bottom: 40px; }
.sec-head:has(> .btn) { grid-template-columns: 1fr auto; }
h2 { text-wrap: balance; }
.sec-head p { color: var(--ink-2); font-size: 1.06rem; max-width: 46ch; }
.sec-head .btn { justify-self: end; }
.sec-head-solo { grid-template-columns: 1fr; }


/* ---------- Hero ---------- */
.hero { border-top: 0; }
.hero > .container { padding-block: 96px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px 64px; align-items: end; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--ink); }
.hero-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 46ch; padding-bottom: 6px; }
.hero-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-compact > .container { padding-bottom: 64px; }
.hero-platform > .container { padding-bottom: 56px; }

/* ---------- Shared motion ---------- */
@keyframes flow-x { to { background-position: 32px 0; } }
@keyframes flow-y { to { background-position: 0 32px; } }
@keyframes ghost { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   HOME: Discover → Prove (glass orbs)
   ========================================================= */
.orbit { position: relative; background: var(--panel); border-radius: var(--radius-xl); padding: 8px; }
.orbit-stage {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding: 56px 40px 40px; border-radius: 22px; background: var(--panel-2);
}
.orbit-step {
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 6px 4px;
  border: 0; background: none; font: inherit; color: inherit; text-align: center; cursor: pointer; border-radius: 18px;
}
.orbit-planet {
  width: min(100%, 190px); aspect-ratio: 1; border-radius: 50%;
  transform: scale(.8); opacity: .62; filter: saturate(.85);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .4s, filter .4s, box-shadow .55s;
}
.orbit-planet img { width: 100%; height: 100%; border-radius: 50%; }
.orbit-name { margin-top: 26px; font-size: 1.12rem; font-weight: 500; letter-spacing: -0.015em; color: var(--muted); transition: color .3s; }
.orbit-desc { margin-top: 6px; max-width: 24ch; font-size: .9rem; line-height: 1.5; color: var(--faint); transition: color .3s; }
.orbit-step:hover .orbit-planet { opacity: .85; transform: scale(.84); }
.orbit-step[aria-selected="true"] .orbit-planet,
.orbit:not(.is-ready) .orbit-planet {
  transform: scale(1); opacity: 1; filter: none;
  box-shadow: 0 28px 50px -18px rgba(12, 10, 9, .45);
}
.orbit-step[aria-selected="true"] .orbit-name, .orbit:not(.is-ready) .orbit-name { color: var(--ink); }
.orbit-step[aria-selected="true"] .orbit-desc, .orbit:not(.is-ready) .orbit-desc { color: var(--ink-2); }

/* step-by-step arrows between the orbs, centred in the gap and on the orb's middle.
   The stage is the size container: one column = (100cqi - 3 gaps) / 4, the orb =
   min(column - step padding, 190px). */
.orbit-stage { container-type: inline-size; }
.orbit-step { position: relative; }
.orbit-step:not(:last-child)::after {
  --orb: min((100cqi - 24px) / 4 - 12px, 190px);
  content: ""; position: absolute; right: -4px; top: calc(8px + var(--orb) / 2);
  width: clamp(14px, 2.2cqi, 22px); aspect-ratio: 1; transform: translate(50%, -50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.orbit-arrow {
  position: absolute; top: calc(8px + 56px + 8px + 95px); z-index: 2; width: 40px; height: 40px; margin-top: -20px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color .2s, opacity .2s;
}
.orbit-arrow:hover { border-color: var(--line-2); }
.orbit-arrow:disabled { opacity: .35; cursor: default; }
.orbit-arrow .icon { width: 17px; height: 17px; }
.orbit-prev { left: 14px; } .orbit-prev .icon { transform: rotate(180deg); }
.orbit-next { right: 14px; }

/* the details bar under the orbs */
.orbit-panel {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 32px;
  padding: 26px 28px 22px; outline: none;
}
.orbit-panel + .orbit-panel { border-top: 1px solid var(--line); }
.orbit.is-ready .orbit-panel { display: none; border-top: 0; }
.orbit.is-ready .orbit-panel.is-active { display: grid; animation: rise .45s ease both; }
.orbit-panel:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 18px; }
.orbit-meta { display: flex; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.orbit-meta .eyebrow { color: var(--ink); }
.orbit-meta .feature-who { margin: 0; }
.orbit-lead { font-size: 1rem; color: var(--ink-2); margin-bottom: 14px; }
@media (min-width: 761px) { .orbit-lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink);
}
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

@media (max-width: 960px) {
  .orbit-stage { padding: 40px 16px 28px; gap: 16px; }
  .orbit-step:not(:last-child)::after { --orb: min((100cqi - 48px) / 4 - 12px, 190px); right: -8px; }
  .orbit-arrow { display: none; }
  .orbit-panel { grid-template-columns: 1fr; }
  .orbit-panel .btn { justify-self: start; }
}
@media (max-width: 760px) {
  .orbit-stage { gap: 14px; padding: 28px 10px 20px; }
  .orbit-step { padding: 4px 0 2px; }
  .orbit-name { margin-top: 12px; font-size: .84rem; letter-spacing: -0.02em; }
  .orbit-desc { display: none; }
  .orbit-step:not(:last-child)::after { --orb: min((100cqi - 42px) / 4, 190px); right: -7px; top: calc(4px + var(--orb) / 2); width: 11px; }
  .orbit-panel { padding: 20px 16px 18px; }
}

/* =========================================================
   HOME: Problem cards
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { margin: 18px 0 8px; font-size: 1.25rem; }
.card p { color: var(--ink-2); }
.card .lede { color: var(--ink); font-weight: 500; margin-bottom: 6px; }

.icon-badge {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
}
.icon-badge .icon { width: 20px; height: 20px; }

.card.problem { padding: 8px; display: flex; flex-direction: column; transition: background .25s; }
.card.problem:hover { background: var(--panel-2); }
.problem-body { padding: 22px 20px 20px; }
.problem-body h3 { margin-top: 16px; }

/* illustration at the top of each problem card */
.pv {
  position: relative; height: 176px; overflow: hidden; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background: var(--white); border: 1px solid var(--line);
}
.pv-visibility { flex-wrap: wrap; align-content: center; gap: 8px; }
.pchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 500; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
}
.pchip.ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.pchip.unk { border-style: dashed; border-color: var(--line-2); color: var(--muted); background: var(--white); animation: ghost 3.2s ease-in-out infinite; }
.pchip.unk:nth-child(3) { animation-delay: .6s; }
.pchip.unk:nth-child(4) { animation-delay: 1.2s; }
.pchip.unk:nth-child(5) { animation-delay: 1.8s; }
.pchip.unk:nth-child(6) { animation-delay: 2.4s; }
.pchip b { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; background: var(--panel-2); color: var(--ink-2); }

.pv-data { flex-direction: column; align-items: stretch; gap: 14px; }
.pmsg { font-family: var(--font-mono); font-size: .74rem; line-height: 1.65; color: var(--ink-2); padding: 11px 13px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.pmsg em { font-style: normal; padding: 1px 4px; border-radius: 4px; background: var(--bad-soft); color: var(--bad); }
.pflow { display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 500; }
.pflow span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pflow span.ext { border-color: #fecaca; color: var(--bad); background: var(--bad-soft); }
.pflow i { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, var(--bad) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flow-x 1s linear infinite; }

.pv-spend { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 10px; }
.pbars { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.pbars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--panel-2); transform-origin: bottom; transition: transform .4s; }
.pbars i:nth-last-child(-n+2) { background: var(--ink); }
.problem:hover .pbars i { transform: scaleY(1.06); }
.plabel { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.plabel .up { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* =========================================================
   HOME: Who it's for
   ========================================================= */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--panel); padding: 8px; }
.role-head { display: flex; align-items: center; gap: 14px; padding: 20px 20px 18px; }
.role-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.role-icon .icon { width: 22px; height: 22px; }
.role-head small { display: block; font-size: .85rem; color: var(--muted); }
.role-head h3 { font-size: 1.3rem; }
.role-body { flex: 1; display: grid; gap: 18px; align-content: start; grid-template-rows: auto 1fr; padding: 0 20px 4px; }
.role-label { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.role-want { color: var(--ink-2); }
.role-gives { margin: 0 -12px; padding: 18px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); align-self: end; }
.role-gives .role-label { color: var(--ink); margin-bottom: 10px; }
.role-get { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.role-get li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .96rem; }
.chk { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.chk .icon { width: 12px; height: 12px; stroke-width: 3; }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr; } }

/* =========================================================
   Closing call to action (all pages)
   ========================================================= */
.cta-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center;
  min-height: 340px; padding: 64px; border-radius: var(--radius-xl); background: var(--panel);
}

.cta-panel p { margin-top: 16px; max-width: 44ch; color: var(--ink-2); font-size: 1.06rem; }
.cta-actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.cta-planet {
  position: absolute; right: -90px; top: 50%; width: 420px; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; box-shadow: 0 40px 80px -30px rgba(12, 10, 9, .45); pointer-events: none;
}
@media (max-width: 900px) {
  .cta-panel { grid-template-columns: 1fr; padding: 44px 28px 220px; }
  .cta-planet { width: 300px; right: 50%; top: auto; bottom: -110px; transform: translateX(50%); }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.site-footer > .container { border-inline: 1px solid var(--line); padding: 64px var(--gutter) 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-tag { margin-top: 10px; color: var(--muted); }
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-links h4 { font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: var(--muted); }
.footnote { margin-top: 14px; font-size: .8rem; line-height: 1.5; color: var(--faint); }
.credits { margin-top: 6px; font-size: .78rem; color: var(--faint); }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

/* footnote marker for figures (targets and estimates) */
.fn { margin-left: 1px; font-size: .62em; vertical-align: super; line-height: 0; color: inherit; opacity: .7; }
.fn:hover { opacity: 1; }

/* =========================================================
   PLATFORM PAGE
   ========================================================= */

/* ---------- Product mock-ups: shared light "screenshot" look ---------- */
.shot { border-radius: var(--radius-xl); background: var(--panel); padding: 28px; }
.visual {
  position: relative; overflow: hidden; border-radius: 16px; padding: 22px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); font-size: .88rem;
}
.visual-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.visual-head strong { font-weight: 600; font-size: .95rem; }
.visual-head small { color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-teal { color: var(--ok); background: var(--ok-soft); }   /* "good" state */
.tag-red { color: var(--bad); background: var(--bad-soft); }
.tag-amber { color: var(--warn); background: var(--warn-soft); }
.tag-gray { color: var(--ink-2); background: var(--panel); }

.bar { height: 7px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.bar i.warn { background: #d97706; }

/* ---------- Product screenshot (real UI, sample data) ---------- */
.ui-shot { margin: 0; }
.ui-shot-scroll { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #f5f7fa; box-shadow: var(--shadow-lg); }
.ui-shot img { width: 100%; height: auto; }
@media (max-width: 760px) {
  /* too detailed to shrink to phone width: keep it legible and let people swipe across */
  .ui-shot-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .ui-shot img { width: 900px; max-width: none; }
}

/* ---------- Dashboard section ---------- */
.dash-section { border-top: 0; }
.dash-section > .container { padding-top: 0; }

.budget { display: grid; gap: 13px; }
.budget-row { display: grid; gap: 6px; }
.budget-meta { display: flex; justify-content: space-between; font-size: .8rem; }
.budget-meta span:last-child { color: var(--muted); }

@media (max-width: 520px) {
  .shot { padding: 10px; border-radius: 20px; }
}

/* ---------- Architecture diagram ---------- */
.arch { display: grid; gap: 0; }
.tier { border-radius: var(--radius-lg); padding: 16px 18px; }
.tier-title { display: flex; align-items: center; gap: 12px; font-size: .86rem; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.tier-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tier-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tier-node { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: .93rem; }
.tier-node .icon { flex: none; width: 19px; height: 19px; color: var(--ink-2); }
.tier-outer { background: var(--panel); }

.tier-gateway { background: var(--ink); color: #fff; padding: 18px; box-shadow: var(--shadow-lg); }
.gw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.gw-name { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.gw-name strong { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.gw-name small { color: #a8a29e; font-size: .86rem; }
.gw-policy { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #e7e5e4; font-size: .82rem; font-weight: 500; }
.gw-mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gw-mod { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #1c1b1a; border: 1px solid #2c2a28; }
.gw-mod img { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.gw-mod strong { display: block; font-size: .96rem; font-weight: 500; }
.gw-mod small { display: block; color: #a8a29e; font-size: .78rem; line-height: 1.35; margin-top: 1px; }

.v-link { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 18px; height: 26px; }
.v-link span { justify-self: center; width: 1.5px; height: 100%; background: repeating-linear-gradient(180deg, var(--line-2) 0 5px, transparent 5px 10px); background-size: 2px 20px; animation: flow-y 1.2s linear infinite; }

.tier-base { margin-top: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.tier-base span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.tier-base .icon { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .tier-nodes, .gw-mods { grid-template-columns: repeat(2, 1fr); }
  .v-link { grid-template-columns: repeat(2, 1fr); }
  .v-link span:nth-child(n+3) { display: none; }
}
@media (max-width: 480px) {
  .tier-node { padding: 10px; font-size: .86rem; gap: 8px; }
  .gw-mod { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gw-policy { border-radius: 10px; }
  .tier-gateway { padding: 16px 14px; }
}

/* ---------- Four jobs (jump links with orbs) ---------- */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.group {
  display: flex; flex-direction: column; align-items: flex-start; padding: 8px; border-radius: var(--radius-lg);
  background: var(--panel); transition: background .25s;
}
.group:hover { background: var(--panel-2); }
.group-art { align-self: stretch; display: grid; place-items: center; padding: 34px 0 30px; border-radius: 14px; background: var(--panel-2); }
.group-art img { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 24px 40px -16px rgba(12, 10, 9, .45); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.group:hover .group-art img { transform: scale(1.06) rotate(-4deg); }
.group h3 { margin: 18px 14px 6px; font-size: 1.15rem; }
.group p { margin: 0 14px; color: var(--ink-2); font-size: .95rem; }
.group-go { margin: 16px 14px 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .92rem; }
.group-go .icon { width: 16px; height: 16px; transition: transform .2s; }
.group:hover .group-go .icon { transform: translateY(2px); }
@media (max-width: 1020px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .groups { grid-template-columns: 1fr; } }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 72px; padding: 72px 0; border-top: 1px solid var(--line); }
.feature > * { min-width: 0; }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:last-child { padding-bottom: 0; }
.feature.reverse .feature-text { order: 2; }
.feature-text .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.feature-text .eyebrow img { width: 26px; height: 26px; border-radius: 50%; }
.feature-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 14px 0 16px; }
.feature-value { font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); max-width: 50ch; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.ticks .tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.cap b { display: block; font-weight: 500; color: var(--ink); }
.ticks .cap span { display: block; margin-top: 2px; font-size: .94rem; line-height: 1.55; color: var(--muted); }
.feature-who { font-size: .92rem; color: var(--muted); }
.feature-who b { color: var(--ink); font-weight: 500; }

/* inventory list */
.inv { display: grid; gap: 8px; }
.inv-row { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #fafaf9; border: 1px solid var(--line); }
.inv-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.inv-ico .icon { width: 16px; height: 16px; }
.inv-name { font-weight: 500; }
.inv-name small { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; font-family: var(--font-mono); }
.inv-users { color: var(--muted); font-size: .78rem; }
.radar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--panel); }
.radar { width: 42px; height: 42px; flex: none; }
.radar .sweep { transform-origin: 22px 22px; animation: spin 3s linear infinite; }
.radar-row strong { display: block; font-weight: 600; }
.radar-row small { color: var(--muted); }

/* masking */
.prompt { padding: 13px 15px; border-radius: 12px; background: #fafaf9; border: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; line-height: 1.75; color: var(--ink-2); }
.prompt-label { font-family: var(--font-body); font-size: .74rem; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.pii { background: var(--bad-soft); color: var(--bad); border-radius: 4px; padding: 1px 4px; }
.mask { background: var(--ink); color: #fff; border-radius: 4px; padding: 1px 5px; font-weight: 600; }
.mask-arrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; color: var(--ink); font-size: .76rem; font-weight: 600; }
.mask-arrow .icon { width: 15px; height: 15px; transform: rotate(90deg); }
.perm { margin-top: 12px; display: grid; gap: 8px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fafaf9; border: 1px solid var(--line); }
.perm-row span:first-child { display: flex; align-items: center; gap: 10px; }
.perm-row .icon { width: 16px; height: 16px; color: var(--muted); }
.alert { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: .82rem; }
.alert .icon { width: 17px; height: 17px; }

/* routing */
.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 14px; }
.route-node { padding: 12px; border-radius: 10px; background: #fafaf9; border: 1px solid var(--line); text-align: center; }
.route-node strong { display: block; font-size: .86rem; font-weight: 600; }
.route-node small { font-size: .74rem; }
.route-mid { display: grid; justify-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--ink-2); }
.route-mid .icon { width: 19px; height: 19px; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stat-mini { padding: 12px; border-radius: 10px; background: #fafaf9; border: 1px solid var(--line); }
.stat-mini b { display: block; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.stat-mini small { color: var(--muted); font-size: .74rem; }

/* compliance */
.frameworks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fw { padding: 13px; border-radius: 12px; background: #fafaf9; border: 1px solid var(--line); }
.fw-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fw-top strong { font-size: .93rem; font-weight: 600; }
.fw-top .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.fw small { display: block; color: var(--muted); font-size: .74rem; margin-top: 8px; }
.evidence { margin-top: 10px; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: #fafaf9; border: 1px solid var(--line); line-height: 1.8; overflow: hidden; }
.evidence b { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 56px 0; }
  .feature.reverse .feature-text { order: 0; }
}
@media (max-width: 480px) {
  .visual { padding: 16px; }
  .inv-row { grid-template-columns: 32px 1fr auto; }
  .inv-users { display: none; }
  .frameworks { grid-template-columns: 1fr; }
}

/* ---------- Where it runs ---------- */
.deploy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deploy-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--panel); transition: background .25s; }
.deploy-card:hover { background: var(--panel-2); }
.deploy-card h3 { font-size: 1.3rem; margin: 56px 0 8px; }
.deploy-card p { color: var(--ink-2); }
.deploy-card.featured { background: var(--ink); color: #fff; }
.deploy-card.featured p { color: #d6d3d1; }
.deploy-card.featured .icon-badge { background: #1c1b1a; border-color: #2c2a28; color: #fff; }
@media (max-width: 900px) { .deploy { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-aside h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 28px; }
.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-points li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--panel); }
.contact-points h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-points p { color: var(--ink-2); font-size: .95rem; }
.contact-points .icon-badge { flex: none; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.75rem; }
.form-body > p { color: var(--ink-2); margin: 8px 0 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2344403c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12, 10, 9, .08); }
.form-foot { margin-top: 26px; display: grid; gap: 14px; }
.form-foot .btn { width: 100%; }
.form-note { font-size: .84rem; color: var(--muted); text-align: center; }

@media (max-width: 960px) { .contact { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; border-radius: 22px; }
}

/* ---------- Request form states ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { font-size: .84rem; color: var(--bad); }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 3px var(--bad-soft); }
.form-alert { padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: .92rem; }
.form-success { text-align: center; padding: 36px 8px; outline: none; }
.success-mark { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 10px var(--panel); }
.success-mark .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.form-success p { color: var(--ink-2); margin-top: 10px; }

.demo-card { margin-top: 24px; display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--panel); }
.demo-card .icon-badge { flex: none; }
.demo-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.demo-card p { color: var(--ink-2); }
.demo-card .btn { margin-top: 14px; }
.demo-alt { margin-top: 12px; font-size: .88rem; }
.demo-alt a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.contact-aside > .demo-alt { margin-top: 24px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Sticky "Book a demo" bar (phones) ---------- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(253, 253, 252, .94); border-top: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .mobile-cta .btn { flex: 1; padding: 14px 10px; }
  body.has-mobile-cta { padding-bottom: 74px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero-grid, .sec-head, .sec-head:has(> .btn) { grid-template-columns: 1fr; }
  .sec-head .btn { justify-self: start; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .container { width: min(100% - 24px, var(--container)); }
  .band > .container { padding-block: 56px; }
  .band-tight > .container { padding-block: 40px; }
  .hero > .container { padding-block: 56px 40px; }

  .dash-section > .container { padding-top: 0; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .card, .deploy-card { padding: 22px; }
  .card.problem, .role { padding: 6px; }
  .site-footer > .container { padding-top: 48px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
