/* ============================================================
   Grow My Post: brand stylesheet for the public marketing site
   Loaded by every public marketing page (not the dashboard or admin).
   Does not depend on Bootstrap, styles.css or home.css.

   Texture switch: add the class "no-texture" to <body> to remove the
   printed speckle overlays and the worn headline filter in one change.
   ============================================================ */

/* ---------- Fonts (self hosted) ---------- */
@font-face {
  font-family: 'League Gothic';
  src: url('../fonts/LeagueGothic-wdth.ttf') format('truetype');
  font-weight: 400;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Yellowtail';
  src: url('../fonts/Yellowtail-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #1F5FB0;
  --cream: #F6EBD7;
  --rust: #B93A20;
  --ink: #14284B;
  --paper: #EBDBBD;
  --navy: #0F2142;
  --shadow-dark: rgba(10, 24, 52, .4);
  --shadow-navy: #17437E; /* --shadow-dark as it renders on cobalt, for use on light backgrounds */

  --font-disp: 'League Gothic', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-script: 'Yellowtail', 'Brush Script MT', cursive;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1120px;

  /* Texture: worn headline filters. Overridden by body.no-texture. */
  --worn: url(#worn);
  --worn-md: url(#wornMd);
  --rough: url(#roughSm);
  --logo-worn: url(#logoWorn);
}

body.no-texture {
  --worn: none;
  --worn-md: none;
  --rough: none;
  --logo-worn: none;
}
body.no-texture .tex { display: none; }

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.gmp-site {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

.gmp-site [hidden] { display: none !important; }
:where(.gmp-site) img { max-width: 100%; height: auto; display: block; }
:where(.gmp-site) a { color: inherit; }
:where(.gmp-site) p { margin: 0; }

.gmp-site :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--cream); }

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

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.disp {
  font-family: var(--font-disp);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
}
/* Script (Yellowtail) is used in ONE place only: the hero H1
   "Veterans Post Software". Do not add script anywhere else. */
.tagline .tagline-script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.15rem, 2.3vw, 1.8rem);
  line-height: 1.1;
  padding: 0 .1em .08em;
  transform: rotate(-4deg);
  white-space: nowrap;
}

.worn { filter: var(--worn); }
.worn-md { filter: var(--worn-md); }

/* ---------- Sections ---------- */
.sec {
  position: relative;
  padding: 110px var(--gutter) 120px;
}
.sec-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.bg-blue  { background: var(--blue);  color: var(--cream); }
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-rust  { background: var(--rust);  color: var(--cream); }
.bg-navy  { background: var(--navy);  color: var(--cream); }

/* Speckle overlay: full-bleed SVG rect behind content */
.tex {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.tex-light { opacity: .35; }
.tex-dark  { opacity: .22; }

.sec-title {
  margin: 0;
  text-align: center;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .95;
  text-wrap: balance;
  filter: var(--worn-md);
}
.bg-cream .sec-title, .bg-paper .sec-title { color: var(--blue); }
.sec-lead {
  margin: 22px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 1.25rem;
  text-wrap: pretty;
}
.bg-blue .sec-lead { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  font-family: var(--font-disp);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 1.4rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 1px 1px 0 var(--ink); }
.btn-rust  { background: var(--rust);  color: var(--cream); }
.btn-blue  { background: var(--blue);  color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--blue); }
.gmp-site .btn-rust, .gmp-site .btn-blue { color: var(--cream); }
.gmp-site .btn-cream { color: var(--blue); }
.btn-on-dark { box-shadow: 5px 5px 0 rgba(10, 24, 52, .5); }
.btn-on-dark:hover { box-shadow: 3px 3px 0 rgba(10, 24, 52, .5); }
.btn-on-dark.btn-rust { border-color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Header ---------- */
.site-head {
  position: relative;
  z-index: 20;
  background: var(--cream);
  border-bottom: 4px solid var(--blue);
}
.site-head-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-disp);
  font-size: 1.62rem;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gmp-site .lockup { color: var(--ink); }
.lockup svg { flex: none; filter: var(--logo-worn); }
.lockup span { white-space: nowrap; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.lockup-cream, .gmp-site .lockup-cream { color: var(--cream); }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
}
.gmp-site .nav-link { color: var(--ink); }
.gmp-site .nav-link:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 6px; }

.main-nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.head-actions { display: flex; align-items: center; gap: 22px; }

.menu-toggle { display: none; }

/* Mobile menu */
@media (max-width: 767.98px) {
  .site-head-inner { flex-wrap: wrap; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    background: var(--cream);
    color: var(--ink);
    border: 3px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--font-disp);
    font-size: 1.35rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .menu-toggle-bars i { display: block; width: 20px; height: 3px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) { opacity: 0; }

  .menu-panel {
    display: none;
    flex-basis: 100%;
    background: var(--cream);
    border: 3px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    padding: 8px 18px 18px;
    margin: 6px 5px 10px 0;
  }
  .menu-panel.is-open { display: block; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav .nav-link, .head-actions .nav-link {
    min-height: 48px;
    width: 100%;
    border-bottom: 2px solid rgba(20, 40, 75, .18);
    font-family: var(--font-disp);
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: .05em;
  }
  .head-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .head-actions .btn { margin-top: 4px; }
}
@media (min-width: 768px) {
  .menu-panel {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px 32px;
  }
  .main-nav { margin: 0 auto; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px var(--gutter) 0; }
.hero-panel {
  background: var(--cream);
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: 12px 12px 0 rgba(10, 24, 52, .35);
}
.hero-title {
  margin: 0;
  text-align: center;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: .95;
  text-wrap: balance;
  filter: var(--worn);
}
.hero-title-band {
  display: block;
  background: var(--blue);
  color: var(--cream);
  padding: .16em .2em .08em;
}
.hero-title-line2 {
  display: block;
  color: var(--blue);
  padding: .2em .1em .02em;
}
.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 8px 12px;
}
.tagline p,
.tagline h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1;
  color: var(--rust);
  filter: var(--rough);
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
  max-width: 280px;
  min-width: 48px;
}
.bars i { display: block; height: 9px; background: var(--rust); }
.bars i:nth-child(1) { width: 100%; }
.bars i:nth-child(2) { width: 78%; }
.bars i:nth-child(3) { width: 56%; }
.bars-l { align-items: flex-end; }
.bars-r { align-items: flex-start; }

.hero-lead {
  margin: 48px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 500;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}
.hero-shot {
  position: relative;
  z-index: 3;
  max-width: 1020px;
  margin: 76px auto -170px;
}
.hero-shot .ui-shot img { box-shadow: 14px 14px 0 var(--rust); }

/* ---------- Frames and screenshots ---------- */
/* Product UI images: the navy window border is part of the image,
   the hard rust shadow is added here. */
.ui-shot img { display: block; width: 100%; height: auto; box-shadow: 10px 10px 0 var(--rust); }
.frame {
  background: var(--cream);
  padding: 12px;
  box-shadow: 10px 10px 0 var(--rust);
}
.frame-blue { border: 4px solid var(--blue); }
.frame img { width: 100%; }

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  min-height: 280px;
  background: repeating-linear-gradient(135deg, rgba(20, 40, 75, .07) 0 14px, transparent 14px 28px), var(--paper);
  border: 3px dashed rgba(20, 40, 75, .5);
  color: var(--ink);
}
.shot b {
  font-family: var(--font-disp);
  font-weight: 400;
  font-size: 2.1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue);
}
.shot-video { aspect-ratio: 16 / 9; min-height: 0; }
.play-tri {
  width: 0; height: 0;
  border-left: 30px solid var(--rust);
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
}

/* ---------- Features ---------- */
.features { padding: 270px var(--gutter) 110px; }
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  margin-top: 110px;
}
.features .sec-lead + .feature { margin-top: 96px; }
.feature-text { flex: 1 1 420px; min-width: 0; }
.feature-media { flex: 1 1 460px; min-width: 0; }
/* Reversed rows put the screenshot first on wide screens only, so
   mobile always reads text first, then screenshot. */
@media (min-width: 960px) {
  .feature-rev .feature-media { order: -1; }
}
@media (max-width: 959.98px) {
  .feature-text, .feature-media { flex-basis: 100%; }
}

.stamp {
  display: inline-block;
  margin: 0;
  padding: 2px 12px;
  border: 3px solid var(--rust);
  color: var(--rust);
  font-size: 1.7rem;
  line-height: 1.2;
  transform: rotate(-3deg);
}
.feature h3 {
  margin: 14px 0 8px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--blue);
}
.feature-text > p { font-size: 1.15rem; text-wrap: pretty; }

.bul { list-style: none; margin: 18px 0 0; padding: 0; }
.bul li { position: relative; padding-left: 30px; margin: 12px 0; font-weight: 600; }
.bul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .5em;
  width: 11px;
  height: 11px;
  background: var(--rust);
  transform: rotate(45deg);
}

/* ---------- How it works ---------- */
.how { padding: 100px var(--gutter) 110px; }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  margin-top: 64px;
}
.step-card {
  background: var(--cream);
  color: var(--ink);
  padding: 28px 30px 34px;
  box-shadow: 10px 10px 0 var(--shadow-dark);
}
.step-num { font-size: 7rem; line-height: .8; color: var(--rust); }
.step-card h3 { margin: 16px 0 8px; font-size: 2.6rem; line-height: 1; color: var(--blue); }
.step-card p { text-wrap: pretty; }

/* ---------- About ---------- */
.about { padding: 120px var(--gutter); }
.about .sec-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about-text { flex: 1 1 440px; min-width: 0; }
.about-media { flex: 1 1 460px; min-width: 0; }
.about h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .95;
  color: var(--blue);
  text-wrap: balance;
  filter: var(--worn-md);
}
.about-text p { margin-top: 26px; font-size: 1.2rem; text-wrap: pretty; }
.about-text p + p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Testimonials ---------- */
.quote {
  margin: 0;
  background: var(--cream);
  border: 3px dashed var(--blue);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote blockquote { margin: 0; font-size: 1.2rem; font-weight: 500; text-wrap: pretty; }
.quote figcaption { margin-top: auto; border-top: 3px solid var(--rust); padding-top: 14px; }
.quote .who { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--blue); }
.quote .where { font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing { padding: 110px var(--gutter) 120px; }
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  margin-top: 72px;
}
.plan {
  position: relative;
  flex: 1 1 360px;
  max-width: 440px;
  min-width: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 10px 0 var(--shadow-dark);
}
.plan h2, .plan h3 { margin: 0; font-size: 2.1rem; line-height: 1; color: var(--blue); }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.plan-price .amt { font-size: 6.5rem; line-height: .9; }
.plan-price .per { font-weight: 700; font-size: 1.1rem; }
.plan-note { margin-top: 6px; font-weight: 500; }
.plan .bul { margin: 22px 0 32px; }
.plan .btn { margin-top: auto; }
.plan-tag {
  position: absolute;
  top: -20px;
  right: 24px;
  margin: 0;
  padding: 4px 16px 2px;
  background: var(--rust);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1.2;
  transform: rotate(2deg);
}
.fee-note {
  margin: 52px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  text-wrap: pretty;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 0 64px;
  margin-top: 64px;
}
.faq-item { border-top: 3px solid var(--blue); padding: 22px 0 30px; }
.faq-item h3 { margin: 0 0 8px; font-size: 2.1rem; line-height: 1.05; color: var(--blue); }
.faq-item p { text-wrap: pretty; }
.faq-item a { color: var(--rust); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .sec-inner { max-width: 900px; }
.final-cta h2 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: .95;
  text-wrap: balance;
  filter: var(--worn);
}
.final-cta p { margin: 30px auto 0; max-width: 560px; font-size: 1.3rem; font-weight: 500; text-wrap: pretty; }
.final-cta .btn-wrap { margin-top: 40px; }
.final-cta .btn { box-shadow: 5px 5px 0 rgba(10, 24, 52, .55); }
.final-cta .btn:hover { box-shadow: 3px 3px 0 rgba(10, 24, 52, .55); }

/* ---------- Footer ---------- */
.site-foot { padding: 72px var(--gutter) 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.foot-brand { flex: 1 1 280px; }
.foot-brand .lockup { font-size: 2.1rem; gap: 10px; }
.foot-brand p { margin-top: 20px; max-width: 34ch; font-size: 1rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.foot-col { display: flex; flex-direction: column; }
.foot-col .disp { margin: 0 0 6px; font-size: 1.6rem; opacity: .85; }
.site-foot a { text-decoration: none; color: var(--cream); }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 3px solid var(--rust);
  font-size: .95rem;
}
.foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .sec, .pricing { padding-top: 80px; padding-bottom: 88px; }
  .features { padding-top: 150px; padding-bottom: 88px; }
  .how { padding-top: 80px; padding-bottom: 88px; }
  .about { padding-top: 88px; padding-bottom: 88px; }
  .hero { padding-top: 48px; padding-bottom: 0; }
  .site-foot { padding-top: 64px; padding-bottom: 36px; }
  .hero-lead { margin-top: 36px; font-size: 1.2rem; }
  .hero-shot { margin: 56px auto -70px; }
  .hero-shot .ui-shot img, .ui-shot img { box-shadow: 7px 7px 0 var(--rust); }
  .frame { padding: 8px; box-shadow: 8px 8px 0 var(--rust); }
  .feature { margin-top: 80px; gap: 32px; }
  .features .sec-lead + .feature { margin-top: 64px; }
  .tagline { gap: 12px; }
  .bars { gap: 4px; min-width: 28px; }
  .bars i { height: 6px; }
  .plan { padding: 40px 24px 28px; }
  .plan-price .amt { font-size: 5.2rem; }
  .plan-tag { font-size: 1.35rem; right: 12px; }
  .faq-item h3 { font-size: 1.85rem; }
  .btn { padding: 0 24px; }
  .hero-cta .btn, .final-cta .btn { flex: 1 1 220px; }
}

/* ---------- Waitlist modal (restyled, same markup and IDs) ---------- */
#gmp-cs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 33, 66, .78);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
#gmp-cs-overlay.gmp-cs-open { display: flex; }
.gmp-cs-hidden { display: none !important; }
.gmp-cs-card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--rust);
  max-width: 440px;
  width: 100%;
  padding: 40px 32px 32px;
  text-align: center;
  font-family: var(--font-body);
}
.gmp-cs-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.gmp-cs-close:hover { color: var(--rust); }
.gmp-cs-heading, .gmp-cs-success-title {
  font-family: var(--font-disp);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  color: var(--blue);
  line-height: 1;
  margin: 0 0 12px;
}
.gmp-cs-heading { font-size: 2.8rem; }
.gmp-cs-success-title { font-size: 2.4rem; }
.gmp-cs-subtext, .gmp-cs-success-text { margin: 0 0 24px; font-size: 1.02rem; }
.gmp-cs-success-text { margin: 0; }
.gmp-cs-field { margin-bottom: 16px; text-align: left; }
.gmp-cs-field label {
  display: block;
  font-family: var(--font-disp);
  font-size: 1.4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.gmp-cs-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
.gmp-cs-field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gmp-cs-checkbox-field { margin: 22px 0 18px; text-align: left; }
.gmp-cs-checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
}
.gmp-cs-checkbox-field input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}
.gmp-cs-submit { width: 100%; margin-top: 6px; }
.gmp-cs-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 var(--ink); }
.gmp-cs-error { color: var(--rust); font-weight: 600; font-size: .92rem; margin: 14px 0 0; text-align: left; }
.gmp-cs-success-icon {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: var(--cream);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.75rem;
  transform: rotate(-3deg);
}

/* ============================================================
   Interior pages (blog, contact, pricing, legal, resources, 404)
   ============================================================ */

/* ---------- Page hero: cobalt band with the page title ---------- */
.page-hero { padding: 72px var(--gutter) 84px; text-align: center; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: .95;
  text-wrap: balance;
  filter: var(--worn);
}
.page-hero .sec-lead { font-weight: 500; }
.page-hero .sec-lead a { color: var(--cream); font-weight: 700; text-underline-offset: 3px; }
.page-hero .meta { margin-top: 18px; font-weight: 600; opacity: .9; }

.sec-pad { padding: 88px var(--gutter) 100px; }
.sec-narrow { max-width: 820px; }

.h2-left {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--blue);
  text-wrap: balance;
  filter: var(--worn-md);
}
.on-dark .h2-left { color: var(--cream); }
.sub { font-size: 1.15rem; margin-top: 10px; text-wrap: pretty; }
.on-dark .sec-title { color: var(--cream); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 32px;
  margin-top: 48px;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--col, 300px), 100%), 1fr));
}
.grid-2 { --col: 380px; }
.grid-4 { --col: 230px; }
.card {
  position: relative;
  background: #FBF4E6;
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 26px 26px 28px;
  box-shadow: 8px 8px 0 var(--blue);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.on-dark .card { background: var(--cream); border-color: var(--cream); box-shadow: 8px 8px 0 rgba(0, 0, 0, .35); }
.card-rust { box-shadow: 8px 8px 0 var(--rust); }
.card h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.02;
  color: var(--blue);
  text-wrap: balance;
}
.card p { text-wrap: pretty; }
.card .card-links { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.card-center .card-links { align-items: center; }
.gmp-site .card-links a, .gmp-site .card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rust);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.card-actions { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.card-actions .btn { width: 100%; }
.card-center { text-align: center; }

/* ---------- Content links ---------- */
.gmp-site .link { color: var(--rust); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Article / legal text ---------- */
.prose { font-size: 1.08rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-disp);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.05;
  color: var(--blue);
  padding-top: 16px;
  border-top: 3px solid var(--blue);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3, .prose h4 {
  margin-top: 1.8em;
  font-family: var(--font-disp);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
}
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.gmp-site .prose a { color: var(--rust); font-weight: 600; text-underline-offset: 3px; }
.prose ol { padding-left: 1.6em; }
.prose li + li { margin-top: .4em; }
.prose ul { list-style: none; padding-left: 26px; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: .62em;
  width: 9px;
  height: 9px;
  background: var(--rust);
  transform: rotate(45deg);
}
.prose ol > li::marker { color: var(--rust); font-weight: 700; }
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 14px 20px;
  border-left: 6px solid var(--rust);
  background: var(--paper);
  font-weight: 500;
}
.prose img { max-width: 100%; height: auto; border: 3px solid var(--ink); }
.prose hr { border: 0; border-top: 3px solid var(--blue); margin: 2em 0; }
.prose code { background: var(--paper); padding: 1px 5px; font-size: .92em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--blue); background: #FBF4E6; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.table-wrap th, .table-wrap td { border: 2px solid rgba(20, 40, 75, .35); padding: 10px 12px; text-align: left; vertical-align: top; }
.table-wrap thead th { background: var(--blue); color: var(--cream); font-family: var(--font-disp); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; border-color: var(--ink); }
.prose .table-wrap { margin-top: 1.2em; }

/* Back link and article header */
.gmp-site .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--rust);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .92rem;
  text-decoration: none;
}
.gmp-site .back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.article-head { margin-top: 18px; }
.article-head h1 {
  margin: 14px 0 0;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: .98;
  color: var(--blue);
  text-wrap: balance;
  filter: var(--worn-md);
}
.article-meta { margin-top: 14px; font-weight: 600; }
.article-hero { margin-top: 32px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-hero .doc-art { aspect-ratio: 16 / 9; }
.article-body { margin-top: 44px; }
.status-msg { margin-top: 20px; font-weight: 600; }

/* ---------- Blog cards (markup built in blog.html) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 40px 32px;
}
.blog-grid > .status-msg { grid-column: 1 / -1; text-align: center; }
.gmp-site .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FBF4E6;
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.gmp-site .blog-card:hover { transform: translate(3px, 3px); box-shadow: 5px 5px 0 var(--blue); }
@media (prefers-reduced-motion: reduce) { .gmp-site .blog-card { transition: none; } }
.blog-card-img { border-bottom: 3px solid var(--ink); aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.doc-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, rgba(20, 40, 75, .07) 0 14px, transparent 14px 28px), var(--paper);
  color: var(--blue);
}
.doc-art svg { width: 64px; height: 64px; }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.blog-card .stamp, .article-head .stamp { align-self: flex-start; font-size: 1.3rem; padding: 1px 10px; }
.blog-card-title { margin: 6px 0 0; font-size: 2.1rem; line-height: 1; color: var(--blue); text-wrap: balance; }
.blog-card-excerpt { text-wrap: pretty; }
.blog-card-date { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .92rem; letter-spacing: .05em; text-transform: uppercase; color: var(--rust); }

/* ---------- Forms ---------- */
.form-card {
  background: #FBF4E6;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--rust);
  padding: clamp(22px, 4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-disp);
  font-size: 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label .opt { font-family: var(--font-body); font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.notice {
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  font-weight: 600;
}
.notice-error { background: #F9E1DA; color: #7A1E0C; border-color: var(--rust); }
.notice-success { background: #E2ECF8; color: var(--ink); border-color: var(--blue); }

/* ---------- Diamond list on its own (resources pages) ---------- */
.arrow-list { list-style: none; margin: 24px 0 0; padding: 0; }
.arrow-list li { position: relative; padding-left: 34px; margin: 14px 0; font-weight: 600; font-size: 1.1rem; }
.arrow-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 12px;
  height: 12px;
  background: var(--rust);
  transform: rotate(45deg);
}
.fineprint { max-width: 700px; margin: 0 auto; text-align: center; font-size: .95rem; font-weight: 500; }

/* ---------- 404 ---------- */
.nf { padding: 64px var(--gutter) 96px; text-align: center; }
.nf-num {
  margin: 0;
  font-size: clamp(8.5rem, 28vw, 19rem);
  line-height: .78;
  letter-spacing: .03em;
  color: var(--cream);
  text-shadow: .04em .04em 0 var(--rust);
  filter: var(--worn);
}
.nf-panel {
  position: relative;
  max-width: 880px;
  margin: 34px auto 0;
  padding: clamp(10px, 1.6vw, 18px) clamp(10px, 1.6vw, 18px) clamp(26px, 3.4vw, 40px);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 12px 12px 0 rgba(10, 24, 52, .35);
}
.nf-title {
  margin: 0;
  padding: .16em .2em .1em;
  background: var(--blue);
  color: var(--cream);
  font-size: clamp(2.8rem, 7.4vw, 5.6rem);
  line-height: .95;
  filter: var(--worn);
}
.nf-panel .tagline { padding: 22px 8px 4px; }
.nf-copy {
  margin: 18px auto 0;
  max-width: 34em;
  padding: 0 12px;
  font-size: 1.2rem;
  font-weight: 500;
  text-wrap: pretty;
}
.nf .btn-row { margin-top: 30px; padding: 0 12px; }
.nf-help { margin-top: 40px; font-weight: 500; }
.gmp-site .nf-help a { color: var(--cream); font-weight: 700; text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }

@media (max-width: 600px) {
  .nf { padding-top: 48px; padding-bottom: 72px; }
  .nf-panel .tagline { gap: 10px; }
  .nf-copy { font-size: 1.08rem; }
  .btn-row .btn { flex: 1 1 220px; }
}

/* 404 entrance (only when motion is on) */
@keyframes gmp-drop { 0% { opacity: 0; translate: 0 -60px; scale: 1.15; } 70% { opacity: 1; translate: 0 6px; scale: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
.js-motion .nf-num   { animation: gmp-drop .7s cubic-bezier(.3, .9, .3, 1) both; }
.js-motion .nf-panel { animation: gmp-settle .55s cubic-bezier(.2, .8, .2, 1) .3s both; }
.js-motion .nf-title { animation: gmp-wipe .6s cubic-bezier(.7, 0, .2, 1) .45s both; }
.js-motion .nf .bars i { animation: gmp-bar .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .85s; }
.js-motion .nf .bars i:nth-child(2) { animation-delay: .93s; }
.js-motion .nf .bars i:nth-child(3) { animation-delay: 1.01s; }
.js-motion .nf .bars-l i { transform-origin: right center; }
.js-motion .nf .bars-r i { transform-origin: left center; }
.js-motion .nf .tagline p { animation: gmp-rise .5s ease .95s both; }
.js-motion .nf-copy  { animation: gmp-rise .5s ease 1.05s both; }
.js-motion .nf .btn-row { animation: gmp-rise .5s ease 1.15s both; }
.js-motion .nf-help  { animation: gmp-rise .5s ease 1.3s both; }

@media (max-width: 600px) {
  .page-hero { padding-top: 56px; padding-bottom: 64px; }
  .sec-pad { padding-top: 64px; padding-bottom: 72px; }
  .card { padding: 22px 20px 24px; box-shadow: 6px 6px 0 var(--blue); }
  .card-rust { box-shadow: 6px 6px 0 var(--rust); }
  .on-dark .card { box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); }
  .btn-row .btn { flex: 1 1 220px; }
}

/* ============================================================
   Motion
   Driven by Assets/JS/site-chrome.js. The "js-motion" class is put on
   <html> only when JS runs, IntersectionObserver exists, and the
   visitor has NOT asked for reduced motion. Without that class every
   rule below is inert and the page is fully static and visible.

   Uses the individual translate / scale / rotate properties, so it
   never fights the transforms elements already have (stamps, tags,
   button presses).
   ============================================================ */

/* ---------- Hero, plays once on load ---------- */
@keyframes gmp-rise   { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes gmp-settle { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes gmp-wipe   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gmp-bar    { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes gmp-lift   { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }

.js-motion .hero-panel        { animation: gmp-settle .55s cubic-bezier(.2, .8, .2, 1) both; }
.js-motion .hero-title-band   { animation: gmp-wipe .6s cubic-bezier(.7, 0, .2, 1) .15s both; }
.js-motion .hero-title-line2  { animation: gmp-rise .55s cubic-bezier(.2, .8, .2, 1) .4s both; }
.js-motion .hero .bars i      { animation: gmp-bar .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .6s; }
.js-motion .hero .bars i:nth-child(2) { animation-delay: .68s; }
.js-motion .hero .bars i:nth-child(3) { animation-delay: .76s; }
.js-motion .hero .bars-l i    { transform-origin: right center; }
.js-motion .hero .bars-r i    { transform-origin: left center; }
.js-motion .tagline-script    { animation: gmp-rise .5s ease .75s both; }
.js-motion .hero-lead         { animation: gmp-rise .55s ease .85s both; }
.js-motion .hero-cta          { animation: gmp-rise .55s ease .95s both; }
.js-motion .hero-shot         { animation: gmp-lift .8s cubic-bezier(.2, .8, .2, 1) 1.05s both; }

/* Parallax offset for the hero screenshot (set from JS, desktop only) */
.hero-shot .ui-shot { transform: translate3d(0, var(--py, 0px), 0); }

/* ---------- Scroll reveals ---------- */
.js-motion :is(
  .sec-title, .h2-left, .about h2, .final-cta h2, .page-hero h1, .article-head h1,
  .sec-lead, .fee-note, .final-cta p, .final-cta .btn-wrap, .about-text p,
  .step-card, .plan, .card, .blog-card, .faq-item, .quote, .form-card,
  .feature-text, .feature-media, .about-media,
  .arrow-list li, .fineprint, .prose > h2
):not(.is-in) {
  opacity: 0;
  translate: 0 28px;
}

.js-motion .is-in:not(.is-done) {
  transition:
    opacity .7s ease,
    translate .75s cubic-bezier(.2, .8, .2, 1),
    scale .5s cubic-bezier(.3, 1.6, .5, 1),
    rotate .5s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: var(--d, 0ms);
}

/* Feature rows slide in from opposite sides on wide screens */
@media (min-width: 960px) {
  .js-motion .feature-text:not(.is-in)                { translate: -48px 0; }
  .js-motion .feature-media:not(.is-in)               { translate: 48px 0; }
  .js-motion .feature-rev .feature-text:not(.is-in)   { translate: 48px 0; }
  .js-motion .feature-rev .feature-media:not(.is-in)  { translate: -48px 0; }
  .js-motion .about-media:not(.is-in)                 { translate: 48px 0; }
}

/* Screenshot frames: the hard shadow drops in after the frame lands */
.js-motion :is(.feature-media, .about-media):not(.is-in) :is(.frame, .ui-shot img) { box-shadow: 0 0 0 var(--rust); }
.js-motion :is(.feature-media, .about-media).is-in:not(.is-done) :is(.frame, .ui-shot img) {
  transition: box-shadow .45s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--d, 0ms) + .45s);
}

/* Feature bullets tick in one after another */
.js-motion .feature-text:not(.is-in) .bul li { opacity: 0; translate: -14px 0; }
.js-motion .feature-text.is-in:not(.is-done) .bul li {
  transition: opacity .4s ease, translate .4s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--d, 0ms) + .45s + var(--i, 0) * 90ms);
}
.bul li:nth-child(2) { --i: 1; }
.bul li:nth-child(3) { --i: 2; }
.bul li:nth-child(4) { --i: 3; }
.bul li:nth-child(5) { --i: 4; }

/* "No. 01" stamps thunk down */
.js-motion .stamp:not(.is-in) { opacity: 0; scale: 1.7; rotate: -10deg; }

/* Best Value tag swings in after its card */
.js-motion .plan:not(.is-in) .plan-tag { opacity: 0; rotate: -14deg; scale: .7; }
.js-motion .plan.is-in:not(.is-done) .plan-tag {
  transition: opacity .3s ease, rotate .55s cubic-bezier(.3, 1.7, .5, 1), scale .55s cubic-bezier(.3, 1.7, .5, 1);
  transition-delay: calc(var(--d, 0ms) + .45s);
}

/* FAQ rules draw across left to right */
.js-motion .faq-item { position: relative; border-top-color: transparent; }
.js-motion .faq-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -3px;
  height: 3px;
  background: var(--blue);
  transform-origin: left center;
  scale: 0 1;
}
.js-motion .faq-item.is-in::before {
  scale: 1 1;
  transition: scale .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--d, 0ms) + .15s);
}

/* Never print anything half-revealed */
@media print {
  .js-motion * { opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; clip-path: none !important; animation: none !important; }
}

/* About image: dark navy hard shadow, the same color the How It Works
   step cards' shadow renders as on the cobalt section above it. */
.about-media .frame { box-shadow: 10px 10px 0 var(--shadow-navy); }
.js-motion .about-media:not(.is-in) .frame { box-shadow: 0 0 0 var(--shadow-navy); }
@media (max-width: 600px) {
  .about-media .frame { box-shadow: 8px 8px 0 var(--shadow-navy); }
}
