/* Pinnova — core stylesheet */

:root {
  --grad-navy: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-600) 60%, var(--navy-800) 100%);
  --navy-950: #081120;
  --navy-900: #0d1e35;
  --navy-800: #0f2a49;
  --navy-700: #143b64;
  --navy-600: #0f5ea6;
  --brand-600: #0a6ad1;
  --brand-500: #0a84ff;
  --brand-400: #1b93ff;
  --brand-300: #9fc3ea;
  --ok-500: #0a8f5a;
  --ok-300: #7ee2b8;
  --warn-500: #b26a00;
  --warn-300: #f0a940;
  --err-500: #c62828;
  --err-300: #ff9b9b;
  --ink-900: #10243e;
  --ink-700: #2c3e54;
  --ink-500: #5f738b;
  --ink-300: #93a3b8;
  --slate-100: #f6f8fb;
  --slate-200: #d8e0ea;
  --slate-300: #c3cedb;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 3px 12px rgba(16, 36, 62, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 36, 62, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 36, 62, 0.16);
  --container: 1180px;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: radial-gradient(circle at 10% 10%, #dcecff 0%, var(--slate-100) 40%, #eef4fb 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link: off-screen until focused, then pinned top-left. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Login-gated pages hide their content until the client-side session check
   resolves (main.js reveals it for a signed-in user, or redirects to login). */
body.gate-pending main { display: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--ink-700); }

ul { margin: 0; padding: 0; }
li { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-500) 100%);
  border-color: var(--brand-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #3aa3ff 0%, var(--brand-400) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-300);
}
.btn-outline:hover { border-color: var(--navy-900); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--grad-navy);
  border-bottom: 1px solid rgba(174, 210, 246, 0.23);
  box-shadow: 0 10px 28px rgba(8, 20, 38, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: var(--white); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  font-size: 14.5px;
  font-weight: 600;
}
.nav-dropdown a:hover { background: var(--slate-100); }
.nav-dropdown a span {
  display: block;
  font-weight: 400;
  color: var(--ink-500);
  font-size: 13px;
  margin-top: 2px;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--slate-100);
  color: var(--ink-900);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16,36,62,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16,36,62,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
  color: var(--navy-900);
}

.hero .lede {
  font-size: 18.5px;
  color: var(--ink-700);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-subnote {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-500);
}

.page-hero {
  background: var(--grad-navy);
  color: var(--white);
  padding: 74px 0 68px;
}

.page-hero .eyebrow { color: var(--brand-300); }
.page-hero h1 { color: var(--white); font-size: 40px; max-width: 780px; }
.page-hero .lede { color: rgba(255, 255, 255, 0.72); font-size: 17.5px; max-width: 640px; }

/* ---------- Scorecard mockup (hero visual) ---------- */

.scorecard {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.scorecard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.scorecard-head .dot-row { display: flex; gap: 6px; }
.scorecard-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); }

.scorecard-title { font-size: 13px; font-weight: 600; color: var(--ink-500); }

.scorecard-card {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
}

.scorecard-card:last-child { margin-bottom: 0; }

.scorecard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scorecard-name { color: var(--navy-900); font-weight: 600; font-size: 14.5px; }
.scorecard-domain { color: var(--ink-500); font-size: 12.5px; margin-top: 2px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.badge-good { background: rgba(10, 143, 90, 0.15); color: var(--ok-300); }
.badge-warn { background: rgba(178, 106, 0, 0.18); color: var(--warn-300); }

/* On light card backgrounds (mini-tables, pricing cards, the scorecard) the
   light-on-light pairing above loses contrast, so use bds's solid-text-on-tint
   pill style instead. */
.mini-table .badge-good,
.pricing-card .badge-good,
.scorecard .badge-good { background: #e9fbf2; color: var(--ok-500); }
.mini-table .badge-warn,
.pricing-card .badge-warn,
.scorecard .badge-warn { background: #fff7e9; color: var(--warn-500); }

.scorecard-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-500);
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--slate-100); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 33px; color: var(--navy-900); }
.section-head p { font-size: 17px; }

/* ---------- Legal pages (Terms, Privacy) ---------- */

.legal-content { max-width: 760px; }
.legal-updated { font-size: 13px; color: var(--ink-500); margin-bottom: 40px; }
.legal-content h2 { font-size: 22px; color: var(--navy-900); margin: 44px 0 14px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 16px; color: var(--navy-900); margin: 24px 0 10px; }
.legal-content p { font-size: 15px; line-height: 1.7; }
.legal-content ul { margin: 0 0 1em; padding-left: 22px; }
.legal-content li { font-size: 15px; line-height: 1.7; color: var(--ink-700); margin-bottom: 6px; }
.legal-content a { color: var(--brand-500); text-decoration: underline; }
.legal-content strong { color: var(--navy-900); }

/* ---------- Pillar / feature grid ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pillar-card:hover,
.trust-card:hover,
.value-card:hover,
.pricing-card:hover { box-shadow: var(--shadow-md); border-color: var(--slate-300); transform: translateY(-2px); }

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--brand-300);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 22px; height: 22px; }

.pillar-card h3 { font-size: 18px; color: var(--navy-900); }
.pillar-card p { font-size: 14.5px; margin-bottom: 0; }
.pillar-num { font-size: 12px; font-weight: 700; color: var(--ink-300); letter-spacing: 0.06em; margin-bottom: 10px; display: block; }

/* ---------- Trust grid (enterprise proof points) ---------- */
/* Four cards, one row: proportionally scaled down from .pillar-card
   so they still fit four-across in the same container. */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--brand-300);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.trust-icon svg { width: 20px; height: 20px; }

.trust-card h3 { font-size: 16px; color: var(--navy-900); margin-bottom: 6px; }
.trust-card p { font-size: 13px; margin-bottom: 0; }

/* ---------- Industry cards ---------- */

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

.industry-card {
  border-radius: var(--radius-lg);
  padding: 34px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.industry-card.supply-chain { background: linear-gradient(160deg, #123f5c 0%, var(--navy-950) 75%); }
.industry-card.finance { background: linear-gradient(160deg, #1c2340 0%, var(--navy-950) 75%); }
.industry-card.master-data { background: linear-gradient(160deg, #163a3a 0%, var(--navy-950) 75%); }

.industry-card h3 { color: var(--white); font-size: 24px; }
.industry-card p { color: rgba(255,255,255,0.68); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.industry-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Steps ---------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  font-size: 42px;
  font-weight: 800;
  color: var(--slate-300);
  margin-bottom: 6px;
  line-height: 1;
}

.step h3 { font-size: 17px; color: var(--navy-900); }
.step p { font-size: 14.5px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--grad-navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.25), transparent 70%);
  top: -140px;
  right: -100px;
}

.cta-band h2 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.65); margin-bottom: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; }

/* ---------- Detail rows (platform page) ---------- */

.detail-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--slate-200);
}
.detail-row:last-child { border-bottom: none; }
.detail-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.detail-row.reverse .detail-visual { order: 2; }
.detail-row.reverse .detail-copy { order: 1; }

.detail-copy .pillar-icon { margin-bottom: 22px; }
.detail-copy h2 { font-size: 27px; color: var(--navy-900); }
.detail-copy p { font-size: 16px; }

.feature-list { margin-top: 20px; }
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink-700);
  align-items: flex-start;
}
.feature-list li svg { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; color: var(--brand-500); }

.detail-visual {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 260px;
}

/* generic mini table used inside detail visuals */
.mini-table { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--slate-200); overflow: hidden; box-shadow: var(--shadow-sm); }
.mini-table .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--slate-200); font-size: 13.5px; }
.mini-table .row:last-child { border-bottom: none; }
.mini-table .row .label { font-weight: 600; color: var(--navy-900); }
.mini-table .row .sub { color: var(--ink-500); font-size: 12px; }
.mini-table .head { background: var(--navy-900); color: var(--white); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 16px; }

.license-key-block { margin-top: 16px; }
.license-key-block .label { font-weight: 600; color: var(--navy-900); font-size: 13.5px; margin-bottom: 6px; }
.license-key-value {
  word-break: break-all;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.btn-small { width: auto; padding: 8px 14px; font-size: 13px; }

/* ---------- Pain point / use-case lists (solutions pages) ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col h2 { font-size: 27px; color: var(--navy-900); }

.check-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 15.5px;
  color: var(--ink-700);
}
.check-list li:last-child { border-bottom: none; }
.check-list .icon-bad, .check-list .icon-good {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.icon-bad { background: #fbe9e7; color: var(--err-500); }
.icon-good { background: rgba(10, 132, 255, 0.12); color: var(--brand-500); }
.icon-bad svg, .icon-good svg { width: 14px; height: 14px; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.domain-chip {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.domain-chip:hover { box-shadow: var(--shadow-sm); border-color: var(--slate-300); }
.domain-chip .name { font-weight: 700; color: var(--navy-900); font-size: 15px; margin-bottom: 4px; }
.domain-chip .desc { font-size: 13px; color: var(--ink-500); }

.usecase-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.usecase-table th, .usecase-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 14.5px;
  vertical-align: top;
}
.usecase-table th {
  background: var(--navy-900);
  color: var(--white);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.usecase-table tr:last-child td { border-bottom: none; }
.usecase-table td.pillar { font-weight: 700; color: var(--brand-500); white-space: nowrap; }

/* ---------- About page ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.value-card h3 { font-size: 18px; color: var(--navy-900); }
.value-card p { font-size: 14.5px; margin-bottom: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.stat-row .stat-num { font-size: 34px; font-weight: 800; color: var(--navy-900); display: flex; align-items: center; gap: 8px; }
.stat-row .stat-num svg { width: 32px; height: 32px; }
.stat-row .stat-label { font-size: 14px; color: var(--ink-500); margin-top: 4px; }

/* ---------- Waitlist / forms ---------- */

.form-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 7px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 13px; color: var(--ink-500); margin-top: 14px; margin-bottom: 0; }

.form-success {
  display: none;
  background: rgba(10, 143, 90, 0.08);
  border: 1px solid rgba(10, 143, 90, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--navy-900);
  font-size: 14.5px;
  margin-top: 18px;
}
.form-success.visible { display: block; }

/* Account page: exactly one of the .account-state cards is shown at a time
   (loading / verifying / dashboard / signed-out), toggled via JS through the
   `hidden` attribute -- no rule needed beyond [hidden] below. */
.account-action { margin-top: 18px; }
.account-action-secondary { margin-top: 10px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; }

.perk-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-200);
}
.perk-list li:last-child { border-bottom: none; }
.perk-list .n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-900); color: var(--brand-300);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  flex-shrink: 0;
}
.perk-list h4 { margin: 0 0 3px; font-size: 15.5px; color: var(--navy-900); }
.perk-list p { margin: 0; font-size: 13.5px; }

/* ---------- Pricing cards ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pricing-toggle { justify-content: center; margin: 0 auto 24px; width: fit-content; }

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pricing-card.featured {
  border: 2px solid var(--navy-900);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pricing-card.featured:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pricing-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
}

.pricing-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.billing-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 12px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
}
.billing-opt {
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.billing-opt.is-active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.billing-save {
  font-size: 11px;
  font-weight: 700;
  color: var(--ok-500);
  background: #e9fbf2;
  padding: 1px 7px;
  border-radius: 999px;
}

.pricing-tier span:first-child {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-500);
}

.pricing-price { font-size: 34px; font-weight: 800; color: var(--navy-900); margin-bottom: 4px; }
.pricing-price small { font-size: 15px; font-weight: 500; color: var(--ink-500); }
.pricing-min {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin: 0 0 8px;
}

.pricing-desc { font-size: 14.5px; color: var(--ink-500); margin-bottom: 22px; }

.pricing-card .feature-list { flex-grow: 1; margin-bottom: 24px; }

.licensing-note { text-align: center; margin-top: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.55);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 14px; max-width: 280px; }

.footer-col h4 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255, 255, 255, 0.55); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal-links a { color: rgba(255, 255, 255, 0.4); }
.footer-legal-links a:hover { color: var(--white); }

/* ---------- 404 page ---------- */

.notfound-section { text-align: center; padding: 140px 0; }
.notfound-section .eyebrow { justify-content: center; }
.notfound-title { font-size: 32px; color: var(--navy-900); }
.notfound-text { max-width: 460px; margin: 0 auto 28px; }

/* ---------- Waitlist page ---------- */

.perk-heading { font-size: 25px; color: var(--navy-900); margin-bottom: 24px; }
.link-accent { color: var(--brand-500); font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lede { max-width: 100%; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-row, .detail-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .detail-row.reverse .detail-visual { order: 1; }
  .detail-row.reverse .detail-copy { order: 2; }
  .two-col { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid, .pricing-grid-3 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
  .section { padding: 60px 0; }
  .pillar-grid, .step-grid, .domain-grid, .value-grid, .trust-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .usecase-table { display: block; overflow-x: auto; }
}

/* ---------- Mobile nav panel ---------- */

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 24px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 15.5px;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); }
.mobile-nav .btn { margin: 10px 24px 0; }

/* ---------- AI chat widget ---------- */

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--brand-600);
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 200;
  transition: transform 0.15s ease;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher.open { background: var(--navy-800); border-color: var(--navy-900); }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}
.chat-panel.open { display: flex; }

.chat-panel-header {
  background: var(--grad-navy);
  color: var(--white);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-panel-close {
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.chat-msg-assistant {
  align-self: flex-start;
  background: var(--slate-100);
  color: var(--ink-900);
  border: 1px solid var(--slate-200);
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--brand-500);
  color: var(--white);
}
.chat-msg-pending { color: var(--ink-500); font-style: italic; }

.chat-panel-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--slate-200);
}
.chat-panel-form input {
  flex: 1;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
}
.chat-panel-form input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}
.chat-panel-form .btn { padding: 9px 16px; font-size: 13.5px; }

.chat-panel-footnote {
  font-size: 11px;
  color: var(--ink-500);
  padding: 0 14px 12px;
  margin: 0;
}

.chat-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 14px 6px;
}

.chat-panel-check {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  cursor: pointer;
}

.chat-panel-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.chat-lead-form {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-lead-form input {
  flex: 1 1 140px;
  min-width: 0;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}
.chat-lead-form input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.chat-panel-actions .form-note {
  margin: 0;
  font-size: 11.5px;
}

@media (max-width: 480px) {
  /* Phones: the chat panel takes the screen above the launcher so the
     conversation, not the actions row, gets the room. */
  .chat-panel {
    top: 12px;
    right: 8px;
    left: 8px;
    bottom: 92px;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: var(--radius-md, 12px);
  }
  .chat-panel-actions { padding-bottom: 4px; }
  .chat-panel {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 84px;
  }
  .chat-launcher { right: 16px; bottom: 16px; }
}
