/*
  Moments — standalone wedding-product theme.

  Deliberately NOT sharing /index.css with the rest of scavvy.com: Moments is
  its own brand (blush + serif, no Scavvy blue), so everything it needs lives
  here. Palette and type are matched to the guest app at app.scavvy.com/wedding.
*/

:root {
  --ink: #241d1a;
  --ink-soft: #4a3f3a;
  --muted: #7d6f69;
  --line: #ece0dc;

  --rose: #e8536f;
  --rose-deep: #c93c58;
  --rose-tint: #fdeef0;
  --amber-tint: #fdf1e7;
  --amber: #d98d4f;
  --lilac-tint: #f3eefa;
  --lilac: #8d6cb8;

  --cream: #fffcfa;
  --shell: #fdf4f1;
  --card: #ffffff;

  --shadow-sm: 0 1px 2px rgba(80, 46, 40, 0.05), 0 6px 18px rgba(80, 46, 40, 0.05);
  --shadow-md: 0 2px 6px rgba(80, 46, 40, 0.06), 0 18px 44px rgba(80, 46, 40, 0.09);
  --shadow-lg: 0 30px 70px rgba(80, 46, 40, 0.14);

  --radius: 18px;
  --radius-lg: 26px;

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --page: min(1120px, 100% - 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

p {
  margin: 0;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--rose);
  margin-bottom: 14px;
}

.amp {
  color: var(--rose);
  font-style: italic;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 83, 111, 0.28);
}

.btn-primary:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 12px 22px;
  font-size: 15px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 252, 250, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(236, 224, 220, 0.7);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--rose);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--rose);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(1100px 520px at 12% -10%, #fff6f2 0%, rgba(255, 246, 242, 0) 62%),
    radial-gradient(900px 520px at 92% 8%, #fdeef0 0%, rgba(253, 238, 240, 0) 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--shell) 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 66px);
}

.hero h1 em {
  font-style: italic;
  color: var(--rose);
}

.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero-figure {
  position: relative;
  justify-self: center;
}

.hero-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero {
    padding: 56px 0 68px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-sub {
    max-width: none;
  }
}

/* ---------- generic section ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--shell);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 3.6vw, 44px);
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .section {
    padding: 68px 0;
  }
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--rose);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 23px;
}

.step p {
  margin-top: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 16px;
}

.step img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  margin-top: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.step img.step-art {
  /* The QR and storybook cards are graphics, not photos: cropping would cut
     the code or the layout. Letterbox them on the ground the SVGs paint. */
  object-fit: contain;
  background: #fdf4f1;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- prompt types ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split.reverse .split-media {
  order: -1;
}

.split.split-book {
  /* The storybook spread is landscape: give it a wider column so the book
     does not read as a stamp next to the copy. */
  grid-template-columns: 1.24fr 1fr;
  gap: 56px;
}

.split-media img {
  /* The portrait app screenshot is very tall; cap it so it does not tower
     over the copy beside it. */
  max-height: 620px;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split-media img.split-art {
  /* The storybook spread is a landscape graphic that draws its own paper edge
     and shadow, so it wants the full column and none of the photo framing. */
  max-height: none;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .split,
  .split.split-book {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse .split-media {
    order: 0;
  }
}

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

.prompt-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.prompt-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}

.prompt-icon.photo {
  background: var(--rose-tint);
  color: var(--rose);
}

.prompt-icon.video {
  background: var(--amber-tint);
  color: var(--amber);
}

.prompt-icon.text {
  background: var(--lilac-tint);
  color: var(--lilac);
}

.prompt-row h3 {
  font-size: 19px;
}

.prompt-row p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.prompt-list.stacked {
  margin-top: 32px;
}

/* ---------- quote ---------- */

.quote {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.35;
  color: var(--ink);
}

.quote figcaption {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.plan.featured {
  border-color: rgba(232, 83, 111, 0.35);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--rose-tint);
  border-radius: 999px;
  padding: 6px 12px;
}

.plan h3 {
  font-size: 24px;
}

.plan-price {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
  line-height: 1;
}

.plan-price small {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.plan-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li svg {
  flex: none;
  margin-top: 4px;
  color: var(--rose);
}

.plan .btn {
  margin-top: 28px;
  width: 100%;
}

.plan-foot {
  margin-top: auto;
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* ---------- faq ---------- */

.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

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

.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--cream);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--rose);
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* ---------- scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
