/* Meridian Street Capital — design tokens & Elementor-mapped sections */
:root {
  --color-primary: #1a3e59;
  --color-secondary: #0d2538;
  --color-accent: #ff6f61;
  --color-accent-hover: #e85a4f;
  --color-accent-soft: #ffe8e5;
  --color-bg: #ffffff;
  --color-bg-accent: #f4f7fa;
  --color-text: #2c3e50;
  --color-text-muted: #5c6b7a;
  --color-border: #d7e0e8;
  --color-success: #1f7a4d;
  --color-error: #b42318;
  --color-star: #f4b942;
  --color-transparent: #00000000;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.72);

  --font-display: "Poppins", sans-serif;
  --font-body: "Figtree", sans-serif;

  --h1-size: 56px;
  --h1-weight: 700;
  --h2-size: 48px;
  --h2-weight: 700;
  --h3-size: 40px;
  --h3-weight: 700;
  --h4-size: 24px;
  --h4-weight: 700;
  --h5-size: 20px;
  --h5-weight: 700;
  --h6-size: 18px;
  --h6-weight: 400;
  --body-lg: 18px;
  --body-md: 16px;
  --body-sm: 14px;
  --body-weight: 400;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 8px 24px rgba(13, 37, 56, 0.06);
  --shadow-md: 0 18px 50px rgba(13, 37, 56, 0.1);
  --header-h: 84px;
  --demo-bar-h: 48px;
  --container: 1180px;
  --focus: 0 0 0 3px rgba(255, 111, 97, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-md);
  font-weight: var(--body-weight);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); }
h2 { font-size: var(--h2-size); font-weight: var(--h2-weight); }
h3 { font-size: var(--h3-size); font-weight: var(--h3-weight); }
h4 { font-size: var(--h4-size); font-weight: var(--h4-weight); }
h5 { font-size: var(--h5-size); font-weight: var(--h5-weight); }
h6 { font-size: var(--h6-size); font-weight: var(--h6-weight); color: var(--color-text-muted); }

.lede,
.body-lg { font-size: var(--body-lg); }
.body-sm,
.fine-print { font-size: var(--body-sm); color: var(--color-text-muted); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space-9) 0;
  position: relative;
}

.section--tight { padding: var(--space-8) 0; }
.section--accent { background: var(--color-bg-accent); }
.section--dark {
  background: var(--color-secondary);
  color: var(--color-on-dark-muted);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5 { color: var(--color-on-dark); }
.section--primary { background: var(--color-primary); color: var(--color-on-dark-muted); }
.section--primary h1,
.section--primary h2,
.section--primary h3,
.section--primary h4 { color: var(--color-on-dark); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
  overflow-wrap: break-word;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

/* Buttons — Elementor-like pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { background: var(--color-accent-hover); color: #fff; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-secondary); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost:hover { background: #fff; color: var(--color-secondary); }

.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }

.btn--light {
  background: #fff;
  color: var(--color-secondary);
}
.btn--light:hover { background: var(--color-accent-soft); color: var(--color-secondary); }

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

/* Shop demo bar */
.demo-bar {
  background: #ff5757;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
}

.demo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: min(calc(100% - 40px), var(--container));
  min-height: var(--demo-bar-h, 48px);
  margin-inline: auto;
  padding: 8px 0;
}

.demo-bar a { color: inherit; }

.demo-bar__brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.demo-bar__brand img {
  display: block;
  height: 36px;
  width: auto;
}

.demo-bar__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  min-width: 0;
}

.demo-bar__label { color: rgba(255, 255, 255, 0.92); }

.demo-bar__price {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.demo-bar__stores {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.demo-bar__buy {
  margin-right: 4px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.demo-bar__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.demo-bar__store:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.demo-bar__store img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.demo-bar__store span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .demo-bar__store span { display: none; }
  .demo-bar__store {
    min-width: 40px;
    padding: 0 12px;
  }
}

@media (max-width: 720px) {
  .demo-bar__inner {
    flex-direction: column;
    align-items: center;
    padding: 10px 0 12px;
  }

  .demo-bar__copy {
    justify-content: center;
    text-align: center;
  }

  .demo-bar__stores { justify-content: center; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-secondary);
  color: #fff;
}

.site-header .container.header-inner {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.logo:hover { opacity: 0.92; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] { color: #fff; }

.nav-item { position: relative; }

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-item.is-current .nav-trigger,
.nav-trigger:hover,
.nav-item.is-open .nav-trigger {
  color: #fff;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  padding: 8px 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
}

.nav-item.is-open .nav-dropdown { display: block; }

@media (min-width: 1025px) {
  .nav-item {
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown,
  .nav-item.is-open .nav-dropdown { display: block; }

  .nav-item:hover .nav-trigger,
  .nav-item:focus-within .nav-trigger { color: #fff; }
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--color-secondary);
  font-size: 14px;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-bg-accent);
}

.header-cta { display: flex; gap: 10px; }

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
}

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Heroes */
.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--color-secondary);
  color: var(--color-on-dark-muted);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 37, 56, 0.88) 0%, rgba(13, 37, 56, 0.55) 55%, rgba(13, 37, 56, 0.35) 100%);
}

.hero--plain .hero__media::after {
  background:
    radial-gradient(ellipse 80% 70% at 85% 0%, rgba(255, 111, 97, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(13, 37, 56, 0.92), rgba(26, 62, 89, 0.88));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 0 88px;
  max-width: 740px;
}

.hero h1,
.hero-mini h1 { color: #fff; }

.hero .lede {
  color: var(--color-on-dark-muted);
  max-width: 58ch;
  margin-bottom: 28px;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 97, 0.16), transparent 68%);
  pointer-events: none;
}

.blob--tr { top: -180px; right: -80px; }
.blob--bl { bottom: -200px; left: -120px; }

.hero-mini {
  background: var(--color-secondary);
  padding: 88px 0 72px;
  color: var(--color-on-dark-muted);
  position: relative;
  overflow: hidden;
}

.hero-mini .container { position: relative; z-index: 1; max-width: 800px; text-align: center; }

/* Grids */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card--dark {
  background: var(--color-secondary);
  border-color: transparent;
  color: var(--color-on-dark-muted);
}

.card--dark h3,
.card--dark h4 { color: #fff; }

.card--accent {
  background: var(--color-bg-accent);
  border-color: transparent;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon-box svg { width: 24px; height: 24px; }

.metric-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-bg-accent);
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

.tag--accent { background: var(--color-accent-soft); color: var(--color-accent-hover); }

.deal-card { padding: 0; overflow: hidden; }
.deal-card img { width: 100%; height: 220px; object-fit: cover; }
.deal-card__body { padding: 22px 22px 26px; }
.deal-card__loc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  line-height: 1;
}

.section--dark .stat-num,
.section--primary .stat-num,
.card--dark .stat-num { color: #fff; }

.stat-label { font-size: var(--body-sm); margin-top: 8px; }

/* Testimonials */
.quote {
  margin: 0;
}

.stars {
  color: var(--color-star);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 14px;
}

.quote p {
  font-size: var(--body-lg);
  margin: 0 0 18px;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  gap: 24px;
}

.carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.dot,
.carousel-nav button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
}

.dot.is-active,
.carousel-nav button[aria-current="true"] { background: var(--color-accent); }

/* Forms */
.form {
  display: grid;
  gap: 16px;
}

.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
}

legend {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
}

.req { color: var(--color-accent); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--focus);
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: var(--color-error);
}

.field-error {
  display: none;
  color: var(--color-error);
  font-size: 13px;
}

.field.is-error .field-error { display: block; }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.form-status.is-error {
  display: block;
  background: #fdecea;
  color: var(--color-error);
}

.form-status.is-success {
  display: block;
  background: #e8f6ee;
  color: var(--color-success);
}

.form-panel[hidden],
.step[hidden] { display: none !important; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  background: #fff;
}

.choice input { margin-right: 8px; }
.choice:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.social-proof-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.form-card {
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-card h1,
.form-card h2,
.form-card h3,
.form-card h4,
.form-card h5,
.form-card h6,
.section--dark .form-card h1,
.section--dark .form-card h2,
.section--dark .form-card h3,
.section--dark .form-card h4,
.section--dark .form-card h5,
.section--primary .form-card h1,
.section--primary .form-card h2,
.section--primary .form-card h3,
.section--primary .form-card h4 {
  color: var(--color-secondary);
}

.form-card .muted,
.form-card .fine-print {
  color: var(--color-text-muted);
}

.form-card label,
.section--dark .form-card label,
.section--primary .form-card label {
  color: var(--color-secondary);
}

.site-footer label {
  color: #fff;
}

.form-panel {
  display: grid;
  gap: 16px;
}

.form-card button[type="submit"] {
  margin-top: 16px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--color-text-muted);
}

.checkbox.is-error { color: var(--color-error); }

/* Calculator */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  border: 0;
  background: var(--color-bg-accent);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--color-primary);
  color: #fff;
}

.calc-out {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
}

.calc-out strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  margin: 4px 0 16px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-secondary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--color-text-muted); }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.timeline__item { position: relative; padding-top: 8px; }
.timeline__item::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Team */
.team-card { text-align: left; padding: 0; overflow: hidden; }
.team-card img { width: 100%; height: 280px; object-fit: cover; }
.team-card__body { padding: 20px 22px 24px; }
.team-card .role { color: var(--color-accent); font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* Credentials */
.badge-grid .card {
  text-align: center;
  min-width: 0;
  padding: 24px 20px;
  overflow-wrap: break-word;
}
.badge-grid h3 {
  font-size: 20px;
  line-height: 1.25;
}
.badge-grid svg { width: 36px; height: 36px; color: var(--color-accent); margin: 0 auto 12px; }

/* Episode */
.episode-card { padding: 0; overflow: hidden; }
.episode-card img { width: 100%; height: 180px; object-fit: cover; }
.episode-card__body { padding: 20px; }
.episode-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }

/* Footer */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-on-dark-muted);
  padding: 72px 0 28px;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 { color: #fff; }

.footer-optin {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.optin-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.optin-row .field { flex: 1; min-width: 0; }
.optin-row .btn {
  flex-shrink: 0;
  align-self: flex-end;
  height: 48px;
  margin-top: 0;
  white-space: nowrap;
}
.optin-row input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col a {
  display: block;
  color: var(--color-on-dark-muted);
  margin: 8px 0;
  font-size: 14px;
}

.footer-col a:hover { color: #fff; }

.legal-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.socials { display: flex; gap: 14px; }
.socials a { color: #fff; }

/* Blog */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto var(--space-7);
}

.chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.blog-card { padding: 0; overflow: hidden; }
.blog-card a.blog-card__link {
  display: block;
  color: inherit;
  height: 100%;
}
.blog-card a.blog-card__link:hover { color: inherit; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card__body { padding: 20px 22px 24px; }
.blog-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.blog-card p { margin: 0; color: var(--color-text-muted); font-size: 15px; }
.blog-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
.blog-card .read-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-on-dark-muted);
  margin-bottom: 16px;
}
.crumbs a { color: inherit; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden="true"] { opacity: 0.45; }

.article-wrap {
  width: min(calc(100% - 40px), 856px);
  max-width: 856px;
  margin-inline: auto;
}
.article-wrap .lede { max-width: none; }
.article-hero {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 8px 0 32px;
}
.article-body p { font-size: var(--body-lg); }
.article-body h2 {
  font-size: 28px;
  margin-top: 36px;
}
.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--color-bg-accent);
  border-radius: var(--radius-md);
}

.article-body h2:first-child { margin-top: 0; }

.article-after { padding-top: 0; }
.article-share {
  padding-top: 8px;
  margin-bottom: 28px;
}
.article-share p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.article-share__icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-share__icons a {
  color: var(--color-secondary);
  display: grid;
  place-items: center;
}
.article-share__icons a:hover { color: var(--color-accent); }
.article-share__icons svg { width: 20px; height: 20px; display: block; }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 64px;
}
.article-nav a {
  color: var(--color-secondary);
  text-decoration: none;
}
.article-nav a:hover { color: var(--color-accent); }
.article-nav span {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.article-nav strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.article-nav__next { text-align: right; }
.article-nav:not(:has(.article-nav__prev)) { grid-template-columns: 1fr; }
.article-nav:not(:has(.article-nav__next)) { grid-template-columns: 1fr; }

.article-related__title {
  text-align: center;
  margin: 0 0 40px;
}

@media (max-width: 860px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__next { text-align: left; }
}

body.nav-open { overflow: hidden; }
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--color-text-muted); }
.on-dark { color: var(--color-on-dark-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  :root {
    --h1-size: 48px;
    --h2-size: 40px;
    --h3-size: 32px;
    --h4-size: 22px;
    --h5-size: 18px;
    --h6-size: 18px;
    --body-lg: 16px;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-secondary);
    padding: 8px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(13, 37, 56, 0.28);
  }

  .menu.is-open { display: flex; }

  .menu .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .menu .nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
  }

  .nav-item { width: 100%; }

  .nav-trigger {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
  }

  .nav-dropdown {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 0;
    box-shadow: none;
  }

  .nav-dropdown a {
    padding: 12px 24px 12px 36px;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown a:hover,
  .nav-dropdown a[aria-current="page"] {
    color: #fff;
    background: transparent;
  }

  .menu .header-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px 4px;
  }

  .menu .header-cta .btn { width: 100%; }
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-2-1,
  .split,
  .field-row,
  .choice-grid,
  .footer-optin,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .optin-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .optin-row .btn {
    align-self: stretch;
    width: 100%;
  }
  .footer-optin {
    align-items: stretch;
    gap: 24px;
  }
  .hero { min-height: 520px; }
  .hero__content { padding: 72px 0 64px; }
  .article-hero { height: 240px; }
}

@media (max-width: 640px) {
  :root {
    --h1-size: 40px;
    --h2-size: 32px;
    --h3-size: 32px;
    --h4-size: 18px;
    --h5-size: 16px;
    --h6-size: 16px;
    --body-lg: 16px;
    --body-md: 14px;
    --body-sm: 12px;
    --space-9: 64px;
  }

  .stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .logo-img { height: 34px; }
}
