/* Join Our Gift — GiftCrowd-inspired polish (unique brand) */
:root {
  --white: #ffffff;
  --off-white: #F8F6F3;
  --teal: #31B4BF;
  --teal-dark: #2599A3;
  --teal-soft: rgba(49, 180, 191, 0.14);
  --orange: #F25F29;
  --orange-dark: #D94E1C;
  --orange-soft: rgba(242, 95, 41, 0.14);
  --deep: #BF313B;
  --deep-soft: rgba(191, 49, 59, 0.12);
  --gold: #F2AC28;
  --gold-soft: rgba(242, 172, 40, 0.18);
  --ink: #1A1A1A;
  --ink-muted: rgba(26, 26, 26, 0.68);
  --ink-faint: rgba(26, 26, 26, 0.45);
  --border: rgba(26, 26, 26, 0.08);
  --shadow-soft: 0 8px 28px rgba(26, 26, 26, 0.06);
  --shadow-card: 0 6px 24px rgba(26, 26, 26, 0.07);
  --shadow-pop: 0 12px 36px rgba(242, 95, 41, 0.28);
  --radius-lg: 1rem;
  --radius-xl: 1.35rem;
  --radius-2xl: 1.6rem;
  --radius-3xl: 1.85rem;
  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shell-wide: 1040px;
  --shell-narrow: 34rem;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: var(--off-white);
}

.page-home-body {
  background: var(--white);
}

.page-app {
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, var(--teal-soft) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 5%, var(--orange-soft) 0%, transparent 50%),
    var(--off-white);
}

.shell {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: 1.25rem 1.15rem 4rem;
}

@media (min-width: 640px) {
  .shell { padding: 1.5rem 1.75rem 5rem; }
}

.content-narrow {
  max-width: var(--shell-narrow);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
}

.page-home-body .site-header {
  margin-bottom: 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  font-size: 1.35rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .logo-text { font-size: 1.3rem; }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

.display { font-size: 1.75rem; }
@media (min-width: 640px) {
  .display { font-size: 2.1rem; }
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  text-wrap: balance;
  max-width: 14ch;
}

.accent-teal { color: var(--teal); }
.accent-orange { color: var(--orange); }

.gradient-text {
  color: var(--teal);
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
  text-wrap: balance;
  line-height: 1.6;
}

.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-lg { gap: 2.25rem; }

/* ---- Cards ---- */
.card {
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.card-hero {
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card-link:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-pop);
}
.card-link h2 { font-size: 1.125rem; margin: 0.35rem 0; color: var(--ink); text-transform: none; font-family: var(--font-body); font-weight: 700; }
.card-link:hover h2 { color: var(--teal-dark); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.feature {
  border-radius: var(--radius-2xl);
  background: var(--white);
  padding: 1rem 0.5rem;
  box-shadow: var(--shadow-card);
}
.feature-label {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.pill {
  display: inline-block;
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.pill-solid {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}
.eyebrow.coral { color: var(--deep); }

.muted { color: var(--ink-muted); margin: 0.5rem 0 0; }
.small { font-size: 0.875rem; }
.footnote { font-size: 0.75rem; color: var(--ink-faint); margin: 1.25rem 0 0; }
.linkish {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.emoji-lg { font-size: 1.875rem; line-height: 1; }
.emoji-md { font-size: 1.5rem; line-height: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover:not(:disabled) {
  background: var(--orange-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--teal-soft);
  border-color: var(--teal-dark);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.85rem; }

/* ---- Forms ---- */
.label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.label .opt { font-weight: 400; color: var(--ink-faint); }

.input, .textarea, .select {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(26, 26, 26, 0.1);
  background: var(--off-white);
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder, .textarea::placeholder {
  color: var(--ink-faint);
}
.input:focus, .textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.textarea { resize: vertical; min-height: 5rem; }

/* ---- Note tools: emoji picker + polish ---- */
.note-tools {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.note-tools-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.emoji-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.emoji-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 0.65rem;
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.emoji-btn:hover {
  background: var(--teal-soft, #e6f7f8);
  border-color: rgba(49, 180, 191, 0.45);
  transform: translateY(-1px);
}
.emoji-btn:active {
  transform: translateY(0);
}
.note-polish-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.note-polish-row #polish-hint {
  flex: 1 1 12rem;
  line-height: 1.35;
}


.field { margin-bottom: 0; }
.form-stack { display: flex; flex-direction: column; gap: 1.25rem; }

.input-wrap { position: relative; }
.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}
.input-wrap .input { padding-left: 2rem; }

.hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.fieldset {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--off-white);
}
.fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.grid-date {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.alert {
  border-radius: var(--radius-xl);
  background: var(--deep-soft);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep);
  margin: 0;
}

/* ---- Share invite ---- */
.share-box {
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}
.share-box h3 {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  text-align: center;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@media (min-width: 480px) {
  .share-grid { grid-template-columns: repeat(4, 1fr); }
}
.share-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(49, 180, 191, 0.35);
  background: var(--off-white);
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.share-chip:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.share-chip.wide { grid-column: 1 / -1; }

.secret-box {
  border-radius: var(--radius-2xl);
  border: 2px dashed rgba(191, 49, 59, 0.35);
  background: var(--off-white);
  padding: 1rem;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  word-break: break-all;
  color: var(--ink);
  margin: 0.5rem 0 0.75rem;
}
.flex-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  font-size: 1.875rem;
  box-shadow: var(--shadow-pop);
}

/* ---- Contribute / media ---- */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  border: 2px dashed rgba(49, 180, 191, 0.45);
  background: var(--off-white);
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.upload-zone:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.media-ready-block {
  margin-top: 0.5rem;
}
.media-ready-block.hidden { display: none; }
.media-ready-block .media-ready {
  margin-top: 0;
  flex-wrap: wrap;
}
.media-ready-block .contrib-playback {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
}
.contrib-playback-video {
  max-height: 280px;
  border-radius: var(--radius-2xl);
  background: rgba(26, 26, 26, 0.88);
  object-fit: contain;
}

.media-ready {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-2xl);
  background: var(--off-white);
  padding: 0.5rem 0.75rem;
}
.media-ready .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
}
.link-danger {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.pulse { animation: pulse 1.2s ease-in-out infinite; }

.record-timer {
  margin: 0.5rem 0 0;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  text-align: center;
  line-height: 1.2;
}
.record-timer.hidden { display: none; }
.record-timer-video {
  margin-top: 0.65rem;
  margin-bottom: 0;
}
.record-timer-urgent {
  color: var(--orange);
  animation: pulse 0.85s ease-in-out infinite;
}

.audio-meter {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 2.5rem;
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--teal-soft), var(--orange-soft));
  border: 1px solid rgba(49, 180, 191, 0.28);
  box-sizing: border-box;
}
.audio-meter.hidden { display: none; }
.audio-meter-video { margin-top: 0.55rem; }
.audio-meter-bar {
  flex: 1 1 0;
  max-width: 0.45rem;
  min-height: 0.2rem;
  height: 12%;
  border-radius: 999px;
  background: var(--teal);
  transform-origin: bottom center;
  transition: height 0.06s linear, background-color 0.12s ease;
  will-change: height;
}
.audio-meter-bar:nth-child(even) { background: var(--orange); }
.audio-meter-bar.hot {
  background: var(--orange);
  box-shadow: 0 0 8px rgba(242, 95, 41, 0.45);
}
.audio-meter-bar:nth-child(odd).hot {
  background: var(--teal-dark);
  box-shadow: 0 0 8px rgba(49, 180, 191, 0.45);
}

.record-preview-wrap {
  margin-top: 0.75rem;
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(49, 180, 191, 0.35);
  background: linear-gradient(135deg, var(--teal-soft), var(--off-white));
  padding: 0.75rem;
  box-shadow: var(--shadow-soft);
}
.record-preview {
  display: block;
  width: 100%;
  max-height: 320px;
  border-radius: calc(var(--radius-2xl) - 0.25rem);
  background: rgba(26, 26, 26, 0.88);
  object-fit: cover;
  transform: scaleX(-1);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---- Countdown ---- */
.countdown {
  margin-top: 0.75rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(90deg, var(--teal-soft), var(--gold-soft));
  padding: 0.75rem 1rem;
  text-align: center;
}
.countdown-narrow { max-width: 20rem; margin-left: auto; margin-right: auto; }
.countdown-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
}
.countdown-when {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--ink);
}
.countdown-status {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ---- Reveal gallery ---- */
.quote {
  margin: 0.75rem auto 0;
  max-width: 22rem;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-muted);
}
.pot-total {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-soft), var(--white));
}
.total-amount {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gallery-card {
  animation: fade-up 0.4s ease both;
}
.gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.gallery-name {
  font-size: 1.15rem;
  margin: 0;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.gallery-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.amount-chip {
  border-radius: 999px;
  background: var(--gold-soft);
  padding: 0.25rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---- Public gift social proof (GoFundMe-style) ---- */
.social-proof-total {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-soft), var(--white));
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
}
.social-proof-total .total-amount {
  font-size: clamp(2rem, 8vw, 2.75rem);
  color: var(--ink);
}
.social-proof-meta {
  margin: 0.35rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-dark);
}
.social-proof-disclaimer {
  margin: 0.5rem auto 0;
  max-width: 22rem;
  line-height: 1.4;
}
.activity-feed {
  padding: 1.1rem 1.15rem 1.15rem;
}
.activity-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.activity-feed-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.activity-feed-count {
  flex-shrink: 0;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.activity-item:first-child {
  border-top: none;
  padding-top: 0.15rem;
}
.activity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}
.activity-name {
  font-weight: 700;
  color: var(--ink);
}
.activity-amount {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.activity-inds {
  display: inline-flex;
  gap: 0.2rem;
  margin-left: auto;
}
.activity-ind {
  font-size: 0.95rem;
  line-height: 1;
}
.activity-snippet {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.activity-time {
  display: block;
  margin-top: 0.35rem;
}
.activity-empty {
  padding: 0.75rem 0.25rem 0.35rem;
}
.activity-empty-title {
  margin: 0.35rem 0 0.25rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.message-body {
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
  color: var(--ink);
  line-height: 1.6;
}
.media-audio { width: 100%; margin-top: 0.75rem; }
.media-video {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: var(--radius-2xl);
  background: rgba(26, 26, 26, 0.06);
  overflow: hidden;
}

.keepsake-note {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.keepsake-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.keepsake-dl {
  text-decoration: none;
  white-space: nowrap;
}


/* ---- Photo + QR device fallback ---- */
.media-photo-wrap {
  margin: 0.75rem 0 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--border);
}
.media-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
  background: rgba(26, 26, 26, 0.04);
}
.photo-preview-wrap {
  margin-top: 0.75rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 2px solid rgba(49, 180, 191, 0.35);
  background: var(--off-white);
}
.photo-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.qr-fallback {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-2xl);
  border: 2px dashed rgba(249, 115, 22, 0.45);
  background: linear-gradient(135deg, var(--gold-soft), var(--white));
  text-align: center;
}
.qr-fallback.hidden { display: none; }
.qr-fallback-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.qr-fallback-msg {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.qr-fallback-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  min-width: 180px;
  min-height: 180px;
}
.qr-fallback-code img,
.qr-fallback-code canvas {
  display: block;
  width: 180px;
  height: 180px;
}
.qr-fallback-link {
  display: block;
  word-break: break-all;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--deep);
  text-decoration: underline;
  line-height: 1.4;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* ---- Home hero ---- */
.page-home {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 3rem;
  margin: 0 -1.15rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

@media (min-width: 640px) {
  .hero {
    margin: 0 -1.75rem;
    padding: 2.5rem 1.75rem 4rem;
  }
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  filter: blur(2px);
  opacity: 0.55;
}

.blob-teal {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: radial-gradient(circle at 40% 40%, rgba(49, 180, 191, 0.45), transparent 70%);
  top: -12%;
  right: -8%;
}

.blob-orange {
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  background: radial-gradient(circle at 50% 50%, rgba(242, 95, 41, 0.35), transparent 70%);
  bottom: 5%;
  left: -10%;
}

.blob-gold {
  width: min(220px, 40vw);
  height: min(220px, 40vw);
  background: radial-gradient(circle at 50% 50%, rgba(242, 172, 40, 0.4), transparent 70%);
  top: 40%;
  right: 18%;
  opacity: 0.4;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 2.5rem;
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  text-align: left;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
  margin-top: 1.75rem;
}

.hero-cta-btn {
  width: auto;
  min-width: 14rem;
  box-shadow: var(--shadow-pop);
}

.text-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.text-link:hover {
  color: var(--teal-dark);
}

/* ---- How it works ---- */
.section {
  margin: 0 -1.15rem;
  padding: 3rem 1.15rem;
}

@media (min-width: 640px) {
  .section {
    margin: 0 -1.75rem;
    padding: 4rem 1.75rem;
  }
}

.section-how {
  background: var(--off-white);
}

.section-create {
  background: var(--white);
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.section-inner {
  max-width: var(--shell-wide);
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: var(--shell-narrow);
}

.section-heading {
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.section-sub {
  margin: 0.65rem auto 2.25rem;
  text-align: center;
  max-width: 28rem;
  color: var(--ink-muted);
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-3xl);
  padding: 1.75rem 1.35rem 1.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 100%;
}

.step-circle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.step-circle-teal { background: var(--teal); }
.step-circle-orange { background: var(--orange); }
.step-circle-deep { background: var(--deep); }

.step-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.step-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Legacy class hooks used by app.js */
.how-it-works { /* unused on home; keep for safety */ }
.how-heading { }
.steps { }
.step { }
.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.form-title {
  font-size: 1.45rem;
  margin: 0;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.extras {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--off-white);
  padding: 0.35rem 0.85rem 0.55rem;
}

.extras > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.55rem 0;
  user-select: none;
}
.extras > summary::-webkit-details-marker { display: none; }
.extras > summary::before {
  content: "▸ ";
  color: var(--teal);
  font-weight: 800;
}
.extras[open] > summary::before { content: "▾ "; }

.extras-body {
  padding: 0.25rem 0 0.5rem;
}

.media-extras {
  margin-top: 0.15rem;
}

.venmo-cta {
  box-shadow: var(--shadow-pop);
}
.venmo-at {
  opacity: 0.9;
  font-weight: 700;
}

.payment-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.zelle-block {
  border-radius: var(--radius-xl, 1rem);
  border: 1px dashed rgba(49, 180, 191, 0.45);
  background: var(--teal-soft, #e8f7f8);
  padding: 0.85rem 1rem;
}
.zelle-block-done {
  text-align: left;
  margin-top: 0.25rem;
}
.zelle-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.zelle-info-text {
  margin: 0;
  flex: 1 1 auto;
  word-break: break-word;
  font-size: 0.95rem;
}

.link-panel {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(49, 180, 191, 0.3);
  background: linear-gradient(135deg, var(--teal-soft), var(--white));
  padding: 1rem;
}

.success-card {
  border-color: transparent;
  background: linear-gradient(160deg, var(--white), var(--gold-soft));
}

#create {
  scroll-margin-top: 1.5rem;
}

.hero-sm { margin-bottom: 0.25rem; }

/* Compat: old coral/peach vars some inline styles may reference */
:root {
  --coral-500: var(--orange);
  --coral-600: var(--orange-dark);
  --peach-300: #F2AC28;
  --cream-50: var(--off-white);
  --cream-100: var(--off-white);
}

/* Brand logos — large header wordmark */
.site-header { padding: 1.25rem 0 0.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; max-width: 100%; }
.logo-icon { display: none !important; } /* wordmark already includes gift mark */
.logo-wordmark {
  height: 170px;
  width: auto;
  max-width: min(920px, 96vw);
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 640px) {
  .logo-wordmark { height: 120px; max-width: 94vw; }
}
@media (max-width: 400px) {
  .logo-wordmark { height: 100px; }
}


/* Pass-along share on contribute form */
.contrib-pass-along {
  margin: 0.15rem 0 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #c5d0de;
  border-radius: 12px;
  background: #f5f8fb;
}


/* ---- Hero phone demo (video / voice) ---- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
@media (min-width: 900px) {
  .hero-visual { margin-top: 0; }
}
.demo-phone {
  width: min(240px, 72vw);
  background: #1a1f2a;
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 24px 48px rgba(26, 40, 56, 0.22),
    0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
}
.demo-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 10px;
  background: #0d1118;
  border-radius: 999px;
  z-index: 3;
}
.demo-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #0e1620;
}
.demo-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 0.85rem 0.85rem;
  opacity: 0;
  animation: demo-scene-cycle 8s infinite;
}
.demo-scene-video { animation-delay: 0s; }
.demo-scene-voice { animation-delay: 4s; }
@keyframes demo-scene-cycle {
  0%, 5% { opacity: 0; transform: scale(1.02); }
  10%, 45% { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(0.98); }
}
.demo-cam {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.demo-cam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b4a;
  animation: demo-blink 1s infinite;
}
@keyframes demo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.demo-cam-timer { margin-left: auto; opacity: 0.9; font-variant-numeric: tabular-nums; }
.demo-face {
  flex: 1;
  margin: 0.75rem 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 38%, #ffd7b5 0 18%, transparent 19%),
    radial-gradient(circle at 50% 72%, #31b4bf 0 28%, transparent 29%),
    linear-gradient(160deg, #2a3a4a, #1a2836);
  position: relative;
  overflow: hidden;
}
.demo-face::after {
  content: "";
  position: absolute;
  inset: 18% 28% 42%;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
}
.demo-bubble {
  align-self: flex-start;
  margin: 0 0 0.55rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255,255,255,0.92);
  color: #1a2836;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 12px 12px 12px 4px;
  animation: demo-bubble-in 8s infinite;
}
@keyframes demo-bubble-in {
  0%, 12% { opacity: 0; transform: translateY(6px); }
  20%, 45% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; }
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  color: #fff;
}
.demo-rec-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.demo-rec-btn::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #ff3b4a;
}
.demo-rec-voice::after { border-radius: 50%; }
.demo-bar-label { font-size: 0.72rem; font-weight: 600; opacity: 0.95; }
.demo-voice-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  margin-top: 0.35rem;
}
.demo-mic { font-size: 1.25rem; }
.demo-voice-title { font-size: 0.85rem; font-weight: 700; }
.demo-wave {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 1rem 0.5rem;
}
.demo-wave i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #31b4bf, #f25f29);
  height: 18px;
  animation: demo-wave 1s ease-in-out infinite;
}
.demo-wave i:nth-child(1) { animation-delay: 0.00s; height: 14px; }
.demo-wave i:nth-child(2) { animation-delay: 0.08s; height: 28px; }
.demo-wave i:nth-child(3) { animation-delay: 0.16s; height: 40px; }
.demo-wave i:nth-child(4) { animation-delay: 0.24s; height: 52px; }
.demo-wave i:nth-child(5) { animation-delay: 0.32s; height: 36px; }
.demo-wave i:nth-child(6) { animation-delay: 0.40s; height: 58px; }
.demo-wave i:nth-child(7) { animation-delay: 0.48s; height: 44px; }
.demo-wave i:nth-child(8) { animation-delay: 0.56s; height: 60px; }
.demo-wave i:nth-child(9) { animation-delay: 0.64s; height: 38px; }
.demo-wave i:nth-child(10) { animation-delay: 0.72s; height: 50px; }
.demo-wave i:nth-child(11) { animation-delay: 0.80s; height: 26px; }
.demo-wave i:nth-child(12) { animation-delay: 0.88s; height: 16px; }
@keyframes demo-wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.demo-voice-timer {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
}
.demo-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #5a6a7a);
  text-align: center;
  max-width: 16rem;
  line-height: 1.35;
}
@media (prefers-reduced-motion: reduce) {
  .demo-scene,
  .demo-cam-dot,
  .demo-bubble,
  .demo-wave i {
    animation: none !important;
  }
  .demo-scene-video { opacity: 1; }
  .demo-scene-voice { display: none; }
}


/* ---- Reveal / admin gift edit ---- */
.reveal-edit {
  text-align: left;
}
.reveal-edit .form-title {
  text-align: left;
}
.reveal-edit[data-saved="1"] {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--deep) 35%, transparent);
}
.opt {
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 0.85em;
}
.admin-gift-edit .extras-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}


/* Admin: always-visible gift heading editor */
form.admin-gift-edit {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
form.admin-gift-edit .label {
  text-transform: none;
  letter-spacing: -0.01em;
}

/* SEO pages: append to end of public style.css, then bump $assetV in app/layout.php */
.site-footer{text-align:center;padding:2rem 1rem 3rem;font-size:.95rem}
.site-footer nav a{color:inherit;text-decoration:underline;margin:0 .15rem}
.section-faq .faq-item{background:#fff;border-radius:14px;padding:1rem 1.25rem;margin:.6rem 0;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.section-faq summary{font-weight:700;cursor:pointer}
.section-faq .faq-item p{margin:.6rem 0 0}
.page-guide{padding:2rem 1rem 3rem;max-width:760px;margin:0 auto}
.page-guide h2{margin-top:2rem}
.page-guide ol li{margin:.4rem 0}
/* Blog (appended with blog release; bump $assetV) */
.site-header{flex-wrap:wrap;gap:.5rem 1rem}
.site-nav{display:flex;gap:1.1rem;align-items:center;flex-wrap:wrap;font-weight:600;margin-left:auto}
.site-nav a{color:inherit;text-decoration:none}
.site-nav a:hover{text-decoration:underline}
.site-nav .site-nav-cta{text-decoration:underline}
.breadcrumbs{font-size:.9rem;margin:0 0 1rem;opacity:.8}
.breadcrumbs a{color:inherit}
.blog-list{list-style:none;padding:0;margin:1.5rem 0}
.blog-card{background:#fff;border-radius:14px;padding:1.1rem 1.25rem;margin:.9rem 0;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.blog-card h2{margin:0 0 .35rem;font-size:1.25rem;line-height:1.3}
.blog-card h2 a{color:inherit;text-decoration:none}
.blog-card h2 a:hover{text-decoration:underline}
.blog-meta{font-size:.9rem;margin:.2rem 0 .6rem}
.blog-article{line-height:1.65}
.blog-article h2{margin-top:2rem}
.blog-article h3{margin-top:1.4rem}
.blog-article ul li,.blog-article ol li{margin:.35rem 0}
.blog-article blockquote{margin:1.2rem 0;padding:.9rem 1.2rem;background:#fff;border-left:4px solid currentColor;border-radius:10px}
.blog-faq{margin-top:2.5rem}
.blog-cta{background:#fff;border-radius:16px;padding:1.4rem;margin:2.5rem 0 1.5rem;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.blog-related ul{padding-left:1.2rem}
