/* =====================================================================
   Lapriland home page (views/marketing/landing.ejs), loaded only on "/"
   after landing.css, which holds the Lamplight tokens (--lp-*), the grain,
   the re-lit nav and footer, and the shared lp-* primitives.

   Everything here is scoped under .hm (the page's <main>) because the shared
   .mkt rules in marketing.css (h1/h2/h3, p, ul, svg) outrank bare classes.
   Screens are real captures of a sample journal (public/img/marketing/).
   ===================================================================== */



/* ---- hero ----------------------------------------------------------------- */
.hm-hero { position: relative; isolation: isolate; padding-top: clamp(56px, 8vw, 112px); }
.hm-hero__lamp {
  position: absolute; left: -10%; right: -10%; top: -160px; height: 1250px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 50% 16%, rgba(242,169,59,.26), transparent 70%),
    radial-gradient(30% 26% at 84% 62%, rgba(255,122,144,.08), transparent 70%),
    radial-gradient(30% 26% at 14% 70%, rgba(124,196,255,.05), transparent 70%);
  animation: lp-breathe 9s ease-in-out infinite;
}
.hm-hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
body.lp-dark .hm-hero__h1 { max-width: 13ch; margin: 0 auto 26px; font-size: clamp(3rem, 1.8rem + 5.4vw, 6.6rem); line-height: .97; letter-spacing: -.028em; }
.hm .hm-hero__sub { max-width: 60ch; margin: 0 auto 36px; font-size: clamp(1.06rem, 1rem + .45vw, 1.32rem); line-height: 1.62; color: var(--lp-text-2); }

.hm-stage { position: relative; margin-top: clamp(52px, 7vw, 92px); }
.hm-stage__inner { position: relative; max-width: 1080px; margin: 0 auto; padding-bottom: 20px; }
.hm-stage__glow {
  position: absolute; left: 6%; right: 6%; top: 4%; bottom: 0; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242,169,59,.30), transparent 72%); filter: blur(40px);
}

/* browser window */
.hm .hm-window {
  position: relative; z-index: 1; margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--lp-ink-1); border: 1px solid var(--lp-line-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lp-shadow-c) 45%, transparent), 0 50px 120px -40px color-mix(in srgb, var(--lp-shadow-c) 95%, transparent), 0 30px 90px -40px rgba(242,169,59,.30);
}
.hm-window__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: linear-gradient(180deg, #1f1815, #171210); border-bottom: 1px solid var(--lp-line); }
.hm-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b312b; }
.hm-window__bar span { flex: 1; margin-right: 51px; text-align: center; font: 500 .7rem/1 var(--lp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); }
.hm .hm-window img { width: 100%; height: auto; background: var(--lp-ink-1); }
.hm .hm-window--hero { transform-origin: 50% 0; }
@keyframes hm-untilt { from { transform: perspective(1800px) rotateX(15deg) scale(.95); } to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hm .hm-window--hero { animation: hm-untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}

/* phone */
.hm .hm-phone {
  position: relative; z-index: 2; margin: 0; padding: 9px; border-radius: 42px; background: #0a0706;
  box-shadow: 0 0 0 1px rgba(242,169,59,.30), 0 0 0 6px color-mix(in srgb, var(--lp-shadow-c) 45%, transparent), 0 60px 120px -40px color-mix(in srgb, var(--lp-shadow-c) 95%, transparent), 0 40px 90px -40px rgba(242,169,59,.35);
}
.hm .hm-phone::after { content: ""; position: absolute; inset: 0; border-radius: 42px; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.08), transparent 30%); }
.hm .hm-phone img { width: 100%; height: auto; border-radius: 33px; }
.hm .hm-phone--hero { position: absolute; left: -46px; bottom: -34px; width: clamp(190px, 24%, 262px); }

/* the voice note that becomes a memory */
.hm-note {
  position: absolute; z-index: 3; right: -40px; bottom: 16%; width: 330px; padding: 16px 16px 15px; border-radius: 18px;
  background: rgba(29,22,19,.88); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--lp-line-2); box-shadow: 0 30px 70px -24px color-mix(in srgb, var(--lp-shadow-c) 92%, transparent), 0 0 44px -12px rgba(242,169,59,.38);
}
.hm-note__rec { display: flex; align-items: center; gap: 10px; font: 500 .7rem/1 var(--lp-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lp-amber-2); }
.hm-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-rose); animation: hm-rec 1.6s ease-out infinite; }
.hm .hm-note__said { margin: 12px 0 0; font: italic 400 1rem/1.5 var(--lp-serif); color: var(--lp-text); animation: hm-said 10s var(--hm-ease) infinite both; }
.hm-note__kept { display: flex; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lp-line); animation: hm-kept 10s var(--hm-ease) infinite both; }
.hm-note__check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lp-fill); color: #1a1208; }
.hm-note__check .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.hm .hm-note__kept b { display: block; font: 500 1.04rem/1.3 var(--lp-serif); color: var(--lp-text); }
.hm-note__when { display: block; margin-top: 5px; font-size: .72rem; letter-spacing: .03em; color: var(--lp-amber-2); }

.hm-wave { display: inline-flex; flex: 1; align-items: center; gap: 2px; height: 18px; }
.hm-wave i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; opacity: .85; animation: hm-bar 1.1s ease-in-out infinite; }
.hm-wave i:nth-child(2n) { animation-delay: .14s; }
.hm-wave i:nth-child(3n) { animation-delay: .28s; }
.hm-wave i:nth-child(5n) { animation-delay: .42s; }
.hm-wave--still i { animation: none; }
.hm-wave--still i:nth-child(1n) { height: 38%; } .hm-wave--still i:nth-child(2n) { height: 70%; }
.hm-wave--still i:nth-child(3n) { height: 52%; } .hm-wave--still i:nth-child(5n) { height: 92%; }
.hm-wave--still i:nth-child(7n) { height: 28%; }

.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.hm-chips span { padding: 4px 9px; border: 1px solid var(--lp-line-2); border-radius: 999px; font-size: .72rem; color: var(--lp-text-2); }
.hm-chips .is-mood::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--hm-moss); vertical-align: 1px; }
.hm-chips .is-stormy::before { background: var(--hm-ember); }

/* p and ul are reset by the shared .mkt rules, which outrank .lp-wrap's centring */
.hm .hm-caption { margin: 70px auto 0; padding: 0 var(--lp-pad); text-align: center; font-size: .86rem; color: var(--lp-muted); }

/* ---- proof strip ----------------------------------------------------------- */
.hm-proof { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); background: rgba(255,232,200,.015); }
.hm .hm-proof__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; padding: 0 var(--lp-pad); }
.hm-proof__list li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 14px; font-size: .92rem; line-height: 1.35; color: var(--lp-text-2); }
.hm-proof__list li + li { border-left: 1px solid var(--lp-line); }
.hm-proof__list .icon { width: 20px; height: 20px; color: var(--lp-amber); }

/* ---- story ------------------------------------------------------------------ */
.hm-story { margin-top: var(--lp-gap); scroll-margin-top: 80px; }
.hm .hm-beats { display: grid; gap: clamp(64px, 9vw, 120px); }
.hm-beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.hm-beat--flip .hm-beat__text { order: 2; }
.hm-beat--answer { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.hm-beat__when { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 500 .72rem/1 var(--lp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lp-amber); }
.hm-beat__when span { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(242,169,59,.45); border-radius: 50%; font-size: .64rem; letter-spacing: 0; }
.hm .hm-beat__text p { margin: 0 0 14px; font: 400 clamp(1.1rem, 1rem + .45vw, 1.34rem)/1.62 var(--lp-serif); color: var(--lp-text-2); }
.hm .hm-beat__text p:last-child { margin-bottom: 0; }
.hm .hm-beat__text p.hm-beat__quote { padding-left: 18px; border-left: 2px solid var(--lp-amber); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.4; color: var(--lp-text); }
.hm-beat__art { display: flex; justify-content: center; }

.hm-card {
  position: relative; width: 100%; max-width: 460px; padding: 22px 24px; border-radius: var(--hm-radius);
  border: 1px solid var(--lp-line-2); background: linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1));
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--lp-shadow-c) 92%, transparent), 0 0 60px -30px rgba(242,169,59,.25);
}
.hm-card--voice { transform: rotate(1deg); }
.hm-card--memory { transform: rotate(-1.2deg); }
.hm-card__rec { display: flex; align-items: center; gap: 12px; color: var(--lp-amber-2); }
.hm-card__rec .hm-mono { font-size: .8rem; color: var(--lp-muted); }
.hm-card__play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lp-fill); color: #1a1208; }
.hm-card__play .icon { width: 16px; height: 16px; fill: currentColor; }
.hm-card__kept { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lp-line); }
.hm-card__date { display: block; font-size: .74rem; letter-spacing: .04em; color: var(--lp-amber); }
.hm .hm-card__title { display: block; margin-top: 7px; font: 500 1.36rem/1.25 var(--lp-serif); color: var(--lp-text); }
.hm .hm-card__body { margin-top: 10px; font: 400 1rem/1.62 var(--lp-serif); color: var(--lp-text-2); }
.hm-card__hard { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .82rem; color: var(--lp-muted); }
.hm-card__hard .icon { color: var(--hm-moss); }

.hm-beat--answer .hm-beat__art { flex-direction: column; align-items: stretch; gap: 26px; }
.hm-rail { position: relative; height: 150px; margin: 0; }
.hm .hm-rail__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; overflow: visible; }
.hm-rail__arc {
  fill: none; stroke: var(--lp-amber-2); stroke-width: 1.6; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(242,169,59,.6));
  transition: stroke-dashoffset 1.9s cubic-bezier(.45,.1,.2,1) .35s;
}
.hm-beat.is-in .hm-rail__arc, .hm-rail.is-drawn .hm-rail__arc { stroke-dashoffset: 0; }
.hm-rail__gap { position: absolute; left: 58%; top: 0; transform: translateX(-50%); font: 500 .68rem/1 var(--lp-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lp-amber-2); white-space: nowrap; }
.hm-rail__line { position: absolute; left: 0; right: 0; top: 104px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(242,169,59,.55) 6%, rgba(242,169,59,.55) 94%, transparent); }
.hm-rail__dot { position: absolute; top: 98px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--lp-amber); box-shadow: 0 0 0 5px rgba(242,169,59,.15), 0 0 18px rgba(242,169,59,.8); }
.hm-rail__dot--now { background: var(--lp-amber-2); }
.hm-rail__dot b, .hm-rail__dot small { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.hm .hm-rail__dot b { top: 24px; font: 500 .8rem/1 var(--lp-mono); color: var(--lp-text); }
.hm-rail__dot small { top: 42px; font: 400 .68rem/1 var(--lp-mono); color: var(--lp-muted); }
.hm-rail__yr { position: absolute; top: 84px; transform: translateX(-50%); font: 400 .66rem/1 var(--lp-mono); color: var(--lp-faint); }

.hm-paper {
  position: relative; margin: 0; padding: 26px 28px 24px; border-radius: 6px 6px 18px 18px;
  background: var(--lp-paper); color: var(--lp-paper-ink); transform: rotate(-.5deg);
  box-shadow: 0 50px 90px -40px color-mix(in srgb, var(--lp-shadow-c) 95%, transparent), inset 0 0 0 1px rgba(255,255,255,.45), 0 0 80px -30px rgba(242,169,59,.35);
}
.hm-paper__label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 500 .7rem/1 var(--lp-mono); letter-spacing: .14em; text-transform: uppercase; color: #a0601a; }
.hm .hm-paper p { margin: 0 0 12px; font: 400 1.12rem/1.66 var(--lp-serif); color: var(--lp-paper-ink); }
.hm .hm-paper p.hm-paper__q { margin: 0; padding-top: 12px; border-top: 1px dashed rgba(42,33,28,.25); font-style: italic; }
.hm-cite { display: inline-block; padding: 4px 7px; border-radius: 6px; background: rgba(200,120,28,.14); color: #8a4f12; font: 500 .68rem/1 var(--lp-mono); font-style: normal; white-space: nowrap; vertical-align: 2px; }

.hm .hm-payoff {
  margin: clamp(80px, 11vw, 140px) auto 0; text-align: center; text-wrap: balance;
  font: 400 clamp(2.5rem, 1.5rem + 4.6vw, 5.4rem)/1.02 var(--lp-serif); letter-spacing: -.025em; color: var(--lp-text);
  text-shadow: 0 0 70px rgba(242,169,59,.28);
}
.hm-payoff em { font-style: italic; color: var(--lp-amber-2); }

.hm-coda {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  margin-top: clamp(64px, 9vw, 120px); padding: clamp(28px, 5vw, 64px); border: 1px solid var(--lp-line); border-radius: 30px;
  background: radial-gradient(60% 80% at 82% 50%, rgba(242,169,59,.12), transparent 70%), linear-gradient(180deg, var(--lp-ink-1), var(--lp-ink-0));
}
.hm .hm-coda__text p { margin: 0 0 26px; font-size: 1.05rem; line-height: 1.7; color: var(--lp-text-2); }
.hm .hm-coda__text p.hm-coda__big { margin: 0 0 18px; font: 400 clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem)/1.38 var(--lp-serif); color: var(--lp-text); }
.hm .hm-phone--coda { width: min(290px, 82%); margin: 0 auto; transform: rotate(2deg); }

/* ---- how --------------------------------------------------------------------- */
.hm-how { scroll-margin-top: 80px; }
.hm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-step {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--hm-radius);
  border: 1px solid var(--lp-line); background: linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1));
  transition: transform .25s ease, border-color .25s ease;
}
.hm-step:hover { transform: translateY(-4px); border-color: rgba(242,169,59,.4); }
.hm-step__n { font: 500 .72rem/1 var(--lp-mono); letter-spacing: .18em; color: var(--lp-amber); }
.hm .hm-step__h { margin: 12px 0 10px; font: 500 1.6rem/1.2 var(--lp-serif); letter-spacing: -.01em; color: var(--lp-text); }
.hm .hm-step p { margin: 0; font-size: .98rem; line-height: 1.62; color: var(--lp-text-2); }
.hm-step__art { display: flex; align-items: flex-end; min-height: 110px; margin-top: auto; padding-top: 26px; }
.hm-step__art--chips { flex-wrap: wrap; align-content: flex-end; gap: 8px; }
.hm-talk { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--lp-fill); color: #1a1208; font-weight: 600; box-shadow: 0 12px 34px -12px rgba(242,169,59,.7); }
.hm-talk .hm-wave { width: 56px; }
.hm-chip-date { padding: 8px 11px; border: 1px solid rgba(242,169,59,.35); border-radius: 8px; background: rgba(242,169,59,.07); font: 500 .78rem/1 var(--lp-mono); color: var(--lp-amber-2); }
.hm .hm-mini-quote { padding-left: 14px; border-left: 2px solid var(--lp-amber); font: italic 400 1.06rem/1.55 var(--lp-serif); color: var(--lp-text); }
.hm-mini-quote .hm-cite { background: rgba(242,169,59,.12); color: var(--lp-amber-2); }

/* ---- when demo ---------------------------------------------------------------- */
.hm-when__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.hm-when .hm-head { margin-bottom: 0; }
.hm-try {
  padding: clamp(22px, 3vw, 34px); border: 1px solid var(--lp-line-2); border-radius: 26px;
  background: linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1));
  box-shadow: 0 50px 100px -50px color-mix(in srgb, var(--lp-shadow-c) 95%, transparent), 0 0 70px -34px rgba(242,169,59,.35);
}
.hm-try__field { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 18px; border: 1px solid var(--lp-line-2); border-radius: 16px; background: var(--lp-ink-0); color: var(--lp-amber); transition: border-color .2s, box-shadow .2s; }
.hm-try__field:focus-within { border-color: rgba(242,169,59,.6); box-shadow: 0 0 0 4px rgba(242,169,59,.12); }
.hm-try__field .icon { width: 22px; height: 22px; }
.hm-try__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--lp-text); font: 400 1.22rem/1 var(--lp-serif); }
.hm-try__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-try__chips button { cursor: pointer; padding: 7px 12px; border: 1px solid var(--lp-line-2); border-radius: 999px; background: transparent; color: var(--lp-text-2); font-size: .84rem; transition: border-color .2s, color .2s, background .2s; }
.hm-try__chips button:hover, .hm-try__chips button[aria-pressed="true"] { border-color: rgba(242,169,59,.55); background: rgba(242,169,59,.07); color: var(--lp-amber-2); }
.hm-try__out { min-height: 104px; margin-top: 28px; }
.hm-try__kind { display: block; font: 500 .7rem/1 var(--lp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lp-muted); }
.hm .hm-try__date { display: block; margin-top: 10px; font: 400 clamp(2rem, 1.6rem + 1.6vw, 2.9rem)/1.05 var(--lp-serif); letter-spacing: -.015em; color: var(--lp-amber-2); }
.hm-try__text { display: block; margin-top: 7px; color: var(--lp-text-2); }
.hm-try__rail { position: relative; height: 58px; margin-top: 20px; }
.hm-try__line { position: absolute; left: 0; right: 0; top: 20px; height: 1.5px; background: linear-gradient(90deg, rgba(242,169,59,.18), rgba(242,169,59,.62)); }
.hm-try__band { position: absolute; top: 14px; height: 13px; border: 1px solid rgba(242,169,59,.55); border-radius: 7px; background: rgba(242,169,59,.24); opacity: 0; transition: left .6s var(--hm-ease), width .6s var(--hm-ease), opacity .3s; }
.hm-try__dot { position: absolute; top: 14px; left: 23%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--lp-amber-2); box-shadow: 0 0 0 5px rgba(242,169,59,.16), 0 0 18px rgba(242,169,59,.8); transition: left .6s var(--hm-ease), opacity .3s; }
.hm-try.is-span .hm-try__band { opacity: 1; }
.hm-try.is-span .hm-try__dot, .hm-try.is-unknown .hm-try__dot { opacity: 0; }
.hm-try__end { position: absolute; top: 36px; font: 400 .7rem/1 var(--lp-mono); color: var(--lp-faint); }
.hm-try__end--start { left: 0; }
.hm-try__end--today { right: 0; }
.hm-try__born { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: .9rem; color: var(--lp-muted); }
.hm-try__born input { width: 88px; height: 38px; padding: 0 10px; border: 1px solid var(--lp-line-2); border-radius: 10px; background: var(--lp-ink-0); color: var(--lp-text); font: 500 .95rem/1 var(--lp-mono); }
.hm-try__born input:focus { outline: 0; border-color: rgba(242,169,59,.6); box-shadow: 0 0 0 4px rgba(242,169,59,.12); }
.hm-try__born small { flex-basis: 100%; font-size: .78rem; color: var(--lp-faint); }

/* ---- tour ---------------------------------------------------------------------- */
.hm-tour { scroll-margin-top: 80px; }
.hm-tabs {
  display: none; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%;
  margin: 0 auto 34px; padding: 6px; border: 1px solid var(--lp-line); border-radius: 999px; background: rgba(255,232,200,.03);
}
.hm-tabs.is-ready { display: flex; }
.hm-tabs [role="tab"] { cursor: pointer; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--lp-text-2); font-size: .93rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.hm-tabs [role="tab"]:hover { color: var(--lp-text); }
.hm-tabs [role="tab"][aria-selected="true"] { background: var(--lp-fill); color: #1a1208; box-shadow: 0 8px 22px -10px rgba(242,169,59,.85); }
.hm-panel__copy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: baseline; max-width: 1080px; margin: 0 auto 28px; }
.hm .hm-panel__h { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.12 var(--lp-serif); letter-spacing: -.015em; color: var(--lp-text); }
.hm .hm-panel__copy p { font-size: 1.02rem; line-height: 1.68; color: var(--lp-text-2); }
.hm .hm-window--tour { max-width: 1080px; margin: 0 auto; }
.hm-panels.is-tabbed .hm-panel { display: none; }
.hm-panels.is-tabbed .hm-panel.is-active { display: block; animation: hm-fade .5s var(--hm-ease) both; }
.hm-panels:not(.is-tabbed) .hm-panel + .hm-panel { margin-top: 80px; }

/* ---- small things ------------------------------------------------------------ */
.hm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(196px, auto); gap: 16px; }
.hm-tile { position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--lp-line); border-radius: var(--hm-radius); background: linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1)); transition: border-color .25s ease; }
.hm-tile:hover { border-color: rgba(242,169,59,.32); }
.hm .hm-tile__i { width: 26px; height: 26px; margin-bottom: 18px; color: var(--lp-amber); }
.hm .hm-tile__h { margin: 0 0 8px; font: 500 1.2rem/1.25 var(--lp-serif); color: var(--lp-text); }
.hm .hm-tile p { font-size: .93rem; line-height: 1.58; color: var(--lp-text-2); }
.hm-tile--themes {
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column;
  background: radial-gradient(70% 60% at 50% 100%, rgba(242,169,59,.18), transparent 70%), linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1));
}
.hm .hm-tile--themes .hm-tile__h { font-size: 1.55rem; }
.hm-tile__phones { flex: 1; display: flex; justify-content: center; gap: 22px; min-height: 280px; margin: 26px -24px -24px; overflow: hidden; }
.hm .hm-tile__phones img { width: 200px; height: auto; align-self: flex-start; border: 6px solid #0a0706; border-radius: 28px; box-shadow: 0 0 0 1px rgba(242,169,59,.28), 0 30px 60px -20px color-mix(in srgb, var(--lp-shadow-c) 90%, transparent); }
.hm .hm-tile__phones img:last-child { transform: translateY(30px); }

/* ---- privacy -------------------------------------------------------------------- */
.hm-privacy {
  padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line);
  background: radial-gradient(50% 60% at 50% 0%, rgba(242,169,59,.08), transparent 70%), rgba(255,232,200,.018);
}
.hm .hm-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 44px; }
.hm-rules li { display: flex; gap: 16px; }
.hm-rules .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--lp-amber); }
.hm .hm-rules b { display: block; margin-bottom: 6px; font: 500 1.14rem/1.3 var(--lp-serif); color: var(--lp-text); }
.hm .hm-rules p { font-size: .95rem; line-height: 1.62; color: var(--lp-text-2); }
.hm .hm-privacy__more { margin-top: 44px; font-size: .92rem; color: var(--lp-muted); }
.hm-privacy__more a { color: var(--lp-amber-2); border-bottom: 1px solid rgba(255,207,122,.35); }
.hm-privacy__more a:hover { border-bottom-color: var(--lp-amber-2); }

/* ---- hard memories --------------------------------------------------------------- */
.hm-hard {
  max-width: 800px; margin: 0 auto; padding: clamp(36px, 5vw, 64px); text-align: center;
  border: 1px solid var(--lp-line); border-radius: 30px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(255,122,144,.07), transparent 70%), var(--lp-ink-1);
}
.hm-hard .lp-kicker { justify-content: center; }
.hm .hm-hard p { margin: 0 0 14px; line-height: 1.72; color: var(--lp-text-2); }
.hm .hm-hard p.hm-hard__lead { margin: 0 0 22px; font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.2 var(--lp-serif); color: var(--lp-text); }
.hm-hard small { display: block; margin-top: 22px; font-size: .84rem; line-height: 1.6; color: var(--lp-muted); }

/* ---- pricing ------------------------------------------------------------------------ */
.hm-pricing { scroll-margin-top: 80px; }

.hm-credits { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 44px; align-items: start; margin-top: 44px; padding: 30px 32px; border: 1px solid var(--lp-line); border-radius: 22px; background: rgba(255,232,200,.02); }
.hm .hm-credits__h { grid-row: span 2; max-width: 8ch; font: 400 1.6rem/1.15 var(--lp-serif); color: var(--lp-text); }
.hm .hm-credits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.hm-credits__list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; line-height: 1.45; color: var(--lp-text-2); }
.hm-credits__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(242,169,59,.5); border-radius: 50%; background: rgba(242,169,59,.06); color: var(--lp-amber-2); font: 500 .86rem/1 var(--lp-mono); }
.hm .hm-credits__free { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .92rem; color: var(--lp-muted); }
.hm-credits__free .icon { color: var(--hm-moss); }



/* ---- reveal ------------------------------------------------------------------------------ */
.hm-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--hm-ease), transform .9s var(--hm-ease); transition-delay: var(--d, 0s); }
.hm-js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes hm-bar { 0%, 100% { height: 28%; } 50% { height: 100%; } }
@keyframes hm-rec { 0% { box-shadow: 0 0 0 0 rgba(255,122,144,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,122,144,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,144,0); } }
@keyframes hm-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hm-said { 0%, 2% { opacity: 0; transform: translateY(6px); } 8%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hm-kept { 0%, 16% { opacity: 0; transform: translateY(8px); } 23%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---- responsive ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hm .hm-phone--hero { left: -18px; }
  .hm-note { right: -12px; }
}
@media (max-width: 980px) {
  .hm-beat, .hm-beat--answer { grid-template-columns: minmax(0, 1fr); }
  .hm-beat--flip .hm-beat__text { order: 0; }
  .hm-beat__art { justify-content: flex-start; }
  .hm-when__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm .hm-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm .hm-proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-proof__list li + li { border-left: 0; }
  .hm-proof__list li:nth-child(even) { border-left: 1px solid var(--lp-line); }
  .hm-proof__list li:nth-child(n+3) { border-top: 1px solid var(--lp-line); }
  .hm-note { width: 300px; bottom: 10%; }
}
@media (max-width: 820px) {
  .hm-steps { grid-template-columns: minmax(0, 1fr); }
  .hm-step__art { min-height: 0; }
  .hm-coda { grid-template-columns: minmax(0, 1fr); }
  .hm-panel__copy { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hm-credits { grid-template-columns: minmax(0, 1fr); }
  .hm .hm-credits__h { grid-row: auto; max-width: none; }
  .hm .hm-credits__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  /* hero: the phone leads; the desktop window is not loaded at all (blank source) */
  .hm .hm-window--hero { display: none; }
  .hm-stage__inner { padding-bottom: 0; }
  .hm .hm-phone--hero { position: relative; left: auto; bottom: auto; width: min(262px, 70vw); margin: 0 auto; }
  .hm-note { position: relative; right: auto; bottom: auto; width: min(340px, 100%); margin: -120px auto 0; }
  .hm .hm-caption { margin-top: 28px; }
  /* tour: phone screens in a phone frame */
  .hm-tabs.is-ready { flex-wrap: nowrap; justify-content: flex-start; width: 100%; overflow-x: auto; border-radius: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hm-tabs::-webkit-scrollbar { display: none; }
  .hm .hm-window--tour { max-width: 290px; padding: 9px; border-radius: 42px; border-color: rgba(242,169,59,.30); background: #0a0706; }
  .hm .hm-window--tour .hm-window__bar { display: none; }
  .hm .hm-window--tour img { border-radius: 33px; }
  .hm-card--voice, .hm-card--memory, .hm-paper { transform: none; }
  .hm-rail__yr:nth-of-type(3) { display: none; }
}
@media (max-width: 560px) {
  .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .hm-tile { padding: 18px 16px; }
  .hm-tile--themes { grid-column: 1 / -1; grid-row: auto; }
  .hm .hm-tile__i { width: 22px; height: 22px; margin-bottom: 12px; }
  .hm .hm-tile__h { font-size: 1.02rem; }
  .hm .hm-tile p { font-size: .84rem; line-height: 1.5; }
  .hm .hm-tile--themes .hm-tile__h { font-size: 1.3rem; }
  .hm .hm-tile__phones img { width: 138px; }
  .hm-tile__phones { min-height: 230px; margin: 22px -16px -18px; }
  .hm .hm-rules { grid-template-columns: minmax(0, 1fr); }
  .hm .hm-proof__list { grid-template-columns: minmax(0, 1fr); }
  .hm-proof__list li { justify-content: flex-start; padding: 16px 6px; }
  .hm-proof__list li:nth-child(even) { border-left: 0; }
  .hm-proof__list li + li { border-top: 1px solid var(--lp-line); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hm-wave i, .hm-note__dot, .hm-hero__lamp, .hm-final__lamp { animation: none !important; }
  .hm .hm-note__said, .hm-note__kept { animation: none !important; opacity: 1; transform: none; }
  .hm-rail__arc { stroke-dashoffset: 0; transition: none; }
  .hm-panels.is-tabbed .hm-panel.is-active { animation: none; }
  .hm-step, .hm-final__prompts a { transition: none; }
}

/* ---- light theme (tokens live in landing.css) ------------------------------ */
html[data-theme="light"] .hm-hero__lamp {
  background:
    radial-gradient(38% 30% at 50% 16%, rgba(242,169,59,.30), transparent 70%),
    radial-gradient(30% 26% at 84% 62%, rgba(255,122,144,.12), transparent 70%),
    radial-gradient(30% 26% at 14% 70%, rgba(124,196,255,.12), transparent 70%);
}
html[data-theme="light"] .hm-window__bar { background: linear-gradient(180deg, #fdfaf4, #f2ebdf); }
html[data-theme="light"] .hm-window__bar i { background: #ddd3c6; }
html[data-theme="light"] .hm-note { background: rgba(255,252,246,.9); }
html[data-theme="light"] .hm-proof { background: rgba(255,255,255,.45); }
html[data-theme="light"] .hm-tabs { background: rgba(255,255,255,.55); }
html[data-theme="light"] .hm-privacy { background: radial-gradient(50% 60% at 50% 0%, rgba(242,169,59,.12), transparent 70%), #f3ece1; }
html[data-theme="light"] .hm-card--voice .hm-wave, html[data-theme="light"] .hm-card__rec { color: var(--lp-amber); }
.hm .hm-when__note { display: flex; gap: 10px; margin-top: 18px; font-size: .92rem; line-height: 1.55; color: var(--lp-muted); }
.hm-when__note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--lp-amber); }
.hm .hm-signin-m { display: none; margin: 10px 0 0; font-size: .88rem; color: var(--lp-muted); }
.hm-signin-m a { color: var(--lp-amber-2); border-bottom: 1px solid color-mix(in srgb, var(--lp-amber-2) 40%, transparent); }
@media (max-width: 560px) { .hm .hm-signin-m { display: block; } }
