/* Home page. Brand tokens come from style.css (brine, salt, pink, tear). */
.hm { --foam: #EEF5F9; --wrap: var(--max); }
.hm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* hero */
.hm-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--salt); }
.hm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 42, 58, .35) 0%, rgba(14, 42, 58, .55) 45%, rgba(14, 42, 58, .94) 100%); }
.hm-hero-in { position: relative; z-index: 1; display: grid; gap: 22px; max-width: var(--max); margin: 0 auto; padding: clamp(22px, 5vw, 64px) var(--gutter) clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); }
.hm-brand { margin: 0 0 12px; font-family: var(--display); font-size: 34px; line-height: 1; transform: rotate(-3deg); transform-origin: left bottom; text-shadow: 0 3px 0 var(--pink-deep); width: fit-content; }
.hm-h1 { margin: 0; font: 800 clamp(34px, 6.6vw, 70px)/1.02 var(--body); letter-spacing: -.025em; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(14, 42, 58, .55); }
.hm-sub { margin: 16px 0 0; max-width: 46ch; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; font-weight: 500; text-shadow: 0 1px 14px rgba(14, 42, 58, .7); }
.hm-actions { display: grid; gap: 10px; margin: 22px 0 16px; }
.hm-join { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 44px; color: var(--salt); font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.hm-join:hover { text-decoration: underline; } .hm-join svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hm-stage { position: relative; display: grid; justify-items: center; align-content: end; gap: 14px; min-height: 0; }
.hm-mascot { order: -1; height: clamp(170px, 30vw, 400px); width: auto; max-width: 70%; filter: drop-shadow(0 30px 40px rgba(14, 42, 58, .5)); animation: bob 5s ease-in-out infinite; }
.hm-gauge { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; width: 100%; max-width: 380px; padding: 14px 18px 14px 14px; border-radius: 22px; background: rgba(10, 33, 48, .62); border: 1px solid rgba(251, 253, 255, .22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hm-shaker { width: 62px; height: auto; overflow: visible; }
.sh-glass { fill: rgba(251, 253, 255, .12); stroke: rgba(251, 253, 255, .6); stroke-width: 2; }
.sh-salt { fill: #fbfdff; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(calc(var(--p, 0) / 100)); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.sh-top { fill: #ffffff; transform: translateY(calc((100 - var(--p, 0)) * 1.2px)); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.sh-cap { fill: #b9c8d3; stroke: rgba(10, 33, 48, .5); stroke-width: 1.5; } .sh-holes circle { fill: rgba(10, 33, 48, .7); }
.hm-gauge-txt { min-width: 0; display: grid; gap: 2px; }
.hm-gauge .goal-v { font: 800 26px var(--body); font-variant-numeric: tabular-nums; line-height: 1.1; }
.hm-gauge .goal-k { font-size: 13px; color: rgba(251, 253, 255, .78); }
.hm-gauge .goal-bar { height: 7px; margin-top: 8px; border-radius: 99px; background: rgba(251, 253, 255, .16); overflow: hidden; }
.hm-gauge .goal-bar i { display: block; height: 100%; background: var(--pink); border-radius: 99px; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.hm-gauge .goal-note { margin: 6px 0 0; font-size: 13px; color: rgba(251, 253, 255, .82); }

/* live strip */
.hm-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; color: var(--brine); border-bottom: 1px solid var(--line); }
.hm-strip .stat { padding: 14px var(--gutter); border-color: var(--line); }
.hm-strip .stat-k { color: var(--ink-soft); } .hm-strip .stat-v { font-size: 19px; }
.hm-strip .stat-sub { color: var(--ink-soft); opacity: 1; }
.hm-strip .chg.up { background: rgba(18, 119, 159, .12); color: var(--tear-ink); } .hm-strip .chg.down { background: rgba(176, 63, 98, .12); color: var(--pink-ink); }

/* product */
.hm-product { background: var(--foam); color: var(--brine); }
.hm-product-in { display: grid; gap: 28px; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 72px); }
.hm-h2 { margin: 0; font: 800 clamp(26px, 4.2vw, 42px)/1.08 var(--body); letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }
.hm-h2-light { color: var(--salt); }
.hm-lead { margin: 14px 0 0; max-width: 52ch; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.55; color: var(--ink-soft); }
.hm-lead-light { color: rgba(251, 253, 255, .82); }
.hm-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; max-width: 54ch; }
.hm-points li { padding-left: 14px; border-left: 3px solid var(--pink); line-height: 1.5; color: var(--ink-soft); } .hm-points b { color: var(--brine); }
.hm-product-cta { display: grid; gap: 10px; margin-top: 24px; max-width: 360px; }
.hm-note { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.hm-shot { display: none; text-decoration: none; border-radius: 16px; overflow: hidden; background: #0a2130; border: 1px solid rgba(14, 42, 58, .25); box-shadow: 0 40px 70px -36px rgba(14, 42, 58, .7); }
.hm-shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #12384e; }
.hm-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(251, 253, 255, .25); }
.hm-shot-bar em { margin-left: 10px; font: 600 12px var(--body); font-style: normal; color: rgba(251, 253, 255, .6); }
.hm-shot-view { display: block; position: relative; aspect-ratio: 1280 / 800; overflow: hidden; }
.hm-shot-view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--s, .5)); transform-origin: 0 0; pointer-events: none; background: #0a2130; }

/* cards */
.hm-grid { display: grid; gap: 14px; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 56px); }

/* steps */
.hm-steps { background: var(--blush); color: var(--brine); padding: clamp(36px, 6vw, 72px) 0; }
.hm-steps .hm-h2-light { color: var(--brine); }
.hm-steplist { counter-reset: s; list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.hm-steplist li { counter-increment: s; border-top: 3px solid var(--brine); padding-top: 12px; max-width: 40ch; line-height: 1.5; color: var(--ink-soft); }
.hm-steplist li::before { content: counter(s); display: block; font: 400 44px/1 var(--display); color: var(--pink-ink); margin-bottom: 6px; }
.hm-steplist b { color: var(--brine); }
.hm-steps-cta { display: grid; gap: 10px; margin-top: 28px; max-width: 420px; }
.hm-steps .btn-line { color: var(--brine); border-color: rgba(14, 42, 58, .4); } .hm-steps .btn-line:hover { background: rgba(14, 42, 58, .06); }

/* community */
.hm-community { background: var(--brine-2); }
.hm-community-in { display: grid; gap: 18px; align-items: center; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.hm-community-in img { width: 110px; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.hm-community-cta { display: grid; gap: 10px; margin-top: 22px; max-width: 420px; }

/* lore */
.hm-lore { background: var(--brine-3); padding: clamp(28px, 4vw, 48px) 0; }
.hm-lore-line { margin: 0 0 14px; max-width: 58ch; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; color: rgba(251, 253, 255, .88); }

/* phones: the mascot peeks in at the top right so the pitch stays above the fold */
@media (max-width: 639px) {
  .hm-stage { position: static; }
  .hm-mascot { position: absolute; top: 14px; right: 12px; height: 82px; width: auto; max-width: none; margin: 0; order: 0; }
  .hm-brand { min-height: 64px; }
  .hm-gauge { max-width: none; }
}

/* wider screens */
@media (min-width: 640px) {
  .hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .hm-actions .btn { width: auto; }
  .hm-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-steps-cta, .hm-community-cta { display: flex; flex-wrap: wrap; max-width: none; }
  .hm-product-cta { max-width: none; grid-auto-flow: row; }
  .hm-product-cta .btn { width: fit-content; }
}
@media (min-width: 900px) {
  .hm-hero-in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: end; gap: 40px; }
  .hm-stage { justify-items: end; }
  .hm-gauge { position: absolute; right: 0; bottom: 8px; }
  .hm-mascot { max-width: 100%; margin-right: 12%; margin-bottom: 70px; }
  .hm-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-strip .stat { border-right: 1px solid var(--line); border-bottom: 0; } .hm-strip .stat:last-child { border-right: 0; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-steplist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .hm-community-in { grid-template-columns: auto minmax(0, 1fr); gap: 36px; } .hm-community-in img { width: 150px; }
}
@media (min-width: 960px) {
  .hm-product-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 48px; }
  .hm-shot { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hm-mascot { animation: none; } .sh-salt, .sh-top, .hm-gauge .goal-bar i { transition: none; } }
