/* Platform marketing landing page (landing.php) — the bare-host "/"
   experience, distinct from any tenant's own site. Reuses styles.css's
   tokens, .eyebrow, .btn family, and .ambient-orb exactly as-is for
   brand consistency; everything in this file is landing-page-only
   layout, cards, and motion. */

.l-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--smooth), border-color 0.4s var(--smooth), backdrop-filter 0.4s var(--smooth);
}

.l-nav.is-scrolled {
  background: var(--blur-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.l-nav__brand {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  text-decoration: none;
}

.l-nav__brand-logo {
  /* Height/offset are set inline (platform_logo_html()) from the
     Branding tab's shared size setting — this is just a fallback in
     case the inline style is ever stripped. */
  height: 34px;
  width: auto;
  display: block;
}

.l-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.l-nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.l-nav__link:hover {
  color: var(--gold-dk);
}

/* The one nav "link" that's actually a <button> (opens the login modal
   below rather than navigating) — same look, native button chrome
   stripped off. */
.l-nav__link--btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.l-nav__links .btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.l-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 0.5rem;
  background: none;
  border: none;
  color: var(--ink-1);
  cursor: pointer;
}

/* Six nav links + Log in + CTA don't fit a portrait tablet (768px wraps
   every label onto two lines) — the hamburger menu takes over below 900px. */
@media (max-width: 900px) {
  .l-nav__link {
    display: none;
  }

  .l-nav__burger {
    display: inline-flex;
  }
}

.l-nav__link,
.l-nav__links .btn { white-space: nowrap; }

@media (max-width: 640px) {
  .l-nav__links .btn {
    padding: 7px 13px;
    font-size: 0.75rem;
  }
}

/* Mobile nav panel — reuses the same .modal-overlay/.modal system as
   the login modal, which already becomes a bottom sheet under 600px
   (styles.css). Just a stacked list of the links hidden above. */
.l-mobile-nav {
  display: flex;
  flex-direction: column;
}

.l-mobile-nav__link {
  display: block;
  width: 100%;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-1);
  text-decoration: none;
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
  cursor: pointer;
}

.l-mobile-nav__link:last-of-type {
  border-bottom: none;
}

.l-mobile-nav__cta {
  margin-top: 1rem;
  text-align: center;
}

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

.l-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem) clamp(6rem, 13vw, 9.5rem);
  background-size: cover;
  background-position: center 30%;
  color: var(--ghost);
  perspective: 1600px;
}

/* Full-bleed photo sits behind everything via background-image (set
   inline in landing.php, since it depends on $pc/asset()); this scrim
   is a separate layered element (rather than baked into .l-hero's own
   background) so the radial gold glow and the darkening gradient can
   sit above the photo without a second background-image shorthand
   fighting the first. */
.l-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 22% 20%, rgba(var(--gold-rgb),.22) 0%, transparent 55%),
    linear-gradient(155deg, rgba(var(--dark-rgb,16,13,7),.94) 0%, rgba(var(--dark-rgb,16,13,7),.88) 35%, rgba(var(--dark-rgb,16,13,7),.86) 65%, rgba(var(--dark-rgb,16,13,7),.95) 100%);
}

.l-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 980px) {
  .l-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.l-hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.l-hero__title em {
  font-style: italic;
  color: var(--gold-text);
}

.l-hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--ghost);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

@media (max-width: 980px) {
  .l-hero__sub {
    margin-left: auto;
    margin-right: auto;
  }
}

.l-hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .l-hero__ctas {
    justify-content: center;
  }
}

.l-hero__note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(250,248,244,0.5);
}

/* Hero visual: a tilting "browser frame" showing the product itself */

.l-hero__visual {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.l-hero__frame {
  position: relative;
  margin: 0 auto;
  max-width: 380px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dark-mid);
  border: 1px solid rgba(var(--gold-text-rgb,221,184,122),0.22);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 40px 90px -30px rgba(var(--gold-rgb),0.35);
  animation: heroFloat 6.5s ease-in-out infinite;
  transform: translateZ(0);
}

.l-hero__frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: rgba(0,0,0,0.25);
}

.l-hero__frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.l-hero__frame-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
}

.l-hero__frame-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l-hero__frame-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--dark-rgb,16,13,7),0) 45%, rgba(var(--dark-rgb,16,13,7),0.85) 100%);
}

.l-hero__frame-caption {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.3rem;
  z-index: 2;
  color: #fff;
}

.l-hero__frame-caption p:first-child {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.l-hero__frame-caption p:last-child {
  font-size: 0.75rem;
  color: var(--gold-text);
  margin: 0;
  letter-spacing: 0.03em;
}

.l-hero__badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  background: var(--surface);
  border-radius: var(--pill);
  box-shadow: var(--s-lg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-1);
  /* .l-hero__visual has transform-style:preserve-3d for the tilt
     effect, and .l-hero__frame sits at translateZ(0) — without its own
     Z position a badge is painted flat into that same 3D scene and can
     end up behind the frame regardless of z-index. translateZ(40px)
     (baked into the animation below, and set as a static fallback here
     for when prefers-reduced-motion turns the animation off) lifts it
     definitively in front. */
  transform: translateZ(40px);
  animation: badgeFloat 5.5s ease-in-out infinite;
}

.l-hero__badge svg {
  color: var(--gold-dk);
  flex-shrink: 0;
}

/* Small overlapping guest-avatar stack inside the "attending" badge —
   same initials-circle language as .l-avatar-float in the Features
   section, just miniaturized. Decorative/placeholder, same as those. */
.l-hero__badge-avatars {
  display: flex;
  flex-shrink: 0;
}

.l-hero__badge-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
}

.l-hero__badge-avatar:first-child {
  margin-left: 0;
}

.l-hero__badge-avatar--gold { background: linear-gradient(135deg, var(--gold), var(--gold-dk)); }
.l-hero__badge-avatar--rose { background: linear-gradient(135deg, var(--gold-dk), var(--dark-lt)); }
.l-hero__badge-avatar--sage { background: linear-gradient(135deg, var(--dark-lt), var(--dark-bg)); }

.l-hero__badge--rsvp {
  top: -0.5rem;
  right: -1rem;
  animation-delay: 0.4s;
}

.l-hero__badge--gallery {
  bottom: 2.5rem;
  left: -1.75rem;
  animation-delay: 1.1s;
}

@media (max-width: 640px) {
  .l-hero__badge {
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
  }
  .l-hero__badge--rsvp { right: -0.25rem; }
  .l-hero__badge--gallery { left: -0.25rem; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate3d(1, -1, 0, 4deg); }
  50%      { transform: translateY(-14px) rotate3d(1, -1, 0, 4deg); }
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) translateZ(40px); }
  50%      { transform: translateY(-8px) translateZ(40px); }
}

@media (prefers-reduced-motion: reduce) {
  .l-hero__frame, .l-hero__badge {
    animation: none;
  }
}

/* ---------- Stats band ---------- */

/* Sits between .l-hero and <main>, pulled up over the hero's bottom
   padding via negative margin so it visually overlaps the photo —
   the "big numbers over the hero" band pattern this redesign is
   borrowing from the reference site, adapted into the brand's gold
   gradient instead of a flat color. */
.l-stats-band {
  position: relative;
  z-index: 3;
  margin: clamp(-4.5rem, -8vw, -3rem) clamp(1.25rem, 4vw, 3rem) 0;
}

.l-stats-band__inner {
  max-width: calc(var(--max-width) - 2 * clamp(1.25rem, 4vw, 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dk) 100%);
  border-radius: var(--r-lg);
  box-shadow: var(--s-lg);
  overflow: hidden;
}

.l-stat {
  padding: clamp(0.9rem, 1.2vw, 1rem) 1rem;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.18);
}

.l-stat:first-child {
  border-left: none;
}

.l-stat__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: #FFFFFF;
  margin: 0;
  line-height: 1.1;
}

.l-stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0.35rem 0 0;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .l-stats-band__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .l-stat:nth-child(3) {
    border-left: none;
  }
  .l-stat:nth-child(1), .l-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }
}

/* Even 2-up gets tight on the smallest phones — drop to a single
   column, each stat gets a bottom border instead of the 2x2
   left/bottom combination above. */
@media (max-width: 480px) {
  .l-stats-band__inner {
    grid-template-columns: 1fr;
  }
  .l-stat,
  .l-stat:nth-child(3) {
    border-left: none;
  }
  .l-stat:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }
}

/* ---------- Generic section scaffolding + scroll reveal ---------- */

.l-section {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.l-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.l-section__head {
  max-width: 42rem;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.l-section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--ink-1);
  margin: 0;
  letter-spacing: -0.01em;
}

.l-section__title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.l-section__sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 1rem 0 0;
}

.l-section__note {
  max-width: 34rem;
  margin: 2.25rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.l-section--center .l-section__head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--smooth), transform 0.8s var(--smooth);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--smooth), transform 0.7s var(--smooth);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.03s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.11s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.27s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.35s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.43s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Feature grid ---------- */

.l-feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.l-feature-card {
  position: relative;
  flex: 1 1 340px;
  max-width: 380px;
  padding: 1.9rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-sm);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--smooth), box-shadow 0.35s var(--smooth), border-color 0.35s ease;
  will-change: transform;
}

.l-feature-card:hover,
.l-feature-card:focus-visible {
  box-shadow: var(--s-lg);
  border-color: var(--border-2);
}

.l-feature-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.l-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.28);
  color: #FFFFFF;
  margin: 0 auto 1.1rem;
  transform: translateZ(30px);
  transition: transform 0.35s var(--smooth);
}

/* Each card in a 6-item grid gets its own deep gradient — repeats every
   6 via :nth-child so it stays correct if a 7th feature is ever added,
   rather than silently falling back to unstyled. Border is dropped in
   favor of the gradient itself carrying the card's edge. The
   "Everything included" (#features) and "For Teams" (#teams) sections
   both reuse .l-feature-grid, so each gets its own palette — warm/earth
   for #features, cool jewel tones for #teams — so the two grids read as
   distinct rather than a repeated block. */
#features .l-feature-card:nth-child(6n+1) { background: linear-gradient(135deg, #c98a3d 0%, #8a4b1f 100%); border-color: transparent; }
#features .l-feature-card:nth-child(6n+2) { background: linear-gradient(135deg, #b0425a 0%, #5e1a33 100%); border-color: transparent; }
#features .l-feature-card:nth-child(6n+3) { background: linear-gradient(135deg, #d4693f 0%, #7a2e1e 100%); border-color: transparent; }
#features .l-feature-card:nth-child(6n+4) { background: linear-gradient(135deg, #c9a227 0%, #7a5a12 100%); border-color: transparent; }
#features .l-feature-card:nth-child(6n+5) { background: linear-gradient(135deg, #a8476a 0%, #4a1d3f 100%); border-color: transparent; }
#features .l-feature-card:nth-child(6n+6) { background: linear-gradient(135deg, #c4683a 0%, #5a2a4a 100%); border-color: transparent; }

#teams .l-feature-card:nth-child(6n+1) { background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%); border-color: transparent; }
#teams .l-feature-card:nth-child(6n+2) { background: linear-gradient(135deg, #1e40af 0%, #172554 100%); border-color: transparent; }
#teams .l-feature-card:nth-child(6n+3) { background: linear-gradient(135deg, #4338ca 0%, #1e1b4b 100%); border-color: transparent; }
#teams .l-feature-card:nth-child(6n+4) { background: linear-gradient(135deg, #047857 0%, #064e3b 100%); border-color: transparent; }
#teams .l-feature-card:nth-child(6n+5) { background: linear-gradient(135deg, #6d28d9 0%, #2e1065 100%); border-color: transparent; }
#teams .l-feature-card:nth-child(6n+6) { background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%); border-color: transparent; }

/* Icon brightens and scales up on hover/focus/tap (.is-active, toggled
   in landing.php's script) to draw the eye while the description below
   expands into view. */
.l-feature-card:hover .l-feature-card__icon,
.l-feature-card:focus-visible .l-feature-card__icon,
.l-feature-card.is-active .l-feature-card__icon {
  background: rgba(255,255,255,0.4);
  transform: translateZ(30px) scale(1.06);
}

.l-feature-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: #FFFFFF;
  margin: 0;
  transform: translateZ(20px);
}

/* Hidden until hover/focus/tap — see .l-feature-card:hover /
   :focus-visible / .is-active below. max-height (not display/height) so
   the collapse/reveal can transition smoothly; 220px comfortably clears
   the longest description in either grid without needing per-card
   tuning. */
.l-feature-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateZ(10px);
  transition: max-height 0.4s var(--smooth), opacity 0.3s ease, margin-top 0.3s ease;
}

.l-feature-card:hover .l-feature-card__text,
.l-feature-card:focus-visible .l-feature-card__text,
.l-feature-card.is-active .l-feature-card__text {
  max-height: 220px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* ---------- Features section split layout + floating avatars ---------- */
/* Same left-copy/right-visual grid convention as .l-hero__inner —
   collapses to one column (visual below the copy) under 980px. */

.l-features-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

@media (max-width: 980px) {
  .l-features-split {
    grid-template-columns: 1fr;
  }
}

/* Always exactly 2 columns in the split layout — a plain grid instead
   of .l-feature-grid's flex-wrap (which, at this narrower column width,
   would drop to 1 column since each card's 340px flex-basis no longer
   fits two per row). Cards fill their grid cell instead of keeping a
   fixed min-width, so 2-up holds even as the column narrows further. */
.l-feature-grid--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: flex-start;
}

.l-feature-grid--split .l-feature-card {
  flex: none;
  max-width: none;
}

@media (max-width: 560px) {
  .l-feature-grid--split {
    grid-template-columns: 1fr;
  }
}

.l-features-split__visual {
  display: flex;
  justify-content: center;
}

.l-avatar-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  /* Stretches to match the left column's real height (.l-features-split
     has align-items:stretch) instead of a fixed aspect-ratio, so the
     scene never falls short of the feature-card grid beside it. A min-
     height keeps it from collapsing too small on a short/mobile column. */
  height: 100%;
  min-height: 420px;
  /* A visible frame around the whole composition (card + all 5
     avatars) rather than them floating loose on the bare page
     background — overflow stays visible so the avatars can still
     break slightly over the frame's own edge, a deliberate layered
     look rather than a hard clip. */
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--s-sm);
}

@media (max-width: 980px) {
  .l-avatar-scene {
    aspect-ratio: 4 / 5;
    height: auto;
  }
}

.l-avatar-scene__card {
  position: absolute;
  inset: 14% 10%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-lg);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

/* An admin-uploaded card photo (platform/content.php's scene_card_photo
   field) fills the card and the text pins to the bottom over a dark
   scrim, the same photo-caption treatment .l-hero__frame-img already
   uses — kept legible regardless of what the photo looks like. */
.l-avatar-scene__card--photo {
  background-color: var(--dark-mid);
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
  /* No position here — the base .l-avatar-scene__card rule already
     sets position:absolute (with inset:14% 10%, which is what stretches
     the card to fill its intended space). Redeclaring position:relative
     here previously clobbered that, collapsing the card down to its own
     content size and leaving a large empty gap below it. The ::before
     gradient overlay below still positions correctly against the base
     class's position:absolute — no positioning context needed here. */
}

.l-avatar-scene__card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--dark-rgb,16,13,7),0) 40%, rgba(var(--dark-rgb,16,13,7),0.88) 100%);
}

.l-avatar-scene__card--photo .l-avatar-scene__card-bar,
.l-avatar-scene__card--photo .l-avatar-scene__card-title,
.l-avatar-scene__card--photo .l-avatar-scene__card-sub,
.l-avatar-scene__card--photo .l-avatar-scene__card-check {
  position: relative;
  z-index: 1;
}

.l-avatar-scene__card--photo .l-avatar-scene__card-title {
  color: #fff;
}

.l-avatar-scene__card--photo .l-avatar-scene__card-sub {
  color: rgba(255,255,255,0.75);
}

.l-avatar-scene__card-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.l-avatar-scene__card-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}

.l-avatar-scene__card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-1);
  margin: 0;
}

.l-avatar-scene__card-sub {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0 0 0.75rem;
}

.l-avatar-scene__card-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-lt);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.7rem;
  width: fit-content;
}

/* Each floating avatar bobs on its own continuous loop, offset by
   animation-delay (set inline per avatar in landing.php) so all 5 never
   move in sync — the connector line fades in/out on the exact same
   timing so it visually reads as "belonging" to its avatar. */
.l-avatar-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: l-avatar-bob 3.6s ease-in-out infinite;
}

.l-avatar-float__bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--s-lg);
  border: 4px solid var(--surface);
}

.l-avatar-float__line {
  width: 1px;
  height: 22px;
  background: var(--border-2);
  animation: l-avatar-line-fade 3.6s ease-in-out infinite;
}

.l-avatar-float--gold .l-avatar-float__bubble { background: linear-gradient(135deg, var(--gold), var(--gold-dk)); }
.l-avatar-float--rose .l-avatar-float__bubble { background: linear-gradient(135deg, var(--gold-dk), var(--dark-lt)); }
.l-avatar-float--sage .l-avatar-float__bubble { background: linear-gradient(135deg, var(--dark-lt), var(--dark-bg)); }
.l-avatar-float--plum .l-avatar-float__bubble { background: linear-gradient(135deg, var(--gold), var(--dark-mid)); }

/* An admin-uploaded avatar photo (platform/content.php's avatar_N_photo
   fields) replaces the gradient + initials entirely — the hue modifier
   above is simply overridden by a real photo instead. */
.l-avatar-float__bubble--photo {
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}

@keyframes l-avatar-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes l-avatar-line-fade {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .l-avatar-float,
  .l-avatar-float__line {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .l-avatar-scene { max-width: 320px; }
  .l-avatar-float__bubble { width: 74px; height: 74px; font-size: 1rem; }
}

/* ---------- Classic theme (body.theme-classic) ----------
   Reverts the hero/stats/card treatment above back to the original
   flat-gradient hero and pale-icon white cards — selectable in the
   platform admin's Theme tab (PLATFORM_CONTENT_FIELDS['theme'] in
   api/lib/platform_content.php) alongside the default "bold" look.
   landing.php skips rendering the stats band and the hero's
   background-image/scrim entirely under this theme rather than just
   hiding them here, so this block only needs to undo the card and
   grid styling above. */

body.theme-classic .l-hero {
  padding-bottom: clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(ellipse at 22% 20%, rgba(var(--gold-rgb),.16) 0%, transparent 55%),
    linear-gradient(155deg, var(--dark-bg) 0%, var(--dark-mid) 35%, var(--dark-lt) 65%, var(--dark-bg) 100%);
}

body.theme-classic .l-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-content: initial;
}

body.theme-classic .l-feature-card {
  flex: initial;
  max-width: none;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
}

body.theme-classic .l-feature-card__icon {
  display: inline-flex;
  margin: 0 0 1.1rem;
  transition: filter 0.3s ease;
}

body.theme-classic #features .l-feature-card:nth-child(6n+1),
body.theme-classic #teams .l-feature-card:nth-child(6n+1) { background: var(--surface); border-color: var(--border); }
body.theme-classic #features .l-feature-card:nth-child(6n+2),
body.theme-classic #teams .l-feature-card:nth-child(6n+2) { background: var(--surface); border-color: var(--border); }
body.theme-classic #features .l-feature-card:nth-child(6n+3),
body.theme-classic #teams .l-feature-card:nth-child(6n+3) { background: var(--surface); border-color: var(--border); }
body.theme-classic #features .l-feature-card:nth-child(6n+4),
body.theme-classic #teams .l-feature-card:nth-child(6n+4) { background: var(--surface); border-color: var(--border); }
body.theme-classic #features .l-feature-card:nth-child(6n+5),
body.theme-classic #teams .l-feature-card:nth-child(6n+5) { background: var(--surface); border-color: var(--border); }
body.theme-classic #features .l-feature-card:nth-child(6n+6),
body.theme-classic #teams .l-feature-card:nth-child(6n+6) { background: var(--surface); border-color: var(--border); }

body.theme-classic .l-feature-card .l-feature-card__icon { background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold-lt) 100%); color: var(--gold-dk); }


body.theme-classic .l-feature-card:hover .l-feature-card__icon,
body.theme-classic .l-feature-card:focus-visible .l-feature-card__icon,
body.theme-classic .l-feature-card.is-active .l-feature-card__icon {
  filter: grayscale(1);
  transform: translateZ(30px);
}

body.theme-classic .l-feature-card__title { color: var(--ink-1); }
body.theme-classic .l-feature-card__text { color: var(--ink-2); }

/* ---------- Template showcase ---------- */

.l-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.l-template-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--s);
  transition: transform 0.45s var(--smooth), box-shadow 0.45s var(--smooth);
  will-change: transform;
}

.l-template-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l-template-card:hover {
  box-shadow: var(--s-lg);
}

.l-template-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--dark-rgb,16,13,7),0) 40%, rgba(var(--dark-rgb,16,13,7),0.88) 100%);
}

.l-template-card__body {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  color: #fff;
}

.l-template-card__body p:first-child {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 0.35rem;
}

.l-template-card__body p:last-child {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- Steps ---------- */

.l-steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  counter-reset: step;
}

@media (max-width: 780px) {
  .l-steps__list {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

.l-steps__list::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2) 15%, var(--border-2) 85%, transparent);
}

@media (max-width: 780px) {
  .l-steps__list::before {
    display: none;
  }
}

.l-step {
  position: relative;
  text-align: center;
}

.l-step__num {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dk) 100%);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  box-shadow: 0 8px 22px rgba(var(--gold-rgb),.35);
}

.l-step__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink-1);
  margin: 0 0 0.5rem;
}

.l-step__text {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
  max-width: 22rem;
  margin-inline: auto;
}

/* ---------- Closing CTA band ---------- */

.l-cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--gold-rgb),.18) 0%, transparent 60%),
    linear-gradient(155deg, var(--dark-bg) 0%, var(--dark-mid) 50%, var(--dark-bg) 100%);
  text-align: center;
}

.l-cta-band__inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin: 0 auto;
}

.l-cta-band__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #fff;
  margin: 0 0 1rem;
}

.l-cta-band__text {
  color: var(--ghost);
  font-size: 1rem;
  margin: 0 0 2rem;
}

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

.l-footer {
  border-top: 1px solid var(--border);
}

.l-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
}

.l-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--border);
}

.l-footer__brand {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-1);
}

.l-footer__brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.l-footer__social {
  display: flex;
  gap: 0.6rem;
}

.l-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.l-footer__social-link:hover {
  color: var(--gold-dk);
  border-color: var(--gold-lt);
}

.l-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .l-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.l-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.l-footer__col-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.15rem;
}

.l-footer__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  width: fit-content;
}

.l-footer__link:hover {
  color: var(--gold-dk);
}

.l-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.l-footer__meta {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.l-footer__bottom-links {
  display: flex;
  gap: 1.25rem;
}

.l-footer__bottom-links .l-footer__link {
  font-size: 0.8rem;
}

/* ---------- Cursor glow (desktop, pointer:fine only) ---------- */

.l-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb),0.14) 0%, rgba(var(--gold-rgb),0) 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.l-cursor-glow.is-active {
  opacity: 1;
}

@media (max-width: 900px), (hover: none) {
  .l-cursor-glow {
    display: none;
  }
}

/* ---------- Login modal ----------
   .modal-overlay/.modal/.modal__close are shared base chrome from
   styles.css (already loaded here) — same floating-form pattern the
   tenant public site uses for its own RSVP/tribute/photo modals. Only
   the content inside is landing-page-specific, so it gets its own
   l-login-modal__* classes rather than reusing admin.css's
   .admin-login__* (this page doesn't load admin.css at all). */

.l-login-modal {
  text-align: left;
}

.l-login-modal__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink-1);
  margin: 0 0 0.6rem;
}

.l-login-modal__hint {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
}

.l-login-modal__field {
  margin-bottom: 1.25rem;
}

.l-login-modal__field label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-1);
  margin-bottom: 0.5rem;
}

.l-login-modal__field input {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink-1);
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.l-login-modal__field input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb),.11);
}

.l-login-modal__preview {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0.4rem 0 0;
  min-height: 1.2em;
}

.l-login-modal__submit {
  width: 100%;
}

.l-login-modal__footer {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.l-login-modal__footer a {
  color: var(--gold-dk);
  font-weight: 600;
  text-decoration: none;
}

.l-login-modal__footer a:hover {
  color: var(--ink-1);
}


/* ---------- Pricing section ---------- */

.l-section__lede { max-width: 38rem; margin: .9rem auto 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; text-align: center; }
.l-plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem;
  max-width: 1200px; margin: 2.75rem auto 0; align-items: stretch;
}
.l-plan {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem; box-shadow: var(--s-sm); text-align: left;
}
.l-plan.is-popular { border: 2px solid var(--gold); box-shadow: var(--s); }
.l-plan__badge {
  position: absolute; top: -.85rem; left: 1.5rem; background: var(--gold); color: var(--on-accent, #fff);
  font-size: .8125rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px;
}
.l-plan__name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ink-1); margin: 0; }
.l-plan__price { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--ink-1); margin: 0; }
.l-plan__price small { font-family: var(--sans); font-weight: 400; font-size: .9375rem; color: var(--ink-3); }
.l-plan__desc { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.l-plan__list { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: .55rem; font-size: .9375rem; color: var(--ink-2); }
.l-plan__list li { position: relative; padding-left: 1.5rem; line-height: 1.45; }
.l-plan__list li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold-dk); border-bottom: 2px solid var(--gold-dk); transform: rotate(-45deg);
}
.l-plan__cta { margin-top: auto; justify-content: center; text-align: center; min-height: 46px; }
.l-plan__more { text-align: center; margin-top: 1.75rem; }
.l-plan__more a { font-weight: 600; text-underline-offset: 4px; }

/* Pricing card gradients (2026-11-13): each plan gets its own deep jewel
   tone (sage, terracotta, wine, gold, navy) with white text, matching the
   feature tiles. */
.l-plan-grid .l-plan { border-color: transparent; color: #fff; }
.l-plan-grid .l-plan:nth-child(5n+1) { background: linear-gradient(150deg, #7d8a72 0%, #3f4a38 100%); }
.l-plan-grid .l-plan:nth-child(5n+2) { background: linear-gradient(150deg, #d4693f 0%, #7a2e1e 100%); }
.l-plan-grid .l-plan:nth-child(5n+3) { background: linear-gradient(150deg, #b0425a 0%, #5e1a33 100%); }
.l-plan-grid .l-plan:nth-child(5n+4) { background: linear-gradient(150deg, #c9a227 0%, #7a5a12 100%); }
.l-plan-grid .l-plan:nth-child(5n+5) { background: linear-gradient(150deg, #3f4f8f 0%, #1b2147 100%); }
.l-plan-grid .l-plan .l-plan__name,
.l-plan-grid .l-plan .l-plan__price { color: #fff; }
.l-plan-grid .l-plan .l-plan__price small,
.l-plan-grid .l-plan .l-plan__desc,
.l-plan-grid .l-plan .l-plan__list { color: rgba(255, 255, 255, .88); }
.l-plan-grid .l-plan .l-plan__list li::before { border-color: #fff; }
.l-plan-grid .l-plan.is-popular { border: 2px solid #fff; box-shadow: 0 18px 40px rgba(122, 90, 18, .45); }
.l-plan-grid .l-plan .l-plan__badge { background: #fff; color: #7a5a12; }
.l-plan-grid .l-plan .l-plan__cta { background: #fff; color: #2b2410; border-color: #fff; }
.l-plan-grid .l-plan .l-plan__cta:hover,
.l-plan-grid .l-plan .l-plan__cta:focus-visible { background: rgba(255, 255, 255, .88); color: #2b2410; }

/* ---------- Phones (2026-11-06) ----------
   Found by checking the page at 375 and 320 px. */

/* Columns that shrink to the screen instead of growing to their widest item
   (at 320 px the feature section was 20 px wider than the phone). */
@media (max-width: 980px) {
  .l-features-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .l-feature-grid--split { grid-template-columns: minmax(0, 1fr); }
  .l-avatar-scene { min-width: 0; max-width: 100%; }
}

/* Feature cards on touch screens: there is no hover, so the description is
   always shown, beside a smaller icon, instead of a tall card that hides it. */
@media (hover: none) and (max-width: 760px) {
  .l-feature-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    text-align: left;
    padding: 1.15rem 1.15rem 1.25rem;
    cursor: default;
  }
  .l-feature-card__icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; border-radius: var(--r); }
  .l-feature-card__icon svg { width: 26px; height: 26px; }
  .l-feature-card__title { font-size: 1.05rem; line-height: 1.3; align-self: center; }
  .l-feature-card__text { max-height: none; opacity: 1; margin-top: 0.35rem; font-size: 0.9rem; line-height: 1.55; }
}

@media (max-width: 760px) {
  /* The "photos shared" badge sat on the sample couple's names: move it up. */
  .l-hero__badge { font-size: 0.75rem; }
  .l-hero__badge--gallery { bottom: auto; top: 3.4rem; }

  /* Readable small labels (12 px at least). */
  .l-template-card__body p:first-child,
  .l-footer__col-title { font-size: 0.75rem; }

  /* Comfortable tap targets. */
  .l-nav__brand { min-height: 44px; }
  .l-nav .btn--gold { min-height: 44px; display: inline-flex; align-items: center; }
  .l-footer__link { display: inline-flex; align-items: center; min-height: 40px; min-width: 44px; font-size: 0.9rem; }
  .l-footer__col { gap: 0; }
}
