/* ============================================================
   Legacy Health Insurance — SMS opt-in site
   Palette: deep pine + soft sage paper + restrained brass
   Type: Fraunces (display) · Public Sans (UI/body) · IBM Plex Mono (messages)
   ============================================================ */

:root {
  --paper:      #EFF3EF;
  --surface:    #FFFFFF;
  --ink:        #16211F;
  --pine:       #0E3B36;
  --pine-700:   #0A2E2A;
  --pine-600:   #175048;
  --brass:      #B98F44;
  --brass-tint: #F0E7D2;
  --line:       #D7E0DA;
  --line-soft:  #E5EBE6;
  --muted:      #4E5D58;
  --bubble:     #E7EFE9;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(16,33,31,.04), 0 12px 32px -18px rgba(14,59,54,.28);
  --shadow-lg:  0 2px 6px rgba(16,33,31,.05), 0 30px 60px -30px rgba(14,59,54,.35);

  --container:  1120px;
  --gap:        clamp(20px, 4vw, 48px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--pine-600); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pine);
  margin: 0;
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pine-600); margin: 0 0 14px;
}
.eyebrow .dot { color: var(--brass); margin: 0 .5em; }
.section-pad { padding-block: clamp(48px, 8vw, 88px); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239,243,239,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.topbar__meta { display: flex; align-items: center; gap: 18px; font-size: .86rem; color: var(--muted); }
.topbar__meta .pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 5px 12px; border-radius: 999px; font-weight: 600; color: var(--pine);
}
.topbar__meta a { font-weight: 700; text-decoration: none; }
@media (max-width: 720px) { .topbar__meta .pill { display: none; } }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; line-height: 1; }
.wordmark:hover { color: inherit; }
.wordmark__legacy { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.44rem; color: var(--pine); letter-spacing: -.01em; }
.wordmark__rest {
  font-family: "Public Sans", sans-serif; font-weight: 700; font-size: .72rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink); position: relative; top: -1px;
}
.wordmark__diamond { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); border-radius: 1px; align-self: center; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 68px); padding-bottom: clamp(8px, 2vw, 20px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: start; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.35rem, 6vw, 3.7rem); max-width: 15ch; }
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: var(--muted); max-width: 46ch; margin: 20px 0 26px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--pine);
}
.chip svg { width: 15px; height: 15px; flex: none; color: var(--brass); }

/* ---------- form card ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 32px);
}
.form-card__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.form-card h2 { font-size: 1.62rem; margin: 8px 0 4px; }
.form-card__sub { color: var(--muted); font-size: .95rem; margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #9aa8a2; }
.field input:hover { border-color: #b9c7c0; }
.field input:focus-visible { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(14,59,54,.14); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } }

/* consent */
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  background: #fbfdfb; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin: 20px 0 18px; }
.consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 3px 0 0; flex: none;
  width: 22px; height: 22px; border: 1.8px solid #9aa8a2; border-radius: 6px; background: #fff;
  cursor: pointer; transition: background .15s ease, border-color .15s ease; position: relative;
}
.consent input[type="checkbox"]:hover { border-color: var(--pine-600); }
.consent input[type="checkbox"]:checked { background: var(--pine); border-color: var(--pine); }
.consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.consent input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14,59,54,.18); }
.consent label { font-size: .82rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent label a { font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  font: inherit; font-weight: 700; font-size: 1.02rem; color: #fff;
  background: var(--pine); border: 1px solid var(--pine-700); border-radius: var(--radius-sm);
  padding: 14px 20px; cursor: pointer; transition: background .16s ease, transform .06s ease;
}
.btn:hover { background: var(--pine-600); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14,59,54,.28); }
.btn svg { width: 17px; height: 17px; }

.form-note { font-size: .78rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-note a { font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- two-column info band ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band__grid { display: grid; grid-template-columns: 1fr .9fr; gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .band__grid { grid-template-columns: 1fr; } }

.receive { list-style: none; margin: 22px 0 0; padding: 0; }
.receive li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.receive li:first-child { border-top: none; }
.receive__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--brass-tint); color: var(--pine);
  display: grid; place-items: center;
}
.receive__mark svg { width: 20px; height: 20px; }
.receive h3 { font-family: "Public Sans", sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: 0; }
.receive p { margin: 3px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- message thread (signature) ---------- */
.thread {
  background: var(--pine); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  position: sticky; top: 90px;
}
.thread__head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.14); }
.thread__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brass); display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 600; color: var(--pine-700); font-size: .95rem; }
.thread__name { color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.2; }
.thread__status { color: #9fc3ba; font-size: .74rem; }
.bubble {
  background: var(--bubble); color: var(--ink); border-radius: 14px 14px 14px 4px;
  padding: 12px 14px; margin-top: 14px; max-width: 92%;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .8rem; line-height: 1.5;
}
.bubble time { display: block; margin-top: 7px; font-family: "Public Sans", sans-serif; font-size: .68rem; color: var(--muted); }
.thread__foot { margin-top: 16px; font-size: .72rem; color: #9fc3ba; text-align: center; }

/* ---------- compliance strip ---------- */
.howto__head { max-width: 60ch; }
.howto__head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.howto__head p { color: var(--muted); margin-top: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card__tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--pine-600);
  background: var(--brass-tint); padding: 5px 11px; border-radius: 999px;
}
.card h3 { font-family: "Public Sans", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 14px 0 10px; }
.card__msg {
  font-family: "IBM Plex Mono", monospace; font-size: .78rem; line-height: 1.55; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-soft); border-left: 3px solid var(--brass);
  border-radius: 8px; padding: 12px;
}
.keyword-note { margin-top: 30px; font-size: .9rem; color: var(--muted); }
.kw { font-family: "IBM Plex Mono", monospace; font-size: .82em; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--pine); font-weight: 500; }

/* ---------- footer ---------- */
.footer { background: var(--pine-700); color: #cfe0da; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); padding-block: 52px 30px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer .wordmark__legacy { color: #fff; }
.footer .wordmark__rest { color: #cfe0da; }
.footer__legal { margin: 16px 0 0; font-size: .9rem; line-height: 1.7; color: #a9c4bc; }
.footer__legal strong { color: #fff; font-weight: 600; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav h4 { font-family: "Public Sans", sans-serif; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #8fb0a7; margin: 0 0 6px; font-weight: 700; }
.footer__nav a { text-decoration: none; font-weight: 600; font-size: .96rem; width: fit-content; }
.footer__nav a:hover { text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 24px 40px; font-size: .8rem; color: #8fb0a7; }
.footer__compliance { color: #cfe0da; margin: 0 0 12px; max-width: 90ch; }
.footer__disclaimer { margin: 0 0 12px; max-width: 90ch; }

/* ============================================================
   Content pages (Terms / Privacy / Thanks)
   ============================================================ */
.subhead { background: var(--surface); border-bottom: 1px solid var(--line); }
.subhead__inner { padding-block: clamp(40px, 7vw, 72px); }
.subhead h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.subhead p { color: var(--muted); margin: 14px 0 0; max-width: 60ch; }
.subhead .meta { font-size: .82rem; color: var(--muted); margin-top: 18px; }

.doc { max-width: 760px; }
.doc h2 {
  font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--pine); margin: 44px 0 12px;
  padding-top: 8px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-family: "Public Sans", sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ink); margin: 24px 0 8px; }
.doc p { margin: 0 0 14px; color: var(--ink); }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { font-weight: 600; }

.callout {
  background: var(--brass-tint); border: 1px solid #e4d3a8; border-left: 4px solid var(--brass);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 20px 0 28px;
}
.callout h3 { margin-top: 0; color: var(--pine); }
.callout p:last-child { margin-bottom: 0; }

.msg-block {
  font-family: "IBM Plex Mono", monospace; font-size: .82rem; line-height: 1.6; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: 8px; padding: 14px 16px; margin: 0 0 14px;
}
.msg-block .msg-label { display: block; font-family: "Public Sans", sans-serif; font-size: .72rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pine-600); margin-bottom: 8px; }

.backlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; text-decoration: none; font-size: .92rem; }
.backlink:hover { text-decoration: underline; }
.backlink svg { width: 15px; height: 15px; }

/* ---------- thanks page ---------- */
.thanks { min-height: 64vh; display: grid; place-items: center; text-align: center; padding-block: clamp(50px, 9vw, 100px); }
.thanks__inner { max-width: 620px; }
.thanks__badge { width: 72px; height: 72px; border-radius: 50%; background: var(--brass-tint); color: var(--pine);
  display: grid; place-items: center; margin: 0 auto 26px; }
.thanks__badge svg { width: 34px; height: 34px; }
.thanks h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.thanks__lead { color: var(--muted); font-size: 1.1rem; margin: 16px auto 28px; max-width: 46ch; }
.thanks .msg-block { text-align: left; max-width: 520px; margin-inline: auto; }
.thanks__actions { margin-top: 30px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.reveal-2 { animation-delay: .09s; }
.reveal-3 { animation-delay: .18s; }

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