/* ============================================================================
   MONITOR MY AIR — DESIGN SYSTEM
   Calm. Clear. Credible.
   Deep teal + sage + warm off-white + one warm-clay action color.
   Serif headlines (Fraunces), clean sans body (Inter).
   Everything here is shared by every page. No dark patterns, no alarm.
   ============================================================================ */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* Color */
  --teal-900: #0a3a38;
  --teal-800: #0f4c4a;   /* primary brand */
  --teal-700: #14615d;
  --teal-600: #1c7a74;
  --sage-500: #8fb0a3;   /* calm / health */
  --sage-300: #bcd2c8;
  --sage-100: #e4eee9;
  --paper:    #f6f3ee;   /* warm off-white — dominant field */
  --paper-2:  #efeae1;   /* slightly deeper warm neutral */
  --card:     #fffdf9;
  --ink:      #20302e;   /* body text */
  --ink-soft: #4a5a57;
  --ink-mute: #74827f;
  --clay-600: #b25c30;
  --clay-500: #c46b3d;   /* THE action color — used only for primary CTAs */
  --clay-400: #d5814f;
  --ochre:    #c9922e;   /* muted caution — "when it's serious", never red */
  --line:     #ded6c8;   /* hairlines */
  --line-2:   #e8e1d5;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Layout */
  --container: 1160px;
  --reading: 720px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(15,50,48,.05), 0 2px 8px rgba(15,50,48,.05);
  --shadow: 0 4px 14px rgba(15,50,48,.08), 0 12px 34px rgba(15,50,48,.07);
  --shadow-lg: 0 10px 30px rgba(15,50,48,.12), 0 30px 70px rgba(15,50,48,.10);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ----- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration-color: var(--sage-300); text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }

/* ----- Typography -------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--teal-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.6rem); font-weight: 460; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: 1.28rem; line-height: 1.5; color: var(--ink-soft); }
.eyebrow { font-family: var(--sans); font-weight: 650; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 var(--s4); }
.serif { font-family: var(--serif); }
strong { font-weight: 680; color: var(--teal-900); }
em { color: var(--ink); }

/* ----- Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.reading { max-width: var(--reading); margin-inline: auto; }
.section { padding-block: clamp(var(--s7), 8vw, var(--s9)); }
.section-tight { padding-block: var(--s7); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.grid { display: grid; gap: var(--s5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* Backgrounds for bands */
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-sage { background: var(--sage-100); }
.bg-teal { background: var(--teal-800); color: var(--sage-100); }
.bg-teal h1, .bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal .eyebrow { color: var(--sage-300); }
.bg-teal p { color: #d7e6e0; }
.bg-teal a:not(.btn) { color: #fff; }

/* ----- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--sans); font-weight: 620; font-size: 1.02rem; padding: 15px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; text-decoration: none; line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay-500); color: #fff; box-shadow: 0 6px 18px rgba(196,107,61,.28); }
.btn-primary:hover { background: var(--clay-600); color: #fff; box-shadow: 0 8px 24px rgba(196,107,61,.36); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--teal-800); border-color: var(--teal-700); }
.btn-secondary:hover { background: var(--sage-100); color: var(--teal-900); }
.btn-ghost { background: #fff; color: var(--teal-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--sage-300); }
.btn-lg { font-size: 1.1rem; padding: 18px 32px; }
.btn-on-teal { background: #fff; color: var(--teal-900); }
.btn-on-teal:hover { background: var(--sage-100); color: var(--teal-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.text-link { font-weight: 620; color: var(--teal-700); text-decoration: none; border-bottom: 1.5px solid var(--sage-300); padding-bottom: 1px; }
.text-link:hover { border-color: var(--clay-500); }

/* ----- Header / nav ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,243,238,.86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 560; font-size: 1.25rem; color: var(--teal-900); text-decoration: none; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s5); }
.nav-links a { font-size: .98rem; font-weight: 550; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-800); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--teal-900); }
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--s3) var(--s5) var(--s5); }
  .nav-links.open a { padding: 14px 4px; border-bottom: 1px solid var(--line-2); font-size: 1.1rem; }
}

/* ----- Hero -------------------------------------------------------------- */
.hero { padding-block: clamp(var(--s7), 7vw, var(--s9)); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s6); } }
.hero h1 { margin-bottom: var(--s4); }
.trust-cue { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--teal-700); background: var(--sage-100); border: 1px solid var(--sage-300); padding: 7px 14px; border-radius: var(--radius-pill); margin-bottom: var(--s5); }
.trust-cue svg { width: 15px; height: 15px; }

/* ----- Situation Router -------------------------------------------------- */
.router { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--s6); }
.router h2 { font-size: 1.5rem; margin-bottom: var(--s2); }
.router .router-sub { color: var(--ink-mute); font-size: .98rem; margin-bottom: var(--s5); }
.router-options { display: grid; gap: var(--s3); }
.router-opt { display: flex; align-items: center; gap: var(--s4); width: 100%; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; font-family: var(--sans); font-size: 1.05rem; font-weight: 560; color: var(--teal-900); transition: all .16s var(--ease); text-decoration: none; }
.router-opt:hover { border-color: var(--clay-500); background: #fff; transform: translateX(3px); box-shadow: var(--shadow-sm); }
.router-opt .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--sage-100); border-radius: 10px; color: var(--teal-700); }
.router-opt .ico svg { width: 22px; height: 22px; }
.router-opt .arrow { margin-left: auto; color: var(--ink-mute); transition: transform .16s var(--ease), color .16s; }
.router-opt:hover .arrow { color: var(--clay-500); transform: translateX(4px); }

/* ----- Cards ------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card.hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: var(--s2); }
.card .ico-lg { width: 52px; height: 52px; display: grid; place-items: center; background: var(--sage-100); color: var(--teal-700); border-radius: 14px; margin-bottom: var(--s4); }
.card .ico-lg svg { width: 27px; height: 27px; }
.card p:last-child { margin-bottom: 0; }

/* ----- Reassurance band -------------------------------------------------- */
.reassure { text-align: center; padding-block: var(--s8); }
.reassure p { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--teal-900); max-width: 20ch; margin-inline: auto; font-weight: 460; }
.bg-teal .reassure p { color: #fff; }

/* ----- Method steps ------------------------------------------------------ */
.steps { display: grid; gap: var(--s4); counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s4); align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.step .num { counter-increment: step; width: 44px; height: 44px; display: grid; place-items: center; background: var(--teal-800); color: #fff; border-radius: 12px; font-family: var(--serif); font-size: 1.3rem; }
.step h4 { margin: 4px 0 6px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.step-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 16px; font-size: .92rem; font-weight: 580; color: var(--teal-800); }
.chip .n { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-800); color: #fff; display: grid; place-items: center; font-size: .78rem; }

/* ----- Feature / split --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s6); } .split.reverse .split-media { order: 0; } }
.media-frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }

/* ----- Pricing ----------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); display: flex; flex-direction: column; }
.price.featured { border-color: var(--teal-700); box-shadow: var(--shadow); position: relative; }
.price.featured::before { content: "Best for a real journey"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal-800); color: #fff; font-size: .76rem; font-weight: 650; letter-spacing: .04em; padding: 5px 14px; border-radius: var(--radius-pill); white-space: nowrap; }
.price .amt { font-family: var(--serif); font-size: 2.6rem; color: var(--teal-900); line-height: 1; margin: var(--s2) 0; }
.price .amt span { font-family: var(--sans); font-size: 1rem; color: var(--ink-mute); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; font-size: .98rem; color: var(--ink-soft); }
.price li svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 3px; }
.price .btn { margin-top: auto; justify-content: center; }

/* ----- Callouts ---------------------------------------------------------- */
.callout { border-left: 4px solid var(--sage-500); background: var(--sage-100); padding: var(--s5); border-radius: 0 var(--radius) var(--radius) 0; }
.callout.serious { border-color: var(--ochre); background: #fbf3df; }
.callout.honest { border-color: var(--teal-700); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-left: 4px solid var(--teal-700); }
.callout h4 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s2); }
.callout p:last-child { margin-bottom: 0; }

/* ----- Answer page ------------------------------------------------------- */
.breadcrumb { font-size: .9rem; color: var(--ink-mute); margin-bottom: var(--s4); }
.breadcrumb a { color: var(--teal-700); text-decoration: none; }
.short-answer { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal-700); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s5); margin: var(--s5) 0; box-shadow: var(--shadow-sm); }
.short-answer .tag { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 8px; }
.short-answer p { font-size: 1.12rem; margin-bottom: 0; color: var(--ink); }
.author { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) 0; border-block: 1px solid var(--line-2); margin: var(--s5) 0; }
.author .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-800); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; flex: none; }
.author .who { font-size: .92rem; line-height: 1.4; }
.author .who strong { display: block; color: var(--teal-900); }
.author .who span { color: var(--ink-mute); }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.related { display: grid; gap: var(--s3); }
.related a { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: var(--teal-900); font-weight: 560; transition: all .16s var(--ease); }
.related a:hover { border-color: var(--clay-500); transform: translateX(3px); }
.related a span.q { flex: 1; }
.related a .arrow { color: var(--ink-mute); }

/* ----- Soft gate --------------------------------------------------------- */
.gate { background: linear-gradient(180deg, var(--teal-800), var(--teal-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(var(--s6), 5vw, var(--s8)); text-align: center; box-shadow: var(--shadow-lg); }
.gate h3 { color: #fff; font-size: clamp(1.5rem,3vw,2rem); }
.gate p { color: #cfe1db; max-width: 46ch; margin-inline: auto; }
.gate .price-anchor { font-size: 1rem; color: var(--sage-300); margin-top: var(--s3); }
.gate .lock { width: 46px; height: 46px; margin: 0 auto var(--s4); display: grid; place-items: center; background: rgba(255,255,255,.12); border-radius: 12px; }
.gate .lock svg { width: 24px; height: 24px; color: #fff; }

/* ----- Triage widget ----------------------------------------------------- */
.triage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(var(--s5), 4vw, var(--s7)); max-width: 640px; margin-inline: auto; }
.triage .q { font-family: var(--serif); font-size: 1.5rem; color: var(--teal-900); margin-bottom: var(--s5); line-height: 1.25; }
.triage-opts { display: grid; gap: var(--s3); }
.triage-opt { text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 15px 18px; cursor: pointer; font-family: var(--sans); font-size: 1.02rem; font-weight: 550; color: var(--teal-900); transition: all .15s var(--ease); }
.triage-opt:hover { border-color: var(--clay-500); background: #fff; }
.triage-progress { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin-bottom: var(--s5); }
.triage-progress span { display: block; height: 100%; background: var(--teal-600); transition: width .3s var(--ease); }
.triage-result { text-align: left; }
.triage-result .verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; padding: 7px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: var(--s4); }
.v-watch { background: #fbf3df; color: var(--clay-600); }
.v-ok { background: var(--sage-100); color: var(--teal-700); }
.v-act { background: #f7e6dc; color: var(--clay-600); }
.hidden { display: none !important; }

/* ----- Story / stat ------------------------------------------------------ */
.field-story { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); box-shadow: var(--shadow-sm); }
.field-story .label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-500); margin-bottom: var(--s3); }
.field-story p { font-size: 1.08rem; font-style: italic; color: var(--ink); }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { background: var(--teal-900); color: #b8ccc6; padding-block: var(--s8) var(--s6); margin-top: var(--s8); }
.site-footer a { color: #d7e6e0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); margin-bottom: var(--s7); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.footer-grid h5 { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-300); margin: 0 0 var(--s3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: var(--s3); }
.footer-brand p { color: #9fb8b2; font-size: .95rem; max-width: 34ch; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--s5); font-size: .86rem; color: #8aa39d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
.footer-honest { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: var(--s4) var(--s5); margin-bottom: var(--s6); font-size: .92rem; color: #cfe1db; }

/* ----- Utility ----------------------------------------------------------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.maxw-sm { max-width: 560px; } .maxw-md { max-width: 720px; }
.pill-tag { display:inline-block; font-size:.78rem; font-weight:650; letter-spacing:.06em; text-transform:uppercase; color:var(--teal-700); background:var(--sage-100); border:1px solid var(--sage-300); padding:5px 12px; border-radius:999px; }
.divider { height:1px; background:var(--line); border:0; margin:var(--s7) 0; }
/* Reveal is a progressive enhancement only: content is visible by default,
   so no-JS crawlers (SEO) and reduced-motion users always see everything.
   The hidden-then-animate state only applies once JS marks <html class="js">. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }
