/*
   Laelia App — Landing Page Stylesheet
   Design language: Happy Glassmorphism (premium pass)
   Base background: Warm Cream (#FAF5EF)
   Fonts are loaded in <head> (preconnect + non-blocking) — not @imported here,
   so the stylesheet never blocks on a font request.
*/

/* ------------------------------------------------------------------ */
/*  Design tokens                                                      */
/* ------------------------------------------------------------------ */
:root {
  --color-bg-base: #FAF5EF;

  /* Palette (orchid flower colours) */
  --color-primary: #C04AA0;        /* Orchid Magenta */
  --color-primary-dark: #7B3F9E;   /* Royal Orchid   */
  --color-accent: #FF7E9D;         /* Coral Bloom    */
  --color-accent-joy: #FFD166;     /* Sunlit Yellow  */
  --color-success: #2E9D6C;        /* Fresh Leaf (slightly deepened for AA on glass) */
  --color-text: #2E1A2E;           /* Deep Aubergine */
  --color-text-muted: #6A5667;     /* Muted Mauve (deepened for AA) */

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #C04AA0 0%, #E2639E 50%, #FF7E9D 100%);
  --grad-primary-hover: linear-gradient(135deg, #A8368A 0%, #D14E8A 50%, #E66584 100%);
  --grad-celebration: linear-gradient(135deg, #FFD166 0%, #FFA852 50%, #FF7E9D 100%);
  --grad-text: linear-gradient(120deg, #7B3F9E 0%, #C04AA0 55%, #FF7E9D 100%);
  --grad-mesh:
    radial-gradient(circle at 12% 14%, rgba(251, 228, 241, 0.80) 0%, transparent 46%),
    radial-gradient(circle at 88% 8%,  rgba(243, 233, 255, 0.90) 0%, transparent 46%),
    radial-gradient(circle at 82% 86%, rgba(255, 243, 221, 0.80) 0%, transparent 52%),
    radial-gradient(circle at 8% 82%,  rgba(251, 228, 241, 0.55) 0%, transparent 46%);

  /* Typography */
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Fluid type scale */
  --fs-display: clamp(2.5rem, 1.55rem + 4.0vw, 4rem);
  --fs-h2:      clamp(1.85rem, 1.35rem + 1.9vw, 2.7rem);
  --fs-h3:      clamp(1.2rem, 1.08rem + 0.5vw, 1.4rem);
  --fs-lead:    clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-sm:      0.9rem;
  --fs-xs:      0.78rem;

  /* Spacing scale (8px rhythm) */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section-pad: clamp(4rem, 2.2rem + 7vw, 6.5rem);

  /* Radii */
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows — soft, layered, orchid-tinted */
  --shadow-sm: 0 1px 2px rgba(46, 26, 46, 0.04), 0 4px 12px -6px rgba(46, 26, 46, 0.08);
  --shadow-md: 0 4px 14px -6px rgba(46, 26, 46, 0.08), 0 18px 40px -18px rgba(123, 63, 158, 0.16);
  --shadow-lg: 0 10px 30px -10px rgba(46, 26, 46, 0.10), 0 34px 70px -28px rgba(123, 63, 158, 0.20);
  --shadow-glow: 0 26px 70px -28px rgba(192, 74, 160, 0.30);

  /* Layout */
  --header-height: 70px;
  --container-width: 1140px;

  /* Motion */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ------------------------------------------------------------------ */
/*  Reset & document                                                   */
/* ------------------------------------------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  background-color: var(--color-bg-base);
  background-image: var(--grad-mesh);
  background-attachment: fixed;
  background-size: cover;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Fine film grain — kills gradient banding, adds tactile premium feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img,
video {
  max-width: 100%;
}

/* Accessible focus ring everywhere */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
}

/* ------------------------------------------------------------------ */
/*  Glassmorphism system (v2)                                          */
/* ------------------------------------------------------------------ */
.glass-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.38));
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.44));
  backdrop-filter: blur(24px) saturate(185%);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  transition: var(--transition-spring);
}

/* Soft top-left light catch on glass */
.glass-card::before,
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.45) 0%, transparent 42%);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

/* ------------------------------------------------------------------ */
/*  Layout primitives                                                  */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  display: block;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ------------------------------------------------------------------ */
/*  Typography                                                         */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.18;
}

p {
  color: var(--color-text-muted);
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
}

/* ------------------------------------------------------------------ */
/*  Buttons & badges                                                   */
/* ------------------------------------------------------------------ */
.app-store-badge {
  display: inline-block;
  transition: var(--transition-spring);
  height: 48px;
  cursor: pointer;
  border-radius: 10px;
}

.app-store-badge img {
  height: 100%;
  display: block;
}

.app-store-badge:hover {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 12px 20px rgba(46, 26, 46, 0.22));
}

.app-store-badge:active {
  transform: scale(0.98);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  box-shadow: 0 8px 24px -6px rgba(192, 74, 160, 0.4);
  text-shadow: 0 1px 2px rgba(46, 26, 46, 0.35);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(192, 74, 160, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/*  Header                                                             */
/* ------------------------------------------------------------------ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(250, 245, 239, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px -12px rgba(46, 26, 46, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(192, 74, 160, 0.28);
}

.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .app-store-badge {
  height: 38px;
}

/* ------------------------------------------------------------------ */
/*  Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
  padding-top: calc(var(--header-height) + clamp(2.5rem, 1rem + 6vw, 5.5rem));
  padding-bottom: var(--section-pad);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--color-primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.hero-tagline .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(46, 157, 108, 0.5);
  animation: live-pulse 2.4s ease-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 157, 108, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(46, 157, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 157, 108, 0); }
}

.hero-title {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  font-weight: 500;
  max-width: 36ch;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-2);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero-cta-row .app-store-badge {
  height: 54px;
}

.desktop-qr-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.desktop-qr-badge img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.qr-caption {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--color-text-muted);
  line-height: 1.25;
}

.hero-trust-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.trust-chip svg {
  color: var(--color-success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Floating decorative orbs behind the hero */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
}

.orb-1 {
  width: 340px; height: 340px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(192, 74, 160, 0.55), transparent 70%);
  animation: float-a 20s ease-in-out infinite;
}

.orb-2 {
  width: 300px; height: 300px;
  top: 20%; right: -70px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.5), transparent 70%);
  animation: float-b 24s ease-in-out infinite;
}

.orb-3 {
  width: 280px; height: 280px;
  bottom: -90px; left: 35%;
  background: radial-gradient(circle, rgba(255, 126, 157, 0.45), transparent 70%);
  animation: float-a 28s ease-in-out infinite reverse;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(26px, -30px) scale(1.06); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 24px) scale(1.08); }
}

/* Soft glow behind the device */
.device-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  position: relative;
}

.hero .device-container::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 70%;
  background: radial-gradient(circle, rgba(192, 74, 160, 0.22), transparent 68%);
  filter: blur(30px);
  z-index: -1;
}

/* ------------------------------------------------------------------ */
/*  iPhone device mockup                                               */
/* ------------------------------------------------------------------ */
.iphone-17-pro {
  position: relative;
  width: 320px;
  height: 650px;
  background: #1c1524;
  border-radius: 46px;
  box-shadow:
    0 30px 70px -20px rgba(46, 26, 46, 0.30),
    0 12px 34px -12px rgba(123, 63, 158, 0.20),
    inset 0 0 4px 2px rgba(255, 255, 255, 0.15),
    0 0 0 10px #2E1A2E;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(-7deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.iphone-17-pro:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}

.phone-screen {
  position: relative;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  background: #FAF5EF;
  border-radius: 40px;
  overflow: hidden;
  border: 4px solid #000;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 10;
  box-shadow: inset 0 0.5px 1px rgba(255, 255, 255, 0.2);
}

.phone-content {
  width: 100%;
  height: 100%;
  position: relative;
  /* Round the inner screen and give it its own compositing layer so the media
     stays clipped to the rounded corners even while the device is 3D-tilted.
     (WebKit doesn't clip a rounded overflow:hidden box under a 3D-transformed
     ancestor without this.) 36px = 40px screen radius − 4px bezel. */
  border-radius: 36px;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.phone-content img,
.phone-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.video-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 5;
  background: rgba(46, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: var(--transition-smooth);
}

.video-overlay:hover {
  background: rgba(46, 26, 46, 0.85);
  transform: scale(1.1);
}

/* ------------------------------------------------------------------ */
/*  Section header (shared)                                            */
/* ------------------------------------------------------------------ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-label {
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
}

.section-subtitle {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------------ */
/*  Wedge ("not another plant scheduler")                              */
/* ------------------------------------------------------------------ */
.wedge {
  background: rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.wedge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.wedge-card {
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 18px -6px rgba(123, 63, 158, 0.35);
}

.wedge-card:nth-child(1) .icon-box { background: linear-gradient(135deg, #C04AA0, #FF7E9D); }
.wedge-card:nth-child(2) .icon-box { background: linear-gradient(135deg, #7B3F9E, #C04AA0); }
.wedge-card:nth-child(3) .icon-box { background: linear-gradient(135deg, #2E9D6C, #72c69d); }

.wedge-title {
  font-size: var(--fs-h3);
  font-weight: 800;
}

/* ------------------------------------------------------------------ */
/*  Feature highlights                                                 */
/* ------------------------------------------------------------------ */
.features {
  padding-bottom: var(--section-pad);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 2rem + 6vw, 6.5rem);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-visual {
  order: -1;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.feature-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(123, 63, 158, 0.10);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.feature-icon-badge svg {
  width: 15px;
  height: 15px;
}

.feature-title {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.feature-description {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-2);
}

.feature-bullets li {
  display: flex;
  gap: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.feature-bullets li svg {
  color: var(--color-success);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Rebloom celebration (emotional peak) */
.rebloom-serif-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem);
  letter-spacing: -0.01em;
  background: var(--grad-celebration);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.celebration-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #FAF5EF 0%, #FFF5FB 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.bloom-card-graphic {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(123, 63, 158, 0.12);
  border: 1px solid rgba(192, 74, 160, 0.1);
  width: 100%;
  max-width: 220px;
  transform: translateY(10px);
  z-index: 3;
}

.bloom-badge {
  background: var(--grad-celebration);
  color: #2E1A2E;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 12px;
}

.bloom-plant-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
}

.bloom-plant-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.bloom-celebration-message {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.35;
}

.petals-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.petal {
  position: absolute;
  top: -20px;
  background: var(--color-accent);
  border-radius: 50% 0 50% 50%;
  opacity: 0.7;
  transform-origin: center;
  animation: petal-fall 8s linear infinite;
}

.petal:nth-child(2n) { background: var(--color-accent-joy); border-radius: 50%; }
.petal:nth-child(3n) { background: var(--color-primary); border-radius: 50% 50% 0 50%; }

@keyframes petal-fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  100% { transform: translateY(420px) translateX(20px) rotate(360deg); opacity: 0; }
}

/* ------------------------------------------------------------------ */
/*  Privacy band                                                       */
/* ------------------------------------------------------------------ */
.privacy-card {
  padding: clamp(2.25rem, 1.2rem + 4vw, 3.75rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 1rem + 3vw, 3.25rem);
  align-items: center;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.privacy-title {
  font-size: var(--fs-h2);
}

.privacy-body {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

.privacy-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-stat-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.privacy-stat-pill svg {
  color: var(--color-primary);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/*  Orchid care, answered  (SEO/GEO content)                           */
/* ------------------------------------------------------------------ */
.care {
  background: rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.care-card {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.care-card .icon-box {
  background: linear-gradient(135deg, #2E9D6C, #34A877);
  margin-bottom: 4px;
}

.care-card:nth-child(2) .icon-box { background: linear-gradient(135deg, #FFB13C, #FFD166); }
.care-card:nth-child(3) .icon-box { background: linear-gradient(135deg, #C04AA0, #FF7E9D); }
.care-card:nth-child(4) .icon-box { background: linear-gradient(135deg, #7B3F9E, #C04AA0); }

.care-card h3 {
  font-size: var(--fs-h3);
}

.care-card p {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
}

.care-card strong {
  color: var(--color-text);
}

.care-note {
  text-align: center;
  max-width: 640px;
  margin: var(--space-10) auto 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/*  Founder's note                                                     */
/* ------------------------------------------------------------------ */
.founder-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.25rem, 1.2rem + 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.founder-quote {
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.founder-quote .text-gradient {
  font-style: normal;
}

.founder-sign {
  margin-top: var(--space-6);
  font-weight: 800;
  color: var(--color-primary-dark);
}

.founder-role {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ------------------------------------------------------------------ */
/*  Pricing                                                            */
/* ------------------------------------------------------------------ */
.pricing-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.25rem, 1.2rem + 4vw, 3.25rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
}

.pricing-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-8);
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: var(--space-10);
  text-align: left;
}

.pricing-tier {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}

.pricing-tier.featured {
  border: 2px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-md);
}

.tier-flag {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 14px -4px rgba(192, 74, 160, 0.5);
}

.tier-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.pricing-tier.featured .tier-name {
  color: var(--color-primary);
}

.tier-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.tier-price .tier-price-sub {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.tier-features li {
  display: flex;
  gap: 8px;
  color: var(--color-text-muted);
}

.tier-features li svg {
  color: var(--color-success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pricing-cta .app-store-badge {
  height: 52px;
}

.pricing-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/*  FAQ (AEO)                                                          */
/* ------------------------------------------------------------------ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item[data-open="true"] {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

.faq-icon::before {
  top: 50%; left: 3px; right: 3px; height: 2.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%; top: 3px; bottom: 3px; width: 2.5px;
  transform: translateX(-50%);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(135deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 24px 22px;
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  margin: 0;
}

.faq-answer p + p {
  padding-top: 0;
}

/* ------------------------------------------------------------------ */
/*  Final CTA                                                          */
/* ------------------------------------------------------------------ */
.final-cta-card {
  padding: clamp(3rem, 2rem + 5vw, 5rem) 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}

.final-cta-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 620px;
  height: 280px;
  background: radial-gradient(circle, rgba(192, 74, 160, 0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.final-cta-title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  max-width: 660px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.final-cta-badge {
  position: relative;
  z-index: 1;
  height: 54px;
}

.final-cta-sub {
  position: relative;
  z-index: 1;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: calc(var(--space-8) * -0.5);
}

/* ------------------------------------------------------------------ */
/*  Footer                                                             */
/* ------------------------------------------------------------------ */
footer {
  padding: var(--space-16) 0 var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(250, 245, 239, 0.45);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-primary-dark);
}

.footer-tagline {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.footer-links a {
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-maker {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  width: 100%;
  text-align: center;
  margin-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: var(--space-6);
}

.footer-maker a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.footer-maker a:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------------ */
/*  Scroll reveal (JS-assisted)                                        */
/* ------------------------------------------------------------------ */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Performance: skip rendering offscreen sections until needed */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-tagline { align-self: center; }
  .hero-subtitle { max-width: none; }
  .hero-cta-row { justify-content: center; }
  .hero-trust-chips { justify-content: center; }
  .hero-meta { text-align: center; }

  .device-container { order: -1; }

  .iphone-17-pro {
    transform: none;
    width: 290px;
    height: 590px;
  }

  .wedge-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .feature-icon-badge { margin: 0 auto; }
  .feature-bullets { align-items: center; }
  .feature-bullets li { text-align: left; }
  .feature-row.reverse .feature-visual { order: 0; }

  .care-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-cta-row .app-store-badge { height: 50px; }
  .faq-question { font-size: 1rem; padding: 18px 20px; }
  .faq-answer p { padding: 0 20px 20px; }
}

/* QR is pointless on the phone you'd scan it with — desktop only */
@media (max-width: 768px) {
  .desktop-qr-badge { display: none; }
}

/* ------------------------------------------------------------------ */
/*  Reduced motion                                                     */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .iphone-17-pro,
  .iphone-17-pro:hover {
    transform: none;
  }

  .petals-container,
  .hero-orbs {
    display: none;
  }
}
