:root {
  color-scheme: light dark;
  --paper: #f7f5ef;
  --paper-deep: #ece9df;
  --surface: #fffdf8;
  --ink: #16231e;
  --muted: #50625a;
  --line: #cbd2cc;
  --route: #0B3C6E;
  --route-deep: #072C52;
  --route-gold: #D9A62E;
  --navy-ink: #0B3C6E;
  --shadow: 0 24px 60px rgba(11, 60, 110, .12);
  --radius-lg: 30px;
  --radius-md: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11181d;
    --paper-deep: #16212a;
    --surface: #1b2834;
    --ink: #f2f5f7;
    --muted: #aebfcc;
    --line: #33454f;
    --route: #9cc4ed;
    --route-deep: #cfe4f7;
    --route-gold: #e7b95a;
    --navy-ink: #f2f5f7;
    --shadow: 0 28px 70px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--route-gold) 24%, transparent), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: "Public Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Source Serif 4", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--navy-ink);
}
.brand img { width: 44px; height: auto; border-radius: 8px; }
.topline .nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.topline .nav-links a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}
.topline .nav-links a:hover, .topline .nav-links a:focus-visible,
.topline .nav-links a[aria-current="page"] { color: var(--navy-ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: 640px;
  padding: 84px 0 100px;
}
.place {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--navy-ink);
  font-size: .93rem;
  font-weight: 700;
}
.place::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--route-gold);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.9rem, 5.9vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.04em;
}
h1 em { color: var(--navy-ink); font-style: normal; }
.hero-copy > p:not(.place) {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.byline {
  margin-top: 26px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #0B3C6E;
  border-radius: 999px;
  background: #0B3C6E;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { background: var(--route-deep); border-color: var(--route-deep); }
.button.secondary { background: transparent; color: var(--route); border-color: var(--route); }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--surface); }

.logo-card {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.logo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-bottom: 8px solid var(--route-gold);
}
.logo-card img {
  width: min(100%, 460px);
  height: auto;
  display: block;
}

/* Interior page hero */
.page-hero { padding: 72px 0 20px; }
.page-hero .place { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: 18px; }
.page-hero > p { max-width: 680px; color: var(--muted); font-size: 1.15rem; line-height: 1.65; margin-bottom: 0; }

section.band-section { padding: 90px 0 112px; border-top: 1px solid var(--line); }
.band-section.tight { padding: 64px 0 84px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .75fr);
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 52px;
}
h2 {
  margin-bottom: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.section-head p { margin-bottom: 4px; color: var(--muted); font-size: 1.08rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature {
  padding: 30px 32px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(11, 60, 110, .07);
}
.feature .rule {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--route-gold);
  border-radius: 2px;
}
.feature h3 {
  margin-bottom: 8px;
  font-family: "Source Serif 4", serif;
  font-size: 1.5rem;
  line-height: 1.15;
}
.feature p { margin-bottom: 0; color: var(--muted); }

.salt-callout {
  margin-top: 26px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: #0B3C6E;
  color: #fff;
}
.salt-callout h3 {
  margin-bottom: 12px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.08;
}
.salt-callout p { max-width: 860px; margin-bottom: 0; font-size: 1.08rem; opacity: .92; }
.salt-callout .kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: #F4CE6B;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.rhythm-copy h2 { margin-bottom: 20px; }
.rhythm-copy > p { color: var(--muted); font-size: 1.08rem; }
.freq-list { margin: 28px 0 0; padding: 0; list-style: none; }
.freq-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}
.freq-list li:last-child { border-bottom: 1px solid var(--line); }
.freq-list strong { font-family: "Source Serif 4", serif; font-size: 1.6rem; color: var(--navy-ink); min-width: 2ch; }
.terms {
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.terms h3 {
  margin-bottom: 18px;
  font-family: "Source Serif 4", serif;
  font-size: 1.7rem;
}
.terms ul { margin: 0; padding: 0; list-style: none; }
.terms li { position: relative; padding: 12px 0 12px 34px; color: var(--muted); border-top: 1px solid var(--line); }
.terms li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 12px;
  color: var(--route-gold);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.price-card {
  position: relative;
  padding: clamp(32px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-card.featured { background: #0B3C6E; color: #fff; }
.price-card.featured::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--route-gold);
  border-radius: 8px 0 0 8px;
}
.price-card .tier { margin: 0 0 10px; font-size: .93rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: inherit; opacity: .78; }
.price-card h3 {
  margin-bottom: 6px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.price-card h3 small { font-family: "Public Sans", sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; opacity: .7; }
.price-card p { margin-bottom: 0; color: inherit; opacity: .8; }
.price-card.featured p { opacity: .88; }
.price-note {
  padding: 22px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-size: .97rem;
}
.price-note strong { color: var(--ink); }

.founder-band { background: #0B3C6E; color: #fffdf8; }
@media (prefers-color-scheme: dark) { .founder-band { background: #dceafa; color: #0B3C6E; } }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 80px;
  align-items: center;
  padding: 82px 0;
}
.founder-grid h2 { max-width: 700px; color: inherit; }
.founder-copy { max-width: 520px; }
.founder-copy p { margin-bottom: 18px; opacity: .88; font-size: 1.1rem; }
.founder-copy p:last-child { margin-bottom: 0; }
.founder-band .button { border-color: #F4CE6B; background: #F4CE6B; color: #0B3C6E; }
.founder-band .button:hover, .founder-band .button:focus-visible { background: #fff; border-color: #fff; }

.contact { padding: 96px 0 80px; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.contact-card h2 { margin-bottom: 14px; font-size: clamp(2.35rem, 4.7vw, 4rem); }
.contact-card p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.contact-actions { display: flex; gap: 12px; }
.contact-actions .button { min-width: 148px; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.quote-form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--route-gold);
  outline-offset: 1px;
  border-color: var(--route-gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: .95rem; }

.area-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.area-card {
  padding: 30px 32px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(11, 60, 110, .07);
}
.area-card h3 { font-family: "Source Serif 4", serif; font-size: 1.5rem; margin-bottom: 10px; }
.area-card p { color: var(--muted); margin-bottom: 0; }

.faq { max-width: 820px; }
.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-family: "Source Serif 4", serif; font-size: 1.35rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin-bottom: 0; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}
footer strong { color: var(--ink); }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover, footer a:focus-visible { color: var(--navy-ink); }

@media (max-width: 860px) {
  .shell { width: min(100% - 32px, 700px); }
  .topline { min-height: 60px; gap: 20px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 64px 0 76px; }
  .section-head, .rhythm-grid, .founder-grid { grid-template-columns: 1fr; gap: 24px; }
  .founder-grid { padding: 68px 0; }
  .contact-card { grid-template-columns: 1fr; }
  .feature-grid.three, .area-list { grid-template-columns: 1fr 1fr; }
  .quote-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topline .nav-links { gap: 16px; }
  .topline .nav-links a { font-size: .86rem; }
  .hero { padding-top: 52px; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .band-section { padding: 72px 0 84px; }
  .band-section.tight { padding: 52px 0 66px; }
  .section-head { margin-bottom: 36px; }
  .feature-grid, .pricing-grid, .feature-grid.three, .area-list { grid-template-columns: 1fr; }
  .contact { padding: 72px 0 58px; }
  .contact-card { border-radius: 20px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
