/* ════════════════════════════════════════════════════════════════════
 * Section styles — nav, hero, stats, problem, how, personas,
 * universal access, features, quote, FAQ, final CTA, footer.
 * ════════════════════════════════════════════════════════════════════ */

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--s4) 0;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 248, 240, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.nav__brand span { color: var(--coral); }
.nav__brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
}
.nav__links {
  display: none;
  gap: var(--s7);
  align-items: center;
  list-style: none;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--coral-deep); }

.nav__cta { display: none; }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

/* Mobile menu toggle */
.nav__burger {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
@media (min-width: 880px) {
  .nav__burger { display: none; }
}
.nav__burger span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: var(--s5);
  right: var(--s5);
  z-index: 49;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: var(--s6);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: var(--s4);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: var(--ink);
  font-weight: 700;
  padding: 8px 0;
  font-size: 1rem;
}
.nav-mobile a:hover { color: var(--coral-deep); }
@media (min-width: 880px) {
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 130px;
  padding-bottom: var(--s10);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-top: 170px; padding-bottom: var(--s11); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: var(--s5);
  box-shadow: var(--shadow-sm);
}
.hero__eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent);
  animation: hero-pulse 2s var(--ease) infinite;
}
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 35%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 0%, transparent); }
}

.hero__title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: var(--s5);
}
.hero__title em {
  font-style: normal;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: var(--s7);
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s7);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 600;
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__trust span::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
}

/* Hero visual side */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.hero__phone {
  position: relative;
  transform: rotate(-2deg);
}

.hero__phone::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 107, 107, 0.2), transparent 60%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* Floating ambient sun blob behind phone */
.hero__sun {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--grad-brand);
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
  animation: hero-float 14s var(--ease) infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.06); }
}

/* Phone screen storyboard — slides between states */
.storyboard {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.storyboard__slide {
  position: absolute;
  inset: 0;
  padding: var(--s4) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  opacity: 0;
  animation: story-cycle 16s var(--ease) infinite;
}
.storyboard__slide:nth-child(1) { animation-delay: 0s; }
.storyboard__slide:nth-child(2) { animation-delay: 4s; }
.storyboard__slide:nth-child(3) { animation-delay: 8s; }
.storyboard__slide:nth-child(4) { animation-delay: 12s; }
@keyframes story-cycle {
  0%, 22% { opacity: 1; transform: translateX(0); }
  25%, 100% { opacity: 0; transform: translateX(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .storyboard__slide { animation: none; opacity: 0; }
  .storyboard__slide:nth-child(1) { opacity: 1; }
}

/* Floating bubbles around hero phone */
.float-tag {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 8px 14px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 12px 30px -8px rgba(26, 26, 46, 0.18);
  border: 1px solid var(--line-soft);
  animation: float-tag 6s var(--ease) infinite;
}
.float-tag .pip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.float-tag--tl {
  top: 8%;
  left: -8%;
  animation-delay: 0s;
}
.float-tag--br {
  bottom: 12%;
  right: -10%;
  animation-delay: 2s;
}
.float-tag--ml {
  top: 50%;
  left: -14%;
  animation-delay: 4s;
}
@keyframes float-tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats strip ---------- */
.stats {
  padding: var(--s8) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: center;
  padding: var(--s5);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mute);
  margin-top: var(--s2);
}

/* ---------- Problem ---------- */
.problem-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--s6);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-brand);
}
.problem-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--coral) 25%, transparent);
  line-height: 1;
  margin-bottom: var(--s3);
}
.problem-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--s3);
  color: var(--ink);
}
.problem-card__body {
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- How it works ---------- */
.howto {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}
@media (min-width: 900px) {
  .howto { grid-template-columns: repeat(3, 1fr); gap: var(--s6); align-items: start; }
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  position: relative;
}
.step__badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral-deep);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step__badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1.5px dashed color-mix(in srgb, var(--coral) 40%, transparent);
  border-radius: 22px;
  opacity: 0.6;
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.step__body {
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.6;
}
.step__device {
  margin-top: var(--s4);
}
@media (min-width: 900px) {
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 32px;
    right: -28px;
    width: 24px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--coral) 0 6px, transparent 6px 10px);
  }
}

/* ---------- Personas ---------- */
.personas {
  position: relative;
}

.persona-tabs {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px;
  margin-bottom: var(--s8);
  gap: 4px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  max-width: 100%;
}
.persona-tab {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-mute);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.persona-tab.is-active {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}
.persona-tab:hover:not(.is-active) {
  background: var(--surface-warm);
  color: var(--ink);
}

.persona-panel {
  display: none;
  animation: persona-fade 0.5s var(--ease);
}
.persona-panel.is-active { display: block; }
@keyframes persona-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.persona-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--coral) 10%, transparent);
  color: var(--coral-deep);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}

.persona-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}

.persona-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: var(--s6);
  line-height: 1.6;
}

.persona-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-bottom: var(--s6);
}
.persona-list li {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.persona-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  background-image: var(--grad-brand), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%, 14px 14px;
  background-position: center, center;
  margin-top: 1px;
}

/* ---------- Universal access ---------- */
.universe {
  position: relative;
  padding: var(--s10) 0 var(--s11);
}

.universe__deck {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  justify-items: center;
  align-items: center;
  margin-top: var(--s8);
}

@media (min-width: 768px) {
  .universe__deck {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s7);
  }
}

@media (min-width: 1100px) {
  .universe__deck {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s5);
  }
}

.universe__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  text-align: center;
  transition: transform var(--dur) var(--ease);
}
.universe__item:hover { transform: translateY(-6px); }

.universe__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.universe__sub {
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-weight: 600;
}

/* ---------- Feature grid ---------- */
.feature {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  filter: blur(20px);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--coral) 25%, var(--line-soft));
}
.feature:hover::after { opacity: 0.18; }
.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--coral) 10%, transparent);
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
}
.feature__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s2);
}
.feature__body {
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.55;
}

/* ---------- Quote (rating-first) ---------- */
.quote {
  background: var(--grad-quote);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s10) var(--s7);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.10), transparent 40%);
  pointer-events: none;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  opacity: 0.4;
  margin-bottom: var(--s4);
  display: block;
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  color: var(--white);
}
.quote__cite {
  display: block;
  margin-top: var(--s6);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  margin-bottom: var(--s3);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] {
  border-color: color-mix(in srgb, var(--coral) 30%, var(--line-soft));
  box-shadow: var(--shadow-sm);
}
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: var(--s5) var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq__item[open] .faq__chev {
  transform: rotate(180deg);
  background: var(--coral);
  color: var(--white);
}
.faq__a {
  padding: 0 var(--s6) var(--s5);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--grad-deep);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s11) var(--s7);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--grad-brand);
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(60px);
}
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(60px);
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__title {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}
.final-cta__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  margin-bottom: var(--s7);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta__ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
}
.final-cta__ctas .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.final-cta__ctas .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--s10) 0 var(--s7);
  color: var(--ink-mute);
  background: transparent;
  border-top: 1px solid var(--line-soft);
  margin-top: var(--s10);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  margin-bottom: var(--s7);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.footer__brand span { color: var(--coral); }
.footer__about {
  color: var(--ink-mute);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer__heading {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__list a {
  color: var(--ink-mute);
  font-weight: 600;
  font-size: 0.9rem;
}
.footer__list a:hover {
  color: var(--coral-deep);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--s6);
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
}

/* ---------- Print stylesheet ---------- */
@media print {
  .nav, .nav-mobile, .hero__phone, .float-tag, .hero__sun,
  .universe, .final-cta, .footer__bottom { display: none !important; }
  body { background: white; color: black; }
  .hero { padding-top: 20px; }
  .hero__title em { color: black !important; -webkit-text-fill-color: black; }
  a { color: black; text-decoration: underline; }
}
