/* HearMark — the landing page. site.css holds the palette, the bar, the footer
   and the buttons; this file is the page itself.

   Motion: hm-landing.js adds .has-motion to <html> unless the visitor asked for
   reduced motion, then drives three things through CSS custom properties set
   with the CSSOM (CSP style-src 'self' allows that; it bans style attributes):
   --py on [data-speed] layers (parallax), .is-in on [data-reveal] headings (the
   lines rise into place), and --p3 / data-beat on the read-along scene. Without
   .has-motion every section sits in its finished state. */

.landing main > section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--site-gutter);
}

/* ---- Headline lines that rise into place ---- */
.s-line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.s-line > span { display: block; }
.has-motion [data-reveal] .s-line > span {
  transform: translateY(125%);
  transition: transform 1.05s var(--site-ease);
}
.has-motion [data-reveal] .s-line:nth-child(2) > span { transition-delay: 0.09s; }
.has-motion [data-reveal] .s-line:nth-child(3) > span { transition-delay: 0.18s; }
.has-motion [data-reveal].is-in .s-line > span { transform: none; }

/* Parallax layers: --py comes from the scroll, in px. [data-speed] layers move
   relative to the middle of the screen; the hero's [data-lag] layers trail the
   page by a fraction of how far it has scrolled, so the far ones fall behind. */
.has-motion [data-speed],
.has-motion [data-lag] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--site-text);
}
.section-lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--site-muted);
  max-width: 34em;
  margin: 28px 0 0;
}
.section-lead strong { color: var(--site-text); font-weight: 600; }

/* ================================ Hero ================================ */
.landing .hero {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 40px;
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: 0;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: clamp(120px, 18vh, 200px); }
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.2rem, 8.3vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--site-text);
}
.hero-lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--site-muted);
  max-width: 30em;
  margin: 34px 0 0;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 38px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--site-muted); }

.has-motion .hero-lead,
.has-motion .hero-ctas,
.has-motion .hero-note {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease 0.45s, transform 1s var(--site-ease) 0.45s;
}
.has-motion .is-loaded .hero-lead,
.has-motion .is-loaded .hero-ctas,
.has-motion .is-loaded .hero-note { opacity: 1; transform: none; }

/* Soft light behind the phone (--site-lamp, --site-glow). */
.hero-glow {
  position: absolute;
  right: -10vw;
  top: 4vh;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 40% 45%, rgba(var(--site-lamp), 0.30), transparent 70%),
    radial-gradient(closest-side at 64% 62%, rgba(var(--site-glow), 0.16), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* Scrolling away, the light and the horizon fade out before the hero's edge
   can cut them off; --hero-out runs 0 to 1 over the first screen of scroll. */
.has-motion .hero-glow,
.has-motion .hero-horizon { opacity: calc(1 - var(--hero-out, 0)); }

.hero-phone { position: relative; z-index: 1; justify-self: center; align-self: end; margin-bottom: -6vh; }
.has-motion .hero-phone .phone {
  transform: translateY(60px) rotate(-3deg);
  opacity: 0;
  transition: transform 1.4s var(--site-ease) 0.25s, opacity 1s ease 0.25s;
}
.has-motion .is-loaded .hero-phone .phone { transform: rotate(-3deg); opacity: 1; }
.hero-phone .phone { transform: rotate(-3deg); }

/* A phone, drawn: a dark slab with the app's real screen inside. */
.phone {
  width: clamp(230px, 24vw, 340px);
  aspect-ratio: 720 / 1561;
  padding: 10px;
  border-radius: 46px;
  background: var(--site-bezel);
  box-shadow:
    0 0 0 1px rgba(var(--site-text-rgb), 0.14),
    0 40px 90px rgba(var(--site-shade), 0.7),
    0 0 120px rgba(var(--site-lamp), 0.14);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
}

/* The horizon: three rows of waveform bars, nearer rows taller and faster. */
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(110px, 18vh, 190px);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.horizon-row {
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2vw;
  opacity: 0.22;
}
.horizon-row--mid { opacity: 0.4; height: 70%; }
.horizon-row--near { opacity: 0.75; height: 46%; bottom: -2px; }
.horizon-row i {
  display: block;
  width: 3px;
  height: calc(var(--h, 0.4) * 100%);
  border-radius: 3px 3px 0 0;
  background: var(--site-muted-2);
}
.horizon-row--near i { width: 5px; background: var(--site-mark-ink); }
.horizon-row--mid i { width: 4px; background: var(--site-text-2); }

/* =========================== The read-along =========================== */
.readalong-stick {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(80px, 12vw, 140px) 0;
}
.readalong.is-live { height: 340vh; padding-top: 0; padding-bottom: 0; }
.readalong.is-live .readalong-stick {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 72px 0 40px;
}
.readalong-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: var(--site-muted);
}
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.beat {
  position: relative;
  padding-left: 22px;
  transition: opacity 0.5s ease;
}
.beat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  border-radius: 2px;
  background: var(--site-line);
  transition: background 0.5s ease;
}
.beat h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 10px;
  color: var(--site-text);
}
.beat p { margin: 0; color: var(--site-muted); max-width: 26em; }
.readalong.is-live .beat { opacity: 0.28; }
.readalong.is-live[data-beat="1"] .beat[data-beat-step="1"],
.readalong.is-live[data-beat="2"] .beat[data-beat-step="2"],
.readalong.is-live[data-beat="3"] .beat[data-beat-step="3"] { opacity: 1; }
.readalong.is-live[data-beat="1"] .beat[data-beat-step="1"]::before,
.readalong.is-live[data-beat="2"] .beat[data-beat-step="2"]::before,
.readalong.is-live[data-beat="3"] .beat[data-beat-step="3"]::before { background: var(--site-mark-ink); }

.readalong-stage { position: relative; }
.sheet {
  position: relative;
  border-radius: 14px;
  background: #f4f2ee;
  color: #24232b;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(var(--site-shade), 0.6), 0 0 0 1px rgba(var(--site-text-rgb), 0.08);
  transform: rotate(1.2deg);
}
.sheet-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #e6e3dd;
  border-bottom: 1px solid #d8d4cc;
}
.sheet-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c4ba; }
.sheet-url {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f4f2ee;
  font-size: 12px;
  color: #6b6875;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-body { padding: 22px clamp(20px, 3vw, 40px) 28px; }
.sheet-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #2d63a8; }
.sheet-headline {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
  color: #17161d;
}
.sheet-text {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.62;
  color: #2e2d36;
}
.sheet-text .w { transition: color 0.25s ease, background-color 0.25s ease; border-radius: 3px; }
.readalong.is-live[data-beat="3"] .sheet-text .w { color: #9a98a6; }
.readalong.is-live[data-beat="3"] .sheet-text .w.is-read { color: #17161d; }
.readalong.is-live[data-beat="3"] .sheet-text .w.is-now { background: var(--site-mark); color: #17161d; }

/* The clutter: blocks a reader would skip, folded away from beat 2 on. */
.junk {
  overflow: hidden;
  max-height: 120px;
  margin: 0 0 14px;
  transition: max-height 0.7s var(--site-ease), opacity 0.5s ease, margin 0.7s var(--site-ease), transform 0.7s var(--site-ease);
}
.junk i { display: inline-block; height: 9px; border-radius: 5px; background: #d9d5cd; }
.junk-nav { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e2ded6; }
.junk-nav i { width: 52px; }
.junk-nav i:first-child { width: 90px; background: #bdb7ac; }
.junk-ad {
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #e9e5de 0 10px, #e2ddd5 10px 20px);
  font-size: 11px;
  color: #8d8879;
}
.junk-share { display: flex; gap: 8px; }
.junk-share i { width: 26px; height: 26px; border-radius: 50%; }
.junk-related { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid #e2ded6; margin-top: 14px; }
.junk-related i:first-child { width: 70%; }
.junk-related i:last-child { width: 45%; }
.junk-cookie {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #22212a;
  color: #e9e7f0;
  font-size: 12.5px;
}
.junk-cookie b { color: #8fb8ff; font-weight: 600; margin-left: 6px; }
.readalong.is-live:not([data-beat="1"]) .junk,
.readalong:not(.is-live) .junk {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.readalong.is-live:not([data-beat="1"]) .junk-cookie { transform: translateY(30px); }

/* The player under the page: fills as the words are read. */
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 4% 0;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: var(--site-raised);
  border: 1px solid var(--site-line);
  transition: opacity 0.5s ease, transform 0.6s var(--site-ease);
}
.readalong.is-live:not([data-beat="3"]) .player { opacity: 0.35; transform: translateY(8px); }
.player-play {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--site-go);
  color: var(--site-on-go);
}
.player-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.player-title { font-size: 14px; font-weight: 600; color: var(--site-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-by { font-size: 12.5px; color: var(--site-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar { flex: 0 0 26%; height: 4px; border-radius: 4px; background: var(--site-line); overflow: hidden; }
.player-fill {
  display: block;
  height: 100%;
  background: var(--site-mark-ink);
  transform-origin: left;
  transform: scaleX(var(--p3, 1));
}

/* ============================== Try it ============================== */
.landing .try {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  background: var(--site-raised);
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
}
.try-card {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 22px;
  background: var(--site-bg);
  border: 1px solid var(--site-line);
}
.try-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.try-tab {
  font: 500 14px/1 var(--sans);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--site-line);
  background: transparent;
  color: var(--site-muted);
  cursor: pointer;
}
.try-tab:hover { color: var(--site-text); }
.try-tab.is-active { background: var(--site-text); color: var(--site-bg); border-color: var(--site-text); }
.try .hm-input { font-size: 16px; padding: 14px 16px; border-radius: 12px; }
.try-voice-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.try-voice-label { font-size: 14px; color: var(--site-muted); }
.try-voice-btn { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.try-voice-btn-name { font-weight: 600; }
.try-voice-btn-desc { color: var(--site-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.try-hint { font-size: 13px; color: var(--site-muted); }

.try-state-msg { font-size: 16px; color: var(--site-text-2); line-height: 1.55; margin: 0 0 16px; }
.try-result-title-label { font-size: 13px; color: var(--site-muted); margin-bottom: 6px; }
.try-result-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 8px;
}
.try-result-meta { font-size: 13px; color: var(--site-muted); margin: 0 0 16px; }
.try-player { width: 100%; margin: 4px 0 18px; }
.try-callout {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--site-raised-2);
  color: var(--site-text-2);
  font-size: 14px;
  line-height: 1.5;
}
.try-gate {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--site-line);
}
.try-gate-copy { font-size: 15px; color: var(--site-text-2); line-height: 1.5; flex: 1; min-width: 220px; }
.try-error { color: var(--err); font-size: 15px; margin: 0 0 14px; }

/* "We're making it" */
.try-loading { display: flex; align-items: center; gap: 18px; }
.try-eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 40px; flex-shrink: 0; }
.try-eq i {
  width: 5px;
  height: 30%;
  background: var(--site-mark-ink);
  border-radius: 2px;
  animation: try-eq-bounce 0.9s ease-in-out infinite;
}
@keyframes try-eq-bounce {
  0%, 100% { height: 18%; opacity: 0.55; }
  50% { height: 100%; opacity: 1; }
}
.try-loading-text { font-size: 16px; color: var(--site-text-2); line-height: 1.4; }
.try-loading-text small { display: block; font-size: 13px; color: var(--site-muted); margin-top: 5px; }
/* Bar stagger: steps of 0.09s across the 8 bars renderLoading() emits.
   :nth-child (0,2,0) out-ranks the shorthand's implicit delay in .try-eq i (0,1,1). */
.try-eq-bar:nth-child(1) { animation-delay: 0s; }
.try-eq-bar:nth-child(2) { animation-delay: 0.09s; }
.try-eq-bar:nth-child(3) { animation-delay: 0.18s; }
.try-eq-bar:nth-child(4) { animation-delay: 0.27s; }
.try-eq-bar:nth-child(5) { animation-delay: 0.36s; }
.try-eq-bar:nth-child(6) { animation-delay: 0.45s; }
.try-eq-bar:nth-child(7) { animation-delay: 0.54s; }
.try-eq-bar:nth-child(8) { animation-delay: 0.63s; }

/* ============================== Voice faces ==============================
   The app's face (.voice-face in index.css) in the site's palette, for the sampler's
   picker and the voice grid: the plate in the hairline tone, the badge the green of a
   button that starts something, the playing ring the highlighter of what is being
   read. A card sets `--card-bg`, its fill in each state, which the badge's and the
   ring's gaps take too, so they read as cut out of the card. */
.voice-face {
  position: relative;
  flex: none;
  width: min(96px, 64%);
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--site-line);
  color: var(--site-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
button.voice-face { cursor: pointer; }
button.voice-face:focus-visible { outline-offset: 4px; }
/* The portrait is its own plate, the size of the face and opaque, so the initial under
   it never shows through its transparent field. One that fails is removed, and the
   initial is back. */
.voice-face-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--site-line);
  object-fit: cover;
}
.voice-face-initial { font-family: var(--font-heading); font-weight: 700; font-size: 40px; line-height: 1; }
.voice-face-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--card-bg);
  background: var(--site-go);
  color: var(--site-on-go);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
/* A press anywhere on a grid row auditions, so the badge answers to the whole row. */
@media (hover: hover) {
  button.voice-face:hover .voice-face-badge,
  .voice-card:hover .voice-face-badge { transform: scale(1.1); }
}
/* Playing: a ring round the face, in the gap the badge also leaves, that breathes while
   the clip runs (still, under reduced motion). */
.is-playing > .voice-face { box-shadow: 0 0 0 3px var(--card-bg), 0 0 0 5px var(--site-mark-ink); }
.is-playing > .voice-face::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--site-mark-ink);
  animation: voice-ring 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes voice-ring {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .is-playing > .voice-face::after { animation: none; opacity: 0; }
  .voice-face-badge { transition: none; }
  button.voice-face:hover .voice-face-badge,
  .voice-card:hover .voice-face-badge { transform: none; }
}

/* The sampler's voice picker (a modal over the page). */
.sv-modal-card { max-width: 660px; width: 92vw; }
.sv-modal-card .sv-modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.sv-modal-card .sv-modal-sub { margin: 0 0 8px; color: var(--site-muted); }
.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  margin: 8px 0 4px;
  padding-right: 4px;
}
.sv-group { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--site-muted); padding: 10px 2px 2px; }
/* The app's card: the face on top, the name and description under it. */
.sv-card {
  --card-bg: var(--site-bg);
  border: 1px solid var(--site-line);
  border-radius: 14px;
  padding: 14px 10px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: var(--card-bg);
  text-align: center;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.sv-card:hover { --card-bg: var(--site-raised-2); }
.sv-card.is-selected { --card-bg: var(--site-raised-2); border-color: var(--site-mark-ink); }
.sv-card.is-playing { border-color: var(--site-mark-ink); }
/* The card body is a real <button> (keyboard-selectable, mirroring the in-app
   picker): reset it to look like a plain text block. */
.sv-info {
  width: 100%;
  min-width: 0;
  display: block;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}
.sv-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
/* Two lines at most, like the app's card: the full text is on the button's title. */
.sv-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--site-muted);
}
/* An empty grid says why: still loading, failed (with its retry), or nothing on offer. */
.sv-status { grid-column: 1 / -1; padding: 22px 2px; text-align: center; font-size: 14px; color: var(--site-muted); }
.sv-retry { display: block; margin: 12px auto 0; }

/* ========================= Send it from any app ========================= */
.landing .pocket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  overflow: hidden;
}
.pocket-phones { position: relative; height: clamp(520px, 62vw, 760px); }
.pocket-phones::before {
  content: "";
  position: absolute;
  inset: 10% 0 0 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--site-lamp), 0.22), transparent 72%);
  filter: blur(10px);
}
.pocket-phones .phone { position: absolute; }
.phone--back { left: 2%; top: 0; transform: rotate(-6deg); }
.phone--front { right: 2%; top: 12%; }
.has-motion .phone--back { transform: translate3d(0, var(--py, 0px), 0) rotate(-6deg); }
.pocket-list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 26px; }
.pocket-list li { padding-top: 22px; border-top: 1px solid var(--site-line); }
.pocket-list h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--site-text);
}
.pocket-list p { margin: 0; color: var(--site-muted); max-width: 32em; }

/* ============================== Voices ============================== */
.voices-head { max-width: 760px; }
.tiers {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--site-line);
}
.tier { padding: 26px 24px 30px 0; display: flex; flex-direction: column; gap: 6px; }
.tier + .tier { padding-left: 24px; border-left: 1px solid var(--site-line); }
.tier-dots { color: var(--site-mark-ink); font-size: 15px; letter-spacing: 3px; }
.tier-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier[data-tier="basic"] .tier-name { color: var(--site-muted-2); }
.tier[data-tier="natural"] .tier-name { color: var(--site-text-2); }
.tier-blurb { color: var(--site-muted); }

.voice-list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 72px 0 8px; }
.voice-list-head h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.voice-list-head p { margin: 0; color: var(--site-muted); }

/* The eight Premium voices: faces you tap, each beside its name, not a card grid.
   128px is what scripts/voice_avatars.py sizes the set for. */
.voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.voice-card {
  --card-bg: var(--site-bg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--site-line);
  cursor: pointer;
}
.voice-grid .voice-face { width: 128px; }
.voice-grid .voice-face-badge { width: 36px; height: 36px; }
.voice-info { min-width: 0; }
.voice-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.028em;
  line-height: 1.05;
}
.voice-desc { font-size: 14px; color: var(--site-muted); margin-top: 3px; }
.voice-card .hm-waveform { width: 92px; opacity: 0.55; }
.voice-card.is-playing .hm-waveform { opacity: 1; }
.voice-waveform-slot { height: 20px; }

/* ============================== Pricing ============================== */
.landing .pricing { background: var(--site-raised); border-top: 1px solid var(--site-line); }
.pricing-intro { max-width: 1000px; }
.pricing-intro .section-lead { max-width: 40em; }
/* The three prices side by side, for the widths that show one card at a time. */
.plan-strip { display: none; }
.plan-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
  align-items: start;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 26px 26px;
  border-radius: 22px;
  border: 1px solid var(--site-line);
  background: var(--site-bg);
  cursor: pointer;
}
.plan-card.is-selected { border-color: var(--site-text-2); box-shadow: 0 30px 80px rgba(var(--site-shade), 0.5); }
.plan-card[data-plan="hearmark_plus_monthly"] { margin-top: -18px; }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--site-mark);
  color: var(--site-on-mark);
  font-size: 12.5px;
  font-weight: 600;
}
.plan-badge--quiet { background: var(--site-raised-2); color: var(--site-text-2); border: 1px solid var(--site-line); }
.plan-card-head { display: flex; flex-direction: column; gap: 6px; }
.plan-name { margin: 0; font-size: 17px; font-weight: 600; color: var(--site-text-2); letter-spacing: -0.01em; }
.plan-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--site-text);
  font-variant-numeric: normal; /* this face's tabular zero is slashed */
}
.plan-per { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--site-muted); margin-left: 4px; letter-spacing: 0; }
.plan-price-note { font-size: 13px; color: var(--site-muted); }
.plan-pitch { font-size: 15.5px; line-height: 1.5; color: var(--site-text-2); margin: 0; min-height: 46px; }
.plan-features {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--site-line);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.plan-features li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--site-text-2); }
.plan-features li [data-hm-icon] { color: var(--ok); flex-shrink: 0; margin-top: 4px; }
.plan-features li.is-limit { color: var(--site-muted); }
.plan-features li.is-limit [data-hm-icon] { color: var(--site-muted-2); }
.plan-features .plan-features-lead { font-weight: 600; color: var(--site-text); }
.plan-cta { margin-top: 4px; }

.pricing-foot { font-size: 14px; line-height: 1.6; color: var(--site-muted); margin: 36px 0 0; max-width: 46em; }

.pricing-foot--note { margin-top: 8px; font-size: 13px; }
.pricing-foot--note a { color: inherit; }

/* =============================== Closer =============================== */
.landing .closer { overflow: hidden; padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 12vw, 160px); }
.closer-glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: min(120vw, 1500px);
  aspect-ratio: 2;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--site-lamp), 0.26), rgba(var(--site-glow), 0.10) 55%, transparent 75%);
  pointer-events: none;
}
.closer-title {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.032em;
  margin: 0;
}
.closer-lead { position: relative; margin: 30px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--site-muted); max-width: 32em; }
.closer-ctas { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; align-items: center; }

/* ============================== Smaller ============================== */
@media (max-width: 1000px) {
  .voice-grid { grid-template-columns: minmax(0, 1fr); }
  .landing .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-phone { justify-self: center; margin-bottom: -120px; }
  .hero-glow { right: -30vw; top: 30%; width: 120vw; }
  .readalong-stick { grid-template-columns: minmax(0, 1fr); }
  .readalong.is-live { height: 300vh; }
  /* One screen, pinned: the beat's copy keeps its height and the mock page takes what
     is left, so nothing runs off a short phone, where a pinned screen can't be scrolled
     to. The page's text scrolls inside the sheet instead (hm-landing.js). */
  .readalong.is-live .readalong-stick {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 64px 0 24px;
  }
  .readalong.is-live .readalong-copy { order: 2; flex: none; }
  /* Off screen but not gone: a screen reader still reads the heading and all three
     beats, which a pinned section gives it no other way to reach. */
  .readalong.is-live .readalong-title,
  .readalong.is-live[data-beat="1"] .beat:not([data-beat-step="1"]),
  .readalong.is-live[data-beat="2"] .beat:not([data-beat-step="2"]),
  .readalong.is-live[data-beat="3"] .beat:not([data-beat-step="3"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .readalong.is-live .readalong-stage { order: 1; flex: 0 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .readalong.is-live .sheet { flex: 0 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .readalong.is-live .sheet-chrome,
  .readalong.is-live .player { flex: none; }
  .readalong.is-live .sheet-body { flex: 0 1 auto; min-height: 0; overflow: hidden; }
  /* Room to bring the last line clear of the cookie bar. */
  .readalong.is-live[data-beat="1"] .sheet-body { padding-bottom: 76px; }
  .landing .try { grid-template-columns: minmax(0, 1fr); }
  .landing .pocket { grid-template-columns: minmax(0, 1fr); }
  .pocket-phones { order: 2; height: 560px; max-width: 520px; width: 100%; justify-self: center; }
  .plan-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 40px;
  }
  .plan-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 12px 4px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: var(--site-bg);
    font-family: inherit;
    cursor: pointer;
  }
  .plan-strip-item.is-current { border-color: var(--site-text-2); }
  .plan-strip-name { font-size: 14px; font-weight: 600; color: var(--site-text-2); }
  .plan-strip-price {
    font-variant-numeric: normal;
    font-family: var(--font-heading);
    font-size: clamp(19px, 6vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--site-text);
  }
  .plan-strip-per { font-size: 12.5px; color: var(--site-muted); }
  .plan-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 12px calc(-1 * var(--site-gutter)) 0;
    padding: 22px var(--site-gutter) 8px;
    scrollbar-width: none;
  }
  .plan-carousel::-webkit-scrollbar { display: none; }
  .plan-card { flex: 0 0 min(84%, 380px); scroll-snap-align: center; }
  .plan-card[data-plan="hearmark_plus_monthly"] { margin-top: 0; }
  .plan-pitch { min-height: 0; }
}
@media (max-width: 640px) {
  .landing main > section { padding-top: 88px; padding-bottom: 88px; }
  .hero-ctas .site-btn { flex: 1 1 auto; }
  .hero-phone .phone { width: 250px; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier, .tier + .tier { padding: 20px 0; border-left: 0; }
  .tier + .tier { border-top: 1px solid var(--site-line); }
  .voice-card { grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
  .voice-card .hm-waveform { display: none; }
  .voice-grid .voice-face { width: 88px; }
  .voice-grid .voice-face-badge { width: 30px; height: 30px; }
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pocket-phones { height: 420px; }
  .pocket-phones .phone { width: 180px; padding: 7px; border-radius: 32px; }
  .pocket-phones .phone img { border-radius: 26px; }
  .phone--back { left: 0; }
  .phone--front { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .try-eq i { animation: none; height: 60%; }
}
