:root {
  /* Full-dark scheme (2026-07-31): the former light tokens now carry the
     dark-section values, so every component recolors through the same names.
     Ink/teal derivatives are remapped to bright variants readable on navy. */
  --color-mustard: #e9a23a;
  --color-coral: #ff6f5c;
  --color-navy: #111827;
  --color-teal: #6fc7c0;
  --color-teal-dark: #6fc7c0;
  --color-mustard-ink: #e9a23a;
  --color-coral-text: #ff6f5c;
  --color-coral-ink: #ff8b79;

  --color-bg: #0b1630;
  --color-surface: #121d38;
  --color-surface-warm: #182444;
  --color-surface-muted: #182444;

  --color-text: #f8fafc;
  --color-text-secondary: #aab4c5;
  --color-text-muted: #7f8ba0;
  --color-border: #26314e;

  --color-success: #6fc7c0;
  --color-success-bg: rgba(111, 199, 192, 0.12);
  --color-warning: #e9a23a;
  --color-error: #e85d5d;
  --color-focus-ring: rgba(255, 111, 92, 0.45);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-btn: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 20px 48px rgba(0, 0, 0, 0.18);

  --container: 1280px;
  --page-max: 1440px;

  /* Dark-section system (hybrid composition; warm deep navy, never pure black) */
  --section-dark-bg: #0b1630;
  --section-dark-bg-deep: #071026;
  --section-dark-surface: #121d38;
  --section-dark-surface-elevated: #182444;
  --section-dark-surface-hover: #1f2b50;
  --section-dark-border: #26314e;
  --section-dark-border-subtle: rgba(255, 255, 255, 0.08);
  --section-dark-text: #f8fafc;
  --section-dark-text-secondary: #aab4c5;
  --section-dark-text-muted: #7f8ba0;
  --section-dark-success-text: #6fc7c0;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: -0.01em;
}

button {
  font: inherit;
}

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

code {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--color-coral-ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92em;
}

/* Double ring so focus never disappears against navy or coral */
:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-bg),
    0 0 0 5px rgba(255, 111, 92, 0.6);
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 84px;
  gap: 28px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 22, 48, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 320ms ease,
    opacity 320ms ease,
    visibility 0s linear 0s;
}

/* Toggled by script.js when the closing CTA/footer enters the viewport.
   `visibility` (delayed until the slide finishes) also pulls the nav links
   out of the tab order, so keyboard focus can't land on a hidden header. */
.at-final-chrome-hide .site-header {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 320ms ease,
    opacity 320ms ease,
    visibility 0s linear 320ms;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .at-final-chrome-hide .site-header {
    transition: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.main-nav a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

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

.main-nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-coral);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  min-height: 46px;
  border-radius: var(--radius-md);
  padding: 0 18px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- Typography ---------- */

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

h1 {
  /* Capped at 64px, not 72: at 72 the hero headline breaks to a fourth line in
     the 567px copy column. 66 fits but sits one word away from the cliff. */
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero-text,
.section-heading p,
.flow-card p,
.faq-list p {
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.accent-coral {
  color: var(--color-coral-text);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  padding: 0 24px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.primary-button {
  color: var(--color-navy);
  background: var(--color-coral);
}

.primary-button:hover {
  background: #ff8474;
  transform: translateY(-1px);
}

.secondary-button {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
  font-weight: 500;
}

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

.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

.wide {
  width: 100%;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 40px 96px;
  /* One artwork for every breakpoint. `cover` + a top-right anchor keeps the
     warm glow in frame at any aspect ratio; the rest is a smooth navy falloff
     that crops harmlessly. background-color matches the art's darkest area so
     an over-cropped edge is invisible. */
  background-color: var(--color-bg);
  background-image: url("assets/hero-bg.webp");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Scrim: keeps the copy column readable over the artwork without hiding it.
   Second layer fades the artwork into the page colour at the bottom — the
   image's darkest corner (#07142b) is colder than --color-bg, so without this
   the hero ends on a visible seam. */
.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(11, 22, 48, 0) 55%,
      rgba(11, 22, 48, 0.75) 85%,
      var(--color-bg) 100%
    ),
    linear-gradient(
      100deg,
      rgba(11, 22, 48, 0.92) 0%,
      rgba(11, 22, 48, 0.72) 38%,
      rgba(11, 22, 48, 0.1) 68%,
      rgba(11, 22, 48, 0) 100%
    );
  content: "";
}

.hero-grid {
  position: relative;
}

.hero-grid {
  display: grid;
  width: min(var(--container), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 48px;
}

.hero-text {
  max-width: 560px;
  font-size: 20px;
}

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

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.hero .benefits {
  max-width: 560px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  align-items: start;
}

.benefit-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius-md);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-mustard .benefit-icon {
  color: var(--color-mustard);
  background: rgba(233, 162, 58, 0.14);
}

.benefit-coral .benefit-icon {
  color: var(--color-coral);
  background: rgba(255, 111, 92, 0.14);
}

.benefit-teal .benefit-icon {
  color: var(--color-teal);
  background: rgba(111, 199, 192, 0.12);
}

.benefit-navy .benefit-icon {
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.08);
}

/* Authored breaks (script.js, `data-lines`) hold only where the column is wide
   enough to honour them. Below the benefits grid collapsing to one column the
   line is full-width, so the text reflows naturally instead. */
@media (max-width: 768px) {
  .authored-break {
    display: none;
  }
}

.benefit strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.benefit span {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

/* Hero visual: mockup + decorative arcs */

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 24px 0;
}

.mockup {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 26px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transform: rotate(-4deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
}

.sub-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--color-surface);
}

.sub-tile {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.sub-tile img {
  display: block;
  width: 34px;
  height: 34px;
}

.sub-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.sub-card small {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  color: var(--color-success);
  background: var(--color-success-bg);
  font-size: 12px;
  font-weight: 500;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge--warning {
  color: var(--color-warning);
  background: rgba(233, 162, 58, 0.12);
}

.status-badge--paused {
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.08);
}

.mockup-action {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Mid-page sections ---------- */

.section {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 120px 40px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

/* Compound selector on purpose: `.section-heading p` above is more specific
   than a bare `.eyebrow`, so it would otherwise repaint the eyebrow as body text. */
.eyebrow,
.section-heading .eyebrow {
  margin: 0 0 12px;
  color: var(--color-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.flow-card,
.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.flow-card {
  display: grid;
  align-content: start;
  padding: 28px;
}

.flow-card.accent {
  background: var(--color-surface-warm);
}

.flow-kicker {
  width: max-content;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--color-mustard);
  padding-bottom: 8px;
  color: var(--color-mustard-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flow-card ul {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.compact {
  padding-top: 58px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 12px 0 0;
}

/* ---------- Pre-footer CTA ---------- */

.cta-panel-wrap {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 40px 88px;
}

.cta-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--section-dark-border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--section-dark-text);
  background: var(--section-dark-bg-deep);
}

.cta-panel .brand-logo {
  height: 52px;
}

.cta-panel h2 {
  margin-bottom: 8px;
  color: var(--section-dark-text);
  font-size: clamp(26px, 2.6vw, 34px);
}

.cta-panel p {
  margin: 0;
  color: var(--section-dark-text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

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

.site-footer {
  border-top: 1px solid var(--section-dark-border-subtle);
  color: var(--section-dark-text);
  background: var(--section-dark-bg-deep);
}

.footer-benefits-wrap {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 56px 40px 48px;
}

.footer-benefits-wrap .benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

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

.footer-bottom-inner {
  display: flex;
  width: min(var(--container), 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 24px 40px 32px;
  color: var(--section-dark-text-secondary);
  font-size: 14px;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.footer-contacts svg {
  width: 16px;
  height: 16px;
}

/* ---------- Security cards ---------- */

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

.security-card {
  border: 1px solid var(--section-dark-border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--section-dark-surface);
}

.security-card svg {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  color: var(--section-dark-text-secondary);
}

.security-card h3 {
  margin-bottom: 6px;
  color: var(--section-dark-text);
  font-size: 16px;
  font-weight: 600;
}

.security-card p {
  margin: 0;
  color: var(--section-dark-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

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

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

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual {
    animation: rise-in 640ms ease-out both;
  }

  .hero-visual {
    animation-delay: 120ms;
  }

  .sub-card {
    animation: rise-in 480ms ease-out both;
  }

  .sub-card:nth-child(1) { animation-delay: 260ms; }
  .sub-card:nth-child(2) { animation-delay: 320ms; }
  .sub-card:nth-child(3) { animation-delay: 380ms; }
  .sub-card:nth-child(4) { animation-delay: 440ms; }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

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

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 24px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 0;
    font-size: 16px;
  }

  .main-nav a.active {
    color: var(--color-coral-ink);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 24px 72px;
  }

  .hero-grid {
    gap: 36px;
  }

  .section {
    padding: 88px 24px;
  }

  .cta-panel-wrap {
    padding: 0 24px 72px;
  }

  .footer-benefits-wrap {
    padding: 32px 24px 40px;
  }

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

  .footer-bottom-inner {
    padding: 20px 24px 28px;
  }
}

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

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 24px;
  }

  .cta-panel .primary-button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .main-nav {
    padding: 12px 20px 20px;
  }

  .hero {
    padding: 40px 20px 64px;
  }

  /* Portrait art runs top-to-bottom, so the scrim has to follow that axis */
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(11, 22, 48, 0.9) 0%,
      rgba(11, 22, 48, 0.72) 45%,
      rgba(11, 22, 48, 0.3) 100%
    );
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .mockup {
    transform: rotate(-2deg);
    padding: 20px;
  }

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

  .flow-card {
    padding: 22px;
  }

  .flow-kicker {
    margin-bottom: 24px;
  }

  .section {
    padding: 64px 20px;
  }

  .cta-panel-wrap {
    padding: 0 20px 64px;
  }

  .footer-benefits-wrap {
    padding: 28px 20px 32px;
  }

  .footer-benefits-wrap .benefits {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 28px;
  }
}

@media (min-width: 768px) and (max-height: 600px) {
  .site-header {
    min-height: 52px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(36px, 4.6vw, 48px);
  }

  .hero-text {
    font-size: 17px;
  }

  .benefits {
    margin-top: 32px;
  }

  .hero-visual {
    padding: 12px 0;
  }

  .mockup {
    width: min(380px, 100%);
    padding: 18px;
  }

  .mockup-header {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .sub-card {
    padding: 9px 12px;
  }

  .section {
    padding: 64px 24px;
  }

  .cta-panel {
    padding: 28px 32px;
  }
}
