/* Celebrate the Bride — marketing site. Hand-written, mobile-first. */

:root {
  --cream: #faf6f2;
  --blush: #f4e9e3; /* card / alt-section background */
  --rose: #9c3a5a; /* primary accent / CTA */
  --rose-dark: #832f4b; /* hover */
  --ink: #1f1b1a; /* primary text */
  --muted: #5d5552; /* secondary text */
  --border: #e3d6ce;
  --max: 1100px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--rose);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rose);
  margin: 0 0 0.8em;
}

/* ---- Top bar ---- */
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.bar-link {
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}
.bar-link:hover {
  text-decoration: underline;
}

/* ---- Section rhythm ---- */
main section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

/* ---- 1. Hero ---- */
.hero {
  padding-top: 1rem;
}
.hero-media img {
  width: 100%;
  border-radius: 16px;
}
.hero-copy {
  padding-top: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.2rem);
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 30ch;
}

/* App Store badge placeholder (subtle shadow allowed) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  margin: 0.75rem 0 0.9rem;
  box-shadow: 0 2px 10px rgba(31, 27, 26, 0.18);
}
.apple-mark::before {
  content: "\f8ff"; /* Apple logo glyph */
  font-size: 1.5rem;
  line-height: 1;
}
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.badge-text small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-text strong {
  font-size: 1.15rem;
  font-weight: 600;
}
.price-note {
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* ---- 2. Join an event ---- */
.join-wrap {
  padding-top: 0;
}
.join-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border: 2px solid var(--rose);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 24px rgba(156, 58, 90, 0.1);
}
.join-icon {
  font-size: 2.6rem;
  color: var(--rose);
  line-height: 1;
}
.join-body h2 {
  font-size: 1.7rem;
  margin-bottom: 0.15em;
}
.join-body > p {
  color: var(--muted);
  margin-bottom: 1rem;
}
#join-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
#join-code {
  font-family: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
#join-code:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
  border-color: var(--rose);
}
#join-form button {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--rose);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
}
#join-form button:hover {
  background: var(--rose-dark);
}
.join-error {
  color: var(--rose);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- 3 & 5. Feature rows ---- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-media img {
  border-radius: 14px;
  width: 100%;
}
.feature.alt .feature-media img {
  max-width: 300px;
  margin: 0 auto;
}
.feature h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
}
.feature-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
}

/* ---- 4. Guests ---- */
.guests {
  text-align: center;
  background: var(--blush);
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.guests h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
}
.feature-grid {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  max-width: var(--max);
  display: grid;
  gap: 1.75rem;
}
.feature-grid li {
  text-align: center;
}
.feature-grid i {
  font-size: 2.2rem;
  color: var(--rose);
}
.feature-grid h3 {
  font-size: 1.3rem;
  margin: 0.5rem 0 0.25rem;
}
.feature-grid p {
  color: var(--muted);
  margin: 0;
}

/* ---- Three core pillars (the marquee block) ---- */
.pillars {
  text-align: center;
}
.pillar-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.pillar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.pillar i {
  font-size: 2.4rem;
  color: var(--rose);
}
.pillar h3 {
  font-size: 1.4rem;
  margin: 0.6rem 0 0.35rem;
}
.pillar p {
  color: var(--muted);
  margin: 0;
}

/* ---- 6. Keepsake video — demoted "nice bonus" strip ---- */
.bonus {
  max-width: 720px;
  border-left: 4px solid var(--rose);
  padding: 1.5rem 1.25rem 1.5rem 1.75rem;
}
.bonus .eyebrow {
  margin-bottom: 0.4em;
}
.bonus h2 {
  font-size: 1.45rem;
  margin-bottom: 0.3em;
}
.bonus p {
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

/* ---- 7. Pricing ---- */
.pricing {
  text-align: center;
  background: var(--blush);
  max-width: none;
}
.price-figure {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0;
}
.price-figure .amount {
  font-size: clamp(4rem, 14vw, 6rem);
  font-weight: 600;
  display: block;
  line-height: 1;
  color: var(--rose);
}
.price-line {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0.3rem 0 1rem;
}
.fineprint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- 8. FAQ ---- */
.faq h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  text-align: center;
}
.faq-list {
  max-width: 680px;
  margin: 1.5rem auto 0;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--rose);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* ---- Legal stub pages (privacy / terms) ---- */
.legal {
  max-width: 680px;
}
.legal h1 {
  font-size: clamp(2.2rem, 7vw, 3rem);
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}
.legal p {
  color: var(--muted);
}
.legal-updated {
  font-size: 0.9rem;
  margin-top: -0.4em;
}

/* ---- 9. Footer ---- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-links span {
  color: var(--muted);
}
.copyright,
.apple-legal {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.9rem 0 0;
}
.apple-legal {
  margin-top: 0.3rem;
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  main section {
    padding: 5rem 1.5rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding-top: 1.5rem;
  }
  .hero-copy {
    order: -1; /* text left, image right */
    padding-top: 0;
  }

  .join-card {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
  }
  .join-icon {
    font-size: 3.4rem;
  }
  .join-body {
    flex: 1;
  }
  #join-form {
    flex-direction: row;
  }
  #join-code {
    flex: 1;
  }
  #join-form button {
    white-space: nowrap;
  }

  .feature {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
  .feature .feature-media,
  .feature .feature-copy {
    flex: 1;
  }
  .feature.alt {
    flex-direction: row-reverse;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
