/* ============ Habit Bandz — design system ============
   Brand (from habitbandz.com Squarespace theme):
   accent #4D74FF · hsl(226.85, 100%, 65.1%)
   darkAccent #191970 · hsl(240, 63.5%, 26.9%)
   lightAccent #EAEAEE · hsl(240, 10.5%, 92.5%)
   type: Roboto (headings + body)                           */
:root {
  --ink: #191970;          /* brand midnight indigo — headings & dark sections */
  --ink-soft: #3d3d6b;
  --muted: #6b6b85;
  --teal: #4d74ff;         /* brand accent blue */
  --teal-dark: #3a5fe8;
  --coral: #4d74ff;        /* primary action = brand accent */
  --coral-dark: #3452cc;
  --bg: #ffffff;           /* clean clinical white */
  --surface: #ffffff;
  --alt: #f4f4f7;          /* section alternation, from lightAccent */
  --line: #eaeaee;         /* brand lightAccent */
  --radius: 0;
  --shadow: 0 2px 6px rgba(25, 25, 112, .05), 0 18px 40px -18px rgba(25, 25, 112, .18);
  --font-display: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 0;
}
.wrap { width: min(1120px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 5.4vw, 58px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--ink-soft); max-width: 56ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo img { display: block; height: 44px; width: auto; }
.logo .dot { color: var(--coral); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--teal-dark); font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  padding: 14px 26px; border-radius: 0; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(77, 116, 255, .45); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #10104d; }
.btn.small { padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 0; box-shadow: var(--shadow);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}
.float-chip {
  position: absolute; background: var(--surface); border-radius: 0;
  box-shadow: var(--shadow); padding: 12px 18px; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
}
.float-chip .big { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--teal-dark); }
.chip-tl { top: -18px; left: -18px; }
.chip-br { bottom: -18px; right: -12px; }
.trust-row { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust-row strong { color: var(--ink); }

/* wave divider */
.wave { display: block; width: 100%; height: 60px; }

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* habit chips strip */
.habit-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.habit-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 10px 20px; font-size: 15px; font-weight: 700; color: var(--ink-soft);
  box-shadow: 0 1px 3px rgba(25,25,112,.04);
}
.habit-chip span { margin-right: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 1px 3px rgba(25,25,112,.04); position: relative;
}
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  width: 38px; height: 38px; border-radius: 0; display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* product cards */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card .media { aspect-ratio: 16/10; overflow: hidden; background: var(--alt); }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.price { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 18px; }
.price-note { color: var(--teal-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.feature-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 8px; }
.feature-list li { padding-left: 30px; position: relative; font-size: 15.5px; color: var(--ink-soft); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal-dark); font-weight: 700;
}
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* stat band */
.stat-band { background: var(--ink); color: #fff; border-radius: 0; padding: 56px 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px; text-align: center; }
.stat-grid .value { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 700; color: #bcc9ff; }
.stat-grid .label { font-size: 14px; color: #c9cfec; margin-top: 6px; }

/* testimonials */
.quote-grid { columns: 3; column-gap: 22px; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 22px; break-inside: avoid; box-shadow: 0 1px 3px rgba(25,25,112,.04);
}
.quote .q-title { font-weight: 700; font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; }
.quote p { font-size: 15px; color: var(--ink-soft); }
.quote .who { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--teal-dark); }

/* audience cards */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.aud-card {
  border-radius: 0; padding: 34px 30px; color: #fff; display: flex; flex-direction: column;
  gap: 12px; min-height: 240px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s;
}
.aud-card:hover { transform: translateY(-4px); }
.aud-card h3 { font-size: 24px; }
.aud-card p { font-size: 15px; opacity: .9; }
.aud-card .go { margin-top: auto; font-weight: 700; font-size: 15px; }
.aud-1 { background: linear-gradient(140deg, #4d74ff, #3452cc); }
.aud-2 { background: linear-gradient(140deg, #8fa4ff, #4d74ff); }
.aud-3 { background: linear-gradient(140deg, #191970, #34349e); }

/* science / white paper */
.science-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, rgba(77,116,255,.07), rgba(25,25,112,.05));
  border: 1px solid var(--line); border-radius: 0; padding: 48px;
}
.science-card img { border-radius: 0; box-shadow: var(--shadow); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 20px 24px; margin-bottom: 12px;
}
.faq summary {
  font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--teal-dark); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }

/* final CTA */
.cta-band {
  background: linear-gradient(120deg, #191970, #3a3aa8);
  border-radius: 0; color: #fff; text-align: center; padding: 72px 30px;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #c9cfec; max-width: 52ch; margin: 0 auto 30px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 60px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { margin-top: 26px; font-size: 12.5px; color: #9aa3ae; max-width: 90ch; line-height: 1.6; }
.legal-links { margin-top: 30px; font-size: 12.5px; color: #9aa3ae; }
.legal-links a { color: #9aa3ae; text-decoration: underline; }
.legal-links a:hover { color: var(--ink); }

/* page hero (subpages) */
.page-hero { padding: 72px 0 56px; }
.page-hero .hero-grid { gap: 48px; }
.page-hero img { border-radius: 0; box-shadow: var(--shadow); }

/* two-col feature rows */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.row-2 img { border-radius: 0; box-shadow: var(--shadow); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .row-2, .science-card, .product-grid { grid-template-columns: 1fr; }
  .steps, .aud-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { columns: 1; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px 6vw; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 48px; }
  .chip-tl { left: 4px; } .chip-br { right: 4px; }
  section { padding: 52px 0; }
  section.tight { padding: 36px 0; }
  .section-head { margin-bottom: 32px; }
  .cta-row .btn, .cta-band .btn { width: 100%; }
  .trust-row { gap: 14px 22px; margin-top: 26px; }
  .stat-band { padding: 40px 24px; }
  .stat-grid { gap: 24px; }
  .stat-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cta-band { padding: 48px 22px; }
  .habit-chip { padding: 9px 16px; font-size: 14px; }
}

/* ---------- footer (brand) ---------- */
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: 12px; }
.foot-col a { display: block; padding: 4px 0; color: var(--muted); transition: color .15s; }
.foot-col a:hover { color: var(--teal-dark); }
.foot-tag { margin: 8px 0 10px; max-width: 34ch; }
.foot-mail { font-weight: 700; color: var(--teal-dark) !important; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s; padding: 0 !important;
}
.socials a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- legal page ---------- */
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 56px 0 40px; }
.legal-nav { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 8px 14px; border-radius: 0; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.legal-nav a:hover { background: var(--alt); color: var(--ink); }
.legal-sec { margin-bottom: 64px; scroll-margin-top: 90px; }
.legal-sec > h2 { padding-bottom: 12px; border-bottom: 2px solid var(--teal); margin-bottom: 22px; }
.legal-sec h3 { margin: 26px 0 10px; }
.legal-sec h4 { margin: 20px 0 8px; font-size: 16px; }
.legal-sec p, .legal-sec li { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.legal-sec ul { margin: 0 0 12px 22px; }
.legal-updated { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* ---------- illustration images (white-background diagrams; never crop/stretch) ---------- */
.illus {
  box-shadow: none !important; border-radius: 0; width: auto; max-width: 100%;
  max-height: 400px; margin: 0 auto; object-fit: contain; justify-self: center;
}

/* ---------- product feature sections ---------- */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-hero .photo { border-radius: 0; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }

/* ---------- get-started path cards ---------- */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; align-items: stretch; }
.path-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 34px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  scroll-margin-top: 90px;
}
.path-card .who { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.path-card h2 { font-size: 26px; }
.path-card ol { margin: 4px 0 6px 20px; display: grid; gap: 9px; }
.path-card ol li { font-size: 15px; color: var(--ink-soft); }
.path-card .price-line { font-size: 14.5px; color: var(--muted); }
.path-card .price-line strong { color: var(--ink); font-size: 17px; }
.path-card .cta-col { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.path-card .cta-col .btn { width: 100%; }
.path-card.featured { border: 2px solid var(--teal); position: relative; }
.path-card.featured::before {
  content: "Providers"; position: absolute; top: -13px; left: 26px;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 0; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- urge wave: the three steps riding the wave ---------- */
.urge-wave { position: relative; max-width: 820px; margin: 6px auto 44px; }
.urge-wave svg { display: block; width: 100%; height: auto; }
.uw-line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.reveal.in .uw-line {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: uw-draw 1.4s ease-out .15s forwards;
}
@keyframes uw-draw { to { stroke-dashoffset: 0; } }
.uw-steps { list-style: none; margin: 0; padding: 0; }
.uw-steps li {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 9px 16px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft);
  box-shadow: 0 1px 3px rgba(25,25,112,.04); white-space: nowrap;
}
.uw-steps .num {
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  width: 24px; height: 24px; border-radius: 0;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.uw-1 { left: 0; bottom: 10px; }
.uw-2 { left: 50%; top: -12px; transform: translateX(-50%); }
.uw-3 { right: 0; bottom: 10px; }
@media (max-width: 680px) {
  .urge-wave svg { max-height: 90px; }
  .uw-steps { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; }
  .uw-steps li { position: static; transform: none; }
}

/* ---------- behavior capability ledger ---------- */
.behavior-list {
  max-width: 960px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow);
  padding: 10px 40px 14px;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
}
.behavior-row {
  padding: 18px 0; border-top: 1px solid var(--line);
}
.behavior-row:nth-child(-n+2) { border-top: 0; }
.behavior-row h3 { font-size: 16px; line-height: 1.35; margin-bottom: 4px; }
.behavior-row p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) {
  .behavior-list { grid-template-columns: 1fr; padding: 6px 24px 10px; }
  .behavior-row:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---------- resources ---------- */
.res-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in .uw-line { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .btn, .aud-card { transition: none; }
}


/* ---------- articles ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.article h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.article-note { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--teal); padding-left: 12px; margin: 18px 0 8px; }
.article h2 { font-size: 22px; margin: 36px 0 10px; }
.article p, .article li { color: var(--ink-soft); font-size: 16px; }
.article p { margin-bottom: 14px; }
.article ul { margin: 0 0 14px 22px; }
.article .sources { font-size: 14px; color: var(--muted); }
.article .sources a { color: var(--teal-dark); text-decoration: underline; }
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
a.article-card { display: flex; flex-direction: column; gap: 10px; }
a.article-card .go { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--teal-dark); }
@media (max-width: 720px) { .article-grid { grid-template-columns: 1fr; } }

/* article lead image */
.article-img { width: 100%; height: auto; margin: 24px 0 8px; border: 1px solid var(--line); }

/* sources as separated list */
ul.sources { list-style: none; margin: 0; padding: 0; }
ul.sources li { margin-bottom: 12px; line-height: 1.5; }
