/* ==========================================================================
   Starts AI Beacon — IBM Carbon Light Design System
   Diamond Campus Intelligence
   ========================================================================== */

:root {
  /* Carbon Light Palette */
  --cds-bg: #ffffff;
  --cds-layer-01: #f4f4f4;        /* Gray 10 */
  --cds-layer-02: #ffffff;
  --cds-layer-hover: #e8e8e8;
  --cds-border-subtle: #e0e0e0;   /* Gray 20 */
  --cds-border-strong: #8d8d8d;   /* Gray 50 */
  --cds-text-primary: #161616;    /* Gray 100 */
  --cds-text-secondary: #525252;  /* Gray 70 */
  --cds-text-helper: #6f6f6f;     /* Gray 60 */
  --cds-text-on-color: #ffffff;
  --cds-interactive: #0f62fe;     /* IBM Blue 60 */
  --cds-interactive-hover: #0353e9;
  --cds-interactive-active: #002d9c;
  --cds-blue-10: #edf5ff;
  --cds-blue-20: #d0e2ff;
  --cds-support-success: #198038; /* Green 60 */
  --cds-green-10: #defbe6;
  --cds-support-error: #da1e28;   /* Red 60 */
  --cds-red-10: #fff1f1;
  --cds-support-warning: #8e6a00;
  --cds-yellow-10: #fcf4d6;
  --cds-header-bg: #161616;
  --cds-header-border: #393939;

  /* Typography */
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Geometry */
  --radius-none: 0px;
  --radius-xs: 2px;
  --container-max: 1312px;
  --header-height: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--cds-bg);
  color: var(--cds-text-primary);
  line-height: 1.5;
  padding-top: var(--header-height);
}

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

a {
  color: var(--cds-interactive);
  text-decoration: none;
}

a:hover {
  color: var(--cds-interactive-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cds-interactive);
  outline-offset: 2px;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--cds-interactive);
  color: var(--cds-text-on-color);
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 2000;
}

.skip-link:focus {
  top: 8px;
}

/* ==========================================================================
   Carbon 16-Column Container & Grid
   ========================================================================== */

.cds-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.cds-grid-16 {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 16px;
}

.cds-grid-16--flush {
  gap: 0;
}

.col-span-16 { grid-column: span 16; }
.col-span-12 { grid-column: span 12; }
.col-span-10 { grid-column: span 10; }
.col-span-9  { grid-column: span 9; }
.col-span-8  { grid-column: span 8; }
.col-span-7  { grid-column: span 7; }
.col-span-6  { grid-column: span 6; }
.col-span-5  { grid-column: span 5; }
.col-span-4  { grid-column: span 4; }

.cds-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cds-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cds-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--cds-border-subtle);
  border: 1px solid var(--cds-border-subtle);
}

.cds-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--cds-border-subtle);
  border: 1px solid var(--cds-border-subtle);
}

/* ==========================================================================
   Carbon UI Shell Header
   ========================================================================== */

.cds-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--cds-header-bg);
  border-bottom: 1px solid var(--cds-header-border);
  z-index: 1000;
}

.cds-header__inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cds-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.cds-header__brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.cds-header__brand-prefix {
  font-weight: 400;
  color: #c6c6c6;
}

.cds-header__brand-name {
  font-weight: 600;
  color: #ffffff;
}

.cds-header__divider {
  width: 1px;
  height: 20px;
  background: #393939;
}

.cds-header__nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin-right: auto;
}

.cds-header__link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: #c6c6c6;
  font-size: 0.875rem;
  font-weight: 400;
  border-bottom: 3px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  text-decoration: none;
}

.cds-header__link:hover {
  background: #262626;
  color: #ffffff;
  text-decoration: none;
}

.cds-header__link[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: var(--cds-interactive);
  background: #262626;
}

.cds-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds-header__cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--cds-interactive);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-none);
  text-decoration: none;
  white-space: nowrap;
}

.cds-header__cta:hover {
  background: var(--cds-interactive-hover);
  color: #ffffff;
  text-decoration: none;
}

.cds-header__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid #525252;
  color: #ffffff;
  height: 32px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  cursor: pointer;
}

/* ==========================================================================
   Typography & Section Primitives
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cds-interactive);
  margin: 0 0 12px;
}

.display-title {
  font-size: clamp(2.125rem, 3.8vw, 3.25rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--cds-text-primary);
}

.display-title strong {
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--cds-text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--cds-text-secondary);
  margin: 0;
  max-width: 68ch;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--cds-text-secondary);
  margin: 0 0 28px;
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
}

.cds-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--cds-border-subtle);
}

.cds-section--gray {
  background: var(--cds-layer-01);
}

.cds-section--compact {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 36px;
}

/* ==========================================================================
   Carbon Buttons
   ========================================================================== */

.cds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-none);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 110ms ease, border-color 110ms ease, color 110ms ease;
}

.cds-btn:hover {
  text-decoration: none;
}

.cds-btn--primary {
  background: var(--cds-interactive);
  color: #ffffff;
}

.cds-btn--primary:hover {
  background: var(--cds-interactive-hover);
  color: #ffffff;
}

.cds-btn--primary:active {
  background: var(--cds-interactive-active);
}

.cds-btn--secondary {
  background: #393939;
  color: #ffffff;
}

.cds-btn--secondary:hover {
  background: #4c4c4c;
  color: #ffffff;
}

.cds-btn--tertiary {
  background: transparent;
  color: var(--cds-interactive);
  border-color: var(--cds-interactive);
}

.cds-btn--tertiary:hover {
  background: var(--cds-interactive);
  color: #ffffff;
}

.cds-btn--full {
  width: 100%;
}

.cds-btn:disabled {
  background: #c6c6c6;
  color: #8d8d8d;
  border-color: #c6c6c6;
  cursor: not-allowed;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Carbon Badges / Tags
   ========================================================================== */

.cds-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  white-space: nowrap;
}

.cds-tag--blue {
  background: var(--cds-blue-10);
  color: #0043ce;
  border-color: var(--cds-blue-20);
}

.cds-tag--green {
  background: var(--cds-green-10);
  color: var(--cds-support-success);
  border-color: #a7f0ba;
}

.cds-tag--red {
  background: var(--cds-red-10);
  color: var(--cds-support-error);
  border-color: #ffd7d9;
}

.cds-tag--gray {
  background: #e0e0e0;
  color: var(--cds-text-primary);
}

.cds-tag--dark {
  background: #161616;
  color: #ffffff;
}

/* ==========================================================================
   Hero & Live Score Delta Panel (Page 1)
   ========================================================================== */

.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--cds-border-subtle);
  background: var(--cds-bg);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero__trust-line {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cds-border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--cds-text-secondary);
}

.hero__trust-line span strong {
  color: var(--cds-text-primary);
  font-weight: 600;
}

/* Live Score Delta Card */
.delta-panel {
  background: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  border-top: 3px solid var(--cds-interactive);
  padding: 24px;
}

.delta-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cds-border-subtle);
  margin-bottom: 20px;
}

.delta-panel__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cds-text-primary);
  margin: 0;
}

.delta-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.delta-box {
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  padding: 16px;
}

.delta-box--after {
  border-color: var(--cds-support-success);
  border-top: 3px solid var(--cds-support-success);
}

.delta-box--before {
  border-top: 3px solid var(--cds-support-error);
}

.delta-box__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cds-text-secondary);
  margin-bottom: 6px;
}

.delta-box__score {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.delta-box__score--red {
  color: var(--cds-support-error);
}

.delta-box__score--green {
  color: var(--cds-support-success);
}

.delta-box__sub {
  font-size: 0.75rem;
  color: var(--cds-text-secondary);
  margin-top: 6px;
}

.delta-arrow {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cds-interactive);
}

.delta-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.delta-bar__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 4px;
}

.delta-bar__track {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  position: relative;
}

.delta-bar__fill {
  height: 100%;
}

.delta-bar__fill--red {
  background: var(--cds-support-error);
}

.delta-bar__fill--green {
  background: var(--cds-support-success);
}

.delta-bar__fill--blue {
  background: var(--cds-interactive);
}

.delta-panel__footnote {
  font-size: 0.75rem;
  color: var(--cds-text-secondary);
  border-top: 1px solid var(--cds-border-subtle);
  padding-top: 12px;
  margin: 0;
}

/* ==========================================================================
   KPI Strip & Model Strip
   ========================================================================== */

.kpi-cell {
  background: var(--cds-bg);
  padding: 24px 20px;
}

.kpi-cell__value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--cds-text-primary);
  margin-bottom: 6px;
}

.kpi-cell__value--alert {
  color: var(--cds-support-error);
}

.kpi-cell__value--blue {
  color: var(--cds-interactive);
}

.kpi-cell__label {
  font-size: 0.8125rem;
  color: var(--cds-text-secondary);
  margin: 0;
}

.model-cell {
  background: var(--cds-bg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.model-cell__tier {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cds-text-helper);
}

.model-cell__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cds-text-primary);
  margin: 4px 0;
}

.model-cell__desc {
  font-size: 0.8125rem;
  color: var(--cds-text-secondary);
  margin: 0;
}

.dual-track {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.track-card {
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  border-left: 3px solid var(--cds-interactive);
  padding: 20px 24px;
}

.track-card--b2b {
  border-left-color: var(--cds-support-success);
}

.track-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 8px;
}

.track-card p {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  margin: 0;
}

/* ==========================================================================
   Carbon Tiles (Pillars & Problem Cards)
   ========================================================================== */

.cds-tile {
  background: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cds-tile--white {
  background: var(--cds-bg);
}

.cds-tile__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cds-interactive);
  margin-bottom: 12px;
}

.cds-tile h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
}

.cds-tile p {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  margin: 0 0 16px;
}

.cds-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cds-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--cds-text-primary);
}

.cds-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--cds-interactive);
}

.cds-list--green li::before {
  background: var(--cds-support-success);
}

/* Starts CRM Gate 5 Callout */
.gate5-banner {
  margin-top: 24px;
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  border-left: 4px solid var(--cds-interactive);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.gate5-banner h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 4px 0 6px;
}

.gate5-banner p {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  margin: 0;
  max-width: 76ch;
}

/* Problem Cards */
.problem-card {
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  border-top: 3px solid var(--cds-support-error);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.problem-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.problem-card__school {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cds-text-primary);
}

.problem-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
}

.problem-card p {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  margin: 0;
}

.problem-card__impact {
  padding-top: 12px;
  border-top: 1px solid var(--cds-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cds-text-primary);
}

/* ==========================================================================
   Sample 6-Model Executive Report Showcase (Page 1)
   ========================================================================== */

.sample-showcase {
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  border-top: 3px solid var(--cds-interactive);
}

.sample-showcase__bar {
  background: #161616;
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sample-showcase__school {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
  margin: 4px 0 2px;
}

.sample-showcase__meta {
  font-size: 0.75rem;
  color: #c6c6c6;
}

.sample-showcase__score-box {
  background: #262626;
  border: 1px solid #525252;
  border-top: 3px solid var(--cds-support-error);
  padding: 10px 18px;
  text-align: center;
  min-width: 148px;
}

.sample-showcase__score {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
}

.sample-showcase__score-cap {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #c6c6c6;
  margin-top: 3px;
}

.sample-showcase__body {
  padding: 24px;
}

.sample-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.sample-pillar {
  background: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  border-top: 3px solid var(--cds-support-error);
  padding: 12px 14px;
}

.sample-pillar--warn {
  border-top-color: #f1c21b;
}

.sample-pillar__lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--cds-text-secondary);
}

.sample-pillar__val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cds-text-primary);
  margin: 4px 0 2px;
}

.sample-pillar__sub {
  font-size: 0.75rem;
  color: var(--cds-text-secondary);
}

.sample-showcase__footer {
  padding: 20px 24px;
  background: var(--cds-layer-01);
  border-top: 1px solid var(--cds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .sample-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 672px) {
  .sample-pillars {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pricing Page (Page 2)
   ========================================================================== */

.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cds-border-strong);
  background: var(--cds-layer-01);
  padding: 2px;
}

.billing-toggle__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--cds-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-none);
}

.billing-toggle__btn[aria-pressed="true"] {
  background: var(--cds-text-primary);
  color: #ffffff;
}

.billing-toggle__btn[aria-pressed="true"] .cds-tag--green {
  background: var(--cds-support-success);
  color: #ffffff;
  border-color: var(--cds-support-success);
}

.pricing-card {
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card--featured {
  background: var(--cds-layer-01);
  border: 2px solid var(--cds-interactive);
}

.pricing-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 12px;
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.pricing-card__scope {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  margin: 0 0 20px;
}

.pricing-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--cds-border-subtle);
  border-bottom: 1px solid var(--cds-border-subtle);
  margin-bottom: 16px;
}

.pricing-card__amount {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
}

.pricing-card__annual-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cds-text-secondary);
  min-height: 18px;
  margin: -8px 0 18px;
}

.pricing-card__features {
  margin-bottom: 28px;
  flex-grow: 1;
}

/* Carbon Structured Data Table */
.cds-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cds-border-subtle);
  background: var(--cds-bg);
}

.cds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.cds-table thead th {
  background: #e0e0e0;
  color: var(--cds-text-primary);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cds-border-strong);
  white-space: nowrap;
}

.cds-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  vertical-align: top;
}

.cds-table tbody tr:hover td {
  background: var(--cds-layer-01);
}

.cds-table__group td {
  background: var(--cds-layer-01);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cds-text-secondary);
  padding: 10px 16px;
}

.check-yes {
  color: var(--cds-support-success);
  font-family: var(--font-mono);
  font-weight: 600;
}

.check-no {
  color: var(--cds-text-helper);
  font-family: var(--font-mono);
}

/* Native Accessible Accordion (<details>) */
.cds-accordion {
  border-top: 1px solid var(--cds-border-subtle);
}

.cds-accordion details {
  border-bottom: 1px solid var(--cds-border-subtle);
  background: var(--cds-bg);
}

.cds-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cds-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 110ms ease;
}

.cds-accordion summary::-webkit-details-marker {
  display: none;
}

.cds-accordion summary:hover {
  background: var(--cds-layer-01);
}

.cds-accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--cds-text-primary);
  flex-shrink: 0;
}

.cds-accordion details[open] summary::after {
  content: "−";
  color: var(--cds-interactive);
}

.cds-accordion__body {
  padding: 0 16px 20px;
  font-size: 0.9375rem;
  color: var(--cds-text-secondary);
  max-width: 78ch;
}

/* ==========================================================================
   Onboarding & Stripe Checkout (Page 3)
   ========================================================================== */

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.form-step {
  background: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 28px;
  margin-bottom: 24px;
}

.form-step__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cds-border-subtle);
}

.form-step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cds-interactive);
  text-transform: uppercase;
}

.form-step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cds-text-secondary);
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select {
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--cds-text-primary);
  background: var(--cds-bg);
  border: none;
  border-bottom: 1px solid var(--cds-border-strong);
  border-radius: var(--radius-none);
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--cds-interactive);
  outline-offset: -2px;
}

/* Modern CSS :user-invalid so errors only appear after interaction */
.form-field input:user-invalid,
.form-field select:user-invalid {
  outline: 2px solid var(--cds-support-error);
  outline-offset: -2px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 8px;
  font-size: 0.875rem;
  color: var(--cds-text-primary);
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cds-interactive);
}

/* Plan Radio Tiles */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.plan-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  padding: 16px;
  cursor: pointer;
}

.plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option:has(input:checked),
.plan-option.is-selected {
  border: 2px solid var(--cds-interactive);
  background: var(--cds-blue-10);
}

.plan-option__title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.plan-option__price {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cds-interactive);
}

.plan-option__desc {
  font-size: 0.75rem;
  color: var(--cds-text-secondary);
}

/* Order Summary Sticky Card */
.summary-card {
  position: sticky;
  top: 72px;
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  border-top: 3px solid var(--cds-text-primary);
  padding: 24px;
}

.summary-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cds-border-subtle);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.875rem;
}

.summary-row--muted {
  color: var(--cds-text-secondary);
  font-size: 0.8125rem;
}

.summary-row--total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--cds-border-strong);
  font-weight: 600;
  font-size: 1rem;
}

.summary-total-amount {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
}

.summary-badges {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cds-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--cds-text-secondary);
}

.summary-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cds-support-success);
  flex-shrink: 0;
}

/* Carbon Inline Notification */
.cds-notification {
  padding: 16px 20px;
  border-left: 3px solid var(--cds-interactive);
  background: var(--cds-blue-10);
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.cds-notification--success {
  border-left-color: var(--cds-support-success);
  background: var(--cds-green-10);
}

.cds-notification--error {
  border-left-color: var(--cds-support-error);
  background: var(--cds-red-10);
}

.cds-notification--warning {
  border-left-color: var(--cds-support-warning);
  background: var(--cds-yellow-10);
}

.cds-notification__title {
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--cds-text-primary);
}

.cds-notification p {
  margin: 0;
  color: var(--cds-text-primary);
}

.stripe-status-box {
  background: var(--cds-bg);
  border: 1px solid var(--cds-border-subtle);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stripe-wordmark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cds-text-primary);
}

/* ==========================================================================
   Shared Carbon Footer
   ========================================================================== */

.cds-footer {
  background: #161616;
  color: #c6c6c6;
  padding: 48px 0 32px;
  font-size: 0.8125rem;
}

.cds-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #393939;
}

.cds-footer h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.cds-footer p {
  margin: 0 0 10px;
  color: #a8a8a8;
  max-width: 44ch;
}

.cds-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cds-footer a {
  color: #c6c6c6;
}

.cds-footer a:hover {
  color: #ffffff;
}

.cds-footer__bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #8d8d8d;
  font-size: 0.75rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1056px) {
  .cds-grid-16 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .col-span-9,
  .col-span-8,
  .col-span-7,
  .col-span-6,
  .col-span-5 {
    grid-column: span 8;
  }
  .cds-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cds-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cds-grid-3 {
    grid-template-columns: 1fr;
  }
  .signup-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .cds-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 672px) {
  .cds-container,
  .cds-header__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cds-header__divider,
  .cds-header__actions {
    display: none;
  }
  .cds-header__menu-btn {
    display: inline-flex;
    align-items: center;
  }
  .cds-header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: auto;
    background: #161616;
    border-bottom: 1px solid #393939;
    flex-direction: column;
    padding: 8px 0;
  }
  .cds-header__nav.is-open {
    display: flex;
  }
  .cds-header__link {
    height: 44px;
    padding: 0 20px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .cds-header__link[aria-current="page"] {
    border-left-color: var(--cds-interactive);
  }
  .cds-grid-6,
  .cds-grid-4,
  .cds-grid-2,
  .dual-track,
  .form-grid,
  .plan-selector,
  .delta-compare,
  .gate5-banner,
  .cds-footer__grid {
    grid-template-columns: 1fr;
  }
  .delta-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .cds-section {
    padding: 44px 0;
  }
}
