/* ============================================================
   MI Forward Policies — campaign site styles
   Brand palette matched to the logo: deep blue #0C418F -> teal #1C8B78,
   white, with a chevron motif.
   ============================================================ */

:root {
  --blue: #0c418f;        /* primary deep blue */
  --blue-deep: #062c63;   /* darkest blue (footer / gradient end) */
  --blue-mid: #14559e;
  --teal: #1c8b78;        /* accent teal */
  --teal-deep: #14705f;
  --sky: #d6e6f7;         /* light-blue chevron bars */
  --sky-2: #eef5fc;
  --cloud: #f4f8fc;
  --paper: #ffffff;
  --ink: #0b2540;
  --muted: #51657c;
  --muted-light: #b7cbe0;
  --line: #e2ebf4;

  --maxw: 1140px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(6, 44, 99, .06), 0 4px 14px rgba(6, 44, 99, .08);
  --shadow-md: 0 10px 30px rgba(6, 44, 99, .14);
  --shadow-lg: 0 24px 60px rgba(6, 30, 70, .26);

  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-head: "Plus Jakarta Sans", var(--ff-sans);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ff-sans); color: var(--ink); background: var(--paper);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--ff-head); line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(20, 112, 95, .32); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.accent { color: var(--teal); font-style: normal; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 46px; width: 46px; border-radius: 50%; }
.brand-text { font-family: var(--ff-head); font-weight: 800; font-size: 1.24rem; color: var(--blue); letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-weight: 700; color: var(--teal); }
.brand-text--light { color: #fff; }
.brand-text--light em { color: #6fd0bb; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.btn) { font-family: var(--ff-head); font-weight: 600; font-size: .98rem; color: var(--ink); padding: 6px 2px; position: relative; }
.site-nav > a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.site-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--teal); transition: width .2s ease; }
.site-nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--blue); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 13px 4px; font-family: var(--ff-head); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(115deg, var(--blue) 0%, var(--blue-mid) 45%, var(--teal) 100%);
  padding: clamp(70px, 12vw, 130px) 0 clamp(74px, 12vw, 134px);
}
.hero-chevron { position: absolute; top: 50%; transform: translateY(-50%); width: 40vw; max-width: 560px; aspect-ratio: 1 / 1; opacity: .09; pointer-events: none;
  background: #fff; clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); }
.hero-chevron--1 { right: -8%; }
.hero-chevron--2 { left: -14%; opacity: .06; width: 30vw; }
.hero-inner { position: relative; max-width: 860px; }
.eyebrow { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.14); padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; margin: 24px 0 0; }
.hero .accent { color: #b9ecdd; }
.lede { font-size: clamp(1.1rem, 2vw, 1.4rem); font-family: var(--ff-head); font-weight: 600; color: #eaf3ff; margin: 22px auto 0; max-width: 30em; line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- sections ---------- */
.section { padding: clamp(58px, 8vw, 96px) 0; }
.section--blue { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.section--cloud { background: var(--cloud); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 54px); text-align: center; }
.kicker { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--teal); margin-bottom: 14px; }
.kicker--light { color: #7fd8c4; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); font-weight: 800; }
.h2-light { color: #fff; }

/* ---------- priority chevron bars ---------- */
.chevrons { display: flex; flex-direction: column; gap: 20px; max-width: 940px; margin: 0 auto; }
.chev {
  background: var(--sky); color: var(--blue);
  font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  padding: 26px 72px 26px 34px;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
  filter: drop-shadow(7px 7px 0 rgba(6, 44, 99, .18));
  transition: transform .18s ease, background .2s ease;
}
.chev span { display: block; }
.chev:nth-child(2) { background: #c2dcf3; }
.chev:nth-child(3) { background: #aed2f0; }
.chev:hover { transform: translateX(6px); }

/* ---------- leaders ---------- */
.leaders-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.leader { margin: 0; text-align: center; }
.leader img {
  width: 100%; max-width: 220px; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%;
  background: rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border: 4px solid rgba(255,255,255,.9);
}
.leader figcaption { display: flex; flex-direction: column; margin-top: 18px; }
.leader-name { font-family: var(--ff-head); font-weight: 800; font-size: 1.28rem; color: #fff; }
.leader-tag { font-size: .92rem; color: #9fc0e0; margin-top: 4px; }

/* ---------- contact ---------- */
.contact-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.contact-logo { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 22px; box-shadow: var(--shadow-md); }
.section--cloud h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.contact-inner p { margin: 14px 0 26px; font-size: 1.1rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); color: var(--muted-light); padding: 56px 0 36px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { height: 44px; width: 44px; border-radius: 50%; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--muted-light); font-family: var(--ff-head); font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-cta { font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; text-align: center; padding: 32px 0; letter-spacing: -.01em; }
.footer-cta .accent { color: #6fd0bb; }
.footer-legal { text-align: center; font-size: .85rem; line-height: 1.7; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; }
.footer-legal .disclaimer { color: #fff; font-weight: 600; }
.footer-legal .disclaimer a { color: #fff; }
.footer-legal .copyright { margin-top: 12px; color: #7a93b3; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .leaders-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .chev { padding: 20px 54px 20px 24px; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .chev { transition: none; }
}

/* ============================================================
   Interior pages: legal prose, forms, opt-in / opt-out
   ============================================================ */

/* ---------- interior page hero ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--blue) 0%, var(--blue-mid) 55%, var(--teal) 100%);
  color: #fff; padding: clamp(46px, 7vw, 74px) 0 clamp(50px, 7vw, 78px);
}
.page-hero .kicker { margin-bottom: 12px; }
.page-hero h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; max-width: 22em;
}
.page-hero .lede { margin: 18px 0 0; text-align: left; max-width: 34em; font-size: clamp(1.02rem, 1.7vw, 1.2rem); }

/* ---------- legal prose ---------- */
.prose { max-width: 780px; }
.prose .prose-meta { font-size: .9rem; color: var(--muted); margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.prose h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--blue);
  margin: 40px 0 14px; scroll-margin-top: 90px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul.bullets { list-style: none; margin: 0 0 20px; padding: 0; }
.prose ul.bullets li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink);
}
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 6px; top: .55em; width: 9px; height: 9px;
  background: var(--teal);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}
.prose .contact-block {
  background: var(--cloud); border-left: 4px solid var(--teal);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; line-height: 1.9;
}

/* ---------- callouts ---------- */
.callout {
  background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 28px;
}
.callout p { margin: 0 0 12px; }
.callout p:last-child { margin-bottom: 0; }
.callout--teal { background: #eafaf5; border-color: #b9ecdd; border-left: 4px solid var(--teal); }

/* ---------- opt-out keywords ---------- */
.keyword-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.keyword {
  font-family: var(--ff-head); font-weight: 800; font-size: .95rem; letter-spacing: .06em;
  background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 999px;
}

/* ---------- form layout ---------- */
.form-wrap {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.form-wrap--single { grid-template-columns: minmax(0, 720px); max-width: 780px; }

.signup-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-sm);
}
.signup-form h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.form-intro { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; font-family: var(--ff-head); font-weight: 700; font-size: .92rem;
  color: var(--ink); margin-bottom: 7px;
}
.field .req { color: #c0392b; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .86rem; }
.field input {
  width: 100%; font-family: var(--ff-sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: var(--muted-light); }
.field input:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28, 139, 120, .16);
}
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field .help { font-size: .84rem; color: var(--muted); margin-top: 7px; }

/* ---------- consent checkboxes ---------- */
.consent-box {
  background: var(--cloud); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
}
.consent { display: flex; gap: 13px; align-items: flex-start; cursor: pointer; }
.consent input[type="checkbox"] {
  flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer;
  accent-color: var(--teal);
}
.consent-text { font-size: .9rem; line-height: 1.6; color: var(--ink); }
.consent-text a { text-decoration: underline; text-underline-offset: 2px; }

.signup-form .btn { margin-top: 8px; }
.form-foot { font-size: .84rem; color: var(--muted); margin-top: 16px; text-align: center; }
.form-foot a { text-decoration: underline; }

.form-status { margin-top: 18px; font-size: .95rem; border-radius: 10px; }
.form-status:not(:empty) { padding: 14px 16px; }
.form-status.ok { background: #eafaf5; border: 1px solid #b9ecdd; color: var(--teal-deep); font-weight: 600; }
.form-status.err { background: #fdecea; border: 1px solid #f5c6c2; color: #a5281c; font-weight: 600; }

/* ---------- form sidebar ---------- */
.form-aside {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 34px);
  box-shadow: var(--shadow-md); position: sticky; top: 96px;
}
.form-aside h3 { color: #fff; font-size: 1.28rem; font-weight: 800; margin-bottom: 18px; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative; padding-left: 26px; margin-bottom: 15px;
  font-size: .93rem; line-height: 1.6; color: #eaf3ff;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
  background: #6fd0bb;
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}
.tick-list strong { color: #fff; }
.aside-foot {
  margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .88rem; color: var(--muted-light);
}
.aside-foot a { color: #6fd0bb; text-decoration: underline; }

/* ---------- footer legal nav ---------- */
.footer-legal-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  padding: 0 0 26px;
}
.footer-legal-nav a {
  color: var(--muted-light); font-size: .88rem; font-family: var(--ff-head); font-weight: 600;
}
.footer-legal-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- homepage text-alert CTA band ---------- */
.sms-band {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; padding: clamp(44px, 6vw, 68px) 0;
}
.sms-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.sms-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.sms-band p { color: #eaf3ff; margin-top: 10px; max-width: 40em; }
.sms-band .fineprint { font-size: .82rem; color: var(--muted-light); margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .form-aside { position: static; order: -1; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .page-hero h1 { font-size: 1.85rem; }
  .prose .contact-block { padding: 16px 18px; }
}

/* Spacing when a form card sits between two prose blocks (opt-out page) */
.form-wrap { margin: 34px 0 44px; }
.form-wrap--single { margin-left: auto; margin-right: auto; }
.section > .container + .container { margin-top: 0; }
