/*
 * Furtiva — warm, quiet, private.
 *
 * Design language: a porcelain / sand ground, one muted plum accent, an
 * editorial serif for display (Fraunces), a neutral grotesque for UI (Inter)
 * and a handwriting face for the asides (Caveat). Photography is illustration:
 * the two sunset scenes in /scenes stand in for the couple-at-dusk imagery the
 * brand is built around, so nothing depends on stock assets.
 *
 * Layout: a single `.wrap` column (1180px) with full-bleed bands — the sender
 * app stays a focused two-pane card (media + enforced limits), the marketing
 * sections breathe and stack on phones.
 */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --ground: #f8f2ed;
  --ground-2: #f2e8e1;
  --card: #fffdfb;
  --card-soft: #fbf5f2;
  --ink: #2b1a22;
  --ink-soft: #6b5560;
  --ink-faint: #9a8891;
  --plum: #7d4a5d;
  --plum-deep: #5e3546;
  --plum-soft: #ecdfe4;
  --plum-softer: #f7eef1;
  --sand: #e6d6c6;
  --line: #e8dbd6;
  --line-strong: #dcc9c3;
  --danger: #b0403f;
  --night: #160f16;
  --night-2: #241726;
  --btn-bg: #7d4a5d;
  --btn-ink: #fff8f5;
  --btn-bg-hover: #6a3d4e;
  --shadow-1: 0 1px 2px rgba(70, 40, 50, 0.05), 0 6px 20px rgba(70, 40, 50, 0.06);
  --shadow-2: 0 2px 6px rgba(70, 40, 50, 0.06), 0 22px 56px rgba(70, 40, 50, 0.12);
  --shadow-3: 0 30px 80px rgba(20, 10, 18, 0.35);
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --tap: 48px;
  --nav-h: 68px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.5, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #140f14;
    --ground-2: #1b1319;
    --card: #201720;
    --card-soft: #271c26;
    --ink: #f5eaee;
    --ink-soft: #c2a4ae;
    --ink-faint: #8f7681;
    --plum: #d5a2b1;
    --plum-deep: #e6bcc8;
    --plum-soft: rgba(213, 162, 177, 0.16);
    --plum-softer: rgba(213, 162, 177, 0.08);
    --sand: #3a2a2f;
    --line: rgba(236, 223, 228, 0.14);
    --line-strong: rgba(236, 223, 228, 0.24);
    --danger: #ef8f8f;
    --night: #0f0a10;
    --night-2: #1a111a;
    --btn-bg: #d3a0af;
    --btn-ink: #2a141c;
    --btn-bg-hover: #e0adb9;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 22px 56px rgba(0, 0, 0, 0.5);
  }
}

/* ── Base ────────────────────────────────────────────────────────────────── */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--ground);
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--plum-soft);
}

img,
video,
svg {
  max-width: 100%;
}

button {
  touch-action: manipulation;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--plum-deep);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  z-index: 60;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Decorative ground: two soft plum/sand glows pinned to the viewport. */
.aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aura::before,
.aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.aura::before {
  width: 62vmax;
  height: 62vmax;
  left: -26vmax;
  top: -34vmax;
  background: radial-gradient(circle, #f0d9dd 0%, transparent 66%);
}
.aura::after {
  width: 54vmax;
  height: 54vmax;
  right: -26vmax;
  top: -6vmax;
  background: radial-gradient(circle, #efe0cd 0%, transparent 66%);
}
@media (prefers-color-scheme: dark) {
  .aura::before,
  .aura::after {
    opacity: 0.16;
  }
}

/* Layout primitives */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.section,
.band {
  scroll-margin-top: calc(var(--nav-h) + 0.5rem);
}
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 0.9rem;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0.9rem 0 0;
  max-width: 40rem;
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */

.topbar {
  --nav-fg: var(--ink);
  --nav-fg-soft: var(--ink-soft);
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--nav-fg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: color-mix(in srgb, var(--ground) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--nav-fg);
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  color: var(--plum);
}
body.landing .topbar:not(.is-scrolled) .brand-mark {
  color: #f0c3b6;
}
.brand-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.34rem;
  letter-spacing: -0.005em;
}
.brand-tag {
  color: var(--nav-fg-soft);
  font-size: 0.84rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-fg-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--nav-fg);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}
.topbar-links + .topbar-actions {
  margin-left: 0;
}
.lang-picker {
  flex: none;
  display: flex;
}
.lang-select {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--nav-fg-soft);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--nav-fg-soft) 35%, transparent);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  min-height: 36px;
  cursor: pointer;
}
.lang-select option {
  color: #2b1a22;
}
/* Static language switcher on the generated content pages (no JS there). */
.lang-switch {
  flex: none;
  display: inline-flex;
  gap: 0.1rem;
  margin-left: auto;
}
.lang-switch a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--nav-fg-soft);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.lang-switch a:hover {
  color: var(--nav-fg);
}
.lang-switch a[aria-current="page"] {
  color: var(--nav-fg);
  border-color: color-mix(in srgb, var(--nav-fg-soft) 40%, transparent);
}
@media (max-width: 860px) {
  .topbar-links {
    display: none;
  }
}
@media (max-width: 620px) {
  .brand-tag {
    display: none;
  }
  .topbar-inner {
    gap: 0.8rem;
  }
}
/* Narrow phones: tighten the bar so brand + language + CTA stay on one line. */
@media (max-width: 400px) {
  .topbar-inner {
    gap: 0.5rem;
    padding-inline: 0.9rem;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .lang-select {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    min-height: 32px;
  }
  .btn-sm {
    font-size: 0.84rem;
    padding: 0.45rem 0.85rem;
  }
}
@media (max-width: 340px) {
  /* Keep the leaf; the language picker and CTA matter more than the wordmark. */
  .brand-name {
    display: none;
  }
}

/* Landing page: the bar floats over the hero photograph. */
body.landing .topbar {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
  --nav-fg: #fdf7f3;
  --nav-fg-soft: rgba(253, 247, 243, 0.82);
}
body.landing .topbar.is-scrolled {
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  border-bottom-color: var(--line);
  --nav-fg: var(--ink);
  --nav-fg-soft: var(--ink-soft);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: var(--tap);
  padding: 0.78rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition:
    transform 0.18s var(--ease-spring),
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}
.btn:active {
  transform: scale(0.975);
}
.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-primary {
  color: var(--btn-ink);
  background: var(--btn-bg);
  box-shadow: 0 10px 24px rgba(94, 53, 70, 0.22);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--btn-bg-hover);
    box-shadow: 0 14px 30px rgba(94, 53, 70, 0.26);
  }
}

.btn-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}
@media (hover: hover) {
  .btn-outline:hover {
    border-color: var(--plum);
    color: var(--plum-deep);
  }
}

.btn-soft {
  color: var(--plum-deep);
  background: var(--plum-soft);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}

.btn-ghost {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  min-height: var(--tap);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 999px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    color: var(--ink);
    background: var(--plum-softer);
  }
}

.link-danger {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
}
.link-danger:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 940px);
  color: #fdf7f3;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/scenes/dusk.svg") center 32% / cover no-repeat;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 10, 16, 0.5) 0%, rgba(18, 10, 16, 0.1) 34%, rgba(18, 10, 16, 0.72) 100%),
    linear-gradient(94deg, rgba(18, 10, 16, 0.66) 0%, rgba(18, 10, 16, 0.24) 46%, rgba(18, 10, 16, 0) 78%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-top: calc(var(--nav-h) + 4.5rem);
  padding-bottom: clamp(2.4rem, 6vw, 4rem);
}
.hero-title {
  font-size: clamp(2.5rem, 6.6vw, 4.5rem);
  line-height: 1.04;
  margin: 0;
  max-width: 20ch;
  text-shadow: 0 2px 30px rgba(20, 8, 16, 0.35);
}
.hero-kicker {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 1.5vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230, 188, 200, 0.95);
  margin-bottom: 0.7rem;
}
.hero-line {
  display: block;
}
.hero-sub {
  margin: clamp(1.1rem, 3vw, 1.6rem) 0 0;
  max-width: 33rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.62;
  color: rgba(253, 247, 243, 0.88);
}
.hero-actions {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.hero-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(253, 247, 243, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(253, 247, 243, 0.45);
  text-underline-offset: 0.25em;
  padding: 0.5rem 0.4rem;
}
@media (hover: hover) {
  .hero-link:hover {
    color: #fff;
    text-decoration-color: currentColor;
  }
}
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  padding: 0;
  margin: clamp(2rem, 7vw, 4rem) 0 0;
  font-size: 0.83rem;
  color: rgba(253, 247, 243, 0.78);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(253, 247, 243, 0.45);
}
.hero-trust svg {
  width: 17px;
  height: 17px;
  color: #eec3b4;
}
.hero-note {
  position: absolute;
  right: clamp(1.4rem, 7vw, 8rem);
  bottom: 30%;
  max-width: 12rem;
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.25;
  color: #fae6da;
  text-align: right;
  transform: rotate(-4deg);
  opacity: 0.94;
  text-shadow: 0 2px 18px rgba(20, 8, 16, 0.5);
}
.hero-note svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -3px;
  color: #f2a8a2;
}
@media (max-width: 900px) {
  .hero-note {
    display: none;
  }
  .hero {
    min-height: 88svh;
  }
}
@media (max-width: 700px) {
  /* Phones get the portrait crop — the couple stays in frame next to the copy. */
  .hero-bg {
    background-image: url("/scenes/dusk-portrait.svg");
    background-position: center 42%;
  }
  /* One guarantee per line reads better than a separator stranded at a wrap. */
  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .hero-trust li + li::before {
    display: none;
  }
}

/* ── Sender app ──────────────────────────────────────────────────────────── */

.app-section {
  background: var(--ground);
  scroll-margin-top: var(--nav-h);
}
.composer-wrap {
  padding-top: clamp(2.2rem, 5vw, 3.6rem);
}
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}
@media (max-width: 880px) {
  .composer {
    grid-template-columns: minmax(0, 1fr);
  }
}
.composer-main {
  min-width: 0;
}

.state {
  animation: state-in 0.45s var(--ease-out) both;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
@keyframes state-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Side panel: the limits the sender picks for this share (enforced by the engine). */
.composer-side {
  background: var(--plum-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(0.9rem, 2.4vw, 1.3rem);
  align-self: start;
}
.composer-side-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.9rem;
}
.limit-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.limit-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
  font-size: 0.86rem;
}
.limit-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum-soft);
  color: var(--plum-deep);
}
.limit-icon svg {
  width: 16px;
  height: 16px;
}
.limit-label {
  color: var(--ink-soft);
}
.limit-value {
  margin-left: auto;
  font-weight: 600;
  text-align: right;
}
fieldset.limit-rows {
  border: 0;
  min-width: 0;
}
fieldset.limit-rows:disabled .choice {
  cursor: default;
}
.limit-row-choice {
  flex-wrap: wrap;
  row-gap: 0.55rem;
}
.choice-group {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}
.choice span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0.3rem 0.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.choice input:checked + span {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}
@media (hover: hover) {
  .choice:hover input:not(:checked):not(:disabled) + span {
    border-color: var(--plum);
    color: var(--plum-deep);
  }
}
fieldset.limit-rows:disabled .choice input:not(:checked) + span {
  opacity: 0.55;
}
.policy-summary {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
}
.policy-summary strong {
  color: var(--plum-deep);
}
.composer-side-note {
  margin: 0.95rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* Pick state */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-m);
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--plum-soft) 70%, transparent) 0%, transparent 70%), var(--card-soft);
  padding: clamp(1.8rem, 6vw, 3rem) 1.3rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  border-color: var(--plum);
  outline: none;
}
.dropzone.dragover {
  background: var(--plum-soft);
}
.dropzone-emoji {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--plum-soft);
  color: var(--plum-deep);
  font-size: 1.7rem;
}
.dropzone-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0.9rem 0 0.3rem;
}
.dropzone-sub {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0;
}
.pick-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
@media (max-width: 520px) {
  /* Two columns leave the longer label clipped on a phone — stack instead. */
  .pick-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pick-hint {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin: 0.9rem 0 0;
}

/* Preview state */
.media-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--card-soft);
  border: 1px solid var(--line);
}
.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  max-height: min(56dvh, 520px);
  object-fit: contain;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.media-frame img[hidden],
.media-frame video[hidden] {
  display: none;
}

/* Snapchat-style caption painted over the preview media. */
.media-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(0.7rem, 3vw, 1.2rem);
  transform: translateX(-50%);
  max-width: min(92%, 26rem);
  padding: 0.42rem 0.9rem;
  border-radius: 12px;
  background: rgba(22, 12, 17, 0.58);
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.9rem, 3.4vw, 1.05rem);
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  overflow-wrap: anywhere;
  pointer-events: none;
}
.media-caption[hidden] {
  display: none;
}

.caption-field {
  margin-top: 0.85rem;
}
.caption-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0.1rem 0.35rem;
}
.caption-row {
  position: relative;
  display: flex;
}
.caption-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.6rem 3.4rem 0.6rem 1rem;
  min-height: var(--tap);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card-soft);
  color-scheme: light dark;
}
.caption-input:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
}
.caption-input::placeholder {
  color: var(--ink-faint);
}
.caption-count {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  pointer-events: none;
}

.preview-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.7rem 0.1rem 0.2rem;
}
.preview-name {
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.preview-size {
  flex: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.progress {
  margin-top: 0.8rem;
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--plum-soft);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--plum) 0%, #c98a94 100%);
  transition: width 0.25s var(--ease-out);
}
.progress-label {
  display: block;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.status {
  min-height: 1.5em;
  text-align: center;
  color: var(--plum-deep);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.7rem 0 0;
}
.status.error {
  color: var(--danger);
}

.preview-actions {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

/* Done state */
.done {
  text-align: center;
}
.done-badge {
  width: 60px;
  height: 60px;
  margin: 0.3rem auto 0.9rem;
  display: grid;
  place-items: center;
  color: var(--plum-deep);
  background: var(--plum-soft);
  border-radius: 50%;
  animation: pop 0.55s var(--ease-spring) both;
}
.done-badge svg {
  width: 28px;
  height: 28px;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.done-title {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}
.done-sub {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0 auto 1.2rem;
  max-width: 26rem;
}
.done-sub strong {
  color: var(--plum-deep);
}
.done-actions {
  display: grid;
  gap: 0.6rem;
}
.link-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.link-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.6rem 1rem;
  min-height: var(--tap);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card-soft);
  color-scheme: light dark;
}
.link-row input:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
}
.done-preview-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  min-height: 44px;
  line-height: 36px;
}
@media (hover: hover) {
  .done-preview-link:hover {
    color: var(--plum-deep);
    text-decoration: underline;
  }
}
.unsend-row {
  margin-top: 0.4rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.4rem;
}

/* ── History ─────────────────────────────────────────────────────────────── */

.history {
  margin-top: clamp(2rem, 5vw, 3rem);
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.history-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  padding: 0.65rem 0.75rem;
  animation: state-in 0.35s var(--ease-out) both;
}
.history-list.no-anim .history-item {
  animation: none;
}
.history-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--plum-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.history-body {
  flex: 1;
  min-width: 0;
}
.history-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-meta {
  display: block;
  color: var(--ink-faint);
  font-size: 0.78rem;
}
.history-meta .countdown {
  color: var(--plum-deep);
}
.history-meta .closed {
  color: var(--danger);
}
.history-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.history-actions .btn-soft {
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  text-decoration: none;
}
.history-actions .btn-ghost {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
}

/* ── Features ────────────────────────────────────────────────────────────── */

.features {
  background: var(--ground);
}
.features-head {
  max-width: 36rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.4vw, 2.6rem) clamp(1.4rem, 4vw, 3.2rem);
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum-soft);
  color: var(--plum-deep);
  border: 1px solid color-mix(in srgb, var(--plum) 16%, transparent);
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.4rem;
}
.feature p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* ── How it works ────────────────────────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.how-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  display: grid;
  gap: 1.1rem;
}
.how-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.how-steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.05rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--plum-deep);
  background: var(--plum-soft);
  border-radius: 50%;
}
.how-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding-top: 0.45rem;
}
.how-steps strong {
  font-size: 0.99rem;
  font-weight: 600;
  line-height: 1.35;
}
.how-step-body span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ── Phone mockups (decorative) ──────────────────────────────────────────── */

.phone {
  position: relative;
  width: min(310px, 80vw);
  margin-inline: auto;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #241726 0%, #120c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    var(--shadow-3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  border-radius: 999px;
  background: #0b070c;
  z-index: 3;
}
.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  background: var(--night);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.phone-shot {
  position: absolute;
  inset: 0;
  /* Fit the portrait scene by width and lift it so the sun, ridges and the top
     of the couple stay in the strip of photo left visible above the sheet.
     The fallback colour matches the scene's foreground so any seam vanishes. */
  background-image: url("/scenes/dusk-portrait.svg");
  background-size: 100% auto;
  background-position: center -64px;
  background-repeat: no-repeat;
  background-color: #120c13;
}
.phone-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 10, 16, 0.15) 0%, rgba(18, 10, 16, 0.05) 40%, rgba(18, 10, 16, 0.55) 100%);
}
.phone-statusbar {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 250, 247, 0.92);
}
.phone-ui {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 26px 26px 0 0;
  padding: 1rem 0.9rem 1.2rem;
  color: var(--ink);
}
.phone-ui .limit-row {
  background: color-mix(in srgb, var(--card-soft) 90%, transparent);
}
.phone-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: var(--card-soft);
  border: 1px dashed var(--line-strong);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.phone-link-row strong {
  color: var(--ink);
  font-weight: 600;
}
.phone-caption {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin: 1.2rem 0 0;
}

/* Expired-link phone: the recipient's "gone" screen. */
.phone-expired .phone-shot {
  background-size: cover;
  background-position: center 58%;
}
.phone-expired .phone-ui {
  margin: auto 0.9rem;
  border-radius: 24px;
  text-align: center;
  padding: 1.4rem 1.1rem;
  background: color-mix(in srgb, var(--card) 92%, transparent);
}
.phone-lock {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum-soft);
  color: var(--plum-deep);
}
.phone-lock svg {
  width: 22px;
  height: 22px;
}
.phone-expired h3 {
  font-size: 1.24rem;
  margin: 0 0 0.4rem;
}
.phone-expired p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin: 0 0 1rem;
}
.phone-cta {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum-deep);
  font-weight: 600;
  font-size: 0.86rem;
}

/* ── Bands ───────────────────────────────────────────────────────────────── */

.band {
  position: relative;
  padding-block: clamp(3.4rem, 8vw, 6.5rem);
}
.band-dark {
  background: var(--night);
  color: #f7eef1;
}
.band-dark .eyebrow {
  color: #ddaebb;
}
.band-dark .section-title,
.band-dark h2,
.band-dark h3 {
  color: #fbf4f6;
}
.band-dark p {
  color: rgba(247, 238, 241, 0.8);
}
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .band-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.band-copy .section-title {
  max-width: 18ch;
}
.band-copy p {
  max-width: 34rem;
}

/* Chat-style notification demo (decorative). */
.chat-demo {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: url("/scenes/dusk.svg") center / cover no-repeat;
  box-shadow: var(--shadow-3);
}
.chat-card {
  position: absolute;
  left: clamp(0.9rem, 5%, 1.7rem);
  top: clamp(1rem, 7%, 1.7rem);
  width: min(88%, 340px);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.75rem;
  background: rgba(255, 253, 252, 0.96);
  color: #2b1a22;
  border-radius: 20px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 20px 50px rgba(12, 6, 12, 0.4);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum-soft);
  color: var(--plum-deep);
  font-weight: 600;
  font-size: 0.9rem;
}
.chat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.chat-top strong {
  font-size: 0.9rem;
}
.chat-time {
  font-size: 0.74rem;
  color: #9a8891;
}
.chat-text {
  font-size: 0.86rem;
  margin: 0.1rem 0 0.6rem;
}
/* `.band-dark p` would otherwise repaint this light card's copy. */
.chat-card .chat-text,
.chat-card .chat-meta {
  color: #6b5560;
}
.chat-card .chat-time {
  color: #9a8891;
}
.chat-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 14px;
  background: #fbf5f2;
  border: 1px solid #e8dbd6;
}
.chat-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  background: url("/scenes/dusk-portrait.svg") center 35% / cover no-repeat;
}
.chat-pill-text {
  min-width: 0;
}
.chat-link {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2b1a22;
}
.chat-meta {
  font-size: 0.74rem;
}
.band-note {
  font-family: var(--font-hand);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: #e9b7bd;
  margin: 1.4rem 0 0;
  transform: rotate(-3deg);
}
.band-note svg {
  width: 20px;
  height: 20px;
  vertical-align: -3px;
  color: #f2a8a2;
}

/* Privacy band: full-bleed scene with the guarantee row. */
.band-scene {
  color: #f8eff2;
  background:
    linear-gradient(180deg, rgba(16, 9, 15, 0.82) 0%, rgba(16, 9, 15, 0.7) 45%, rgba(16, 9, 15, 0.92) 100%),
    url("/scenes/dusk.svg") center 54% / cover no-repeat;
}
.band-scene .eyebrow {
  color: #ddaebb;
}
.band-scene .section-title {
  color: #fdf7f8;
  max-width: 22ch;
}
.band-scene .band-copy p {
  color: rgba(248, 239, 242, 0.84);
}
.badge-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: 0;
  margin: clamp(2.4rem, 6vw, 4rem) 0 0;
}
@media (max-width: 780px) {
  .badge-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }
}
.badge-row li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.badge-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f0cbbb;
}
.badge-icon svg {
  width: 19px;
  height: 19px;
}
.badge-row strong {
  display: block;
  font-size: 0.95rem;
  color: #fdf7f8;
  margin-bottom: 0.1rem;
}
.badge-row span {
  font-size: 0.86rem;
  color: rgba(248, 239, 242, 0.74);
}

/* Closing band: the expired link + the brand lockup. */
.band-expired {
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(125, 74, 93, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #f7eef1;
}
.expired-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .expired-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fdf7f3;
  margin-bottom: 1rem;
}
.brand-lockup svg {
  width: 30px;
  height: 30px;
  color: #e9b7bd;
}
.brand-lockup span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}
.expired-copy p {
  color: rgba(247, 238, 241, 0.82);
  font-size: 1.05rem;
  max-width: 26rem;
  margin: 0 0 1.6rem;
}
.expired-copy .band-note {
  margin-top: 1.8rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  min-height: var(--tap);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--plum);
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.93rem;
  margin: 0 0 1.2rem;
  max-width: 46rem;
}

/* ── Localized landing pages: CTA + guides teaser ────────────────────────── */

.cta-block {
  text-align: center;
  background: var(--plum-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.5rem);
}
.cta-block .btn {
  margin-top: 1.4rem;
  min-width: min(320px, 90%);
}
.guides-teaser {
  text-align: center;
}
.guides-teaser-text {
  color: var(--ink-soft);
  margin: 0.8rem auto 1.2rem;
  max-width: 38rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ground-2);
  border-top: 1px solid var(--line);
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-brand svg {
  width: 24px;
  height: 24px;
  color: var(--plum);
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
}
.footer-tag {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--plum);
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.8rem 2rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.footer-col h3 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.7rem;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.2rem 0;
}
.footer-col a:hover {
  color: var(--plum-deep);
}
.footer-legal {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 2.6rem);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-legal p {
  margin: 0;
}
.footer-legal a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--plum-deep);
  text-decoration: underline;
}

/* ── Recipient view page (/p/…) ──────────────────────────────────────────── */

.view-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(125, 74, 93, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #f7eef1;
}
.view-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem auto 0.9rem;
  padding: 0 1rem;
  color: #e9b7bd;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.view-brand svg {
  width: 20px;
  height: 20px;
}
.view-media {
  position: relative;
  margin: 0;
  max-width: 860px;
  width: 100%;
  margin-inline: auto;
  padding: 0 max(0.6rem, env(safe-area-inset-left)) 0 max(0.6rem, env(safe-area-inset-right));
}
.view-media img,
.view-media video {
  display: block;
  width: 100%;
  max-height: min(74dvh, 760px);
  object-fit: contain;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  background: rgba(255, 255, 255, 0.04);
}
.view-media img[hidden],
.view-media video[hidden] {
  display: none;
}
.view-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(2.2rem, 5vw, 2.8rem);
  transform: translateX(-50%);
  margin: 0;
  max-width: min(92%, 36rem);
  padding: 0.5rem 1rem;
  border-radius: 14px;
  background: rgba(20, 10, 16, 0.62);
  color: #fff;
  font-weight: 600;
  font-size: clamp(1rem, 3.8vw, 1.25rem);
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
  pointer-events: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.view-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  max-width: 620px;
  width: calc(100% - 2rem);
  margin: -18px auto 2.5rem;
  position: relative;
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.2rem, 3vw, 1.8rem);
  text-align: center;
}
.view-title {
  font-size: clamp(1.5rem, 4.4vw, 1.9rem);
  margin: 0 0 0.5rem;
}
.view-sub {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 auto 1.2rem;
  max-width: 27rem;
}
.view-sub strong {
  color: var(--ink);
}
.view-limits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: -0.4rem 0 1.1rem;
}
.view-limits span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum-deep);
  font-size: 0.85rem;
  font-weight: 600;
}
.view-note {
  background: var(--plum-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  text-align: left;
  line-height: 1.6;
}
.view-note p {
  margin: 0 0 0.5rem;
}
.view-note p:last-child {
  margin-bottom: 0;
}
.view-note strong {
  color: var(--plum-deep);
}
.view-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  min-height: var(--tap);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  color: var(--btn-ink);
  background: var(--btn-bg);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(94, 53, 70, 0.24);
}
@media (hover: hover) {
  .view-cta:hover {
    transform: translateY(-1px);
  }
}
.view-report {
  margin: 1.1rem 0 0;
  color: var(--ink-faint);
  font-size: 0.83rem;
}
.view-report a {
  color: var(--plum-deep);
  font-weight: 600;
}

/* Gone / not-found pages: the moment has passed. */
.gone .view-card {
  margin-top: clamp(3rem, 14vh, 8rem);
}
.gone-emoji {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--plum-soft);
  color: var(--plum-deep);
}
.gone-emoji svg {
  width: 26px;
  height: 26px;
}

/* ── Legal + guide pages ─────────────────────────────────────────────────── */

.legal-page {
  padding-bottom: 3rem;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  max-width: 760px;
  margin: clamp(1.4rem, 4vw, 2.4rem) auto;
  padding: clamp(1.4rem, 4.5vw, 2.2rem) clamp(1.1rem, 4vw, 1.8rem);
}
.legal-card h1 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  text-align: center;
  margin: 0 0 0.6rem;
}
.legal-card h2 {
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  margin: 2.4rem 0 0.8rem;
}
.legal-card h3 {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 1.5rem 0 0.5rem;
  color: var(--plum-deep);
}
.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.96rem;
}
.legal-card ul,
.legal-card ol {
  padding-left: 1.3rem;
  margin: 0.6rem 0;
}
.legal-card li {
  margin-bottom: 0.55rem;
}
.legal-card li strong,
.legal-card p strong {
  color: var(--ink);
}
.legal-card a {
  color: var(--plum-deep);
}
.legal-box {
  background: var(--plum-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.3rem;
  margin: 1rem 0;
}
.legal-box p,
.legal-box li {
  color: var(--ink);
}
.legal-meta {
  border-top: 1px solid var(--line);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.legal-back {
  display: block;
  text-align: center;
  color: var(--plum-deep);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.6rem;
  padding: 0.5rem;
  font-size: 0.9rem;
}
.legal-back:hover {
  text-decoration: underline;
}
.legal-byline {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin: -0.2rem 0 1.8rem;
}
.guide-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 1.1rem;
}
.guide-list li {
  margin: 0;
}
.guide-list a {
  font-weight: 600;
  color: var(--plum-deep);
  text-decoration: none;
  font-size: 1rem;
}
.guide-list a:hover {
  text-decoration: underline;
}
.guide-list p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

/* Guide content: bylines, tables, diagrams, sources (E-E-A-T + data) */
.legal-byline a {
  color: var(--plum-deep);
  font-weight: 600;
  text-decoration: none;
}
.legal-byline a:hover {
  text-decoration: underline;
}
.legal-byline time {
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.88rem;
}
.table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 0.7rem 0.9rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.table-wrap th,
.table-wrap td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table-wrap thead th {
  background: var(--plum-softer);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap tbody th {
  color: var(--ink);
  font-weight: 600;
}
.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}
.table-wrap a {
  color: var(--plum-deep);
}

.compare-figure {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card-soft);
}
.compare-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.compare-figure figcaption strong {
  color: var(--ink);
}
.cf-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.cf-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr 11rem;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
}
.cf-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.cf-track {
  display: block;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--plum-soft);
  overflow: hidden;
}
.cf-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #c98a94;
}
.cf-good .cf-bar {
  background: #4f8b6b;
}
.cf-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.guide-sources {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.guide-sources h2 {
  font-size: 1.02rem;
  margin: 0 0 0.5rem;
}
.guide-sources ul {
  padding-left: 1.1rem;
  margin: 0;
}
.guide-sources li {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.guide-sources a {
  color: var(--plum-deep);
}

@media (max-width: 600px) {
  .cf-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .cf-track {
    display: none;
  }
}

/* ── Motion preferences ──────────────────────────────────────────────────── */

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