/* hey habits — shared marketing-site chrome & section primitives.
   Used by the standalone subpages (method, how-it-works, pricing).
   Loaded after styles.css so it builds on the design tokens. */

/* ---- Skip link ---- */
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 200; background: var(--brand); color: var(--text-on-brand); padding: 10px 20px; border-radius: var(--radius-md); font-weight: 700; font-size: var(--text-label); text-decoration: none; white-space: nowrap; }
.skip-link:focus { left: 1rem; outline: none; box-shadow: 0 0 0 3px var(--ring); }

body { margin: 0; background: var(--bg-app); color: var(--text-body); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font-size: var(--text-micro); font-weight: 800; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-faint); }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--text-strong); text-decoration: none; }
.brand img { display: block; width: auto; height: clamp(44px, 5vw, 58px); max-width: min(48vw, 260px); flex: none; }
.brand span { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; font-size: var(--text-label); font-weight: 600; color: var(--text-muted); }
.nav__links a:hover { color: var(--text-strong); }
.nav__links a.is-active { color: var(--brand); }
.nav__cta { display: flex; align-items: center; gap: 14px; flex: none; }
.nav__menu { display: none; position: relative; }
.nav__menu-toggle { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-card); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; list-style: none; color: var(--text-strong); transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.nav__menu-toggle::-webkit-details-marker { display: none; }
.nav__menu-toggle:hover { background: var(--ink-50); border-color: var(--border-strong); }
.nav__menu-toggle:focus { outline: none; }
.nav__menu-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring), var(--shadow-xs); }
.nav__menu-toggle:active { transform: scale(.97); }
.nav__menu[open] .nav__menu-toggle { background: var(--brand-soft); border-color: var(--border-brand); }
.nav__menu-toggle span { width: 18px; height: 2px; border-radius: 99px; background: currentColor; display: block; }
.nav__menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: min(260px, calc(100vw - 36px)); padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-card); box-shadow: var(--shadow-lg); display: grid; gap: 4px; }
.nav__menu-panel a:not(.hh-btn) { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: var(--text-label); font-weight: 700; color: var(--text-strong); }
.nav__menu-panel a:not(.hh-btn):hover { background: var(--ink-100); }
.nav__menu-panel .hh-btn { margin-top: 8px; width: 100%; }

/* ---- Language switcher ---- */
.nav__lang { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid transparent; border-radius: var(--radius-pill); }
.nav__lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 9px; font-size: var(--text-caption); font-weight: 800; color: var(--text-faint); border-radius: var(--radius-pill); text-decoration: none; letter-spacing: .04em; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.nav__lang a:hover { color: var(--text-strong); background: var(--ink-50); }
.nav__lang a[aria-current] { color: var(--text-strong); background: var(--ink-100); box-shadow: inset 0 0 0 1px rgba(0,0,0,.02); }
.nav__lang a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

/* ---- page header ---- */
.phead { position: relative; overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 84% 0%, var(--spark-soft), transparent 60%),
  radial-gradient(55% 55% at 4% 20%, var(--brand-soft), transparent 55%); opacity: .9; }
.phead__in { position: relative; max-width: 760px; padding-block: 76px 12px; }
.phead h1 { margin: 14px 0 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.03; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.phead h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--brand); letter-spacing: -.01em; }
.phead p { margin: 22px 0 0; font-size: var(--text-body-lg); line-height: 1.6; color: var(--text-muted); max-width: 560px; }
.phead__actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---- generic section ---- */
.sec { padding: 72px 0; }
.sec--tight { padding: 40px 0 72px; }
.band { background: var(--surface-sunken); }
.sec__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec__head h2 { margin: 12px 0 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); text-wrap: balance; }
.sec__head p { margin: 16px 0 0; font-size: var(--text-body-lg); line-height: 1.6; color: var(--text-muted); }

/* ---- method steps (also used as feature grids) ---- */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.method--2 { grid-template-columns: repeat(2, 1fr); }
.step { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.step__n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--clay-700); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.step h3 { margin: 16px 0 6px; font-size: var(--text-subhead); font-weight: 700; color: var(--text-strong); }
.step p { margin: 0; font-size: var(--text-body); line-height: 1.55; color: var(--text-muted); }
.step__note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); font-size: var(--text-caption); line-height: 1.5; color: var(--text-muted); }
.step__note b { color: var(--brand); font-weight: 700; }
.step--last { background: linear-gradient(160deg, var(--brand-soft), var(--surface-card)); }

/* ---- pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 30px 26px; box-shadow: var(--shadow-md); }
.pillar__ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.pillar h3 { margin: 18px 0 8px; font-size: var(--text-heading); font-weight: 800; letter-spacing: -.01em; color: var(--text-strong); }
.pillar p { margin: 0; font-size: var(--text-body); line-height: 1.6; color: var(--text-muted); }

/* ---- the Dip — dark warm band ---- */
.dip { background: var(--ink-900); color: var(--text-on-dark); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dip .eyebrow { color: var(--clay-300); }
.dip h2 { margin: 12px 0 18px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.dip p { margin: 0; font-size: var(--text-body-lg); line-height: 1.65; color: rgba(248,244,236,.78); }
.dip__quote { background: rgba(248,244,236,.06); border: 1px solid rgba(248,244,236,.14); border-radius: 20px; padding: 22px 24px; }
.dip__quote .q { font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.45; color: #fff; }
.dip__quote .by { margin-top: 12px; font-size: var(--text-caption); color: var(--clay-300); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---- pricing tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tier--feat { border: 2px solid var(--brand); box-shadow: var(--shadow-md); position: relative; }
.tier__tag { position: absolute; top: -12px; left: 26px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.tier h3 { margin: 0; font-size: var(--text-subhead); font-weight: 700; color: var(--text-strong); }
.tier__price { margin: 14px 0 4px; font-size: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); }
.tier__price small { font-size: 15px; font-weight: 600; color: var(--text-faint); }
.tier__sub { font-size: var(--text-caption); color: var(--text-muted); min-height: 36px; }
.tier ul { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-body); color: var(--text-body); }
.tier li svg { width: 18px; height: 18px; color: var(--growth); flex: none; margin-top: 1px; }
.tier .hh-btn { margin-top: auto; }

/* ---- prose / definition rows ---- */
.rows { display: flex; flex-direction: column; gap: 14px; }
.qa { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px 24px; box-shadow: var(--shadow-xs); }
.qa h3 { margin: 0 0 8px; font-size: var(--text-subhead); font-weight: 700; color: var(--text-strong); }
.qa p { margin: 0; font-size: var(--text-body); line-height: 1.6; color: var(--text-muted); }

/* ---- final cta ---- */
.final { text-align: center; }
.final__card { background: linear-gradient(160deg, var(--clay-600), var(--clay-700)); border-radius: 32px; padding: 64px 40px; position: relative; overflow: hidden; color: var(--text-on-brand); }
.final__card::after { content: ""; position: absolute; top: -90px; right: -50px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,248,244,.28), transparent 70%); }
.final__card h2 { position: relative; margin: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; }
.final__card h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.final__card p { position: relative; margin: 18px auto 0; max-width: 460px; font-size: var(--text-body-lg); opacity: .85; }
.final__actions { position: relative; margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: var(--white); color: var(--clay-700); }
.btn-light:hover { background: #fff; }
.btn-onbrand { background: rgba(255,248,244,.16); color: #fff; border-color: rgba(255,248,244,.28); }
.btn-onbrand:hover { background: rgba(255,248,244,.26); }

/* ---- footer ---- */
.footer { padding: 48px 0 60px; border-top: 1px solid var(--border); margin-top: 88px; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand img { height: 34px; max-width: 160px; }
.footer small { font-size: var(--text-caption); color: var(--text-faint); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { text-decoration: none; font-size: var(--text-caption); color: var(--text-muted); font-weight: 600; }
.footer__links a:hover { color: var(--text-strong); }

/* ---- faq / prose block ---- */
.faq { max-width: 760px; margin: 0 auto; }
.legal, .faq, .qa { overflow-wrap: break-word; }

@media (max-width: 860px) {
  .dip { grid-template-columns: 1fr; gap: 28px; padding: 40px 28px; }
  .method, .pillars, .tiers, .method--2 { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__in { min-height: 78px; }
  .sec { padding: 56px 0; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 24px; }
  .nav__in { gap: 10px; min-height: 72px; }
  .nav .brand img { height: clamp(40px, 12vw, 50px); max-width: 44vw; }
  .nav__cta { gap: 10px; }
  .nav__lang { background: var(--surface-card); border-color: var(--border); box-shadow: var(--shadow-xs); }
  .nav__lang a { min-width: 31px; height: 30px; padding: 0 8px; font-size: 11px; }
  .nav__cta > .hh-btn { display: none; }
  .nav__menu-toggle { width: 40px; height: 40px; }
  .nav__cta .hh-btn--ghost { display: none; }
  .phead__in { padding-block: 42px 2px; }
  .phead h1 { margin-top: 12px; font-size: clamp(32px, 9.2vw, 40px); line-height: 1.1; }
  .phead p { margin-top: 18px; font-size: var(--text-body); line-height: 1.58; }
  .phead__actions .hh-btn { width: 100%; }
  .sec { padding: 48px 0; }
  .sec--tight { padding: 32px 0 56px; }
  .final__card { border-radius: 24px; padding: 42px 22px; }
  .footer { margin-top: 56px; }
  .footer__in { align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 14px 18px; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 18px; }
  .nav .brand img { max-width: 42vw; }
  .nav__lang a { min-width: 29px; padding-inline: 7px; }
  .phead h1 { font-size: clamp(30px, 9vw, 34px); }
}
