/*
 * Capsule design system.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/bricolage-grotesque-500-bdd77459.ttf") format("truetype");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/bricolage-grotesque-700-ad26a368.ttf") format("truetype");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/bricolage-grotesque-800-3df5f0ef.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #171611;
  --ink-soft: #2a2820;
  --muted: #6d675c;
  --panel: #fffdf7;
  --paper: #f6f1e6;
  --paper-warm: #efe7d4;
  --ivory: #fbf7ec;
  --line: #ddd5c6;
  --line-soft: #ece4d2;
  --accent: #ffd23f;
  --champagne: #e7c98a;
  --champagne-soft: #f5e7c4;
  --rose: #e8b8b0;
  --sage: #b8c3a8;
  --navy: #1f2a44;
  --field: #fff;
  --field-soft: #fffaf0;
  --media: #fff;
  --backdrop: rgb(23 22 17 / 88%);
  --badge-blue: #dbe8ff;
  --badge-green: #ddf5e5;
  --badge-amber: #fff0cc;
  --badge-red: #ffe0df;
  --notice: #ddf5e5;
  --alert: #ffe0df;
  --danger-ink: #fff;
  --photo-shadow: 0 10px 0 rgb(23 22 17 / 16%);
  --green: #24a148;
  --teal: #00a6a6;
  --blue: #2563eb;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 22px 70px rgb(23 22 17 / 18%);
  --soft-shadow: 0 18px 40px rgb(23 22 17 / 8%);
  --hard-shadow: 0 5px 0 #171611;
  --serif: "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8f0df;
  --ink-soft: #ece1c9;
  --muted: #c7bba7;
  --panel: #211e19;
  --paper: #15130f;
  --paper-warm: #1e1a13;
  --ivory: #1c1812;
  --line: #4a4034;
  --line-soft: #3a3127;
  --accent: #ffd65a;
  --champagne: #d8b773;
  --champagne-soft: #4a3c22;
  --rose: #b58680;
  --sage: #8a9879;
  --navy: #cfd6e8;
  --field: #15130f;
  --field-soft: #252019;
  --media: #2b251e;
  --backdrop: rgb(5 5 4 / 90%);
  --badge-blue: #17355f;
  --badge-green: #173d2b;
  --badge-amber: #4a3510;
  --badge-red: #55221f;
  --notice: #173d2b;
  --alert: #55221f;
  --danger-ink: #fff5ed;
  --photo-shadow: 0 10px 0 rgb(0 0 0 / 32%);
  --green: #58d17b;
  --teal: #37d6d2;
  --blue: #8db8ff;
  --amber: #ffc65a;
  --orange: #ff9b5c;
  --red: #ff6b5f;
  --shadow: 0 22px 70px rgb(0 0 0 / 40%);
  --hard-shadow: 0 5px 0 #080705;
}

html {
  background: var(--paper);
  transition: background-color 180ms ease, color 180ms ease;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.button,
button,
input[type="submit"],
.badge,
.filter,
label {
  font-weight: 800;
}

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

.topbar,
.panel,
.card,
.button,
button,
input[type="submit"],
input,
textarea,
select,
.filter,
.badge,
.flash,
.error-list,
.keepsake-scene,
.photo-print,
.letter-card,
.steps article,
.request-panel,
.nav,
.nav-toggle,
.theme-toggle,
.nested-row,
.open-date-group,
.memory-media-thumb,
.media-lightbox-close {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    fill 180ms ease,
    stroke 180ms ease;
}

.topbar-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 68px;
  padding: 0 28px;
  position: relative;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.nav .link-button,
.nav .theme-toggle {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  min-height: 44px;
  padding: 10px 14px;
}

.nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--ink);
  box-shadow: var(--hard-shadow);
}

.theme-toggle {
  background: var(--field-soft);
  box-shadow: none;
  color: var(--ink);
  height: 44px;
  min-height: 44px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 48px;
}

.theme-toggle-icon {
  display: block;
  height: 22px;
  opacity: 1;
  position: absolute;
  transform: rotate(0deg) scale(1);
  transform-origin: center;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
  width: 22px;
}

.theme-toggle-icon path,
.theme-toggle-icon circle {
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle-sun {
  color: var(--accent);
  opacity: 0;
  transform: rotate(-35deg) scale(0.72);
}

.theme-toggle-sun circle,
.theme-toggle-sun path {
  fill: none;
}

.theme-toggle-moon {
  color: var(--ink);
  opacity: 1;
}

html[data-theme="dark"] .theme-toggle {
  background: #3a3022;
  border-color: var(--accent);
}

html[data-theme="dark"] .theme-toggle-moon {
  opacity: 0;
  transform: rotate(35deg) scale(0.72);
}

html[data-theme="dark"] .theme-toggle-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-toggle {
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--hard-shadow);
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 48px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 28px;
}

.page.marketing-shell {
  max-width: none;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.page-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-header h1 {
  font-size: 38px;
  line-height: 1;
  margin: 0 0 8px;
}

.page-header h2,
.panel h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 18px;
}

.stack-tight {
  display: grid;
  gap: 12px;
}

.section-gap {
  margin-top: 18px;
}

.narrow-panel {
  margin: 42px auto;
  max-width: 640px;
}

.auth-panel {
  margin: 42px auto;
  max-width: 460px;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.object-card {
  border: 2px solid var(--ink);
  box-shadow: var(--hard-shadow);
}

.stat {
  display: grid;
  gap: 4px;
}

.stat strong {
  font-size: 36px;
  line-height: 1;
}

.stat span,
.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  align-items: center;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--hard-shadow);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
}

.button.secondary,
button.secondary,
input.secondary {
  background: var(--panel);
  color: var(--ink);
}

.button.danger,
button.danger,
.danger {
  background: var(--red);
  color: var(--danger-ink);
}

.link-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  min-height: auto;
  padding: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter,
.badge {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
}

.filter {
  background: var(--panel);
  color: var(--ink);
  min-height: 38px;
  padding: 7px 12px;
}

.filter.active {
  background: var(--accent);
  box-shadow: var(--hard-shadow);
}

.badge {
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  padding: 4px 9px;
}

.badge-muted {
  background: var(--paper);
}

.badge-blue {
  background: var(--badge-blue);
}

.badge-green {
  background: var(--badge-green);
}

.badge-amber {
  background: var(--badge-amber);
}

.badge-red {
  background: var(--badge-red);
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label {
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="url"],
textarea,
select {
  appearance: none;
  background: var(--field);
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

input[type="file"] {
  background: var(--field);
  border: 2px dashed var(--ink);
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
  padding: 10px;
  width: 100%;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 58px;
}

.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: var(--ink);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 0;
  width: 48px;
}

.password-toggle svg {
  display: block;
  height: 21px;
  width: 21px;
}

.password-toggle .eye-lid,
.password-toggle .eye-iris {
  transform-origin: 12px 12px;
  transition: opacity 140ms ease, transform 140ms ease;
}

.password-toggle .eye-iris {
  opacity: 0;
  transform: scaleY(0.15);
}

.password-toggle .eye-lid {
  opacity: 1;
  transform: scaleY(1);
}

.password-toggle[aria-pressed="true"] .eye-iris {
  opacity: 1;
  transform: scaleY(1);
}

.password-toggle[aria-pressed="true"] .eye-lid {
  opacity: 0;
  transform: scaleY(0.15);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.open-date-group {
  background: var(--field-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.nested-list {
  display: grid;
  gap: 14px;
}

.nested-row {
  background: var(--field-soft);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--hard-shadow);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.photo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.photo-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.photo-tile img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-tile label {
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 8px;
  padding: 10px;
}

.memory-media-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.memory-media-gallery {
  margin-top: 12px;
}

.memory-media-thumb {
  aspect-ratio: 1;
  background: var(--media);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.memory-media-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-lightbox {
  background: transparent;
  border: 0;
  height: 100dvh;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 48px 18px 18px;
  width: 100vw;
}

.media-lightbox::backdrop {
  background: var(--backdrop);
}

.media-lightbox img {
  display: block;
  height: 100%;
  margin: 0 auto;
  max-height: calc(100dvh - 66px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.media-lightbox-close {
  background: var(--panel);
  border-radius: 999px;
  font-size: 24px;
  height: 44px;
  line-height: 1;
  padding: 0;
  position: fixed;
  right: 16px;
  top: 12px;
  width: 44px;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flash,
.error-list {
  border: 2px solid var(--ink);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.flash-notice {
  background: var(--notice);
}

.flash-alert,
.error-list {
  background: var(--alert);
}

.error-list ul {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.memory-body {
  white-space: pre-wrap;
}

/* ============================================================
   MARKETING / WEDDING CAPSULE LANDING
   ============================================================ */

.display-serif {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
}

.display-serif em {
  font-style: italic;
}

.marketing-page {
  --section-gap: clamp(56px, 8vw, 112px);
  display: grid;
  gap: var(--section-gap);
  margin: 0 auto;
  max-width: 1320px;
  padding: 8px 0 0;
  width: 100%;
}

.marketing-page,
.marketing-page * {
  min-width: 0;
}

/* Eyebrow */

.eyebrow {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.eyebrow-dot {
  background: var(--champagne);
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.eyebrow-light {
  color: rgb(247 240 223 / 80%);
}

.eyebrow-light .eyebrow-dot {
  background: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 12px;
  max-width: 56ch;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.marketing-hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 6vw, 80px) 0 8px;
  position: relative;
}

.marketing-hero::before {
  background:
    radial-gradient(60% 70% at 80% 30%, rgb(231 201 138 / 28%), transparent 60%),
    radial-gradient(45% 60% at 15% 80%, rgb(232 184 176 / 22%), transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.marketing-copy {
  position: relative;
  z-index: 1;
}

.marketing-copy,
.marketing-section,
.marketing-split,
.request-panel,
.request-form {
  min-width: 0;
}

.marketing-copy h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 14ch;
}

.hero-intro {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-actions .button {
  white-space: normal;
}

.hero-trust {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  margin: 0;
}

.trust-icon {
  color: var(--champagne);
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

/* Hero stage: sign + phone + seal */

.hero-stage {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(231 201 138 / 35%), transparent 60%),
    linear-gradient(155deg, var(--ivory), var(--paper-warm));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  max-width: 460px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero-stage::after {
  background-image: radial-gradient(rgb(23 22 17 / 6%) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

/* Wedding sign card inside the hero stage */

.hero-sign {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 22px 50px rgb(23 22 17 / 14%), 0 2px 0 rgb(23 22 17 / 4%);
  left: 8%;
  padding: 26px 22px 22px;
  position: absolute;
  text-align: center;
  top: 8%;
  transform: rotate(-3.5deg);
  width: 56%;
  z-index: 2;
}

.hero-sign::before,
.hero-sign::after {
  background: var(--champagne-soft);
  border-radius: 999px;
  content: "";
  height: 8px;
  position: absolute;
  top: -4px;
  width: 8px;
}

.hero-sign::before {
  left: 14px;
}

.hero-sign::after {
  right: 14px;
}

.sign-eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.sign-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 10px;
}

.sign-divider {
  align-items: center;
  color: var(--champagne);
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 14px;
  max-width: 140px;
}

.sign-divider span:first-child,
.sign-divider span:last-child {
  background: var(--champagne);
  flex: 1;
  height: 1px;
}

.sign-flourish {
  color: var(--champagne);
  font-size: 14px;
  line-height: 1;
}

.sign-qr {
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 10px;
  width: 84px;
}

.sign-qr .qr-glyph {
  color: var(--ink);
  display: block;
  height: 64px;
  width: 64px;
}

.sign-foot {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

.amp {
  color: var(--champagne);
  font-family: var(--serif);
  font-style: italic;
}

/* Phone mock inside the hero stage */

.hero-phone {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 26px;
  bottom: 6%;
  box-shadow: 0 26px 60px rgb(23 22 17 / 28%), 0 3px 0 rgb(23 22 17 / 8%);
  padding: 10px 10px 14px;
  position: absolute;
  right: 6%;
  transform: rotate(5deg);
  width: 56%;
  z-index: 3;
}

.phone-notch {
  background: #000;
  border-radius: 0 0 12px 12px;
  height: 12px;
  left: 50%;
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  width: 38%;
}

.phone-screen {
  background: var(--panel);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 22px 14px 14px;
}

.phone-eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin: 0;
  text-transform: uppercase;
}

.phone-prompt {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.2;
  margin: 0 0 2px;
}

.phone-textarea {
  background: var(--field-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  padding: 8px 10px;
  position: relative;
}

.phone-textarea p {
  margin: 0;
}

.phone-caret {
  background: var(--ink);
  display: inline-block;
  height: 11px;
  margin-left: 1px;
  vertical-align: -2px;
  width: 1.5px;
  animation: phoneCaret 1s steps(1) infinite;
}

@keyframes phoneCaret {
  50% { opacity: 0; }
}

.phone-attach {
  align-items: center;
  display: flex;
  gap: 8px;
}

.phone-attach-thumb {
  background:
    radial-gradient(circle at 70% 30%, var(--accent) 0 18%, transparent 19%),
    linear-gradient(145deg, var(--rose), var(--champagne) 60%, var(--sage));
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  height: 22px;
  width: 22px;
}

.phone-attach-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.phone-submit {
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  text-align: center;
}

.phone-lock {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

/* Wax seal */

.hero-seal {
  align-items: center;
  background: radial-gradient(circle at 35% 30%, #d75c4a, #8a1f15 75%);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgb(0 0 0 / 26%), inset 0 -4px 8px rgb(0 0 0 / 30%), inset 0 4px 6px rgb(255 255 255 / 18%);
  color: #fff;
  display: flex;
  font-family: var(--serif);
  font-size: 9px;
  font-style: italic;
  height: 86px;
  justify-content: center;
  left: 6%;
  letter-spacing: 0.04em;
  line-height: 1.1;
  position: absolute;
  text-align: center;
  text-transform: lowercase;
  top: 58%;
  transform: rotate(-12deg);
  width: 86px;
  z-index: 4;
}

.seal-ring {
  border: 1px dashed rgb(255 255 255 / 35%);
  border-radius: 999px;
  inset: 6px;
  position: absolute;
}

.seal-text {
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------
   Chip strip
   ---------------------------------------------------------- */

.chip-strip {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: calc(var(--section-gap) * -0.35);
  padding: 22px 4px;
}

.chip-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
}

/* ----------------------------------------------------------
   Problem section
   ---------------------------------------------------------- */

.marketing-problem {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.marketing-problem h2,
.value-head h2,
.how-head h2,
.prompts-head h2,
.qr-copy h2,
.emotional-section h2,
.trust-head h2,
.faq-head h2,
.reserve-copy h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 18px;
}

.problem-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem-list li {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  font-weight: 700;
  gap: 12px;
  padding: 14px 16px;
}

.check {
  background: var(--champagne);
  border-radius: 999px;
  flex-shrink: 0;
  height: 18px;
  position: relative;
  width: 18px;
}

.check::after {
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
  height: 8px;
  left: 6px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 4px;
}

/* ----------------------------------------------------------
   Value section (arrive twice)
   ---------------------------------------------------------- */

.value-section {
  display: grid;
  gap: 40px;
}

.value-head {
  max-width: 60ch;
}

.value-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  padding: 28px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.value-card:hover {
  box-shadow: 0 28px 60px rgb(23 22 17 / 16%);
  transform: translateY(-2px);
}

.value-icon {
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.value-icon svg {
  height: 26px;
  width: 26px;
}

.value-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.value-card p {
  color: var(--muted);
  margin: 0;
}

/* ----------------------------------------------------------
   How it works
   ---------------------------------------------------------- */

.how-section {
  display: grid;
  gap: 40px;
}

.how-head {
  max-width: 56ch;
}

.how-steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.how-steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 22px;
  position: relative;
}

.step-num {
  color: var(--champagne);
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 14px;
}

.how-steps h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px;
}

.how-steps p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ----------------------------------------------------------
   Prompts
   ---------------------------------------------------------- */

.prompts-section {
  display: grid;
  gap: 40px;
}

.prompts-head {
  max-width: 60ch;
}

.prompt-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.prompt-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgb(23 22 17 / 8%);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  padding: 28px 26px 26px;
  position: relative;
  transition: transform 200ms ease;
}

.prompt-card:hover {
  transform: translateY(-2px) rotate(-0.4deg);
}

.prompt-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.prompt-card:nth-child(even) {
  transform: rotate(0.6deg);
}

.prompt-card p {
  margin: 0;
}

.prompt-quote {
  color: var(--champagne);
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  height: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.prompt-card-a { background: var(--panel); }
.prompt-card-b { background: linear-gradient(155deg, var(--ivory), var(--paper-warm)); }
.prompt-card-c { background: var(--panel); }
.prompt-card-d { background: linear-gradient(155deg, var(--paper-warm), var(--ivory)); }
.prompt-card-e { background: var(--panel); }
.prompt-card-f { background: linear-gradient(155deg, var(--ivory), var(--champagne-soft) 140%); }

/* ----------------------------------------------------------
   QR sign section
   ---------------------------------------------------------- */

.qr-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.placement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.placement-list li {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}

.qr-sign {
  align-items: center;
  background: linear-gradient(155deg, var(--ivory), var(--paper-warm));
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 460px;
  padding: 32px;
  position: relative;
}

.qr-sign::before {
  background-image: radial-gradient(rgb(23 22 17 / 6%) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 16px;
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.4;
  pointer-events: none;
  position: absolute;
}

.qr-sign-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 60px rgb(23 22 17 / 16%), 0 3px 0 rgb(23 22 17 / 5%);
  max-width: 320px;
  padding: 36px 30px 32px;
  position: relative;
  text-align: center;
  transform: rotate(-1.5deg);
  width: 100%;
}

.qr-sign-inner::before,
.qr-sign-inner::after {
  background: var(--champagne-soft);
  border-radius: 999px;
  content: "";
  height: 10px;
  position: absolute;
  top: -5px;
  width: 10px;
}

.qr-sign-inner::before { left: 18px; }
.qr-sign-inner::after { right: 18px; }

.qr-sign-eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.qr-sign-title {
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  margin: 0 0 14px;
}

.qr-sign-divider {
  align-items: center;
  color: var(--champagne);
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 18px;
  max-width: 180px;
}

.qr-sign-divider span:first-child,
.qr-sign-divider span:last-child {
  background: var(--champagne);
  flex: 1;
  height: 1px;
}

.qr-sign-qr {
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 14px;
  width: 130px;
}

.qr-sign-qr .qr-glyph {
  color: var(--ink);
  display: block;
  height: 102px;
  width: 102px;
}

.qr-sign-steps {
  color: var(--ink-soft);
  display: grid;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  gap: 2px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.qr-sign-foot {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

/* ----------------------------------------------------------
   Emotional section
   ---------------------------------------------------------- */

.emotional-section {
  background:
    radial-gradient(60% 80% at 50% 0%, rgb(231 201 138 / 32%), transparent 60%),
    linear-gradient(180deg, var(--ivory), var(--paper-warm));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
  position: relative;
  text-align: center;
}

.emotional-section::before {
  background-image: radial-gradient(rgb(23 22 17 / 6%) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 20px;
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
}

.emotional-inner {
  margin: 0 auto;
  max-width: 60ch;
  position: relative;
}

.emotional-inner h2 {
  margin-bottom: 24px;
}

.emotional-inner p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  margin: 0 0 18px;
}

.emotional-coda {
  font-style: italic;
}

/* ----------------------------------------------------------
   Trust section
   ---------------------------------------------------------- */

.trust-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.trust-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-grid li {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  font-weight: 700;
  gap: 10px;
  padding: 14px 16px;
}

.trust-dot {
  background: var(--champagne);
  border-radius: 999px;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */

.faq-section {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.faq-head {
  position: sticky;
  top: 96px;
  align-self: start;
  max-width: 28ch;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  display: flex;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  justify-content: space-between;
  list-style: none;
  padding-right: 36px;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
  height: 10px;
  position: absolute;
  right: 6px;
  top: 12px;
  transform: rotate(45deg);
  transition: transform 200ms ease;
  width: 10px;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
  top: 16px;
}

.faq-list details p {
  color: var(--muted);
  font-size: 16px;
  margin: 12px 0 0;
  max-width: 60ch;
}

/* ----------------------------------------------------------
   Reserve panel
   ---------------------------------------------------------- */

.reserve-panel {
  background:
    radial-gradient(70% 60% at 80% 0%, rgb(231 201 138 / 26%), transparent 60%),
    linear-gradient(160deg, #1a1a17 0%, #0f0e0b 100%);
  border: 1px solid var(--ink);
  border-radius: 20px;
  color: #f7f0df;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  padding: clamp(36px, 5vw, 64px);
  position: relative;
}

.reserve-panel::before {
  background-image: radial-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 20px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.reserve-copy {
  position: relative;
  z-index: 1;
}

.reserve-copy h2 {
  color: #fbf3dc;
}

.reserve-copy .lede {
  color: rgb(247 240 223 / 76%);
  max-width: 44ch;
}

.reserve-points {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.reserve-points li {
  align-items: center;
  color: rgb(247 240 223 / 86%);
  display: flex;
  font-weight: 700;
  gap: 12px;
}

.reserve-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  padding: 26px;
  position: relative;
  z-index: 1;
}

.reserve-form input[type="submit"] {
  margin-top: 4px;
  width: 100%;
}

.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.reserve-fine {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
  text-align: center;
}

.hidden-field {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.turnstile-widget {
  min-height: 65px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.turnstile-widget .cf-turnstile {
  max-width: 100%;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.marketing-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 28px 4px 8px;
}

.footer-mark {
  align-items: center;
  display: flex;
  gap: 10px;
}

.footer-icon {
  height: 28px;
  width: 28px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 500;
}

.footer-tag {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}

.footer-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 760px) {
  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-inner {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    align-items: stretch;
    background: var(--panel);
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: var(--hard-shadow);
    display: none;
    flex-direction: column;
    gap: 8px;
    left: auto;
    max-width: calc(100vw - 36px);
    min-width: 188px;
    padding: 10px;
    position: absolute;
    right: 18px;
    top: calc(100% + 10px);
    width: 220px;
    z-index: 20;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a,
  .nav form,
  .nav .link-button {
    order: 1;
    width: 100%;
  }

  .nav a,
  .nav .link-button {
    justify-content: flex-start;
  }

  .nav a {
    padding: 10px 12px;
  }

  .nav form {
    margin: 0;
  }

  .nav .theme-toggle {
    align-self: flex-end;
    border-width: 1px;
    box-shadow: none;
    height: 36px;
    justify-content: center;
    margin-top: 4px;
    min-height: 36px;
    order: 10;
    width: 40px;
  }

  .nav .theme-toggle-icon {
    height: 20px;
    width: 20px;
  }

  .page {
    padding: 20px 18px;
  }

  .page.marketing-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .grid-2,
  .grid-4,
  .marketing-hero,
  .marketing-problem,
  .value-cards,
  .how-steps,
  .prompt-cards,
  .qr-section,
  .trust-section,
  .faq-section,
  .reserve-panel,
  .field-row,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    gap: 32px;
    padding: 16px 0 8px;
  }

  .hero-stage {
    aspect-ratio: 1 / 1;
    justify-self: stretch;
    max-width: none;
  }

  .hero-sign {
    padding: 22px 18px 18px;
    width: 60%;
  }

  .sign-eyebrow,
  .phone-eyebrow,
  .qr-sign-eyebrow {
    letter-spacing: 0.12em;
  }

  .sign-title {
    font-size: 24px;
  }

  .hero-phone {
    bottom: 4%;
    right: 4%;
    width: 60%;
  }

  .hero-seal {
    height: 72px;
    width: 72px;
    top: 56%;
  }

  .prompt-card,
  .prompt-card:hover,
  .prompt-card:nth-child(odd),
  .prompt-card:nth-child(even),
  .qr-sign-inner {
    transform: none;
  }

  .chip-strip {
    margin-top: -16px;
  }

  .marketing-problem,
  .value-section,
  .how-section,
  .prompts-section,
  .qr-section,
  .trust-section,
  .faq-section {
    gap: 24px;
  }

  .qr-sign {
    min-height: 380px;
  }

  .faq-head {
    position: static;
  }

  .reserve-panel {
    padding: 24px 18px;
  }

  .marketing-footer {
    flex-direction: column;
    text-align: center;
  }

  .request-form {
    width: 100%;
  }

  .table {
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    background: var(--field-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
  }

  .table td {
    border: 0;
    display: grid;
    gap: 4px;
    padding: 7px 4px;
  }

  .table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
  }
}

@media (max-width: 360px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .marketing-page {
    gap: 34px;
  }

  .marketing-copy,
  .marketing-section h2,
  .marketing-split h2,
  .moment-list,
  .request-panel,
  .keepsake-scene {
    max-width: none;
  }

  .request-panel {
    padding: 14px;
  }

  .request-form {
    gap: 12px;
  }
}

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