/* ============================================================
   Just Book Club — marketing site
   Light mode only. Tokens mirror BookClubs/DesignSystem/Theme.swift
   ============================================================ */

:root {
  /* surfaces */
  --paper:        #FBFBF8;
  --panel:        #F1F1E9;
  --panel-raised: #E8E8DF;
  --hairline:     #E4E4DA;

  /* ink */
  --ink:   #1B1B1F;
  --ink-2: #5F6067;
  --ink-3: #9C9CA3;

  /* brand */
  --terracotta: #C2532F;
  --clay:       #D96044;
  --green:      #1E7A63;
  --green-soft: #E4F1EB;
  --gold:       #BE8A24;
  --gold-soft:  #F7EED9;
  --dusk:       #3E6DB5;
  --plum:       #8E4B8B;
  --moss:       #3D9163;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shell: 1140px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a  { color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 10px 0; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- shared bits ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green);
}

.lede {
  font-size: 1.14rem;
  color: var(--ink-2);
  max-width: 46ch;
}

.pill {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: .82rem;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--lg { font-size: .95rem; padding: 14px 26px; }

.textlink {
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1.5px solid var(--hairline);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.textlink:hover { color: var(--green); border-color: var(--green); }

.chip {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--accent { background: var(--green-soft); color: var(--green); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(251, 251, 248, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), border-color .45s;
}
.nav.is-stuck { transform: none; opacity: 1; border-bottom-color: var(--hairline); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 8px; }

.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

/* --- the parallax wall of books --- */
.wall {
  position: absolute;
  top: -42%;
  bottom: -42%;
  left: 50%;
  translate: -50% 0;
  width: auto;              /* shrink-wraps the columns, bleeds past both edges */
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 22px);
  pointer-events: none;
  z-index: -2;
}

.wall__col {
  flex: 0 0 auto;
  width: var(--w);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 22px);
  opacity: var(--dim, 1);
  will-change: transform;
}

.book {
  container-type: inline-size;
  position: relative;
  flex: 0 0 auto;          /* keep the aspect ratio, never shrink to fit the column */
  width: 100%;
  aspect-ratio: var(--ar, 2 / 3);
  border-radius: 2px 5px 5px 2px;
  background: var(--cover);
  color: var(--fg);
  padding: 15% 11% 12% 19%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(43, 33, 24, .16),
    0 12px 24px -14px rgba(43, 33, 24, .5);
}

/* spine */
.book::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 9%;
  background: linear-gradient(90deg,
    rgba(0,0,0,.30), rgba(0,0,0,.05) 62%, rgba(255,255,255,.13));
}
/* paper sheen */
.book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, rgba(255,255,255,.15) 0 16%, rgba(255,255,255,0) 42%);
}

/* --- jacket type --- */
.book__title,
.book__author,
.book__art { position: absolute; }

.book__title {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.13;
  font-size: 12px;
  font-size: 11.5cqw;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.book__author {
  font-family: var(--sans);
  font-size: 9px;
  font-size: 5.4cqw;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .72;
}

/* Roughly a quarter of the shelf gets a sans, all caps jacket. */
.book--caps .book__title {
  font-family: var(--sans);
  font-size: 8.2cqw;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .015em;
  text-transform: uppercase;
}

/* --- jacket layouts --- */

/* rule, title, author down the left */
.book--classic .book__art    { top: 13%; left: 17%; width: 26%; height: 1.8cqw; background: currentColor; opacity: .5; }
.book--classic .book__title  { top: 20%; left: 17%; right: 9%; }
.book--classic .book__author { bottom: 8%; left: 17%; right: 9%; }

/* framed plate, everything centred inside it */
.book--plate .book__art      { top: 12%; bottom: 12%; left: 18%; right: 8%; border: 1.4cqw solid currentColor; opacity: .34; }
.book--plate .book__title    { top: 12%; height: 58%; left: 25%; right: 15%; display: grid; place-items: center; text-align: center; }
.book--plate .book__author   { bottom: 19%; left: 25%; right: 15%; text-align: center; }

/* contrast band across the middle */
.book--band .book__art       { top: 32%; height: 36%; left: 9%; right: 0; background: var(--accent); }
.book--band .book__title     { top: 32%; height: 36%; left: 9%; right: 0; padding-inline: 9%;
                               display: grid; place-items: center; text-align: center; color: var(--cover); }
.book--band .book__author    { bottom: 9%; left: 16%; right: 8%; text-align: center; }

/* solid block over the top, title beneath */
.book--split .book__art      { top: 0; height: 43%; left: 9%; right: 0; background: var(--accent); }
.book--split .book__title    { top: 50%; left: 16%; right: 9%; }
.book--split .book__author   { bottom: 8%; left: 16%; right: 9%; }

/* double keyline border */
.book--keyline .book__art    { top: 8%; bottom: 8%; left: 15%; right: 7%; border: 1.3cqw double currentColor; opacity: .45; }
.book--keyline .book__title  { top: 8%; height: 62%; left: 22%; right: 14%; display: grid; place-items: center; text-align: center; }
.book--keyline .book__author { bottom: 13%; left: 22%; right: 14%; text-align: center; }

/* small mark up top, title anchored at the foot */
.book--stack .book__art      { top: 12%; left: 18%; width: 15cqw; height: 15cqw; border-radius: 50%;
                               border: 1.7cqw solid currentColor; opacity: .5; }
.book--stack .book__title    { bottom: 17%; left: 17%; right: 9%; font-size: 13cqw; }
.book--stack .book--caps .book__title,
.book--caps.book--stack .book__title { font-size: 9cqw; }
.book--stack .book__author   { bottom: 8%; left: 17%; right: 9%; }

/* settles the wall under the nav and dissolves it into the next section */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(251,251,248,.55) 0%,
    rgba(251,251,248,.05) 9%,
    rgba(251,251,248,.05) 83%,
    var(--paper) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;        /* keeps the halo tight to the copy, books visible either side */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Soft paper halo that hugs the copy, so the headline stays readable
   no matter which books land behind it. */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: -58px -34px -46px;
  z-index: -1;
  background: var(--paper);
  border-radius: 190px;
  filter: blur(42px);
  pointer-events: none;
}

.hero__mark {
  border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(194, 83, 47, .55);
}

.hero__title { display: flex; flex-direction: column; gap: .12em; }
.hero__line  { font-size: clamp(2.5rem, 7.2vw, 5.1rem); }
.hero__paren {
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  color: var(--terracotta);
  font-style: italic;
  letter-spacing: -0.01em;
}

.hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--ink-2);
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.hero__free {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-3);
}

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  translate: -50% 0;
  width: 22px; height: 34px;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  translate: -50% 0;
  width: 3px; height: 6px;
  border-radius: 2px;
  background: var(--ink-3);
  animation: scrollhint 1.9s var(--ease) infinite;
}
@keyframes scrollhint {
  0%, 100% { transform: translateY(0);    opacity: 0; }
  30%      { opacity: 1; }
  70%      { transform: translateY(11px); opacity: 0; }
}

/* ============================================================
   REVEAL SYSTEM
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .75s var(--ease) var(--d, 0s),
    transform .75s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   DRAMA
   ============================================================ */
.drama {
  background: var(--panel);
  border-block: 1px solid var(--hairline);
  padding: clamp(72px, 10vw, 130px) 0;
}

.drama__inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.drama__copy { display: flex; flex-direction: column; gap: 18px; }
.drama__copy h2 { font-size: clamp(1.7rem, 3.3vw, 2.65rem); }
.drama__copy p  { color: var(--ink-2); max-width: 48ch; }

.drama__punch {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  font-weight: 700;
  color: var(--ink) !important;
  border-left: 3px solid var(--terracotta);
  padding-left: 18px;
  margin-top: 4px;
}

/* --- the group chat --- */
.phone {
  max-width: 340px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  box-shadow: 0 30px 60px -30px rgba(43, 33, 24, .38);
  overflow: hidden;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(246, 246, 244, .9);
}
.phone__back { color: var(--dusk); font-size: 1.2rem; line-height: 1; }
.phone__name { font-size: .87rem; font-weight: 600; }

.phone__thread {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 16px 22px;
  min-height: 330px;
}

.msg {
  max-width: 82%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: .84rem;
  line-height: 1.42;
}
.js [data-play] .msg { opacity: 0; transform: translateY(10px) scale(.96); }
[data-play].is-in .msg {
  animation: pop .5s var(--ease) var(--d, 0s) forwards;
}
@keyframes pop {
  to { opacity: 1; transform: none; }
}

.msg--in {
  align-self: flex-start;
  background: #E9E9EB;
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.msg--out {
  align-self: flex-end;
  background: var(--dusk);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg--oops { background: #FBE3DC; color: #9A3A1E; font-weight: 700; }

.msg__who {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.msg--oops .msg__who { color: #C2704F; }

.msg--typing {
  align-self: flex-start;
  background: #E9E9EB;
  display: flex;
  gap: 4px;
  padding: 13px 15px;
  border-bottom-left-radius: 5px;
}
.msg--typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
}
[data-play].is-in .msg--typing i { animation: blink 1.3s ease-in-out infinite; }
[data-play].is-in .msg--typing i:nth-child(2) { animation-delay: .18s; }
[data-play].is-in .msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink {
  0%, 60%, 100% { opacity: .3; }
  30%           { opacity: 1; }
}

/* ============================================================
   WHAT'S INSIDE
   ============================================================ */
.inside { padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); }

.inside__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(56px, 8vw, 100px);
}
.inside__head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 18ch; }

/* ---------- illustrations (static poster, Lottie on top) ---------- */
.illo {
  position: relative;
  margin-inline: auto;
}
.illo > img,
.illo > svg,
.illo > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.illo > img { transition: opacity .5s var(--ease); }
.illo.is-live > img { opacity: 0; }

.inside__illo {
  width: min(440px, 78%);
  aspect-ratio: 3 / 2;
  margin-bottom: 4px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(44px, 6vw, 76px) 24px;
}
.feature--flip .feature__copy { order: 2; }

.feature__copy { display: flex; flex-direction: column; gap: 15px; }
.feature__copy h3 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
.feature__copy p  { color: var(--ink-2); max-width: 44ch; }

/* --- shared mock panel --- */
.panel {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 26px 54px -34px rgba(43, 33, 24, .42);
  padding: 20px;
}
.panel--rail { border-left: 3px solid var(--green); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel__title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }

/* mock children animate in when the panel scrolls into view */
.js [data-play] .sug__row,
.js [data-play] .poll__opt,
.js [data-play] .chat__row,
.js [data-play] .faces i,
.js [data-play] .meet__rsvp .chip {
  opacity: 0;
  transform: translateY(12px);
}
[data-play].is-in .sug__row,
[data-play].is-in .poll__opt,
[data-play].is-in .chat__row,
[data-play].is-in .faces i,
[data-play].is-in .meet__rsvp .chip {
  animation: rise .6s var(--ease) var(--d, 0s) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* --- 1. suggestions --- */
.sug { display: flex; flex-direction: column; }
.sug__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
}
.sug__row:first-child { border-top: 0; }

.cover {
  container-type: inline-size;
  flex: 0 0 auto;
  width: 42px;
  aspect-ratio: 2 / 3;
  border-radius: 2px 4px 4px 2px;
  background: var(--cover);
  color: var(--fg);
  padding: 6px 5px 5px 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px -5px rgba(43, 33, 24, .6);
}
.cover b {
  font-family: var(--serif);
  font-size: 15cqw;
  line-height: 1.1;
  display: block;
}

.sug__meta { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.sug__meta b { font-family: var(--serif); font-size: .98rem; }
.sug__meta i { font-style: normal; font-size: .78rem; color: var(--ink-3); }

.vote {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 13px;
}
.vote em { font-style: normal; font-size: .92rem; }
.vote.is-on { background: var(--green-soft); color: var(--green); }
[data-play].is-in .vote.is-on em { animation: beat .5s var(--ease) .55s; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.42); }
}

/* --- 2. poll --- */
.poll { display: flex; flex-direction: column; gap: 15px; }
.poll__label {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.poll__label b { color: var(--green); }
.poll__track {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--panel);
  overflow: hidden;
}
.poll__track i {
  display: block;
  height: 100%;
  width: var(--pct);
  border-radius: 999px;
  background: var(--green);
  transition: width 1.1s var(--ease) calc(var(--d, 0s) + .25s);
}
.js [data-play] .poll__track i { width: 0; }
[data-play].is-in .poll__track i { width: var(--pct); }

.poll__foot {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
  font-size: .78rem;
  color: var(--ink-3);
}

/* --- 3. channels --- */
.panel--chat { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }

.chan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 10px;
  background: var(--panel);
  border-right: 1px solid var(--hairline);
}
.chan__cat {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 8px 4px;
}
.chan__cat:first-child { padding-top: 0; }
.chan__item {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 9px;
  border-radius: 7px;
}
.chan__item.is-on { background: #fff; color: var(--ink); font-weight: 600; }

.chat { display: flex; flex-direction: column; gap: 16px; padding: 20px 18px; }
.chat__row { display: flex; gap: 11px; align-items: flex-start; }

.av {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--c);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.chat__body { font-size: .87rem; line-height: 1.5; color: var(--ink-2); }
.chat__body b { color: var(--c); font-weight: 700; margin-right: 6px; }

.rx {
  display: inline-block;
  margin-top: 7px;
  font-size: .74rem;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  padding: 3px 10px;
}
.js [data-play] .rx { opacity: 0; transform: scale(.5); }
[data-play].is-in .rx { animation: popin .45s var(--ease) var(--d, 0s) forwards; }
@keyframes popin {
  60% { opacity: 1; transform: scale(1.14); }
  to  { opacity: 1; transform: scale(1); }
}

/* --- 4. meeting --- */
.meet { display: flex; align-items: center; gap: 16px; }
.meet__date {
  flex: 0 0 auto;
  width: 62px;
  padding: 10px 0;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
  text-align: center;
}
.meet__date b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.meet__date i { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.meet__info { display: flex; flex-direction: column; min-width: 0; }
.meet__info b { font-family: var(--serif); font-size: 1.05rem; }
.meet__info i { font-style: normal; font-size: .82rem; color: var(--ink-3); }

.meet__rsvp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.faces { display: flex; margin-right: auto; }
.faces i {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #fff;
  color: #fff;
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-left: -8px;
}
.faces i:first-child { margin-left: 0; }

/* --- extras --- */
.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
}
.extra {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 8px 24px 26px;
}
/* One fixed box so landscape and portrait illustrations line up. */
.extra .illo {
  width: 100%;
  height: 168px;
  margin-bottom: 8px;
}
.extra h4 { font-size: 1.13rem; margin-bottom: 8px; }
.extra p  { font-size: .92rem; color: var(--ink-2); }

/* ============================================================
   FREE
   ============================================================ */
.free {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 140px) 0;
}
.free__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.free .eyebrow { color: #6FD3B2; }

.free__illo {
  width: min(420px, 76%);
  aspect-ratio: 3 / 2;
  margin-bottom: 4px;
}

.free__num {
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -0.045em;
  color: #6FD3B2;
}
.free h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

.free__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.free__list li {
  border: 1px solid rgba(251, 251, 248, .22);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: .9rem;
  font-weight: 600;
}

.free__note {
  color: rgba(251, 251, 248, .62);
  max-width: 46ch;
  font-size: .96rem;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 7vw, 84px) 0 0;
}
.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 60px);
}

.foot__brand img { border-radius: 10px; margin-bottom: 12px; }
.foot__name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.foot__tag  { font-size: .9rem; color: var(--ink-3); }

.foot__col h2 {
  font-size: .76rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.foot__col p { font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.foot__col a { color: var(--green); font-weight: 600; }

.foot__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
  font-size: .8rem;
  color: var(--ink-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.pill__short { display: none; }

/* --- tablet --- */
@media (max-width: 960px) {
  .nav__links { display: none; }

  .drama__inner,
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  /* copy always leads, the mock follows */
  .feature--flip .feature__copy { order: 0; }
  .drama__phone { order: 2; }

  .feature__copy p, .drama__copy p { max-width: none; }
  .feature__mock { max-width: 520px; width: 100%; margin-inline: auto; }

  .extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .extras .extra:last-child { grid-column: 1 / -1; }

  .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}

/* --- phone --- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .wrap        { padding-inline: 18px; }
  .feature     { padding: 34px 18px; }
  .inside      { padding-top: clamp(64px, 14vw, 88px); }
  .drama       { padding-block: clamp(56px, 13vw, 84px); }
  .free        { padding-block: clamp(64px, 15vw, 96px); }

  /* header */
  .nav__inner  { height: 56px; gap: 12px; }
  .brand span  { font-size: .95rem; }
  .pill--nav   { margin-left: auto; }
  .pill__long  { display: none; }
  .pill__short { display: inline; }

  /* hero */
  .hero        { padding: 76px 0 64px; }
  .hero__inner { gap: 18px; }
  .hero__mark  { width: 60px; height: 60px; border-radius: 15px; }
  .hero__line  { font-size: clamp(2.15rem, 10.4vw, 3rem); }
  .hero__paren { font-size: clamp(1.28rem, 6vw, 1.8rem); }
  .hero__lede  { font-size: 1rem; }
  .hero__cta   { flex-direction: column; gap: 16px; width: 100%; }
  .hero__cta .pill { width: 100%; text-align: center; padding-block: 15px; }
  .hero__inner::before { inset: -40px -22px -34px; border-radius: 130px; filter: blur(34px); }
  .hero__scroll { display: none; }

  /* drama */
  .drama__copy h2 { font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .drama__punch   { padding-left: 14px; }
  .phone          { max-width: 100%; border-radius: 24px; }
  .phone__thread  { min-height: 0; padding: 15px 13px 18px; }
  .msg            { max-width: 88%; font-size: .82rem; }

  /* sections */
  .inside__head   { margin-bottom: 44px; }
  .inside__illo   { width: 74%; }
  .feature__copy h3 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .feature__mock  { max-width: none; }

  .panel          { padding: 16px; border-radius: 16px; }
  /* re-assert after the .panel override above, or the sidebar insets */
  .panel--chat    { padding: 0; grid-template-columns: 92px minmax(0, 1fr); }
  .chan           { padding: 14px 7px; }
  .chan__item     { font-size: .75rem; padding: 6px 7px; }
  .chan__cat      { font-size: .58rem; padding-inline: 6px; }
  .chat           { gap: 14px; padding: 16px 13px; }
  .chat__body     { font-size: .83rem; }
  .av             { width: 26px; height: 26px; font-size: .7rem; border-radius: 8px; }

  .cover          { width: 36px; }
  .sug__row       { gap: 11px; padding: 11px 0; }
  .sug__meta b    { font-size: .92rem; }
  .vote           { padding: 5px 10px; font-size: .8rem; }

  .poll__label    { font-size: .86rem; }
  .meet__date     { width: 54px; }
  .meet__info b   { font-size: .98rem; }

  .extras         { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .extras .extra:last-child { grid-column: auto; }
  .extra          { padding: 10px 20px 22px; border-radius: 16px; }
  .extra .illo    { height: 152px; }

  /* free */
  .free__illo     { width: 72%; }
  .free__num      { font-size: clamp(4.6rem, 26vw, 7rem); }
  .free__list     { gap: 8px; }
  .free__list li  { padding: 8px 16px; font-size: .85rem; }

  /* footer */
  .foot__inner    { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .foot__base     { flex-direction: column; gap: 6px; }
}

/* --- small phone --- */
@media (max-width: 380px) {
  .wrap       { padding-inline: 15px; }
  .feature    { padding-inline: 15px; }
  .brand span { display: none; }
  .hero__line { font-size: 2rem; }
  .panel--chat { grid-template-columns: 84px minmax(0, 1fr); }
}

/* Anchor targets clear the fixed header. */
[id] { scroll-margin-top: 78px; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  /* Nothing may stay hidden waiting on a scroll animation that will not
     run, so these override the .js-scoped hidden states outright. */
  [data-reveal],
  [data-play] .sug__row,
  [data-play] .poll__opt,
  [data-play] .chat__row,
  [data-play] .faces i,
  [data-play] .meet__rsvp .chip,
  [data-play] .msg,
  [data-play] .rx {
    opacity: 1 !important;
    transform: none !important;
  }

  .poll__track i { width: var(--pct) !important; }
  .hero__scroll { display: none; }
}
