:root {
  /* PurnaZen palette (from @Mobileappscreens design system) */
  --bg: #F8FDFB;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #F0F9F6;
  --text: #1A3A3A;
  --muted: rgba(26, 58, 58, 0.65);
  --line: rgba(26, 58, 58, 0.12);

  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #D1FAE5;
  --accent: #A7F3D0;

  --lavender: #8B5CF6;
  --lavender-soft: rgba(139, 92, 246, 0.16);

  --cream: #0B2A2A;
  --glint: rgba(255, 255, 255, 0.7);

  /* Back-compat names (from earlier draft) */
  --sage: var(--primary-dark);
  --sage-bright: var(--primary);
  --sage-soft: rgba(16, 185, 129, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow-soft: 0 22px 60px rgba(16, 185, 129, 0.14), 0 18px 48px rgba(0, 0, 0, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[data-animate] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms cubic-bezier(.2,.9,.2,1), transform 700ms cubic-bezier(.2,.9,.2,1);
}

[data-animate].is-in {
  opacity: 1;
  transform: translateY(0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 253, 251, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo--footer {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.nav-drawer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-drawer a:hover {
  color: var(--text);
}

.nav-drawer .btn {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .nav,
  .header-cta {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-drawer {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sage-bright), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff;
}

.btn-ghost:hover {
  border-color: rgba(26, 58, 58, 0.22);
  background: #ffffff;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 85% 20%, rgba(16, 185, 129, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 55% at 10% 35%, rgba(59, 130, 246, 0.12), transparent 52%),
    var(--bg);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.14), transparent 46%),
    radial-gradient(circle at 60% 70%, rgba(59, 130, 246, 0.10), transparent 52%),
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.55), transparent 42%);
  filter: blur(40px);
  animation: meshFloat 14s ease-in-out infinite alternate;
  opacity: 0.9;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.035;
}

@keyframes meshFloat {
  from { transform: translate3d(-1.5%, -1.2%, 0) rotate(-1deg); }
  to { transform: translate3d(1.5%, 1.2%, 0) rotate(1deg); }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

@media (max-width: 959px) {
  .hero-visual {
    order: 1;
  }

  .hero-copy {
    order: 0;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-bright);
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw + 0.6rem, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}

.lead {
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

@media (max-width: 639px) {
  .lead {
    max-width: none;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 58, 58, 0.10);
  color: rgba(26, 58, 58, 0.72);
}

.badge--lav {
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(139, 92, 246, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

/* Hero visual — video keeps natural phone aspect (no stretched / “skinny” frame) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

/* Figure is semantic only — no “card” frame around the video */
.hero-mockup {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: clamp(20px, 4vw, 28px);
  overflow: hidden;
  display: block;
  width: fit-content;
  max-width: 100%;
}

/*
 * Do not set width: 100% on <video> — with a height cap it reads as “too narrow”.
 * Let intrinsic aspect ratio win: cap both dimensions like a phone viewport (~9:16).
 */
.hero-mockup__media,
.hero-mockup img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(390px, 92vw);
  max-height: min(520px, 56svh, 70dvh);
  vertical-align: middle;
  object-fit: contain;
  border-radius: clamp(20px, 4vw, 28px);
}

@supports not (max-height: 1svh) {
  .hero-mockup__media,
  .hero-mockup img {
    max-height: min(520px, 56vh);
  }
}

@media (max-width: 639px) {
  .hero {
    padding: clamp(2rem, 6vw, 3rem) 0 clamp(2.5rem, 8vw, 4rem);
  }

  .hero-mockup,
  .hero-mockup__media,
  .hero-mockup img {
    border-radius: clamp(18px, 4.5vw, 24px);
  }

  .hero-mockup__media,
  .hero-mockup img {
    max-width: min(360px, 90vw);
    max-height: min(420px, 48svh, 62dvh);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@supports not (max-height: 1svh) {
  @media (max-width: 639px) {
    .hero-mockup__media,
    .hero-mockup img {
      max-height: min(420px, 48vh);
    }
  }
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.10), rgba(59, 130, 246, 0.08));
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 1rem;
  padding: 1.05rem 0;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(26, 58, 58, 0.72);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 58, 58, 0.10);
  background: rgba(255, 255, 255, 0.75);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Logos strip */
.logos {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.logos-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem 0;
  text-align: center;
}

@media (min-width: 640px) {
  .logos-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.logos-label {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.logos-row span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Bento grid */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-card--wide {
    grid-column: span 4;
  }

  .bento-card:not(.bento-card--wide):not(.bento-card--tall) {
    grid-column: span 2;
  }

  .bento-card--tall {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.bento-card:hover {
  border-color: rgba(78, 207, 138, 0.25);
  transform: translateY(-2px);
}

.bento-card--spark {
  background:
    radial-gradient(90% 75% at 20% 20%, rgba(78, 207, 138, 0.18), transparent 55%),
    radial-gradient(85% 70% at 95% 10%, rgba(124, 108, 240, 0.14), transparent 60%),
    var(--surface);
}

.bento-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bento-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-bright);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.bento-icon--purple {
  background: var(--lavender-soft);
  color: #b4a9ff;
}

/* Split sections */
.split-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split--reverse .split-visual {
    order: -1;
  }
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  margin: 0 0 1rem;
}

.split-copy > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-bright);
  box-shadow: 0 0 0 3px var(--sage-soft);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  max-width: 400px;
  margin-inline: auto;
}

.panel--lavender {
  background: linear-gradient(160deg, rgba(124, 108, 240, 0.18), var(--surface));
}

.panel--sage {
  background: linear-gradient(160deg, rgba(78, 207, 138, 0.12), var(--surface));
}

.panel-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-bright);
  margin-bottom: 0.5rem;
}

.panel--lavender .panel-tag {
  color: #b4a9ff;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.panel-list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.panel-stats strong {
  display: block;
  font-size: 0.95rem;
}

.panel-stats span {
  font-size: 0.8rem;
  color: var(--muted);
}

.fake-search {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 0.75rem;
}

.fake-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.fake-tabs span {
  font-size: 0.65rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.fake-tabs span.active {
  background: var(--sage-soft);
  border-color: rgba(78, 207, 138, 0.35);
  color: var(--sage-bright);
}

.fake-doc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
}

.fake-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), #2a5040);
}

.fake-doc strong {
  display: block;
  color: var(--text);
}

.fake-doc span:not(.fake-cta) {
  color: var(--muted);
  font-size: 0.68rem;
}

.fake-cta {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-bright);
  color: #041109;
}

/* Testimonials */
.testimonials .section-head {
  margin-bottom: 2rem;
}

.t-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .t-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.t-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.10), 0 10px 30px rgba(0, 0, 0, 0.06);
}

.t-card blockquote {
  margin: 0 0 1rem;
  color: rgba(26, 58, 58, 0.88);
  font-size: 1.02rem;
  line-height: 1.55;
}

.t-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.t-card figcaption strong {
  color: var(--text);
  font-weight: 700;
}

/* Pricing */
.p-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .p-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.p-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.p-price {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.p-price span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.p-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.p-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.55rem;
}

.p-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(78, 207, 138, 0.9);
  box-shadow: 0 0 0 3px rgba(78, 207, 138, 0.16);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.p-cta {
  width: 100%;
  justify-content: center;
}

.p-card--featured {
  background:
    radial-gradient(90% 80% at 20% 20%, rgba(78, 207, 138, 0.18), transparent 55%),
    radial-gradient(90% 70% at 90% 10%, rgba(124, 108, 240, 0.14), transparent 60%),
    var(--surface);
  border-color: rgba(78, 207, 138, 0.25);
  transform: translateY(-6px);
}

.p-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(78, 207, 138, 0.18);
  border: 1px solid rgba(78, 207, 138, 0.35);
  color: var(--sage-bright);
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.faq-items {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(78, 207, 138, 0.12), rgba(124, 108, 240, 0.08));
  border-block: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}

.cta-inner > div > p {
  margin: 0;
  color: var(--muted);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  color: var(--text);
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.85;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}
