/* ==========================================================================
   COACHMOUNT — Website V1 (Claude final composite)
   Brand navy + amber. Editorial light theme. Borrowed sections from Antigravity.
   ========================================================================== */

/* ----------  TOKENS  ---------- */
:root {
  --ink: #0a1f3a;
  --ink-2: #1a2e4d;
  --navy: #084779;
  --navy-strong: #052e51;
  --navy-soft: #1a6cb0;
  --navy-glow: rgba(8, 71, 121, 0.08);
  --amber: #f7a344;
  --amber-soft: #fceeda;
  --amber-glow: rgba(247, 163, 68, 0.12);
  --paper: #fbfaf6;
  --paper-2: #f3efe6;
  --line: #e6ddd1;
  --line-strong: #d6cab8;
  --border-light: rgba(8, 71, 121, 0.12);
  --border-active: rgba(247, 163, 68, 0.45);
  --muted: #5b6b80;
  --text-secondary: #3b4e66;
  --white: #ffffff;
  --green-soft: #e7f2ec;
  --green-ink: #2a6b48;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm:
    0 1px 2px rgba(8, 71, 121, 0.05), 0 1px 8px rgba(8, 71, 121, 0.04);
  --shadow-md:
    0 8px 28px rgba(8, 71, 121, 0.09), 0 2px 6px rgba(8, 71, 121, 0.05);
  --shadow-lg:
    0 16px 48px rgba(8, 71, 121, 0.13), 0 4px 12px rgba(8, 71, 121, 0.06);
  --shadow-premium:
    0 10px 40px -10px rgba(8, 71, 121, 0.12),
    0 2px 20px -5px rgba(8, 71, 121, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

/* ----------  BASE  ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img,
svg {
  display: block;
  max-width: 100%;
}
canvas {
  display: block;
}
a {
  color: var(--navy);
  text-decoration: none;
}
a:hover {
  color: var(--navy-strong);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow {
  max-width: 820px;
}

/* ----------  TYPE (aligned to Antigravity sizes + colors)  ---------- */
.display,
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--navy);
}
.display {
  font-size: clamp(36px, 4.8vw, 64px);
  margin: 0 0 24px;
  color: var(--navy-strong);
  text-wrap: balance;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}
.h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 16px;
  line-height: 1.15;
}

.eyebrow,
.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  font-weight: 700;
  margin: 0 0 20px;
  display: block;
}
.eyebrow-navy {
  color: var(--navy);
}
.kicker {
  color: var(--navy);
}
.kicker-light {
  color: var(--amber);
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0;
  line-height: 1.55;
  font-weight: 400;
}
.section-lede {
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

/* Centered editorial section header (Antigravity pattern) */
.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-intro .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;
}

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(8, 71, 121, 0.18);
}
.btn-primary:hover {
  background: var(--navy-strong);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 71, 121, 0.22);
}
.btn-ghost {
  color: var(--navy);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--navy);
}
.btn-link {
  color: var(--navy);
  padding-left: 4px;
  padding-right: 4px;
  background: transparent;
}
.btn-link:hover {
  color: var(--navy-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-lg {
  font-size: 16px;
  padding: 14px 26px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ----------  NAV  ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.site-nav.scrolled {
  background: rgba(251, 250, 246, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  width: 28px;
  height: 28px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  flex: 1;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 0;
}
.nav-links a:hover {
  color: var(--navy);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}
.lang-switch .lang-link {
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--ink-2);
  text-decoration: none;
  opacity: 0.65;
}
.lang-switch .lang-link:hover {
  color: var(--navy);
  opacity: 1;
}
.lang-switch .lang-link.is-active {
  color: var(--navy);
  opacity: 1;
}
.lang-switch .lang-sep {
  opacity: 0.45;
}
.lang-switch-mobile {
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.nav-toggle {
  display: none;
}
.nav-mobile {
  display: none;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    background: transparent;
    border-radius: 10px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .nav-mobile[data-open="true"] {
    display: flex;
  }
  .nav-mobile > a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 500;
  }
  .nav-mobile .btn {
    margin-top: 14px;
    border-bottom: none;
  }
}

/* ----------  HERO (60/40, reduced top padding, no hero-credit) ---------- */
.hero {
  /* Original top: clamp(56px, 9vw, 120px). Reduced by 1/3 below. */
  padding: clamp(37px, 6vw, 80px) 0 clamp(72px, 11vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 78% 0%,
      rgba(247, 163, 68, 0.1),
      transparent 50%
    ),
    radial-gradient(ellipse at 0% 80%, rgba(8, 71, 121, 0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: none;
}
.cta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.cta-row-center {
  justify-content: center;
  margin-top: 24px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}
#opsCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
}

/* ----------  SECTION SHELLS  ---------- */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}
.section-tint {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}
.section-dark .h2 {
  color: #fff;
}
.section-dark .section-lede {
  color: rgba(255, 255, 255, 0.65);
}
.section-cta {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  text-align: center;
}
.cta-head {
  margin-bottom: 14px;
}
.cta-lede {
  margin-left: auto;
  margin-right: auto;
}
.cta-alt {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.cta-alt a {
  color: var(--navy);
  border-bottom: 1px solid rgba(8, 71, 121, 0.3);
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

/* ----------  LIFECYCLE (Antigravity timeline cards) ---------- */
.timeline-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.timeline-step-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(8, 71, 121, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.timeline-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-premium);
}
.timeline-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.timeline-step-card:hover::before {
  transform: scaleX(1);
}
.step-number {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.step-title {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .timeline-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .timeline-deck {
    grid-template-columns: 1fr;
  }
}

/* ----------  WORKSPACE EXPLORER  ---------- */
.explorer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.explorer-tabs {
  display: flex;
  gap: 2px;
  padding: 8px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.explorer-tabs::-webkit-scrollbar {
  display: none;
}
.explorer-tab {
  flex: 1 0 auto;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
  position: relative;
}
.explorer-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.explorer-tab.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(8, 71, 121, 0.08);
}
.explorer-tab.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.explorer-frame {
  background: linear-gradient(180deg, var(--white) 0%, #fcfaf6 100%);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.frame-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.frame-url {
  margin-left: 12px;
  letter-spacing: 0;
}
.explorer-pane {
  padding: 32px clamp(20px, 4vw, 40px) 36px;
}
.explorer-pane[hidden] {
  display: none;
}
.pane-head {
  max-width: 600px;
  margin-bottom: 28px;
}
.pane-eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  font-weight: 700;
  margin: 0 0 10px;
}
.pane-head h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--navy);
  margin: 0 0 8px;
}
.pane-lede {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}
.pane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  min-height: 130px;
}
.widget-wide {
  grid-column: span 2;
}
.feature-pane-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature-card {
  min-height: 0;
}
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--amber);
}
.widget-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--navy);
}
.widget-meta {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.widget-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  background: var(--paper-2);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.chip-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.badge-lock {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.journal-preview {
  margin-top: 10px;
  background: repeating-linear-gradient(
    135deg,
    var(--paper-2) 0 8px,
    var(--paper) 8px 16px
  );
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.checklist li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
}
.checklist li.done {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(91, 107, 128, 0.4);
}
.checklist li.done::before {
  background: var(--navy);
  border-color: var(--navy);
}
.checklist li.done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.avail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 4px 0 10px;
}
.avail-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  padding: 4px 0;
}
.avail {
  font-size: 12px;
  text-align: center;
  padding: 7px 0;
  border-radius: 4px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.avail.s-on {
  background: var(--amber-soft);
  color: var(--ink);
  border: 1px solid rgba(247, 163, 68, 0.4);
}
.avail.s-off {
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--ink);
  margin: 4px 0 6px;
  letter-spacing: 0;
}
.stat-unit {
  font-size: 16px;
  color: var(--muted);
  margin-left: 4px;
  font-family: var(--sans);
}
.signal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 6px;
}
.signal-list li {
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sig-tag {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber);
  flex-shrink: 0;
}
.signal-list li.sig-resolved .sig-tag {
  background: var(--green-soft);
  color: var(--green-ink);
}
.bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 10px;
}
.bar-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}
.bar {
  height: 8px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--amber));
  border-radius: 999px;
}
.policy-list,
.queue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.policy-list li,
.queue-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.policy-list li:last-child,
.queue-list li:last-child {
  border-bottom: none;
}
.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill-on {
  background: var(--green-soft);
  color: var(--green-ink);
  border-color: rgba(42, 107, 72, 0.2);
}
.escalation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.escalation-row strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.escalation-row .widget-meta {
  margin: 0;
}
.escalation-actions {
  display: flex;
  gap: 6px;
}
.log-stream {
  margin: 6px 0 0;
  padding: 12px 14px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.log-time {
  color: rgba(255, 255, 255, 0.4);
}
.log-tag {
  color: var(--amber);
  margin-right: 6px;
}
@media (max-width: 880px) {
  .pane-grid {
    grid-template-columns: 1fr;
  }
  .widget-wide {
    grid-column: span 1;
  }
}

/* ----------  CAPABILITIES  ---------- */
.capabilities {
  display: grid;
  gap: 0;
  margin: 0;
}
.cap-row {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  transition: background 0.2s ease;
}
.cap-row:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.cap-row:hover {
  background: rgba(8, 71, 121, 0.02);
}
.cap-row dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0;
}
.cap-row dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 60ch;
}
@media (max-width: 720px) {
  .cap-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ----------  TRUST  ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.trust-copy .section-lede {
  margin-bottom: 0;
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.trust-list li {
  padding-left: 28px;
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 16px;
}
.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--amber);
}
.trust-list strong {
  color: #fff;
  font-weight: 600;
}
@media (max-width: 920px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------  DEPLOYMENT (Antigravity card design) ---------- */
.deployment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 860px;
  margin: 0 auto;
}
.deployment-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(8, 71, 121, 0.02);
}
.deployment-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-premium);
}
.deployment-badge {
  display: inline-flex;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  background: var(--navy-glow);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 1.25rem;
}
.deployment-badge-azure {
  color: var(--amber);
  background: var(--amber-glow);
  border-color: var(--border-active);
}
.deployment-card h3 {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--navy);
}
.deployment-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}
.deployment-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.deployment-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.deployment-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy);
  font-weight: bold;
}
.deployment-badge-azure ~ ul li::before,
.deployment-card:has(.deployment-badge-azure) .deployment-features li::before {
  color: var(--amber);
}
.deployment-card .btn {
  margin-top: auto;
}
@media (max-width: 768px) {
  .deployment-grid {
    grid-template-columns: 1fr;
  }
  .deployment-card {
    padding: 1.75rem;
  }
}

/* ----------  CONTACT FORM (inline in CTA) ---------- */
.form-intro {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--navy);
  margin: 14px 0 28px;
  letter-spacing: 0;
}
.contact-form {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
}
.contact-form .form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.contact-form .form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 18px;
  font-style: italic;
}
.contact-form .btn {
  display: inline-flex;
}
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--green-soft);
  color: var(--green-ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
}
.form-success[hidden] {
  display: none;
}
.form-success-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.form-error {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fdecea;
  color: #8a2a1c;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.5;
}
.form-error[hidden] {
  display: none;
}
.form-error a {
  color: inherit;
  text-decoration: underline;
}

/* Honeypot — visually hidden but still in the DOM for bots to fill. */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----------  FOOTER  ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  background: var(--paper);
}
.foot-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.brand-foot {
  margin-right: auto;
}
.foot-links {
  display: flex;
  gap: 22px;
}
.foot-links a {
  color: var(--muted);
  font-size: 14px;
}
.foot-links a:hover {
  color: var(--navy);
}
.foot-copy {
  width: 100%;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ----------  REVEAL  ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ----------  MODAL  ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 58, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalOverlayIn 0.2s ease forwards;
}
.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px clamp(20px, 4vw, 36px) 32px;
  animation: modalCardIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes modalOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.modal-close:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.modal-form .kicker {
  margin-bottom: 12px;
}
.modal-form h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: 0;
  color: var(--navy);
}
.modal-lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-row .opt {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(8, 71, 121, 0.15);
}
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.form-row textarea {
  resize: vertical;
  min-height: 80px;
}
.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 18px;
  font-style: italic;
}
.modal-success {
  text-align: center;
  padding: 16px 0;
}
.modal-success h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: 0;
  color: var(--navy);
}
.modal-success p {
  color: var(--muted);
  margin: 0 0 24px;
}
.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
body.modal-open {
  overflow: hidden;
}

/* ----------  MOBILE RESPONSIVE PASS (≤640px) ---------- */
/* The other breakpoints (980/920/880/768/720/600px) handle column collapse for
   tablets and small laptops. This block reshapes the page for actual phones:
   tighter rhythm, full-width touch targets, role tabs as a 2-col grid instead
   of a horizontal scroll, no zoom-on-input penalty, no unbreakable strings. */
@media (max-width: 640px) {
  /* Bump body slightly for dense Android flagships (high-DPR screens make
     17px feel tight). 18px is still well within editorial range. */
  body {
    font-size: 18px;
  }
  .lede,
  .section-lede {
    font-size: 18px;
    line-height: 1.55;
  }
  .feature-list li,
  .deployment-features li {
    font-size: 15px;
  }
  .widget-meta,
  .pane-lede {
    font-size: 14.5px;
  }

  /* Tighter section rhythm — phones don't have the screen real estate
     for desktop-grade vertical padding. */
  .section {
    padding: 56px 0;
  }
  .section-intro {
    margin: 0 auto 36px;
  }

  /* Hero — tighter padding, single-column already from 980px, CTAs full-width. */
  .hero {
    padding: 20px 0 48px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .display {
    margin: 0 0 18px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .cta-row .btn-link {
    padding: 12px 16px;
  }

  /* Workspace explorer — replace horizontal-scroll tab strip with a 2-column
     grid (3 rows × 2 tabs). All 6 roles visible at once without scrolling. */
  .explorer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 6px;
    overflow-x: visible;
  }
  .explorer-tab {
    flex: none;
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
    white-space: normal;
    line-height: 1.25;
  }
  .explorer-tab.is-active::after {
    display: none; /* underline doesn't make sense in a grid layout */
  }
  .explorer-pane {
    padding: 24px 16px 28px;
  }
  .pane-head {
    margin-bottom: 20px;
  }
  .pane-head h4 {
    font-size: 19px;
  }
  .frame-bar {
    padding: 10px 14px;
    font-size: 11.5px;
  }
  .frame-url {
    margin-left: 8px;
    word-break: break-all;
  }

  /* Lifecycle + deployment + widget cards — tighter card padding. */
  .lifecycle li,
  .timeline-step-card {
    padding: 22px 20px 20px;
  }
  .deployment-card {
    padding: 1.5rem;
    border-radius: var(--radius);
  }
  .widget,
  .feature-card {
    padding: 16px;
    min-height: 0;
  }
  /* Role-pane feature cards stack to a single column on phones. */
  .feature-pane-grid {
    grid-template-columns: 1fr;
  }

  /* Capabilities + trust — tighter vertical rhythm. */
  .cap-row {
    padding: 22px 0;
    gap: 8px;
  }
  .trust-list {
    gap: 16px;
  }

  /* CTA + inline contact form. */
  .section-cta {
    padding: 56px 0;
  }
  .form-intro {
    margin: 12px 0 20px;
    font-size: 18px;
  }
  .contact-form {
    padding: 20px;
  }

  /* iOS Safari auto-zooms inputs with font-size < 16px on focus. Force 16px. */
  .form-row input,
  .form-row textarea {
    font-size: 16px;
  }

  /* Modal — fill more of the screen, less wasted padding. */
  .modal {
    padding: 12px;
  }
  .modal-card {
    padding: 28px 20px 22px;
    max-height: 92vh;
    border-radius: 14px;
  }

  /* Nav — tighter header. */
  .nav-inner {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* Footer stacks naturally; ensure links wrap. */
  .foot-links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
}

/* ----------  EXTRA-NARROW PHONES (≤380px) ---------- */
@media (max-width: 380px) {
  /* Slightly smaller display so the headline still fits two lines comfortably. */
  .display {
    font-size: 32px;
  }
  .h2 {
    font-size: 26px;
  }
  /* If tabs still feel cramped at this width, fall back to a single column. */
  .explorer-tab {
    padding: 11px 6px;
  }
}

/* ----------  MOTION PREFERENCE  ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .timeline-step-card,
  .deployment-card,
  .widget,
  .btn,
  .site-nav,
  .modal-overlay,
  .modal-card {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
