/* ============================================================
   MINALAV · shared design system
   Editorial enterprise · IBM Plex Sans / IBM Plex Mono
   Sentence-case display · blended blue · hairline rules · squared corners
   ============================================================ */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --paper-3: #e8e8e8;
  --card: #ffffff;
  --ink: #161616;
  --ink-80: #393939;
  --ink-65: #525252;
  --ink-50: #6f6f6f;
  --ink-35: #8d8d8d;
  --hairline: #dcdcdc;
  --hairline-soft: #ececec;
  /* dark surfaces (footer / map / flow card / closing) — IBM charcoal */
  --navy: #161616;
  --navy-2: #262626;
  --navy-hairline: rgba(255,255,255,0.14);
  --on-navy-70: rgba(255,255,255,0.72);
  --on-navy-50: rgba(255,255,255,0.55);
  --on-navy-35: rgba(255,255,255,0.42);
  /* blended blue: IBM #0f62fe × Minalav #1d5bd8 */
  --blue: #0f57e6;
  --blue-deep: #0a41c0;
  --blue-bright: #4589ff;
  --green: #24a148;
  --font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: 1296px;
  --px: clamp(20px, 5vw, 64px);
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 var(--px);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-brand svg { display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-65);
  letter-spacing: 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 3px; }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-deep); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: var(--font-body);
  text-align: left;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: rgba(15,87,230,0.06); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ── SECTION COMMON ── */
.section { padding: clamp(72px, 9vw, 128px) var(--px); }
.section-tight { padding: clamp(52px, 7vw, 92px) var(--px); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--blue);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-65);
  line-height: 1.6;
  max-width: 640px;
  margin-top: 20px;
  text-wrap: pretty;
}
.on-dark .section-title { color: #fff; }
.on-dark .section-sub { color: var(--on-navy-70); }
.on-dark .section-label { color: var(--blue-bright); }
.on-dark .section-label::before { background: var(--blue-bright); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-50);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb span { color: var(--ink-35); }

/* ── INLINE CONTENT LINKS ── */
.faq-answer a, .section-sub a, .lede a, .closing-sub a, p a.tlink, .tlink {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.faq-answer a:hover, .section-sub a:hover, .lede a:hover, .tlink:hover { color: var(--blue-deep); }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  padding: calc(64px + clamp(56px, 8vw, 104px)) var(--px) clamp(52px, 7vw, 84px);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 82px);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 15ch;
  text-wrap: balance;
}
.page-hero .lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-65);
  line-height: 1.6;
  max-width: 620px;
  margin-top: 26px;
  text-wrap: pretty;
}
.page-hero.has-bg { position: relative; overflow: hidden; border-bottom: none; min-height: 52vh; display: block; padding: calc(64px + clamp(56px, 8vw, 104px)) var(--px) clamp(52px, 7vw, 84px); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: brightness(0.7) saturate(1.05); }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,22,22,0.7) 0%, rgba(22,22,22,0.45) 45%, rgba(22,22,22,0.15) 100%); }
.page-hero.has-bg .container { position: relative; z-index: 1; }
.page-hero.has-bg h1 { color: #fff; }
.page-hero.has-bg .lede { color: rgba(255,255,255,0.85); }
.page-hero.has-bg .breadcrumb { color: rgba(255,255,255,0.7); }
.page-hero.has-bg .breadcrumb a { color: #fff; }

/* ── FOOTER (IBM black) ── */
.footer {
  background: #161616;
  color: #fff;
  padding: 80px var(--px) 36px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--navy-hairline);
}
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--on-navy-50);
  line-height: 1.6;
  max-width: 300px;
}
.footer-col-head {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.footer-col-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col-list a { font-size: 14px; color: var(--on-navy-70); transition: color 0.15s; }
.footer-col-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-navy-50);
  letter-spacing: 0;
}

/* ── SECTION RULE (thin divider before closing) ── */
.section-rule {
  display: block;
  padding: 0;
  background: var(--paper);
}
.section-rule::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--hairline);
  margin: 0 var(--px);
}
.section-rule::after { display: none; }
.section-rule span { display: none; }

/* ── CLOSING CTA BAND ── */
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 11vw, 150px) var(--px);
  color: #fff;
  background: #161616;
}
.closing-bg { position: absolute; inset: 0; z-index: 0; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.32) saturate(1.05) grayscale(0.15); }
.closing-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,22,22,0.92) 0%, rgba(22,22,22,0.6) 55%, rgba(22,22,22,0.3) 100%);
}
.closing-content { position: relative; z-index: 1; max-width: 900px; margin: 0; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 22px;
  text-wrap: balance;
}
.closing-sub {
  font-size: 19px;
  color: var(--on-navy-70);
  max-width: 560px;
  margin: 0 0 40px;
  line-height: 1.55;
}
.closing-ctas { display: flex; gap: 2px; justify-content: flex-start; flex-wrap: wrap; }

/* ── FAQ (AEO) ── */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item summary:hover { color: var(--blue); }
.faq-answer {
  padding: 0 4px 28px;
  font-size: 16px;
  color: var(--ink-65);
  line-height: 1.65;
  max-width: 760px;
  text-wrap: pretty;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

/* ── DARK BAND ── */
.dark-band { background: #161616; color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 12px;
    gap: 2px;
  }
  .nav-links.open a { padding: 14px 16px; border-radius: 0; font-size: 15px; }
  .nav-links.open a.active { box-shadow: inset 3px 0 0 var(--blue); padding-bottom: 14px; }
  .nav-links.open .nav-cta { margin-top: 8px; text-align: center; justify-content: center; }
  .btn { min-width: 0; width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
