/* ==========================================================================
   HeySaver design system  (v2, Oct 2026)
   Shared by the homepage, blog, and landers. Page-specific rules live in the page.
   ========================================================================== */

:root {
  /* Color */
  --hs-slate:   #1F2A37;   /* structure: nav, footer, primary buttons, headlines */
  --hs-forest:  #0F3B2E;   /* deep green: homepage hero only */
  --hs-leaf:    #1E7A4C;   /* the green accent: labels, links, one CTA, stats */
  --hs-leaf-dk: #16603B;
  --hs-lime:    #D9F56B;   /* rarely used highlight (geo chip) */
  --hs-paper:   #F5F6F7;   /* alternating section background */
  --hs-card:    #FFFFFF;   /* page background and cards */
  --hs-ink:     #1F2A37;
  --hs-muted:   #5F6B7A;
  --hs-line:    #DDE1E6;
  --hs-tint:    #E8F1EA;   /* soft green wash for callouts */

  /* Type */
  --hs-display: "Montserrat", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --hs-body:    "Source Sans 3", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  /* Scale (1.25 ratio off an 18px base) */
  --hs-fs-0: 1rem;      /* 18 */
  --hs-fs-1: 1.25rem;   /* 22.5 */
  --hs-fs-2: 1.5625rem; /* 28 */
  --hs-fs-3: 1.95rem;   /* 35 */
  --hs-fs-4: 2.44rem;   /* 44 */
  --hs-fs-s: 0.889rem;  /* 16 */
  --hs-fs-xs: 0.778rem; /* 14 */

  /* Layout */
  --hs-measure: 42rem;  /* reading column, ~75 characters */
  --hs-wide: 70rem;
  --hs-gutter: 1rem;
  --hs-radius: 8px;
  --hs-radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
@media (max-width: 480px) { html { font-size: 17px; } }

body {
  margin: 0;
  font-family: var(--hs-body);
  font-size: var(--hs-fs-0);
  line-height: 1.6;
  color: var(--hs-ink);
  background: var(--hs-card);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--hs-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--hs-ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
@media (max-width: 600px) {
  h1 { font-size: var(--hs-fs-3); }
  h2 { font-size: var(--hs-fs-2); }
  h3 { font-size: var(--hs-fs-1); }
}

p { margin: 0 0 1em; }
a { color: var(--hs-leaf); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--hs-leaf-dk); }
strong { font-weight: 600; }
sup { font-size: 0.65em; line-height: 0; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--hs-lime); outline-offset: 2px; }

.hs-container { width: 100%; max-width: var(--hs-wide); margin: 0 auto; padding: 0 var(--hs-gutter); }
.hs-measure   { width: 100%; max-width: var(--hs-measure); margin: 0 auto; padding: 0 var(--hs-gutter); }

/* Buttons ------------------------------------------------------------------ */
.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--hs-body); font-weight: 600; font-size: var(--hs-fs-0); line-height: 1.2;
  padding: .9rem 1.5rem; border-radius: var(--hs-radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.hs-btn-primary { background: var(--hs-slate); color: #fff; }
.hs-btn-primary:hover { background: #2C3A4B; color: #fff; }
.hs-btn-green { background: var(--hs-leaf); color: #fff; }
.hs-btn-green:hover { background: var(--hs-leaf-dk); color: #fff; }
.hs-btn-secondary { background: transparent; color: var(--hs-forest); border-color: var(--hs-forest); }
.hs-btn-secondary:hover { background: var(--hs-forest); color: #fff; }
.hs-btn-lime { background: var(--hs-lime); color: var(--hs-forest); }
.hs-btn-lime:hover { background: #C8EA50; color: var(--hs-forest); }
.hs-btn-block { display: flex; width: 100%; }

/* Header ------------------------------------------------------------------- */
.hs-header { background: var(--hs-slate); color: #fff; }
.hs-header .hs-container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.hs-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--hs-forest); }
.hs-footer .hs-logo { color: #fff; }
.hs-logo img { height: 34px; width: auto; }
.hs-logo-text { font-family: var(--hs-display); font-size: var(--hs-fs-1); font-weight: 700; color: inherit; }
.hs-nav { display: flex; gap: 1.5rem; }
.hs-nav a { color: var(--hs-forest); text-decoration: none; font-weight: 600; font-size: var(--hs-fs-s); opacity: .9; }
.hs-nav a:hover { opacity: 1; text-decoration: underline; }
.hs-header-link { color: var(--hs-forest); font-size: var(--hs-fs-xs); opacity: .85; text-decoration: underline; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.hs-header-link:hover { opacity: 1; }

/* Footer ------------------------------------------------------------------- */
.hs-footer { background: var(--hs-slate); color: #C5CCD6; margin-top: 4rem; padding: 3rem 0 2rem; font-size: var(--hs-fs-s); }
.hs-footer a { color: #fff; }
.hs-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .hs-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hs-footer-grid { grid-template-columns: 1fr; } }
.hs-footer h4 { color: #fff; font-family: var(--hs-body); font-size: var(--hs-fs-s); font-weight: 700; margin-bottom: .75rem; }
.hs-footer ul { list-style: none; margin: 0; padding: 0; }
.hs-footer li { margin: 0 0 .5rem; }
.hs-footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: var(--hs-fs-xs); line-height: 1.55; }
.hs-footer-legal p { margin-bottom: .75em; }
.hs-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; font-size: var(--hs-fs-xs); }
.hs-footer-bottom nav { display: flex; gap: 1rem; }

/* Disclosure dialog -------------------------------------------------------- */
.hs-dialog { border: 0; border-radius: var(--hs-radius); padding: 0; max-width: 34rem; width: calc(100% - 2rem); box-shadow: 0 20px 60px rgba(15,59,46,.25); }
.hs-dialog::backdrop { background: rgba(15,59,46,.55); }
.hs-dialog-body { padding: 1.5rem; font-size: var(--hs-fs-s); line-height: 1.55; }
.hs-dialog-body h3 { font-size: var(--hs-fs-1); margin-bottom: .5rem; }
.hs-dialog-body h3 + p { margin-bottom: 1.25rem; }
.hs-dialog-close { margin-top: .5rem; }

/* Motion ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
