/* The public pages: landing page, privacy policy, terms. Layout only —
   colours, fonts and the button classes come from styles.css, and the
   fixed header reuses .header / .header-content / #logo / #logoTitle. */

html {
  scroll-behavior: smooth;
}
.landingBody {
  background: var(--bg);
}
/* The header's translucent blurred backdrop is a layer behind its content
   rather than on the header itself: a backdrop-filter on the header would
   stop the theme panel inside it from blurring the page behind. */
.landingBody .header {
  background: none;
}
.landingBody .header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bgTranslucent);
  backdrop-filter: blur(12px);
}
.headerBrand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
/* The dark theme's logo and its hover (see dark.css); hidden otherwise. */
#logoDarkHover {
  display: none;
}
/* The theme menu (.themeMenu, .themeMenuPanel) is styled in styles.css: the
   guests' page has one too. */
.headerSpacer {
  flex: 1;
}
/* One gap between every header item; the language button's own margin
   (styles.css, for the app header) would double it here. */
.landingBody .header-content {
  gap: 8px;
}
.landingBody #languageButton {
  margin-right: 0;
}
/* The button classes are written for <button>; as links they need this. */
a[class^="button-"] {
  text-decoration: none;
}

/* --- Sections --- */
.landing .section {
  background: linear-gradient(var(--bg) 0%, var(--bgSoft) 100%);
  padding: 60px 5%;
}
.sectionTitle {
  text-align: center;
  max-width: 666px;
  margin: auto;
}
.sectionText {
  text-align: center;
  color: var(--textMuted);
  max-width: 500px;
  margin: 16px auto 0;
}
.sectionWrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 0;
}
.sectionSpace {
  height: 150px;
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  max-height: 820px;
  overflow: hidden;
}
.heroImageDark {
  display: none;
}
.heroImage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: right center;
}
/* Text sits on the clean linen at the left of the photo. */
.heroOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    var(--bg) 28%,
    var(--bgMostly) 50%,
    var(--bgClear) 80%
  );
}
.heroContent {
  position: relative;
  width: 100%;
  max-width: 700px;
  padding-left: 5%;
}
.heroContent h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  max-width: 640px;
}
.heroSubtitle {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--textMuted);
}
.heroButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.heroNote {
  margin-top: 20px;
  max-width: 560px;
  font-size: 0.9rem;
  line-height: 1.3rem;
  color: var(--textFaint);
}

/* --- How it works --- */
/* One step per row: the text beside a framed screenshot or recording,
   sides alternating from step to step. Media is expected landscape
   (about 16:10); the frame takes whatever ratio it gets. */
.steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}
.landingStep {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
}
.stepText {
  padding: 24px;
}
/* Mirrored: the columns swap width too, so every step's media is the
   same size whichever side it's on. */
.landingStepMediaFirst {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.landingStepMediaFirst .stepText {
  order: 2;
}
.stepMedia {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bgSoft);
  box-shadow: var(--shadow-media);
}
.stepMedia img,
.stepMedia video {
  display: block;
  width: 100%;
  height: auto;
}
.stepHeading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stepNumber {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--onAccent);
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}
.stepNumber span {
  /* Optical centring: the serif digits sit a touch low in their box. */
  margin-top: -8px;
}
.landingStep h3 {
  font-size: 1.75rem;
  line-height: 2.2rem;
}
.landingStep p {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.8rem;
  color: var(--textMuted);
}

/* --- Features --- */
.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.featureIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accentLight);
  color: var(--accentDark);
}
.featureIcon .smallIcon {
  width: 22px;
  height: 22px;
}
.feature p {
  margin-top: 8px;
  color: var(--textMuted);
}

/* --- PDF showcase --- */
/* A row of A4 pages that scrolls sideways and snaps card by card, edge to
   edge of the screen. The section drops its side padding and the row
   carries the wrapper's inset as its own padding instead, so at either end
   the cards line up with the text above; in between, a card peeks in from
   the edge, which is what says "there is more" without a dot indicator. */
.landing .sectionBleed {
  padding-left: 0;
  padding-right: 0;
}
/* The section's 5% side padding moves onto the wrapper for the text above
   the row. content-box keeps the 1100px max on the content, so the text
   lands exactly where it does in the other sections. */
.sectionBleed .sectionWrapper {
  box-sizing: content-box;
  padding: 60px 5% 0;
}
.pdfCarouselControls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 48px;
}
.pdfCarouselArrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
.pdfCarouselPrev .smallIcon {
  transform: scaleX(-1);
}
/* Full width of the section. Its side padding is the distance from the
   screen edge to the wrapper's content above: 5%, or the centring margin
   once the content has hit its 1100px max. Scrolled to either end, the
   first or last card then lines up with that text. */
.pdfRow {
  --inset: max(5%, calc((100% - 1100px) / 2));
  display: flex;
  gap: 32px;
  padding: 28px var(--inset) 60px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--inset);
  scrollbar-width: none;
}
.pdfRow::-webkit-scrollbar {
  display: none;
}
.pdfCard {
  flex: 0 0 350px;
  margin: 0;
  scroll-snap-align: start;
}
.pdfCard img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-elevated);
}
.pdfCard figcaption {
  margin-top: 20px;
}
.pdfCard figcaption strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: normal;
  font-size: 1.1rem;
}
.pdfCard figcaption span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5rem;
  color: var(--textMuted);
}

/* --- Photo strip --- */
.photoStrip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 32px;
}
.photoTiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.photoTile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}
.photoTile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photoTile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 72px 20px 20px;
  background: linear-gradient(var(--photoScrimClear) 0%, var(--photoScrim) 100%);
  color: var(--onPhoto);
}
.photoTile strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: normal;
  font-size: 1.25rem;
}
.photoTile span {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.4rem;
  color: var(--onPhotoMuted);
}

/* --- Pricing band --- */
.pricing {
  position: relative;
  overflow: hidden;
  padding: 120px 32px;
  text-align: center;
  color: var(--onPhoto);
}
.pricingImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pricingOverlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.pricingContent {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing h2 {
  color: var(--onPhoto);
  margin-bottom: 16px;
}
.pricingP {
  font-size: 1.1rem;
  line-height: 1.7rem;
  color: var(--onPhotoSubtle);
}
.pricing .button-big-gold {
  display: inline-flex;
}
/* Three cards on the photo: plan (free), the PDF, the guests' page. Glass
   over the picture rather than solid, so the band stays one picture; the
   guests' page card is the one to notice, gold-edged with a tag. */
.pricingCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}
.pricingCard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 16px;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(8px);
  color: var(--onPhoto);
}
.pricingCardFeatured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pricingBadge {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: var(--onAccent);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.pricingCard h3 {
  color: var(--onPhoto);
  font-size: 1.4rem;
}
.pricingPrice {
  margin-top: 12px;
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  line-height: 1.1;
}
.pricingPer {
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--onPhotoMuted);
}
.pricingCard ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  color: var(--onPhotoSubtle);
  line-height: 1.5rem;
}
.pricingCard li {
  display: flex;
  gap: 10px;
}
.pricingCard li .smallIcon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}
/* The button sits at the bottom whatever the list's length. */
.pricingCard [class^="button-"] {
  margin-top: auto;
  justify-content: center;
}
/* The secondary button's tokens are for a light page; on the photo it is
   an outline in the photo's text colour. */
.pricingCard .button-big-secondary {
  background: none;
  border: 1px solid rgb(255 255 255 / 45%);
  color: var(--onPhoto);
}
.pricingCard .button-big-secondary:hover {
  background: rgb(255 255 255 / 12%);
}

/* --- Guests' page showcase --- */
/* Text beside a phone: the phone column is the narrower one, mirroring the
   step rows' text/media split. */
.landingStepPhone {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-top: 56px;
}
.showcaseList {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.7rem;
  color: var(--textMuted);
}
.showcaseList li {
  display: flex;
  gap: 12px;
}
.showcaseList .smallIcon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--accentDark);
}
.showcaseNote {
  margin-top: 24px;
  font-size: 0.9rem;
  line-height: 1.3rem;
  color: var(--textFaint);
}
/* The text column's call to action only — the demo button in the phone is
   gold too and must not pick up the margin. */
.landingStepPhone .stepText .button-big-gold {
  display: inline-flex;
  margin-top: 28px;
}
.showcaseMedia {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* The phone frame (styles.css .guestPagePhone) sized for the page: the
   screen keeps a phone's proportions and the poster, the button and the
   frame all fill it. */
.showcasePhone {
  position: relative;
  /* A grid with one cell: the button, its only in-flow child, is centred
     in it without percentage offsets (which Safari resolves against the
     wrong box in this aspect-ratio frame). */
  display: grid;
  place-items: center;
  flex: none;
  width: min(340px, 100%);
  aspect-ratio: 9 / 19.5;
}
/* Until the page has loaded into the (positioned) frame: the poster, dimmed
   by a dark veil so it reads as "not live yet", and the button in the
   middle of it; the empty frame stays out of sight meanwhile. */
.showcasePoster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.showcasePhone:not(.loaded)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgb(0 0 0 / 45%);
}
.showcaseLoad {
  position: relative;
  z-index: 3;
  white-space: nowrap;
}
.showcasePhone:not(.loaded) iframe {
  visibility: hidden;
}
.showcasePhone.loaded .showcasePoster,
.showcasePhone.loaded .showcaseLoad {
  display: none;
}
/* The step rows style their paragraphs; the button's label is not one of
   them. */
.landingStepPhone .button-big-gold p {
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.4rem;
  color: var(--onAccent);
}
.showcaseHint {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--textFaint);
}

/* --- Footer --- */
.landingFooter {
  padding: 48px 32px;
  background: var(--footerBg);
  color: var(--footerText);
}
.footerInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.footerBrand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
#footerLogo {
  height: 54px;
  width: 54px;
}
#footerLogoHover {
  position: absolute;
  top: 0;
  left: 0;
  height: 54px;
  width: 54px;
  opacity: 0.4;
  transition: 0.2s;
}
.footerBrand:hover #footerLogoHover {
  opacity: 1;
}
#footerLogoTitle {
  padding-bottom: 4px;
  padding-left: 12px;
  font-family: "Lato Light";
  font-weight: 400;
  color: var(--footerText);
  transition: 0.2s;
}
.footerBrand:hover #footerLogoTitle {
  color: var(--footerTextHover);
}
.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footerLinks a {
  color: var(--footerText);
  text-decoration: none;
}
.footerLinks a:hover {
  color: var(--accent);
}

/* --- Legal pages --- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 32px;
}
.legal h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
.legal h2 {
  margin-top: 40px;
  font-size: 1.4rem;
  line-height: 1.9rem;
}
.legal p {
  margin-top: 12px;
  color: var(--textMuted);
}
.legalBack {
  margin-top: 48px !important;
}
.legalBack a {
  color: var(--accentDark);
}

/* --- Narrow screens --- */
@media (max-width: 800px) {
  .hero {
    min-height: 0;
  }
  .heroContent {
    padding: 200px 20% 200px 5%;
  }
  .heroOverlay {
    background: linear-gradient(
      90deg,
      var(--bg) 0%,
      var(--bg) 30%,
      var(--bgMostly) 70%,
      var(--bgClear) 100%
    );
  }
  .landing h1 {
    font-size: 2.4rem;
  }
  .heroSubtitle {
    font-size: 1rem;
    line-height: 1.4rem;
  }
  .landingStep,
  .featureGrid,
  .photoTiles {
    grid-template-columns: 1fr;
  }
  .pdfRow {
    gap: 20px;
    padding-bottom: 32px;
  }
  .pdfCard {
    flex-basis: 72vw;
  }
  .steps {
    gap: 64px;
  }
  .landingStep {
    gap: 24px;
  }
  /* Text above its media on every step, whichever side it had. */
  .landingStepMediaFirst .stepText {
    order: 0;
  }
  .landingStep h3 {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }
  .stepNumber {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  .photoStrip {
    padding: 0 5% 64px;
  }
  .pricing {
    padding: 80px 5%;
  }
  .pricingCards {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .landingStepPhone {
    grid-template-columns: 1fr;
  }
  .landingStepPhone .stepText {
    order: 0;
  }
  .showcasePhone {
    width: min(300px, 80vw);
  }
  /* The name alone is 200px wide: keep the logo mark, make room for the
     language button and the call to action. */
  .landingBody .header-content {
    padding: 0 16px;
  }
  /* The icon sits near the left edge here, so centring would push the
     panel off screen: start it at the icon instead. */
  .themeMenuPanel {
    left: 0;
    transform: none;
  }
  .landingBody #logoTitle {
    display: none;
  }
  .legal {
    padding: 96px 5%;
  }
}
