/* =========================================================
   Healthie Insurance Agency — SMS program site
   Design tokens: clinical calm with warmth
   ========================================================= */

:root {
  --ink:        #10332C;  /* deepest spruce — headings, body */
  --green:      #1F6F5C;  /* brand primary — links, fills */
  --green-700:  #17564A;  /* darker green — hover */
  --sage:       #E3EDE8;  /* soft surface */
  --sage-2:     #EEF4F1;  /* lighter surface */
  --line:       #CBDDD5;  /* hairline border */
  --paper:      #F6F8F6;  /* page background */
  --white:      #FFFFFF;  /* cards / form */
  --amber:      #E4A032;  /* CTA accent */
  --amber-700:  #C9871E;  /* CTA hover */
  --muted:      #51635C;  /* secondary text */
  --shadow:     0 1px 2px rgba(16,51,44,.04), 0 8px 30px rgba(16,51,44,.06);

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-700); text-decoration: underline; }

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

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 550; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.18rem; font-family: "Inter", sans-serif; font-weight: 650; letter-spacing: -0.005em; }
p  { margin: 0 0 1rem; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .9rem;
}

.lead { font-size: 1.16rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,248,246,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 1.06rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem;
}
.brand small { display: block; font-family: "Inter"; font-weight: 500; font-size: .72rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.header-contact { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.header-contact a { color: var(--ink); font-weight: 500; }
.header-contact .hc-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Inter"; font-weight: 650; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 4px 16px rgba(228,160,50,.32); }
.btn-primary:hover { background: var(--amber-700); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sage-2); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section--tight { padding: 56px 0; }
.section--sage { background: var(--sage); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 66px 0 78px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 30em; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: 0 0 auto; }

/* Phone signature */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto;
  background: linear-gradient(180deg, #0d2b25, #123a32);
  border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 70px -22px rgba(16,51,44,.5), inset 0 0 0 1px rgba(255,255,255,.05);
}
.phone-screen { background: var(--sage-2); border-radius: 30px; overflow: hidden; }
.phone-top {
  background: var(--white); padding: 16px 18px 13px;
  border-bottom: 1px solid var(--line); text-align: center;
}
.phone-top .avatar {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 600;
}
.phone-top .name { font-weight: 650; font-size: .92rem; }
.phone-top .num  { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-body { padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: .74rem; line-height: 1.5;
  background: var(--white); color: var(--ink);
  padding: 10px 12px; border-radius: 15px 15px 15px 4px;
  max-width: 88%; box-shadow: 0 1px 2px rgba(16,51,44,.06);
}
.bubble--out {
  align-self: flex-end; background: var(--green); color: #eafaf4;
  border-radius: 15px 15px 4px 15px;
}
.bubble .tag { display:block; font-family:"Inter"; font-size:.62rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; opacity:.7; margin-bottom:3px; }
.ts { text-align: center; font-family: "Inter"; font-size: .64rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Facts row ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.fact { }
.fact .n { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 550; color: var(--green); line-height: 1; }
.fact .l { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ---------- Message-type cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.card .ico {
  width: 38px; height: 38px; border-radius: 9px; background: var(--sage);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--green);
}
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Opt-in form ---------- */
.optin-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--amber-700); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,111,92,.15); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sage-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 16px; margin: 6px 0 20px;
}
.consent input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--green); cursor: pointer;
}
.consent label { font-size: .84rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent a { font-weight: 600; }

.form-card .btn-primary { width: 100%; justify-content: center; }
.form-foot { font-size: .82rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* hidden honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Keyword / how-it-works list ---------- */
.kw-list { display: grid; gap: 14px; margin-top: 8px; }
.kw {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.kw:last-child { border-bottom: 0; }
.kw code {
  font-family: "IBM Plex Mono", monospace; font-size: .82rem; font-weight: 500;
  background: var(--white); border: 1px solid var(--line); color: var(--green-700);
  padding: 3px 8px; border-radius: 6px; display: inline-block;
}
.kw span { color: var(--muted); font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe0d9; padding: 52px 0 40px; }
.site-footer a { color: #eafaf4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .mark { background: var(--amber); color: var(--ink); }
.site-footer .brand small { color: #9db8ae; }
.site-footer p { font-size: .92rem; color: #b6ccc3; margin: 0 0 6px; }
.footer-col h4 { font-family: "Inter"; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa9a0; margin: 0 0 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: .94rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #8fa9a0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Legal (terms / privacy) pages ---------- */
.legal { padding: 56px 0 72px; }
.legal .doc { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal .updated { font-size: .88rem; color: var(--muted); margin: -.2rem 0 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h3 { margin-top: 1.4rem; }
.legal p, .legal li { color: #29403A; font-size: 1.02rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .callout {
  background: var(--sage); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.back-link { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .optin-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-contact .support { display: none; }
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .brand { font-size: .95rem; gap: 9px; }
  .brand .mark { width: 30px; height: 30px; font-size: 1rem; }
  .brand small { font-size: .62rem; }
  .header-contact { font-size: .86rem; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .kw { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
}

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

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