:root {
  --product-bg: #07101f;
  --product-panel: #0d192c;
  --product-panel-soft: #13213a;
  --product-cream: #f5eadc;
  --product-copy: #b8c1d0;
  --product-pink: #f24e6a;
  --product-cyan: #55d9f4;
  --product-line: rgba(132, 153, 190, 0.28);
}

html { scroll-behavior: smooth; }

body.product-page {
  margin: 0;
  background:
    radial-gradient(circle at 82% 15%, rgba(55, 104, 181, 0.2), transparent 30rem),
    radial-gradient(circle at 12% 38%, rgba(242, 78, 106, 0.1), transparent 26rem),
    var(--product-bg);
  color: var(--product-cream);
}

.product-page .site-header { position: relative; }

.product-page .site-header .back-link {
  color: #c4ccda;
  font: 700 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.product-page .site-header .back-link:hover { color: #fff; }

.product-hero {
  width: var(--page);
  min-height: calc(100svh - 7rem);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) 0 5rem;
  display: grid;
  grid-template-columns: minmax(19rem, 0.85fr) minmax(32rem, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.product-copy { position: relative; z-index: 2; }

.product-copy h1 {
  max-width: 13ch;
  margin: 1.15rem 0 1.4rem;
  color: var(--product-cream);
  font: 800 clamp(3.1rem, 5.2vw, 5.3rem)/0.92 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.07em;
}

.product-copy h1 em { color: var(--product-pink); font-style: normal; }

.product-copy > p:not(.kicker) {
  max-width: 36rem;
  margin: 0;
  color: var(--product-copy);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.product-price {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
}

.product-price span {
  padding-bottom: 0.35rem;
  color: #8996aa;
  font: 800 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.product-price strong {
  color: #fff;
  font: 900 clamp(2.3rem, 4vw, 3.8rem)/0.9 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.product-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }

.product-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.product-proof li {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--product-line);
  background: rgba(10, 20, 36, 0.72);
  color: #d4d9e3;
  font: 700 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.demo-stage {
  min-height: 50rem;
  position: relative;
  display: grid;
  place-items: center;
}

.demo-stage::before {
  content: "";
  width: min(100%, 45rem);
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 103, 188, 0.28), rgba(242, 78, 106, 0.08) 45%, transparent 70%);
  filter: blur(6px);
}

.demo-phone {
  width: min(25rem, 78vw);
  height: min(49rem, 82svh);
  min-height: 41rem;
  position: relative;
  z-index: 2;
  padding: 0.72rem;
  border: 1px solid #697891;
  border-radius: 3rem;
  background: #03060b;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 0 0 3px #202a39;
}

.demo-phone::before {
  content: "";
  width: 7.8rem;
  height: 1.35rem;
  position: absolute;
  top: 0.7rem;
  left: 50%;
  z-index: 4;
  translate: -50% 0;
  border-radius: 0 0 0.9rem 0.9rem;
  background: #03060b;
  pointer-events: none;
}

.demo-phone iframe,
.preview-screen {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 2.25rem;
  background: #080d18;
}

.demo-badge,
.demo-callout {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--product-line);
  background: rgba(8, 17, 31, 0.92);
  box-shadow: 8px 8px 0 rgba(1, 5, 12, 0.42);
  backdrop-filter: blur(12px);
}

.demo-badge {
  top: 8%;
  left: 0;
  padding: 0.7rem 0.85rem;
  color: var(--product-cyan);
  font: 800 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.demo-callout {
  right: 0;
  bottom: 12%;
  width: 13rem;
  padding: 1rem;
}

.demo-callout span {
  color: var(--product-pink);
  font: 800 0.62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.demo-callout strong { display: block; margin-top: 0.45rem; font-size: 0.92rem; line-height: 1.4; }

.demo-instructions {
  position: absolute;
  left: 0;
  bottom: 17%;
  z-index: 3;
  width: 9rem;
  color: #aeb8c9;
  font: 700 0.62rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.demo-instructions::before { content: "↗"; display: block; color: var(--product-pink); font-size: 1.4rem; }

.product-strip {
  border-block: 1px solid var(--product-line);
  background: rgba(10, 19, 34, 0.8);
}

.product-strip__inner {
  width: var(--page);
  margin: 0 auto;
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.product-strip span {
  padding: 0.3rem 1rem;
  border-right: 1px solid var(--product-line);
  color: #c8d0dd;
  text-align: center;
  font: 700 0.7rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em;
}

.product-strip span:last-child { border: 0; }

.product-section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.product-section__heading {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(20rem, 1fr);
  align-items: end;
  gap: 4rem;
  margin-bottom: 3rem;
}

.product-section h2 {
  max-width: 14ch;
  margin: 1rem 0 0;
  color: var(--product-cream);
  font: 800 clamp(2.5rem, 5vw, 4.8rem)/0.98 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.055em;
}

.product-section__heading > p,
.product-section > p { color: var(--product-copy); font-size: 1.05rem; line-height: 1.7; }

.feature-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-panel {
  min-height: 23rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--product-line);
  background: var(--product-panel);
}

.feature-panel img { width: 100%; height: 13rem; display: block; object-fit: cover; }

.feature-panel div { padding: 1.4rem; }

.feature-panel span {
  color: var(--product-pink);
  font: 800 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.feature-panel h3 { margin: 0.7rem 0; font: 800 1.25rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-panel p { margin: 0; color: var(--product-copy); line-height: 1.6; }

.offer-box {
  width: var(--page);
  margin: 0 auto clamp(5rem, 9vw, 8rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  border: 1px solid rgba(242, 78, 106, 0.48);
  background:
    linear-gradient(110deg, rgba(242, 78, 106, 0.13), transparent 52%),
    var(--product-panel);
  box-shadow: 14px 14px 0 rgba(3, 7, 14, 0.55);
}

.offer-box h2 { max-width: 15ch; margin: 0 0 0.7rem; font: 800 clamp(2rem, 4vw, 3.7rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.05em; }
.offer-box p { max-width: 42rem; margin: 0; color: var(--product-copy); line-height: 1.65; }
.offer-box__price { min-width: 14rem; text-align: right; }
.offer-box__price span { display: block; color: #9aa6b8; font: 800 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
.offer-box__price strong { display: block; margin: 0.5rem 0 1rem; font: 900 3rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Preview for the shorter invitation product. */
.preview-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.preview-top {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(139, 158, 194, 0.35);
  background: rgba(6, 12, 24, 0.96);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.preview-top b { color: var(--product-pink); }

.preview-content { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem; }
.preview-level { align-self: center; padding: 0.4rem 0.65rem; border: 1px solid #8b9ec2; background: #101c32; font-size: 0.68rem; }
.preview-art { flex: 1; min-height: 17rem; position: relative; overflow: hidden; border: 1px solid #7f91b4; }
.preview-art img { width: 100%; height: 100%; display: block; object-fit: cover; transition: opacity 180ms ease; }
.preview-dialogue { padding: 1rem; border: 1px solid #8b9ec2; background: #0d192d; text-align: center; line-height: 1.45; }
.preview-answer { padding: 0.9rem; border: 1px solid #ff7d92; background: #d63f5b; color: #fff; text-align: center; font-weight: 900; }
.preview-footer { min-height: 3rem; display: grid; place-items: center; border-top: 1px solid rgba(139, 158, 194, 0.35); color: #ff657e; font-size: 1.1rem; }

.theme-picker { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.theme-picker button {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--product-line);
  background: #0e192b;
  color: #b7c1d1;
  cursor: pointer;
  font: 800 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}
.theme-picker button[aria-pressed="true"] { border-color: var(--product-cyan); color: #fff; box-shadow: inset 0 -3px 0 var(--product-cyan); }

@media (max-width: 980px) {
  .product-page .site-header nav { display: none; }
  .product-hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .product-copy { max-width: 44rem; }
  .product-copy h1 { max-width: 12ch; }
  .demo-stage { min-height: 48rem; }
  .product-section__heading { grid-template-columns: 1fr; gap: 1rem; }
  .feature-panels { grid-template-columns: 1fr 1fr; }
  .feature-panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .product-page .site-header { width: calc(100% - 28px); }
  .product-page .site-header .back-link { display: none; }
  .product-page .header-cta { padding-inline: 0.75rem; font-size: 0.58rem; }
  .product-hero { min-height: auto; padding-top: 3.2rem; gap: 2rem; }
  .product-copy h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .product-actions { display: grid; }
  .product-actions .button { width: 100%; justify-content: center; }
  .demo-stage { min-height: 43rem; margin-inline: -0.5rem; }
  .demo-phone { width: min(23rem, 96vw); height: 43rem; min-height: 0; }
  .demo-badge { left: -0.2rem; top: 5%; }
  .demo-callout, .demo-instructions { display: none; }
  .product-strip__inner { grid-template-columns: 1fr 1fr; }
  .product-strip span:nth-child(2) { border-right: 0; }
  .product-strip span:nth-child(-n + 2) { border-bottom: 1px solid var(--product-line); }
  .feature-panels { grid-template-columns: 1fr; }
  .feature-panel:last-child { grid-column: auto; }
  .offer-box { grid-template-columns: 1fr; }
  .offer-box__price { text-align: left; }
}
