/* getrunway — shared site theme.
   Notion / Attio structural language (white canvas, hairline rules,
   generous breathing room, standalone top bar) infused with the
   brand palette: white ground, ink type, #00734C as the accent.
   Loaded on every static page AFTER its inline <style>, so it wins.
   Fonts are loaded via a single <link> in each page head (DM Sans +
   IBM Plex Mono) — no @import here, so nothing is render-blocked twice. */

:root {
  --mp-green:      #00734C;
  --mp-green-deep: #00593b;
  --mp-green-ink:  #00734C;
  --mp-green-wash: #e6f1ec;
  --mp-danger:      #c43d3d;
  --mp-ink:        #14171a;
  --mp-ink-2:      #3d4348;
  --mp-ink-3:      #737b81;
  --mp-rule:       #e7e8e6;
  --mp-rule-2:     #d9dbd8;
  --mp-canvas:     #ffffff;
  --mp-canvas-2:   #f7f8f7;
}

/* ---------- canvas ---------- */
html { scroll-behavior: smooth; zoom: 1.1; }
body {
  background: var(--mp-canvas) !important;
  color: var(--mp-ink) !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
#bg-layer, #bg-layer::before { display: none !important; }

.wrap {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
}

/* the old page card dissolves into the page */
#page-card {
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* ---------- standalone top bar ---------- */
#mp-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--mp-rule);
}
#mp-topbar .mp-topbar-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
#mp-topbar .mp-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 17px 'DM Sans', sans-serif; letter-spacing: -0.03em; color: var(--mp-ink);
}
#mp-topbar a { text-decoration: none; }
#mp-topbar .mp-brand .mp-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--mp-green);
}
#mp-topbar nav { display: flex; align-items: center; gap: 4px; }
#mp-topbar .nav-link {
  font: 500 14px 'DM Sans', sans-serif !important;
  letter-spacing: -0.01em; color: var(--mp-ink-2) !important;
  padding: 8px 12px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
#mp-topbar .nav-link:hover { background: var(--mp-canvas-2); color: var(--mp-ink) !important; }
#mp-topbar .nav-link.active { color: var(--mp-ink) !important; background: var(--mp-green-wash); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif !important;
  color: var(--mp-ink) !important;
  font-weight: 600 !important;
}
h1 { letter-spacing: -0.045em !important; line-height: 1.02 !important; }
h2 { letter-spacing: -0.035em !important; line-height: 1.1 !important; }
h3 { letter-spacing: -0.02em !important; }
p, li, td, th, label, input, textarea, select, button, .cta, .cta-pill, .nav-link {
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}
p, li { color: var(--mp-ink-2) !important; line-height: 1.65 !important; }
[style*="JetBrains Mono"] { font-family: 'IBM Plex Mono', ui-monospace, monospace !important; }

section > div > span[style*="Mono"]::after,
section > div > div[style*="Mono"]::after { display: none !important; }
[style*="letter-spacing:0.2em"], [style*="letter-spacing:0.16em"],
[style*="letter-spacing:0.14em"], [style*="letter-spacing:0.12em"] {
  color: var(--mp-ink-3) !important;
}

/* anything sitting on the brand green keeps white text */
[style*="background:#00734C"], [style*="background:#00734c"],
[style*="background: #00734C"], [style*="background: #00734c"],
.cta, .cta-pill, .sticky-cta-copy {
  color: #fff !important;
}
.sticky-cta .cta-pill { color: #0d120f !important; }

/* ---------- colour remap of legacy inline styles ---------- */
[style*="color:#0d120f"] { color: var(--mp-ink) !important; }
[style*="color:#3a3630"] { color: var(--mp-ink-2) !important; }
[style*="color:#6b6558"] { color: var(--mp-ink-3) !important; }
[style*="color:#1a3c2a"], [style*="color:#2d5a3d"] { color: var(--mp-green-ink) !important; }
a { color: var(--mp-green-ink); }
a:hover { color: var(--mp-green-deep); }

[style*="background:#ebe5da"], [style*="background:#faf8f3"],
[style*="background:#f5f0e8"], [style*="background:#f0ebe0"] {
  background: var(--mp-canvas-2) !important;
}
/* shaded bands become inset panels rather than full-bleed blocks */
#page-card > section[style*="background:#ebe5da"],
#page-card > section[style*="background:#f5f0e8"],
#page-card > section[style*="background:#faf8f3"] {
  padding: 56px 44px !important;
  border: 1px solid var(--mp-rule) !important;
  border-radius: 12px !important;
  margin: 40px 0 !important;
}
[style*="#d8d0c0"], [style*="#c8c0b0"], [style*="#e2dbcd"] {
  border-color: var(--mp-rule) !important;
}

/* ---------- breathing room ---------- */
section { padding: 88px 0 !important; }
#page-card > section { border-top: 1px solid var(--mp-rule) !important; }
#page-card > section:first-of-type { border-top: 0 !important; padding-top: 40px !important; }

/* ---------- cards & surfaces ---------- */
section div[style*="border-radius:12px"],
section div[style*="border-radius:14px"],
section div[style*="border-radius:16px"],
section div[style*="border-radius:10px"] { border-radius: 10px !important; }
.block-card {
  background: #fff !important;
  transition: border-color .18s ease, background .18s ease !important;
  box-shadow: none !important;
}
.block-card:hover {
  transform: none !important; box-shadow: none !important;
  border-color: var(--mp-rule-2) !important; background: var(--mp-canvas-2) !important;
}
.block-icon {
  background: var(--mp-green-wash) !important;
  border: 1px solid rgba(47,204,152,0.28) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
.block-card:hover .block-icon { transform: none !important; box-shadow: none !important; }
.block-icon svg { stroke: var(--mp-green-ink) !important; }
.block-card:hover .block-icon svg { transform: none !important; stroke: var(--mp-green-ink) !important; }
#feature-case { box-shadow: none !important; border: 1px solid var(--mp-rule) !important; }

/* ---------- buttons ---------- */
.cta, .cta-pill {
  background: var(--mp-ink) !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transition: background .16s ease, color .16s ease !important;
}
.cta { padding: 15px 26px !important; font-size: 15px !important; }
.cta-pill { padding: 9px 18px !important; font-size: 14px !important; }
.cta:hover, .cta-pill:hover {
  background: var(--mp-green) !important; color: #ffffff !important; transform: none !important;
}
#mp-topbar .cta-pill { background: var(--mp-green) !important; color: #ffffff !important; }
#mp-topbar .cta-pill:hover { background: var(--mp-green-deep) !important; color: #fff !important; }

/* secondary (login) action in the top bar */
.mp-topbar-actions { display: flex !important; align-items: center !important; gap: 10px !important; }
#mp-topbar .cta-ghost {
  padding: 9px 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  border-radius: 8px !important;
  color: var(--mp-ink) !important;
  background: transparent !important;
  border: 1px solid var(--mp-line, rgba(0,0,0,.12)) !important;
  text-decoration: none !important;
  transition: background .16s ease, color .16s ease, border-color .16s ease !important;
}
#mp-topbar .cta-ghost:hover {
  color: var(--mp-green) !important;
  border-color: var(--mp-green) !important;
  background: transparent !important;
}

/* ---------- bottom CTA band ---------- */
.sticky-cta { background: var(--mp-ink) !important; border-top: 0 !important; }
.sticky-cta-inner { max-width: 1180px !important; padding: 22px 32px !important; }
.sticky-cta-copy, .sticky-cta-copy strong { color: #fff !important; }
.sticky-cta .cta-pill { background: var(--mp-green) !important; color: #ffffff !important; }
.sticky-cta .cta-pill:hover { background: #fff !important; color: var(--mp-ink) !important; }

/* ---------- footer ---------- */
footer {
  background: var(--mp-canvas) !important;
  border-top: 1px solid var(--mp-rule) !important;
  padding: 64px 0 40px !important;
}

/* ---------- imagery ---------- */
.forest-panel { border-radius: 12px !important; border: 1px solid var(--mp-rule) !important; }

/* ---------- calculator shell ---------- */
.mp-shell-wrap { max-width: 1180px !important; margin: 0 auto !important; padding: 0 32px !important; }
.mp-shell-card {
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.mp-shell-card > section { padding-left: 0 !important; padding-right: 0 !important; border-bottom: 0 !important; }
.mp-shell-card > footer { padding-left: 0 !important; padding-right: 0 !important; }
.tier-chip.viable, .tier-chip.sufficient { background: var(--mp-green-ink) !important; }
.mp-toggle.on { background: var(--mp-green) !important; }
.step-head { background: var(--mp-canvas-2) !important; }

/* sections align to the top bar gutters */
#page-card > section, #page-card > footer { padding-left: 0 !important; padding-right: 0 !important; }

@media (max-width: 860px) {
  .wrap { padding: 0 18px !important; }
  #mp-topbar .mp-topbar-inner { padding: 0 18px; height: 60px; gap: 14px; }
  #mp-topbar nav { display: none; }
  section { padding: 56px 0 !important; }
  .sticky-cta-inner { padding: 18px !important; }
}
/* ============================================================
   Flatten pass — precise, calm, technically credible.
   No gradients, shadows, glass, big radii, or excess motion.
   ============================================================ */

/* 1. no glass / no drop shadows anywhere */
*, *::before, *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}
#page-card, .mp-shell-card, #feature-case, .block-card, .forest-panel,
section > div, header, footer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* the top bar stays opaque rather than frosted */
#mp-topbar {
  background: var(--mp-canvas) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2. no decorative gradients or dot-grid wash */
#bg-layer, #bg-layer::before, .forest-beam, .forest-vignette, .petal {
  display: none !important;
}
[style*="linear-gradient"], [style*="radial-gradient"] {
  background-image: none !important;
}

/* 3. restrained radii — nothing rounded-SaaS */
#page-card, .mp-shell-card, #feature-case, .block-card, .forest-panel,
section div[style*="border-radius"], .cta, .cta-pill, .cta-ghost, input, textarea, select {
  border-radius: 8px !important;
}
.block-icon { border-radius: 6px !important; }

/* 4. calm motion only: colour changes, never movement */
body, section, header, footer, .block-card, .block-icon, .block-icon svg,
.cta, .cta-pill, .cta-ghost, .forest-panel, .forest-img, #feature-case, .petal {
  animation: none !important;
  transform: none !important;
}
.reveal, .reveal.in { opacity: 1 !important; transition: none !important; }
.block-card, .block-icon, .block-icon svg, .cta, .cta-pill, .forest-img {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, filter .3s ease !important;
}

/* 5. imagery stays documentary — no golden-hour theatrics */
.forest-panel { border: 1px solid var(--mp-rule) !important; background: var(--mp-canvas-2) !important; }
.forest-img { filter: saturate(0.9) contrast(1.02) !important; }

/* 6. no large green background sections — green is ink and accent only */
[style*="background:#1a3c2a"], [style*="background:#2d5a3d"], [style*="background:var(--forest)"] {
  background: var(--mp-ink) !important;
}
.sticky-cta { background: var(--mp-canvas-2) !important; border-top: 1px solid var(--mp-rule) !important; }
.sticky-cta-copy, .sticky-cta-copy strong { color: var(--mp-ink) !important; }
.sticky-cta .cta-pill { background: var(--mp-ink) !important; color: #fff !important; }
.sticky-cta .cta-pill:hover { background: var(--mp-green) !important; color: #fff !important; }

/* 7. accent restraint: gold artefacts fall back to the rule colour */
[style*="var(--gold)"], [style*="#c9a84c"] { border-color: var(--mp-rule-2) !important; }

/* ============================================================
   Warm-light pass — continuous, scroll-driven warmth.
   Cool at rest; a subtle golden warmth builds as the image scrolls
   through the viewport, peaking when ~50% is out of view.
   Hover snaps to fully warm.
   ============================================================ */
.forest-panel,
img.warm-img { --warm-ratio: 0; }

.forest-img,
img.warm-img {
  filter:
    saturate(calc(0.70 + 0.25 * var(--warm-ratio)))
    contrast(calc(1.04 - 0.02 * var(--warm-ratio)))
    brightness(calc(0.85 + 0.15 * var(--warm-ratio)))
    hue-rotate(calc(-8deg + 8deg * var(--warm-ratio)))
    sepia(calc(0.12 * var(--warm-ratio))) !important;
  transition: filter 900ms ease !important;
}

.forest-panel:hover .forest-img,
.forest-panel.cta-hovered .forest-img,
img.warm-img:hover {
  --warm-ratio: 1;
}

/* the soft golden shaft follows the same warmth curve */
.forest-beam {
  display: block !important;
  background-image: radial-gradient(55% 70% at 34% 18%, rgba(255,231,170,0.42) 0%, rgba(255,214,125,0.20) 32%, rgba(255,208,115,0) 70%) !important;
  opacity: calc(0.55 * var(--warm-ratio)) !important;
  transition: opacity 900ms ease !important;
}

.forest-panel:hover .forest-beam,
.forest-panel.cta-hovered .forest-beam {
  --warm-ratio: 1;
}

@media (prefers-reduced-motion: reduce) {
  .forest-img, img.warm-img, .forest-beam { transition: none !important; }
}

/* comparison cards: stack before they get squished */
@media (max-width: 1000px) {
  .vs-grid { grid-template-columns: 1fr !important; }
  .vs-grid .vs-highlight { grid-column: span 1 !important; }
}


/* ============================================================
   Mobile pass — desktop untouched; below 860px everything
   collapses to a single vertical column.
   ============================================================ */
@media (max-width: 860px) {
  html, body { max-width: 100%; overflow-x: hidden; }

  /* every multi-column grid becomes one column */
  [style*="grid-template-columns"],
  .hiw-grid, .legal-shell {
    grid-template-columns: 1fr !important;
  }
  [style*="display:grid"], [style*="display: grid"] { gap: 0 !important; }
  [style*="display:grid"][style*="gap"] { gap: 16px !important; }

  /* rows wrap instead of squeezing */
  [style*="display:flex"], [style*="display: flex"] { flex-wrap: wrap !important; }
  [style*="flex-direction:column"] { flex-wrap: nowrap !important; }

  /* vertical dividers between former columns become horizontal */
  [style*="border-right:1px solid"] { border-right: 0 !important; }
  .hiw-step + .hiw-step { border-top: 1px solid var(--mp-rule) !important; }

  /* nothing may exceed the viewport */
  img, svg, video, iframe, table, pre, canvas { max-width: 100% !important; }
  #page-card img:not(.forest-img):not(.mp-brand img) { height: auto !important; }
  .forest-panel, .forest-zoom, .forest-img { height: 100% !important; }
  pre, code { white-space: pre-wrap !important; word-break: break-word !important; }
  [style*="min-width:"] { min-width: 0 !important; }
  [style*="width:1280px"], [style*="width:900px"], [style*="width:860px"],
  [style*="width:820px"], [style*="width:760px"], [style*="width:720px"],
  [style*="width:640px"], [style*="width:520px"] { width: auto !important; max-width: 100% !important; }

  /* padding on inline-styled panels */
  section, #page-card > section, .mp-shell-card > section {
    padding-left: 0 !important; padding-right: 0 !important;
  }
  section[style*="padding:44px 60px"],
  #page-card > section[style*="background:#ebe5da"],
  #page-card > section[style*="background:#f5f0e8"],
  #page-card > section[style*="background:#faf8f3"] {
    padding: 28px 18px !important; margin: 24px 0 !important;
  }
  [style*="padding:22px 24px"], [style*="padding:16px 18px"],
  [style*="padding:20px 24px"], [style*="padding:26px 40px"],
  [style*="padding:16px 24px"], [style*="padding:22px 22px"],
  [style*="padding:60px 24px"], [style*="padding:36px 24px"] { padding: 18px 16px !important; }
  section[style*="padding:48px 60px"], section[style*="padding:36px 60px"],
  section[style*="padding:24px 60px"], div[style*="padding:48px 60px"] { padding: 28px 18px !important; }

  /* header actions stay on one line */
  #mp-topbar .mp-topbar-actions { gap: 8px !important; }
  #mp-topbar .cta-pill { padding: 8px 12px !important; font-size: 13px !important; white-space: nowrap !important; }
  #mp-topbar .mp-brand img { height: 22px !important; }

  /* typography steps down */
  h1 { font-size: clamp(2.1rem, 9vw, 2.9rem) !important; }
  h2 { font-size: 25px !important; }
  h3 { font-size: 18px !important; }
  [style*="font-size:36px"], [style*="font-size:34px"], [style*="font-size:32px"],
  [style*="font-size:30px"] { font-size: 24px !important; }
  [style*="font-size:28px"], [style*="font-size:24px"] { font-size: 20px !important; }

  /* sticky legal sidebar sits above the text */
  .legal-toc { position: static !important; border-right: 0 !important;
    border-bottom: 1px solid var(--mp-rule) !important; padding-bottom: 14px !important; margin-bottom: 18px !important; }

  /* wide tables scroll rather than break the page */
  table { display: block !important; overflow-x: auto !important; }

  /* CTAs stack full width */
  .cta { display: block !important; width: 100% !important; text-align: center !important; }
  .sticky-cta-inner { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }

  /* FAQ rows keep the +/- on the same line */
  .faq-item > summary { gap: 14px; padding: 18px; }
  .faq-answer { padding: 0 18px 18px; }

  /* hero */
  .hero-imax { min-height: 460px !important; }
  .hero-imax .hero-text { padding: 40px 18px !important; }
  .hero-imax h1 { font-size: 38px !important; line-height: 1.05 !important; }
  .hero-imax .hero-sub { font-size: 16px !important; }
  .hero-sub span { white-space: normal !important; }
  #page-card > section.hero-imax { margin-top: 16px !important; }

  /* the homepage demo GIF is desktop-only */
  .hiw-gif { display: none !important; }

  /* ---- mobile nav ---- */
  #mp-topbar .mp-topbar-actions .cta-ghost { display: none !important; }
  #mp-topbar .mp-nav-toggle { display: inline-flex !important; }
  #mp-topbar nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mp-canvas);
    border-bottom: 1px solid var(--mp-rule);
    padding: 8px 18px 14px;
  }
  #mp-topbar.nav-open nav { display: flex !important; }
  #mp-topbar nav .nav-link { padding: 12px 4px !important; border-radius: 0 !important; }
  #mp-topbar.nav-open nav .mp-nav-login {
    display: block !important; margin-top: 8px; text-align: center;
  }
}

#mp-topbar { position: sticky; }
#mp-topbar .mp-nav-login { display: none !important; }
#mp-topbar .mp-nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; gap: 4.5px;
  border: 1px solid var(--mp-rule-2); border-radius: 8px;
  background: transparent; cursor: pointer; padding: 0;
}
#mp-topbar .mp-nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--mp-ink);
  box-shadow: none !important;
}

/* The News link needs a little more room before the full mobile menu. */
@media (min-width: 861px) and (max-width: 1060px) {
  #mp-topbar .mp-topbar-inner { gap: 12px; }
  #mp-topbar .nav-link { padding-left: 7px; padding-right: 7px; white-space: nowrap; }
  #mp-topbar .cta-pill, #mp-topbar .cta-ghost { white-space: nowrap; }
}
