/* Montgomery IP Associates — Inventor Hub
   Plain CSS, no framework. Tokens per the Developer Build Spec. */

:root {
  --navy: #0B2545;
  --navy-2: #122C52;
  --brass: #C9A24A;
  --brass-light: #D9B96A;
  --brass-dark: #8A6B26;
  --brass-text: #765A1E;   /* brass for small text on ivory/parchment: passes 4.5:1 on both */
  --ivory: #FAF8F2;
  --parchment: #F3EFE6;
  --line: #E4DBC3;
  --body: #45506B;
  --ink: #1A2238;
  --on-dark: #E9EDF5;
  --on-dark-muted: #B9C3D6;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--navy); }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: always visible for keyboard users */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .sevenp :focus-visible, .site-footer :focus-visible, .fee-card :focus-visible, .utility :focus-visible {
  outline-color: var(--brass-light);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--navy); padding: 10px 16px;
  font-weight: 700; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Labels */
.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: .75em;
}
.eyebrow-on-dark { color: var(--brass-light); }
.gate-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 1em;
}
.fineprint { font-size: .85rem; line-height: 1.5; color: var(--body); }
.fineprint-on-dark { color: var(--on-dark-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none;
  border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-brass { background: var(--brass); color: var(--navy); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: var(--brass-light); }
.btn-outline-light:hover { background: rgba(217, 185, 106, .14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 700; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--brass);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--brass-text); }

/* Utility bar */
.utility { background: var(--navy-2); color: var(--on-dark); font-size: .85rem; }
.utility p { margin: 0 auto; padding: 7px var(--gutter); text-align: center; letter-spacing: .03em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; }
.site-nav ul a {
  font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--brass); }

.nav-toggle { display: none; }

@media (max-width: 959px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 14px;
    background: transparent; border: 1.5px solid var(--navy); border-radius: 8px;
    color: var(--navy); font: 700 .95rem var(--sans); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }

  /* Without JS the nav stays visible and wraps under the logo. */
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 8px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
}
@media (max-width: 380px) {
      .js .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201, 162, 74, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(18, 44, 82, .9), transparent 60%);
}
.hero-inner { position: relative; padding-top: clamp(56px, 9vw, 112px); padding-bottom: 40px; }
.hero h1 { color: #fff; max-width: 21ch; }
.hero-sub { font-size: clamp(1.08rem, 1.8vw, 1.3rem); max-width: 60ch; color: var(--on-dark); margin-bottom: 1.6em; }
.hero-line { margin: 1.4em 0 0; font-weight: 600; color: var(--brass-light); max-width: 60ch; }

.stat-strip { position: relative; border-top: 1px solid rgba(217, 185, 106, .28); background: rgba(0, 0, 0, .14); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; padding-top: 24px; padding-bottom: 16px; }
.stats li { display: flex; flex-direction: column; border-left: 2px solid var(--brass); padding-left: 14px; }
.stats strong { font-family: var(--serif); font-size: 1.6rem; color: #fff; line-height: 1.15; }
.stats span { font-size: .92rem; color: var(--on-dark-muted); }
.results-note { font-size: .8rem; color: var(--on-dark-muted); padding-bottom: 20px; margin: 0 auto; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.hero, .trust { padding: 0; }

/* Why four brands */
.why .narrow p { font-size: 1.08rem; }
.entry-grid {
  list-style: none; display: grid; gap: 12px; margin-top: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .entry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .entry-grid { grid-template-columns: repeat(5, 1fr); } }
.entry {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; height: 100%;
  padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.entry:hover { border-color: var(--brass); box-shadow: 0 8px 24px rgba(11, 37, 69, .08); transform: translateY(-2px); }
.entry-q { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.entry-a { font-size: .92rem; font-weight: 700; color: var(--brass-text); }

/* 7 P band */
.sevenp { background: var(--navy); color: var(--on-dark); }
.sevenp h2 { color: #fff; max-width: 28ch; }
.table-wrap { margin-top: 28px; }
.ptable { width: 100%; border-collapse: collapse; background: var(--navy-2); border-radius: var(--radius); overflow: hidden; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(217, 185, 106, .18); }
.ptable thead th {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-light); background: rgba(0, 0, 0, .18);
}
.ptable tbody th { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: #fff; }
.ptable tbody td:first-child { font-family: var(--serif); font-weight: 700; color: var(--brass-light); width: 3em; }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.check { color: var(--brass-light); font-weight: 700; margin-right: 6px; }

@media (max-width: 767px) {
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: 100%; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable { background: transparent; }
  .ptable tr { background: var(--navy-2); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .ptable th, .ptable td { border: 0; padding: 6px 16px; }
  .ptable tbody td:first-child { width: auto; padding-top: 10px; }
  .ptable tbody td:first-child::before { content: "Gate "; }
  .ptable tbody td:not(:first-child)::before {
    content: attr(data-label); display: block;
    font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--brass-light);
  }
  .ptable tbody th { padding-top: 0; font-size: 1.3rem; }
  .ptable tbody th::before { display: none; }
}
.sevenp-bridge { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: #fff; margin: 28px 0 12px; }

/* Pipeline cards */
.pipeline h2 { margin-bottom: 32px; }
.cards { list-style: none; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: var(--radius); padding: 24px 22px;
  counter-increment: step;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.card-step { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-text); margin-bottom: .4em; }
.card-step::before { content: counter(step) " · "; }
.card h3 { margin-bottom: .15em; }
.card-price { font-weight: 700; color: var(--navy); margin-bottom: .8em; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1em; }
.badges li {
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  color: var(--navy); background: var(--parchment); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
}
.badge-note { font-size: .85rem; color: var(--body); margin-top: -.5em; font-style: italic; }
.box { background: var(--parchment); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 1em; font-size: .94rem; }
.box p:last-child { margin-bottom: 0; }
.box h4 { margin-bottom: .35em; }
.box strong { color: var(--ink); }
.box-brass { background: #FBF4E2; border-color: var(--brass); }
.box-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: .35em; }
.box-price { margin-left: auto; white-space: nowrap; font-family: var(--serif); font-weight: 700; color: var(--navy); }
.pill { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--navy); color: #fff; border-radius: 999px; padding: 2px 8px; }
.below-box { font-weight: 600; color: var(--ink); }
.prices { margin: 0 0 .8em; font-size: .94rem; }
.prices div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.prices dt { color: var(--ink); }
.prices dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.card-cta { margin-top: auto; }
.card > .btn.card-cta { align-self: stretch; }
.card-cta.stack { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

/* VIP Method */
.vip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vip-intro { font-size: 1.08rem; max-width: 60ch; }
.vip-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; margin: 32px 0; }
@media (min-width: 640px) { .vip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vip-grid { grid-template-columns: repeat(3, 1fr); } }
.vip-grid li { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vip-num { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--brass-text); margin-bottom: .2em; }
.vip-grid h3 { font-size: 1.2rem; }
.vip-grid p { margin: 0; font-size: .96rem; }
.formula {
  text-align: center; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); color: var(--navy); margin: 8px 0 14px;
}
.formula span[aria-hidden] { color: var(--brass-dark); padding: 0 .2em; }

/* Launch Invention */
.li { background: var(--parchment); }
.vip + .li { border-top: 0; }
.li-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .li-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.li-copy p { font-size: 1.04rem; }
.ticks { list-style: none; margin: 0 0 1.6em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: var(--navy); color: var(--brass-light); margin-top: 3px;
}
.fee-card { background: var(--navy); color: var(--on-dark); border-radius: 14px; padding: 32px 28px; box-shadow: 0 20px 40px rgba(11, 37, 69, .18); border: 1px solid var(--brass-dark); }
.fee-label { font-size: .8rem; font-weight: 700; letter-spacing: .16em; color: var(--brass-light); margin-bottom: .3em; }
.fee-price { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .15em; }
.fee-sub { color: var(--on-dark-muted); margin-bottom: 1.4em; }
.ticks-light li::before { background: var(--brass); color: var(--navy); }

/* Trust band */
.trust { background: var(--ivory); padding: clamp(48px, 7vw, 80px) 0; }
.trust-grid { list-style: none; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trust-grid li { border-top: 3px solid var(--brass); padding-top: 18px; }
.trust-grid h3 { font-size: 1.25rem; }
.trust-grid p { margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 48px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(217, 185, 106, .25); margin-bottom: 24px; }
.footer-brands { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-brands a { color: var(--on-dark); font-weight: 600; text-decoration: none; }
.footer-brands a:hover { color: var(--brass-light); text-decoration: underline; }
.disclosure { font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); max-width: 110ch; }
.footer-line { font-size: 13px; color: var(--on-dark-muted); margin: 0; }

/* Simple inner pages (sign-in placeholder, 404) */
.simple { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.simple .narrow { max-width: 640px; }
.btn-row-center { justify-content: center; }

/* Logo (final artwork, Oct 2026) */
.logo { display: block; height: 52px; width: auto; }
.logo-footer { height: 44px; }
@media (max-width: 380px) { .logo { height: 44px; } }
