@import url("https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #273026;
  --muted: #6b735f;
  --olive: #495641;
  --sage: #7f8d70;
  --cream: #f6efe2;
  --paper: #fffaf1;
  --champagne: #d7b36a;
  --rose: #d9b8a8;
  --clay: #9f705d;
  --line: rgba(73, 86, 65, 0.18);
  --shadow: 0 24px 80px rgba(39, 48, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(215, 179, 106, 0.22), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(217, 184, 168, 0.24), transparent 28%),
    linear-gradient(180deg, #fffaf1 0%, #f1e8da 100%);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(73, 86, 65, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 86, 65, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 241, 0.78);
  border-bottom: 1px solid rgba(73, 86, 65, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: rgba(39, 48, 38, 0.78);
  font-size: 0.93rem;
  font-weight: 650;
}

.ghost-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 7vw, 86px);
  padding: clamp(46px, 7vw, 88px) clamp(18px, 6vw, 82px) 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-family: "Allura", cursive;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.hero h1,
.section-heading h2,
.flow-heading h2,
.faq h2,
.modal-card h2,
.admin-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 830px;
  font-size: clamp(4.1rem, 9vw, 8.6rem);
}

.hero__lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(39, 48, 38, 0.72);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero__actions,
.checkout-box,
.admin-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 16px 34px rgba(39, 48, 38, 0.18);
  font-weight: 800;
  cursor: pointer;
}

.button--soft {
  background: rgba(255, 250, 241, 0.82);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(73, 86, 65, 0.14);
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.trust-row span {
  border: 1px solid rgba(73, 86, 65, 0.16);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 250, 241, 0.62);
  color: rgba(39, 48, 38, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero__showcase {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
}

.hero__showcase::before {
  content: "";
  position: absolute;
  width: min(72vw, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 179, 106, 0.42);
  border-radius: 48% 52% 50% 50%;
  transform: rotate(-9deg);
}

.phone-card {
  position: relative;
  z-index: 1;
  width: min(78vw, 390px);
  border: 12px solid #211f1c;
  border-radius: 42px;
  padding: 12px;
  background: #211f1c;
  box-shadow: var(--shadow);
}

.phone-card__bar {
  width: 88px;
  height: 6px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: rgba(255, 250, 241, 0.22);
}

.phone-card img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
}

.message-preview {
  margin-top: 10px;
  border-radius: 24px;
  padding: 16px;
  background: #d9ffd4;
}

.message-preview strong,
.message-preview span {
  display: block;
}

.message-preview span {
  margin-top: 6px;
  color: rgba(39, 48, 38, 0.7);
  font-size: 0.88rem;
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 90px;
  z-index: 2;
  max-width: 220px;
  border: 1px solid rgba(215, 179, 106, 0.45);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 18px 50px rgba(39, 48, 38, 0.16);
  backdrop-filter: blur(12px);
}

.floating-note strong,
.floating-note span {
  display: block;
}

.floating-note strong {
  color: var(--clay);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.section {
  padding: 76px clamp(18px, 6vw, 82px);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-strip article,
.template-card,
.builder,
.pricing-grid article,
.faq details,
.modal-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 14px 48px rgba(39, 48, 38, 0.08);
}

.intro-strip article {
  padding: 24px;
}

.intro-strip span,
.section-heading p,
.flow-heading p,
.template-card__tag,
.label-pill,
.pricing-grid span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-strip h2 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.intro-strip p,
.template-card p,
.pricing-grid p,
.faq p {
  color: rgba(39, 48, 38, 0.68);
  line-height: 1.7;
}

.section-heading,
.flow-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2,
.flow-heading h2,
.faq h2 {
  margin-top: 10px;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
}

.template-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.template-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.template-card.is-selected {
  border-color: rgba(215, 179, 106, 0.82);
  box-shadow: 0 22px 70px rgba(159, 112, 93, 0.18);
}

.template-card:hover {
  transform: translateY(-4px);
}

.template-card__visual {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 179, 106, 0.28), transparent 32%),
    linear-gradient(145deg, var(--paper), #eadccc);
}

.template-card__visual img {
  max-height: 215px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(39, 48, 38, 0.18));
}

.template-card h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.swatches {
  display: flex;
  gap: 7px;
  margin: 16px 0;
}

.swatches span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 250, 241, 0.84);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(39, 48, 38, 0.12);
}

.template-card button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(73, 86, 65, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.78);
  color: var(--ink);
  font-weight: 800;
}

.product-flow {
  background:
    linear-gradient(180deg, rgba(73, 86, 65, 0.08), rgba(73, 86, 65, 0)),
    transparent;
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.8fr);
  gap: 28px;
  padding: clamp(18px, 4vw, 34px);
}

.builder-form {
  display: grid;
  gap: 18px;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  border-radius: 22px;
  margin: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.46);
}

legend {
  padding: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(39, 48, 38, 0.72);
  font-size: 0.88rem;
  font-weight: 750;
}

.span-2 {
  grid-column: span 2;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(73, 86, 65, 0.16);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 250, 241, 0.82);
  color: var(--ink);
  outline: 0;
}

input:focus,
textarea:focus {
  border-color: rgba(215, 179, 106, 0.82);
  box-shadow: 0 0 0 4px rgba(215, 179, 106, 0.16);
}

.checkout-box {
  justify-content: space-between;
  border: 1px solid rgba(215, 179, 106, 0.36);
  border-radius: 22px;
  padding: 18px;
  background: rgba(73, 86, 65, 0.08);
}

.checkout-box span,
.share-card span {
  display: block;
  color: rgba(39, 48, 38, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.live-preview {
  position: sticky;
  top: 96px;
  align-self: start;
}

.invite-preview {
  overflow: hidden;
  border-radius: 30px;
  background: var(--olive);
  box-shadow: var(--shadow);
}

.invite-preview__photo {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  object-position: 50% 34%;
}

.invite-preview__content {
  padding: 24px;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(39, 48, 38, 0.94), rgba(73, 86, 65, 0.92)),
    url("assets/boho-arch.png") center / cover;
}

.invite-preview__content > p:first-child {
  margin: 0;
  color: var(--champagne);
  font-family: "Allura", cursive;
  font-size: 2rem;
}

.invite-preview h3 {
  margin: 8px 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 0.9;
}

.invite-preview em {
  color: var(--champagne);
  font-style: normal;
}

.families-preview,
.date-preview {
  display: grid;
  gap: 8px;
}

.families-preview {
  color: rgba(255, 250, 241, 0.75);
}

.date-preview {
  grid-template-columns: auto 1fr;
  margin: 22px 0;
  border-top: 1px solid rgba(255, 250, 241, 0.22);
  border-bottom: 1px solid rgba(255, 250, 241, 0.22);
  padding: 18px 0;
}

.date-preview strong {
  color: var(--champagne);
}

.share-card {
  margin-top: 14px;
  border-radius: 22px;
  padding: 18px;
  background: #d9ffd4;
}

.share-card strong {
  display: block;
  margin: 8px 0 6px;
}

.share-card p {
  margin: 0;
  color: rgba(39, 48, 38, 0.7);
}

.pricing-grid article {
  padding: 28px;
}

.pricing-grid h3 {
  margin: 12px 0;
  font-size: 2.6rem;
}

.pricing-grid .featured {
  color: var(--paper);
  background:
    radial-gradient(circle at right top, rgba(215, 179, 106, 0.36), transparent 34%),
    var(--ink);
}

.pricing-grid .featured p {
  color: rgba(255, 250, 241, 0.74);
}

.faq {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 24px;
  align-items: start;
}

.faq details {
  padding: 22px;
  margin-bottom: 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 28, 22, 0.42);
  backdrop-filter: blur(12px);
}

.payment-modal[hidden],
.admin-panel[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(92vw, 560px);
  padding: 34px;
}

.modal-card h2,
.admin-panel h2 {
  font-size: 3.6rem;
}

.modal-close,
.admin-panel__head button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(73, 86, 65, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
}

.result-link {
  margin: 22px 0;
  border-radius: 18px;
  padding: 16px;
  background: rgba(73, 86, 65, 0.08);
  font-weight: 800;
  word-break: break-word;
}

.admin-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: min(94vw, 520px);
  overflow: auto;
  padding: 22px;
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(18px);
}

.admin-panel__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-right: 52px;
}

.admin-summary {
  margin: 18px 0;
}

.admin-summary span,
.order-card {
  border: 1px solid rgba(73, 86, 65, 0.14);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
}

.orders {
  display: grid;
  gap: 12px;
}

.order-card h3 {
  margin: 0 0 8px;
}

.order-card p {
  margin: 5px 0;
  color: rgba(39, 48, 38, 0.7);
}

.order-card code {
  display: block;
  margin-top: 10px;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 980px) {
  .hero,
  .builder,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero__showcase {
    min-height: auto;
  }

  .live-preview {
    position: static;
  }

  .intro-strip,
  .template-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  fieldset {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .floating-note {
    right: 6px;
    bottom: 24px;
  }
}
