/* Herly — landing page
   Tokens lifted from the Herly design system (design/Herly Design Review.dc.html) */

:root {
  /* surfaces */
  --bg-deep: #1b0c10;
  --bg: #241014;
  --surface: #2b131a;
  --surface-hi: #341920;
  --bubble: #3d1e25;

  /* ink */
  --ink: #f2e4dc;
  --ink-soft: #f0e0d8;
  --muted: #cfaea6;
  --muted-2: #b08a80;
  --faint: #6b4d4a;

  /* accent */
  --accent: #d69a92;
  --accent-ink: #2d1216;
  --accent-hi: #e8b8b0;

  /* hairlines */
  --line: rgba(240, 224, 216, 0.08);
  --line-2: rgba(240, 224, 216, 0.14);
  --line-3: rgba(240, 224, 216, 0.2);
  --accent-line: rgba(214, 154, 146, 0.3);

  /* type */
  --serif: "Bodoni Moda", Didot, Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --wrap: 1180px;
  --pad: 32px;
  --section-y: clamp(72px, 9vw, 120px);
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

button {
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
  color: inherit;
}

img { max-width: 100%; display: block; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── animation ──────────────────────────────────────────────────────────── */

@keyframes dots {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: .9; transform: translateY(-2px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ─── shared primitives ──────────────────────────────────────────────────── */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--pad);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

section { border-top: 1px solid rgba(240, 224, 216, .06); }
.tint { background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow.on-accent { color: var(--accent); }
.eyebrow.tight::before { width: 16px; }

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(42px, 7.4vw, 84px);
  line-height: 1.03;
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(31px, 4.6vw, 52px);
  line-height: 1.12;
}

.lede {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.56;
  font-weight: 300;
  color: var(--muted);
  text-wrap: pretty;
}

.stack { display: flex; flex-direction: column; gap: 16px; }

.mono-note {
  font: 500 clamp(10px, 1.1vw, 12px) var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}

/* buttons */

.btn {
  height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 26px;
  font-size: 16px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-ghost {
  border-color: rgba(240, 224, 216, .28);
  background: rgba(36, 16, 20, .3);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 20px; }

.mark-apple {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}
.mark-play {
  width: 0; height: 0;
  border-left: 14px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  flex-shrink: 0;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── image placeholders ─────────────────────────────────────────────────── */
/* A .ph is a gradient stand-in. Drop a file into landing/img/ and register it
   in the IMAGES map at the top of app.js — it is layered on top and the
   placeholder texture and caption are hidden automatically. */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--g, linear-gradient(168deg, #4a3a3c 0%, #241014 100%));
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(240, 224, 216, .07) 0 5px, transparent 5px 12px);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 45% 22%, rgba(255, 202, 164, .28), rgba(255, 202, 164, 0) 68%);
}
.ph-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ph.has-img::before,
.ph.has-img::after { display: none; }
.ph.has-img .ph-caption { display: none; }

.ph-caption {
  font: 500 11px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(240, 224, 216, .55);
}

/* ─── nav ────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(36, 16, 20, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 5px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav-links a { color: var(--muted); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav-cta .btn-ghost { display: none; }
  .logo { font-size: 19px; letter-spacing: 4px; }
}

/* ─── hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(860px, 92vh);
  overflow: hidden;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  border-top: 0;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg.grad { background: linear-gradient(172deg, #7a3730 0%, #45201f 44%, #1e0d11 100%); }
.hero-bg.glow { background: radial-gradient(ellipse 50% 60% at 62% 30%, rgba(255, 202, 164, .32), rgba(255, 202, 164, 0) 68%); }
.hero-bg.hatch { background: repeating-linear-gradient(135deg, rgba(240, 224, 216, .05) 0 6px, transparent 6px 14px); }
.hero-bg.fade { background: linear-gradient(180deg, rgba(27, 12, 16, .1) 0%, rgba(27, 12, 16, .2) 50%, var(--bg-deep) 100%); }
.hero-bg.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
}
/* With a real hero photo in place the opaque gradient becomes a readability
   scrim instead, and the placeholder hatch drops away. */
.hero.has-img .hero-bg.hatch { display: none; }
.hero.has-img .hero-bg.grad {
  background: linear-gradient(100deg, rgba(27, 12, 16, .9) 0%, rgba(27, 12, 16, .55) 48%, rgba(27, 12, 16, .1) 100%);
}
.hero.has-img .hero-bg.glow { opacity: .5; }

.hero-note {
  position: absolute;
  right: var(--pad);
  bottom: 24px;
  font: 500 11px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(240, 224, 216, .6);
  max-width: 58%;
  text-align: right;
}
.hero.has-img .hero-note { display: none; }

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: auto auto 0;
  padding: clamp(88px, 11vw, 120px) var(--pad) clamp(76px, 9vw, 96px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-copy {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 28px);
}
.hero-copy .lede {
  max-width: 520px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-feed {
  flex: 0 1 420px;
  height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 30%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 30%);
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-feed { flex: 1 1 auto; height: 240px; width: 100%; max-width: 460px; }
  .hero-note {
    position: static;
    text-align: left;
    max-width: var(--wrap);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad) 22px;
  }
}

/* ─── chat bubbles ───────────────────────────────────────────────────────── */

.msg {
  max-width: 78%;
  padding: 11px 17px;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 300;
  line-height: 1.53;
  animation: rise .35s ease-out;
}
.msg-her {
  align-self: flex-start;
  background: rgba(61, 30, 37, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px 20px 20px 5px;
  color: var(--ink-soft);
}
.msg-you {
  align-self: flex-end;
  background: rgba(214, 154, 146, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(214, 154, 146, .34);
  border-radius: 20px 20px 5px 20px;
  color: #f4e1db;
  margin: 8px 0;
}
.msg-attach {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(61, 30, 37, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px 20px 20px 5px;
  padding: 10px 14px 10px 10px;
  margin: 4px 0 8px;
  animation: rise .35s ease-out;
}
.msg-attach .thumb {
  width: 44px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  --g: linear-gradient(172deg, #6b2f2c 0%, #3d1a1d 60%, #241014 100%);
}
.msg-attach .thumb::after { display: none; }
.msg-attach .t1 { font-size: 15px; color: var(--ink-soft); }
.msg-attach .t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }

.typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(61, 30, 37, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px 20px 20px 5px;
  padding: 15px 18px;
  margin-top: 4px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: dots 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

/* ─── consistency grid ───────────────────────────────────────────────────── */

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 4.4vw, 48px);
}
.split > .stack { flex: 1 1 480px; }
.split > .stack .lede { max-width: 560px; }

.selected-card {
  flex: 0 1 360px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--accent-line);
  background: rgba(214, 154, 146, .08);
}
.selected-card .k {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.selected-card .n {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
}
.selected-card .c {
  font-size: 15px;
  line-height: 1.47;
  color: var(--muted);
  margin-top: 6px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 400px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }

.tile {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--g);
  text-align: left;
  transition: transform .25s ease, border-color .25s ease;
}
.tile.is-on {
  border-color: var(--accent);
  transform: scale(1.04);
}
.tile .num {
  position: absolute;
  left: 10px; top: 10px;
  font: 500 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(240, 224, 216, .55);
  z-index: 2;
}
.tile .cap {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1.38;
  color: var(--ink);
  z-index: 2;
  text-shadow: 0 1px 6px rgba(27, 12, 16, .7);
}

/* ─── stories ────────────────────────────────────────────────────────────── */

.cols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}
.story-col { flex: 0 0 360px; margin: 0 auto; max-width: 100%; }
@media (max-width: 820px) { .story-col { flex: 1 1 100%; } }

.story {
  position: relative;
  display: block;
  width: 360px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  padding: 0;
  text-align: left;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  margin: 0 auto;
  --g: linear-gradient(172deg, #7a3730 0%, #45201f 46%, #241014 100%);
}
.story::after {
  background: radial-gradient(ellipse 62% 44% at 40% 22%, rgba(255, 202, 164, .35), rgba(255, 202, 164, 0) 68%);
}
.story .scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(27, 12, 16, .35) 0%, rgba(27, 12, 16, 0) 30%, rgba(27, 12, 16, 0) 55%, rgba(27, 12, 16, .85) 100%);
}
.story .segs {
  position: absolute;
  left: 14px; right: 14px; top: 14px;
  display: flex;
  gap: 4px;
  z-index: 3;
}
.story .segs i {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(240, 224, 216, .3);
  transition: background .3s ease;
}
.story .segs i.on { background: var(--ink); }
.story .who {
  position: absolute;
  left: 16px; top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.story .who .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(214, 154, 146, .6);
  background: linear-gradient(168deg, #8a4a3c 0%, #4a2320 54%, #2a1418 100%);
}
.story .who .nm { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.story .who .ago {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(240, 224, 216, .6);
}
.story .ph-caption {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 80%;
}
.story .foot {
  position: absolute;
  left: 16px; right: 16px; bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
}
.story .foot .cap {
  font-size: 18px;
  line-height: 1.44;
  font-weight: 300;
  color: var(--ink);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 28px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: rgba(36, 16, 20, .7);
  border: 1px solid rgba(240, 224, 216, .18);
  font-size: 13px;
  color: var(--ink);
}
.story-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--faint);
}

.story-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.mini {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(240, 224, 216, .1);
}
.mini b {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}
.mini span {
  display: block;
  font-size: 14px;
  line-height: 1.43;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ─── memory ─────────────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.mem-card {
  padding: clamp(22px, 2.6vw, 28px);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mem-card.accent { border-color: var(--accent-line); }
.mem-line {
  font-size: 17px;
  line-height: 1.53;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mem-card > .mem-line:last-child { padding-bottom: 0; border-bottom: 0; }

.inf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mem-card > .inf:last-child { padding-bottom: 0; border-bottom: 0; }
.inf .txt { font-size: 17px; line-height: 1.53; color: var(--ink); }
.inf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  font-size: 14px;
  border: 1px solid rgba(240, 224, 216, .16);
  background: transparent;
  color: var(--muted);
  transition: border-color .2s ease, background .2s ease;
}
.pill.yes {
  border-color: rgba(214, 154, 146, .5);
  background: rgba(214, 154, 146, .14);
  color: var(--ink);
}
.pill:hover { border-color: var(--accent); }
.inf-state {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.inf-state.gone { color: var(--faint); }

/* ─── wardrobe ───────────────────────────────────────────────────────────── */

.ward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
@media (max-width: 480px) { .ward-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.ward { display: flex; flex-direction: column; gap: 12px; }
.ward .shot {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid var(--line-2);
}
.ward .shot::after { display: none; }
.ward .tag {
  position: absolute;
  left: 10px; top: 10px;
  font: 500 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(240, 224, 216, .55);
  z-index: 2;
}
.ward .badge {
  position: absolute;
  left: 10px; bottom: 10px;
  height: 24px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.ward .nm { font-size: 16px; line-height: 1.38; color: var(--ink); }
.ward .meta { font-size: 14px; line-height: 1.43; color: var(--muted); }

/* ─── try it ─────────────────────────────────────────────────────────────── */

.try-copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 20px; }
.prompt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.prompt {
  min-height: 48px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 24px;
  border: 1px solid rgba(214, 154, 146, .32);
  background: rgba(214, 154, 146, .08);
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
  text-align: left;
  transition: opacity .2s ease, border-color .2s ease;
}
.prompt:hover { border-color: var(--accent); }
.prompt.used { opacity: .35; cursor: default; }
.prompt .arrow { color: var(--accent); flex-shrink: 0; }
.reset {
  align-self: flex-start;
  height: 36px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--muted-2);
  font-size: 14px;
}
.reset:hover { color: var(--ink); }

.try-panel {
  flex: 1 1 420px;
  max-width: 560px;
  height: min(520px, 78vh);
  border-radius: 24px;
  border: 1px solid rgba(240, 224, 216, .1);
  background: linear-gradient(176deg, var(--surface) 0%, var(--bg) 60%, var(--bg-deep) 100%);
  padding: clamp(16px, 2.4vw, 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
/* Older messages scroll off the top behind a fade rather than a hard cut. */
.try-feed {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%);
}

.try-panel .msg-her {
  background: var(--bubble);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 80%;
}
.try-panel .msg-you {
  background: rgba(214, 154, 146, .19);
  border-color: rgba(214, 154, 146, .3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 76%;
  margin: 10px 0;
}
.try-panel .typing {
  background: var(--bubble);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.day-mark {
  align-self: center;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.msg-her.run-on { border-radius: 6px 20px 20px 5px; margin-top: 3px; }

.try-photo {
  align-self: flex-start;
  width: min(260px, 80%);
  aspect-ratio: 26 / 19;
  margin: 4px 0 10px;
  border-radius: 6px 20px 20px 20px;
  animation: rise .35s ease-out;
  --g: linear-gradient(172deg, #2a2a2e 0%, #1c1a1f 52%, #241014 100%);
}
.try-photo::after { display: none; }
.try-photo .ph-caption {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 2;
  color: rgba(240, 224, 216, .7);
}
.try-photo .chips { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
.try-photo .chip { height: 24px; padding: 0 9px; font-size: 12px; border-color: rgba(240, 224, 216, .16); }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  flex-shrink: 0;
}
.status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── pricing ────────────────────────────────────────────────────────────── */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.plan {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.plan.featured {
  background: var(--surface-hi);
  border-color: rgba(214, 154, 146, .45);
}
.plan .flag {
  position: absolute;
  right: 24px; top: 24px;
  height: 26px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.plan .tier {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.plan.featured .tier { color: var(--accent); }
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.plan .price b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 4.6vw, 52px);
  line-height: 1.08;
  color: var(--ink);
}
.plan .price span { font-size: 16px; color: var(--muted-2); }
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.plan.featured ul { color: var(--ink); }
.plan .go {
  margin-top: auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid var(--line-3);
  color: var(--ink);
  font-size: 16px;
  transition: border-color .2s ease, background .2s ease;
}
.plan .go:hover { border-color: var(--ink); color: var(--ink); }
.plan .go.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.plan .go.solid:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }

.credit-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.credit {
  padding: 24px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.credit.best {
  border-color: var(--accent-line);
  background: rgba(214, 154, 146, .06);
}
.credit .k {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
}
.credit.best .k { color: var(--accent); }
.credit .v {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  margin-top: 4px;
}
.credit .amt { font-size: 20px; color: var(--ink); }
.credit.note {
  font-size: 15px;
  line-height: 1.47;
  color: var(--muted-2);
}

/* ─── safety ─────────────────────────────────────────────────────────────── */

.safe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.safe {
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.safe b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.23;
  color: var(--ink);
}
.safe span {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* ─── faq ────────────────────────────────────────────────────────────────── */

.faq-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 64px);
}
.faq-intro { flex: 0 1 360px; display: flex; flex-direction: column; gap: 16px; }
.faq-intro p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted-2); }
.faq-list { flex: 1 1 520px; display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid rgba(240, 224, 216, .1); }
.faq-q {
  width: 100%;
  min-height: 72px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.25;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(214, 154, 146, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  transition: transform .25s ease;
}
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a {
  padding: 0 clamp(0px, 5vw, 56px) 26px 0;
  font-size: 17px;
  line-height: 1.59;
  font-weight: 300;
  color: var(--muted);
  text-wrap: pretty;
  animation: rise .3s ease-out;
}

/* ─── closing ────────────────────────────────────────────────────────────── */

.closing { position: relative; overflow: hidden; background: var(--bg); }
.closing .halo {
  position: absolute;
  left: 50%; bottom: -300px;
  width: 1000px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(214, 154, 146, .16), rgba(214, 154, 146, 0) 68%);
  pointer-events: none;
}
.closing .wrap {
  position: relative;
  padding-top: clamp(88px, 11vw, 140px);
  padding-bottom: clamp(88px, 11vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.closing h2 {
  max-width: 820px;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.09;
}
.closing .lede { max-width: 520px; }
.closing .cta-row { justify-content: center; }
.closing .btn-ghost { background: transparent; border-color: var(--line-3); }
.closing .mark-apple, .closing .mark-play { color: var(--muted); }

/* ─── footer ─────────────────────────────────────────────────────────────── */

footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.foot-brand { display: flex; align-items: center; gap: 20px; }
.foot-brand .logo { font-size: 20px; }
.age {
  height: 22px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  border: 1px solid var(--line-3);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.foot-links { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--muted-2); }
.foot-legal { font-size: 13px; color: var(--faint); }
