/*
 * Bast website styles.
 * Tokens and visual language sourced from the Bast design system
 * (@bast/shared-styles, authored by Adam Cutler): Estedad display type,
 * blue-grey neumorphic surfaces, and the #0090cc -> #3c54a1 brand gradient.
 * Fonts are self-hosted (assets/fonts) so the privacy-first site makes no
 * third-party font request.
 */

/* ---- Estedad (self-hosted, latin subset) ---- */
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("fonts/estedad-latin-200-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/estedad-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/estedad-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/estedad-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/estedad-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/estedad-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Brand + surfaces (from @bast/shared-styles light theme) */
  --ink: #0d2935;
  --paper: #dde3e9;
  --surface: #f5f7fa;
  --card-face: #e6ebf0;
  --quiet: rgba(13, 41, 53, 0.72);
  --quieter: rgba(13, 41, 53, 0.55);
  --line: rgba(13, 41, 53, 0.15);
  --line-subtle: rgba(13, 41, 53, 0.08);

  --accent: #0090cc;
  --accent-hover: #0078a8;
  --accent-text: #075985; /* AA-safe blue for text */
  --indigo: #3c54a1;
  --proof: #065f46;
  --warn: #92400e;
  --grad: linear-gradient(120deg, #0090cc 0%, #3c54a1 100%);

  --font-display: "Estedad", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale — one role per size, aligned to the @bast/shared-styles ramp.
     Fit form to function:
       display/h2 -> thin (200), the elegant high-impact voice
       h3         -> light (300), large statements
       title      -> medium (500), functional card/component headings
       eyebrow    -> semibold (600), 19px slate, orients the reader
       label      -> semibold (600), 12px accent, tags things
       body*      -> regular (400) */
  --fs-display: clamp(2.6rem, 5.6vw, 4.25rem);
  --fs-h2: clamp(2rem, 4.2vw, 3rem);
  --fs-h3: clamp(1.6rem, 2.7vw, 2.05rem);
  --fs-title: 1.1875rem;   /* 19px — card & component headings */
  --fs-eyebrow: 1.1875rem; /* 19px — section eyebrows / kickers */
  --fs-label: 0.75rem;     /* 12px — micro-labels, tags, footer heads */
  --fs-body-lg: clamp(1.0625rem, 1.5vw, 1.1875rem); /* lede / intros */
  --fs-body: 1rem;         /* 16px — body, lists, nav, controls */
  --fs-body-sm: 0.9375rem; /* 15px — card copy, secondary links */
  --fs-caption: 0.8125rem; /* 13px — helper notes */

  --fw-thin: 200;
  --fw-light: 300;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Neumorphic soft-UI shadows tuned for the #dde3e9 paper */
  --neu-raise:
    8px 8px 20px rgba(22, 27, 29, 0.14),
    -8px -8px 20px rgba(250, 251, 255, 0.9);
  --neu-raise-sm:
    5px 5px 13px rgba(22, 27, 29, 0.1),
    -5px -5px 13px rgba(250, 251, 255, 0.85);
  --neu-btn:
    4px 4px 8px rgba(22, 27, 29, 0.2),
    -4px -4px 8px rgba(250, 251, 255, 1);
  --neu-btn-grad:
    4px 4px 9px rgba(22, 27, 29, 0.3),
    -4px -4px 9px rgba(252, 253, 255, 1);
  --neu-inset:
    inset 2px 2px 5px rgba(22, 27, 29, 0.16),
    inset -2px -2px 5px rgba(250, 251, 255, 0.9);

  --radius: 10px;
  --radius-lg: 16px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 144, 204, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1001;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Section-level eyebrows — the "THE SHIFT" treatment: larger, slate */
.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--quiet);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Small labels inside cards and panels */
.panel-label {
  margin: 0;
  color: var(--accent-text);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* "Selected outcomes" heads the hero panel, so it matches the section eyebrows */
.case-panel > .panel-label {
  color: var(--quiet);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

/* Display headings: thin Estedad, tight tracking */
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* ---- Header ---- */
.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 124px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--quiet);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}

.site-nav a {
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--accent-text);
}

/* ---- Hero ---- */
.hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 4rem) 0;
  min-height: calc(100dvh - 96px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-lead {
  grid-column: 1;
  grid-row: 1;
}

.questions {
  grid-column: 2;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.questions li {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-thin);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0.4em 0;
}

.hero-rotator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  margin: 0 0 1.1rem;
  color: var(--quiet);
  font-size: 1rem;
  font-weight: 500;
}

.rotating-term {
  position: relative;
  display: inline-grid;
  width: 3.7rem;
  height: 1.25em;
  overflow: hidden;
  color: var(--accent-text);
  font-weight: 600;
}

.rotating-term span {
  grid-area: 1 / 1;
}

.rotating-term span:first-child {
  animation: rotate-term-one 6s infinite;
}

.rotating-term span:last-child {
  animation: rotate-term-two 6s infinite;
  opacity: 0;
}

h1 {
  font-size: var(--fs-display);
  font-weight: var(--fw-thin);
  line-height: 1.02;
  margin-bottom: 0.32em;
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5rem);
  line-height: 1.0;
  margin: 0 0 1.4rem;
}

h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 0.14em;
}

.questions li strong,
.hero h1 strong {
  font-weight: 600;
  color: var(--ink);
}

.hero h1 span {
  font-weight: 600;
}

.lede {
  max-width: 36rem;
  color: var(--quiet);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
}

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

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.button-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--neu-btn-grad);
}

.button-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: var(--neu-inset);
}

.button-secondary {
  background: var(--paper);
  color: var(--accent-text);
  box-shadow: var(--neu-btn);
}

.button-secondary:hover {
  transform: translateY(-1px);
}

.button-secondary:active {
  box-shadow: var(--neu-inset);
  transform: translateY(0);
}

/* ---- Hero case panel ---- */
.case-panel {
  display: grid;
  gap: 16px;
  align-self: center;
}

.featured-outcome,
.metric-outcome {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.featured-outcome {
  display: block;
  padding: 1.4rem;
  box-shadow: var(--neu-raise);
  transition: transform 180ms ease;
}

.featured-outcome:hover {
  transform: translateY(-2px);
}

.featured-outcome-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--quieter);
  font-size: 0.84rem;
  margin-bottom: 1rem;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0090cc 0%, #2b6cb0 100%);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  padding: 0.34rem 0.72rem;
  text-transform: uppercase;
}

.featured-outcome h2,
.metric-outcome h2 {
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.14;
  margin: 0 0 0.7rem;
}

.featured-outcome p,
.metric-outcome p {
  color: var(--quiet);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.featured-outcome-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  border-top: 1px solid var(--line-subtle);
  margin-top: 1.1rem;
  padding-top: 0.95rem;
}

.featured-outcome-proof span {
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.metric-outcome {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.1rem;
  padding: 1.3rem;
  box-shadow: var(--neu-raise-sm);
}

.metric-outcome strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gated download that hangs off a Selected outcome */
.outcome-download {
  margin-top: 1rem;
}

.download-trigger {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-text);
  text-decoration: none;
}

.download-trigger:hover {
  color: var(--accent-hover);
}

.outcome-download .gate-form {
  margin-top: 0.85rem;
}

.metric-outcome span {
  color: var(--quieter);
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

/* ---- Sections ---- */
.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-plain {
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.section h2 {
  max-width: 20ch;
  font-size: var(--fs-h2);
  font-weight: var(--fw-thin);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.section > p,
.section-heading + p,
.contact p {
  max-width: 680px;
  color: var(--quiet);
  font-size: var(--fs-body-lg);
}

.section-heading {
  max-width: 760px;
}

/* ---- Interaction (Answer / Refuse / Trace) ---- */
.interaction {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  column-gap: min(6vw, 64px);
  row-gap: 1.25rem;
  align-items: start;
}

.interaction .section-heading {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}

.mode-tabs {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mode-tabs button {
  min-height: 42px;
  border: none;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--quiet);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  box-shadow: var(--neu-btn);
  transition: color 150ms ease, box-shadow 150ms ease;
}

.mode-tabs button[aria-selected="true"] {
  color: var(--accent-text);
  box-shadow: var(--neu-inset);
}

.mode-panels {
  grid-column: 2;
  grid-row: 2;
}

.mode-panels article {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--neu-raise);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

.mode-panels h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  line-height: 1.08;
  margin: 0.6rem 0 1rem;
}

.mode-panels p:last-child {
  color: var(--quiet);
  font-size: var(--fs-body-lg);
  margin-bottom: 0;
}

/* ---- Demos ---- */
.demos {
  border-top: 1px solid var(--line-subtle);
}

.demos .section-heading p:last-child {
  max-width: 760px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: min(5vw, 56px);
  align-items: start;
  min-width: 0;
  margin-top: 2.2rem;
}

.demo-player {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: none;
  border-radius: var(--radius-lg);
  background: #0d1a22;
  overflow: hidden;
  box-shadow: var(--neu-raise);
}

.demo-player iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.demo-player-empty {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.85rem;
  padding: 2rem;
  background:
    radial-gradient(120% 120% at 15% 15%, rgba(0, 144, 204, 0.28), transparent 46%),
    linear-gradient(150deg, #123049 0%, #0d1a22 60%, #10233a 100%);
  color: #fff;
}

.demo-player-empty .panel-label {
  color: rgba(255, 255, 255, 0.65);
}

.demo-player-empty h3 {
  max-width: 12ch;
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  line-height: 1.02;
  margin: 0;
}

.demo-player-empty p:not(.panel-label) {
  max-width: 31rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.play-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(0, 144, 204, 0.35);
}

.play-mark::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #fff;
  transform: translateX(2px);
}

.demo-list {
  display: grid;
  gap: 14px;
}

.demo-card {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: var(--paper);
  box-shadow: var(--neu-raise-sm);
}

.demo-card h3 {
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
  line-height: 1.16;
  margin: 0.5rem 0 0.5rem;
}

.demo-card p:not(.panel-label) {
  color: var(--quiet);
  font-size: var(--fs-body-sm);
  margin-bottom: 0;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 1.1rem;
}

.demo-actions .button {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: var(--fs-body-sm);
}

.demo-actions a,
.channel-link {
  color: var(--accent-text);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.demo-actions a:hover,
.channel-link:hover {
  color: var(--accent-hover);
}

.channel-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.4rem;
}

/* ---- Proof grid ---- */
.proof-grid {
  border-top: 1px solid var(--line-subtle);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 2.2rem;
}

.proof-list article {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  background: var(--paper);
  box-shadow: var(--neu-raise-sm);
}

.proof-list span {
  color: var(--accent-text);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-list h3 {
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
  line-height: 1.16;
  margin: 0.7rem 0;
}

.proof-list p {
  color: var(--quiet);
  font-size: var(--fs-body-sm);
  margin-bottom: 0;
}

/* ---- Contact ---- */
.contact {
  border-top: 1px solid var(--line-subtle);
  text-align: left;
}

/* ---- Footer ---- */
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4rem) 0 3rem;
  border-top: 1px solid var(--line-subtle);
  color: var(--quiet);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 2.5rem;
}

.footer-brand .brand {
  width: 118px;
}

.footer-brand p {
  margin: 1.1rem 0 0;
  max-width: 26rem;
  color: var(--quieter);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-head {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--quiet);
  font-size: var(--fs-body-sm);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-subtle);
  color: var(--quieter);
  font-size: var(--fs-caption);
}

.footer-link-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--quiet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: var(--accent-text);
}

/* ---- Privacy page ---- */
.privacy-page {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.privacy-page h1,
.not-found h1 {
  max-width: 14ch;
  font-size: var(--fs-display);
  font-weight: var(--fw-thin);
}

.privacy-page h2 {
  border-top: 1px solid var(--line-subtle);
  color: var(--accent-text);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  text-transform: uppercase;
}

.privacy-page p,
.privacy-page li {
  color: var(--quiet);
  font-size: var(--fs-body);
}

.privacy-page li + li {
  margin-top: 0.35rem;
}

.back-link {
  color: var(--quiet);
  display: inline-flex;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-text);
}

.updated {
  color: var(--quieter);
  margin-top: 2rem;
}

/* ---- Investor page ---- */
.investor-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 6rem) 0 clamp(4rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: min(7vw, 68px);
  align-items: center;
}

.investor-hero h1 {
  max-width: 12ch;
  font-size: var(--fs-display);
  font-weight: var(--fw-thin);
}

.investor-note {
  max-width: 38rem;
  color: var(--quieter);
  font-size: var(--fs-body-sm);
  margin-top: 1rem;
}

.deck-preview {
  display: block;
  border: none;
  border-radius: var(--radius-lg);
  background: #081725;
  box-shadow: var(--neu-raise);
  overflow: hidden;
  transition: transform 180ms ease;
}

.deck-preview:hover {
  transform: translateY(-2px);
}

.deck-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.investor-summary,
.investor-proof {
  border-top: 1px solid var(--line-subtle);
}

.investor-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 2.2rem;
}

.investor-points article {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--neu-raise-sm);
  padding: 1.3rem;
}

.investor-points span {
  color: var(--accent-text);
  display: block;
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.investor-points p {
  color: var(--quiet);
  margin-bottom: 0;
}

.investor-contact {
  border-top: 1px solid var(--line-subtle);
}

/* ---- 404 ---- */
.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.not-found {
  width: min(620px, calc(100% - 40px));
  text-align: center;
}

.not-found-logo {
  width: 132px;
  height: auto;
  margin-bottom: 2rem;
}

.not-found h1 {
  margin-left: auto;
  margin-right: auto;
}

.not-found p:not(.eyebrow) {
  color: var(--quiet);
  font-size: var(--fs-body-lg);
}

/* ---- Rotator animation ---- */
@keyframes rotate-term-one {
  0%,
  42%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50%,
  92% {
    opacity: 0;
    transform: translateY(-0.45em);
  }
}

@keyframes rotate-term-two {
  0%,
  42%,
  100% {
    opacity: 0;
    transform: translateY(0.45em);
  }

  50%,
  92% {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-cta {
  color: var(--accent-text);
  font-weight: 600;
}

/* ---- Selected outcomes (3-up row under the hero) ---- */
.outcomes {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 7vw, 5.5rem);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 1.4rem;
  align-items: stretch;
}

.outcome-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--neu-raise);
  padding: 1.6rem;
}

.outcome-card .card-kicker {
  margin: 0;
}

.outcome-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0.1rem;
  min-height: 2.2rem;
}

.outcome-stat strong {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.outcome-stat span {
  color: var(--quieter);
  font-size: var(--fs-body-sm);
}

.outcome-card h3 {
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
  line-height: 1.14;
  margin: 0.45rem 0 0.55rem;
}

.outcome-card > p:not(.card-kicker):not(.outcome-stat) {
  color: var(--quiet);
  font-size: var(--fs-body-sm);
  margin: 0;
}

.outcome-card .card-link,
.outcome-card .outcome-download {
  margin-top: auto;
  padding-top: 1.1rem;
}

/* ---- Card grids (offerings, technologies, case studies) ---- */
.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 2.2rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--neu-raise-sm);
  padding: 1.4rem;
}

.card-kicker {
  margin: 0;
  color: var(--accent-text);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
  line-height: 1.16;
  margin: 0.7rem 0 0.5rem;
}

.card p {
  color: var(--quiet);
  font-size: var(--fs-body-sm);
  margin: 0;
}

.card .metric-line {
  color: var(--ink);
  margin-top: 0.85rem;
}

.card .metric-line strong {
  color: var(--accent-text);
  font-weight: 600;
}

.case-sector {
  margin: 2.6rem 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-studies .featured-outcome {
  margin-top: 16px;
}

/* ---- Data ownership ---- */
.ownership-list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 44px;
}

.ownership-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--quiet);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
}

.ownership-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 3px;
  background: var(--grad);
}

.ownership-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Contact form ---- */
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 2.2rem;
  max-width: 720px;
}

.contact-form .field {
  display: grid;
  gap: 0.4rem;
}

.contact-form .field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--ink);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}

.contact-form .optional {
  color: var(--quieter);
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  width: 100%;
  background: var(--paper);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--neu-inset);
  padding: 0.75rem 0.9rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(0, 144, 204, 0.45);
  outline-offset: 2px;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  box-shadow: var(--neu-inset), inset 0 0 0 2px #ed3b30;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-note {
  margin: 0;
  color: var(--quiet);
  font-size: var(--fs-body-sm);
}

.form-note.is-error {
  color: #991b1b;
}

.form-note.is-success {
  color: #065f46;
}

/* ---- Text-a-human primary CTA + form lead-in ---- */
.text-cta {
  margin: 1.6rem 0 2.4rem;
}

.text-cta .button-primary {
  min-height: 52px;
  font-size: var(--fs-body-lg);
}

.text-cta .form-note {
  max-width: 42rem;
  margin-top: 0.95rem;
}

.form-lead {
  margin: 0 0 0.9rem;
}

.form-lead + .contact-form {
  margin-top: 0;
}

/* ---- Follow / subscribe row ---- */
.follow {
  max-width: 720px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-subtle);
}

.follow-note {
  margin: 0.5rem 0 0;
  color: var(--quiet);
  font-size: var(--fs-body-sm);
}

.follow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.1rem;
}

/* ---- Card link + gated downloads ---- */
.card-link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--accent-text);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent-hover);
}

.gate-form {
  margin-top: 1.2rem;
}

.gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-row input {
  flex: 1 1 200px;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--neu-inset);
  padding: 0.7rem 0.85rem;
}

.gate-row input:focus-visible {
  outline: 3px solid rgba(0, 144, 204, 0.45);
  outline-offset: 2px;
}

.gate-row input[aria-invalid="true"] {
  box-shadow: var(--neu-inset), inset 0 0 0 2px #ed3b30;
}

.gate-row .button {
  flex: 0 0 auto;
}

.gate-note {
  margin: 0.65rem 0 0;
  color: var(--quieter);
  font-size: var(--fs-caption);
}

.gate-note.is-error {
  color: #991b1b;
}

.gate-note.is-success {
  color: #065f46;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    min-height: 0;
  }

  .hero .questions {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .hero-lead {
    grid-column: 1;
    grid-row: auto;
  }

  .hero h1 {
    white-space: normal;
  }

  .investor-hero {
    grid-template-columns: 1fr;
  }

  .interaction {
    grid-template-columns: 1fr;
  }

  .interaction .section-heading,
  .mode-tabs,
  .mode-panels {
    grid-column: 1;
  }

  .interaction .section-heading {
    grid-row: auto;
  }

  .mode-tabs {
    grid-row: auto;
  }

  .mode-panels {
    grid-row: auto;
  }

  .demo-layout {
    grid-template-columns: 1fr;
  }

  .investor-points {
    grid-template-columns: 1fr;
  }

  .proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ownership-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .site-footer,
  .privacy-page,
  .not-found {
    width: min(100% - 28px, var(--max));
  }

  .site-nav {
    gap: 14px;
    font-size: var(--fs-body-sm);
  }

  .featured-outcome-proof {
    grid-template-columns: 1fr;
  }

  .metric-outcome {
    grid-template-columns: 1fr;
  }

  .demo-player,
  .demo-player-empty {
    min-height: 0;
  }

  .demo-player-empty {
    padding: 1.3rem;
  }

  .proof-list {
    grid-template-columns: 1fr;
  }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rotating-term {
    width: auto;
    overflow: visible;
  }

  .rotating-term span {
    display: none;
  }

  .rotating-term::after {
    content: "AI + agents";
  }

  .button,
  .featured-outcome,
  .deck-preview {
    transition: none;
  }
}
