/*
 * OffPlan marketing site — offplan.care
 *
 * Brand tokens come from the Brand & Editorial Style Guide (2026-08-23) §2/§3,
 * matching src/Clients/care-navigation/assets/css/main.css so this page and the
 * product surfaces stay on one palette. The file marketing delivered used a
 * pre-brand navy (#1b2555) and orange (#e07b39); both are replaced here.
 *
 * Poppins is self-hosted from @fontsource/poppins (SIL OFL, see fonts/LICENSE.txt).
 * Deliberately NOT loaded from Google Fonts: this page has zero external origins,
 * which keeps the CSP tight and avoids a cookie-consent question for a page that
 * otherwise raises none.
 */

/* === Poppins (self-hosted, latin subset) === */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2');
}

:root {
  /* Brand — guide §2.1/§2.2, used exactly as specified. */
  --navy: #003e92;
  --orange: #f07a19;

  /* Derived shades. Not brand-sanctioned; see AB#991.
     --orange-text is the accessible orange. Measured on white:
       #f07a19 (brand)            2.80:1  fails AA even for large text
       #c25f0d (care-nav 700)     4.25:1  passes AA-large, fails AA-normal
       #b85a0c (this)             4.66:1  passes AA-normal
     The smallest orange text here is the 13px CTA label, which needs the
     4.5:1 normal-text threshold — hence one step darker than care-navigation's
     --op-orange-700. Orange FOREGROUNDS use this; borders and fills, which
     carry no contrast requirement, keep the pure brand hue. */
  --navy-dark: #002b66;
  --orange-text: #b85a0c;
  --bg-gray: #f1f1ef;
  --text-gray: #5b6470;
  --border-gray: #dcdcd8;

  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-gray);
  color: var(--navy);
}

/* === Hero === */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 24px 100px;
}
/* AB#1075 hero logo. The asset is a framed lockup (letterforms are ~1/3 of its
   height), so it runs small: 100px keeps its cap-height under the phone H1's and
   costs 79px of the 390x844 first screen (offset by the trimmed phone padding
   below). 150px on desktop. Contrast: white on #003e92 = 9.98:1. */
.hero .brand { display: block; width: 100px; margin: 0 auto 16px; }
.hero .brand img { display: block; width: 100%; height: auto; }
.hero .brand:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
@media (min-width: 601px) {
  .hero .brand { width: 150px; margin-bottom: 24px; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #c6d0e6;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #d5dced;
  font-size: 15px;
  line-height: 1.6;
}

/* === Card === */
.cards-wrap {
  max-width: 1200px;
  margin: -64px auto 60px;
  padding: 0 24px;
}
.top-row {
  display: flex;
  justify-content: center;
}
.top-row .card {
  max-width: 340px;
  width: 100%;
}
.card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 24px rgba(0, 62, 146, 0.08);
}
.card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}
.card .sub {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.price { margin: 0 0 4px; }
.price .amt {
  color: var(--orange-text);
  font-size: 30px;
  font-weight: 700;
}
.price .per {
  color: var(--text-gray);
  font-size: 13px;
}
.price-secondary-inline {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--navy);
}
.price-secondary-inline .amt-sm {
  color: var(--orange-text);
  font-weight: 700;
  font-size: 14px;
}
.price-secondary-inline .per-sm {
  color: var(--text-gray);
  font-size: 11px;
}
.price-note {
  color: var(--text-gray);
  font-size: 11px;
  margin: 8px 0 18px;
}
.features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex-grow: 1;
}
.features li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--navy);
}
.check {
  color: var(--orange-text);
  font-weight: 700;
  flex-shrink: 0;
}

/* === CTA === */
.cta {
  display: inline-block;
  text-align: center;
  padding: 11px 0;
  border: 1.5px solid var(--orange);
  color: var(--orange-text);
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cta:hover,
.cta:focus-visible {
  background: var(--orange-text);
  color: #fff;
}
.cta:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* === Footer === */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.6;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--navy); }

/* === Small screens === */
@media (max-width: 600px) {
  .hero { padding: 24px 20px 88px; } /* 40→24: pays for the logo; price stays above the fold (AB#1075) */
  .hero h1 { font-size: 26px; }
  /* The delivered copy hard-breaks the headline for desktop; on a phone that
     break lands mid-sentence, so drop it and let the text wrap naturally. */
  .hero h1 br { display: none; }
  .cards-wrap { padding: 0 20px; }
}

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