:root {
  --primary: #3f1d75;
  --primary-dark: #251044;
  --secondary: #ebdeff;
  --ink: #1f1730;
  --muted: #675d73;
  --soft: #faf7ff;
  --white: #fff;
  --rose: #f9d5d3;
  --gold: #f4c96b;
  --mint: #cbeedc;
  --shadow: 0 24px 70px rgba(63, 29, 117, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--soft);
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.section-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(250, 247, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(63, 29, 117, 0.1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
}
.header-nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 700; }
.header-nav a:hover { color: var(--primary); }
.header-cta {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(63, 29, 117, 0.18);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 1160px) minmax(20px, 1fr);
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 112px);
  margin: 0 auto 40px;
  padding: 62px 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 3;
  grid-column: 2;
  max-width: 700px;
  padding: 34px 0;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: "Lora", Georgia, serif; letter-spacing: 0; }
h1 { max-width: 670px; font-size: clamp(48px, 8vw, 86px); line-height: 0.98; color: var(--primary-dark); }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; color: var(--primary-dark); }
h3 { font-size: 24px; line-height: 1.15; color: var(--primary-dark); }
p { line-height: 1.7; }
.hero .eyebrow,
.hero h1,
.hero-subhead {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(15, 6, 30, 0.34);
}

.hero-subhead { max-width: 560px; margin: 24px 0 30px; color: rgba(255, 255, 255, 0.88); font-size: 19px; }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store-row.center { justify-content: center; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 204px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 16px;
  color: var(--white);
  background: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(31, 23, 48, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.store-button:hover { transform: translateY(-2px); background: var(--primary); box-shadow: 0 20px 42px rgba(31, 23, 48, 0.24); }
.store-button small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; opacity: 0.82; }
.store-icon { width: 26px; height: 26px; flex: 0 0 auto; }
.store-icon svg { width: 100%; height: 100%; fill: currentColor; }

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(31, 10, 55, 0.92) 0%, rgba(63, 29, 117, 0.74) 42%, rgba(63, 29, 117, 0.18) 78%),
    linear-gradient(0deg, rgba(31, 10, 55, 0.28), rgba(31, 10, 55, 0.08));
}
.hero-visual > img { width: 100%; height: 100%; min-height: calc(100vh - 112px); object-fit: cover; object-position: center; }
.phone-mockup {
  position: relative;
  width: min(280px, 72vw);
  padding: 14px;
  border-radius: 38px;
  background: #16111d;
  box-shadow: 0 24px 70px rgba(16, 8, 27, 0.32);
}
.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  width: 80px;
  height: 8px;
  border-radius: 999px;
  background: #2a2331;
  transform: translateX(-50%);
}
.app-screen {
  min-height: 520px;
  padding: 38px 18px 18px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f2ff, #fff);
}
.screen-top {
  padding: 18px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #7c4bc1);
}
.screen-top span, .detail-card small { display: block; font-size: 12px; font-weight: 700; opacity: 0.78; }
.screen-top strong { display: block; margin-top: 6px; font-family: "Lora", Georgia, serif; font-size: 24px; line-height: 1.1; }
.detail-card, .screen-block {
  margin: 16px 0;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(63, 29, 117, 0.12);
}
.detail-card b, .detail-card span, .screen-block strong, .screen-block span { display: block; }
.detail-card b { margin: 6px 0; color: var(--primary-dark); font-size: 18px; }
.detail-card span, .screen-block span { color: var(--muted); font-size: 13px; font-weight: 600; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-grid span {
  padding: 18px 8px;
  border-radius: 18px;
  color: var(--primary);
  background: var(--secondary);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.photo-strip i { height: 80px; border-radius: 16px; background: linear-gradient(135deg, var(--rose), var(--gold)); }
.photo-strip i:nth-child(2) { background: linear-gradient(135deg, var(--mint), var(--secondary)); }
.photo-strip i:nth-child(3) { background: linear-gradient(135deg, #cbd8ff, var(--rose)); }

.problem { padding: 86px 0; background: var(--white); }
.problem-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center; }
.problem p { max-width: 660px; color: var(--muted); font-size: 18px; }
.message-stack { display: grid; gap: 14px; padding: 28px; border-radius: 30px; background: var(--soft); }
.message-card {
  width: fit-content;
  max-width: 92%;
  padding: 15px 18px;
  border-radius: 18px;
  color: #4a4058;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(63, 29, 117, 0.1);
  font-weight: 700;
}
.message-card:nth-child(2) { justify-self: end; }
.message-card.calm { color: var(--white); background: var(--primary); }

.benefits, .use-cases { padding: 104px 0; }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card, .moment-card { border: 1px solid rgba(63, 29, 117, 0.12); background: var(--white); box-shadow: 0 18px 48px rgba(63, 29, 117, 0.08); }
.benefit-card { min-height: 310px; padding: 30px; border-radius: 8px; }
.benefit-card p, .moment-card p, .feature-panel p, .final-inner p { color: var(--muted); }
.icon-circle {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--secondary);
  font-size: 27px;
  font-weight: 800;
}

.features { padding: 104px 0; background: linear-gradient(180deg, var(--primary-dark), var(--primary)); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 60px; align-items: center; }
.features .eyebrow, .features h2 { color: var(--white); }
.feature-copy h2 { max-width: 620px; }
.feature-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 22px; }
.feature-tab {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}
.feature-tab.active, .feature-tab:focus-visible { color: var(--primary-dark); background: var(--secondary); outline: none; }
.feature-panel { max-width: 640px; min-height: 172px; padding: 26px; border-radius: 8px; background: var(--white); }
.feature-panel h3 { margin-bottom: 10px; }
.feature-phone-wrap { display: grid; place-items: center; }
.feature-phone { width: min(310px, 78vw); }
#featureScreen { transition: opacity 180ms ease, transform 180ms ease; }
#featureScreen.changing { opacity: 0; transform: translateY(8px); }
.feature-screen-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.feature-screen-title b { font-family: "Lora", Georgia, serif; color: var(--primary-dark); font-size: 24px; }
.feature-pill { padding: 8px 10px; border-radius: 999px; color: var(--primary); background: var(--secondary); font-size: 11px; font-weight: 800; }

.moment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.moment-card { overflow: hidden; border-radius: 8px; }
.moment-card img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.moment-card div { padding: 22px; }
.moment-card span { display: inline-flex; margin-bottom: 12px; color: var(--primary); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.moment-card h3 { font-size: 21px; }
.moment-card p { font-size: 14px; }

.final-cta {
  padding: 106px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(63, 29, 117, 0.84), rgba(63, 29, 117, 0.84)),
    url("https://images.pexels.com/photos/19346381/pexels-photo-19346381.jpeg?auto=compress&cs=tinysrgb&w=1600&h=1000&fit=crop") center / cover;
}
.final-inner { max-width: 840px; text-align: center; }
.final-inner .eyebrow, .final-inner h2, .final-inner p { color: var(--white); }
.final-inner p { max-width: 620px; margin: 18px auto 28px; font-size: 18px; }

.site-footer { padding: 34px 0; background: var(--primary-dark); color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark { color: var(--primary); background: var(--secondary); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: rgba(255, 255, 255, 0.72); font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .header-nav { display: none; }
  .problem-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    min-height: calc(100vh - 104px);
    padding: 44px 0;
  }
  .hero-visual, .hero-visual > img { min-height: 100%; }
  .benefit-grid, .moment-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .section-shell { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 64px; padding: 10px 14px; }
  .header-cta { padding: 10px 14px; font-size: 13px; }
  .hero {
    min-height: calc(100vh - 92px);
    margin-bottom: 28px;
    padding: 34px 0;
  }
  .hero-copy { padding: 18px 0; }
  h1 { font-size: 46px; }
  .hero-subhead { font-size: 17px; }
  .store-button { width: 100%; justify-content: center; }
  .hero-visual, .hero-visual > img { min-height: 100%; border-radius: 0; }
  .problem, .benefits, .features, .use-cases, .final-cta { padding: 72px 0; }
  .benefit-grid, .moment-grid { grid-template-columns: 1fr; }
  .feature-panel { min-height: 210px; }
  .feature-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .feature-tab { width: 100%; }
}
