/* Website presentation. Existing SoberRise content and product assets are retained. */
:root {
  --space-section: clamp(4rem, 8vw, 8rem);
  --space-card: clamp(1.5rem, 3vw, 2.5rem);
  --heading-large: clamp(2.25rem, 5vw, 4rem);
  --heading-hero: clamp(3rem, 6.5vw, 6rem);
  --glass: color-mix(in srgb, var(--bg) 94%, transparent);
  --brand-glow: color-mix(in srgb, var(--primary) 12%, transparent);
}
html { scroll-padding-top: 7rem; }
body { line-height: 1.6; }
.container { max-width: 1200px; }
.nav { top: 1.25rem; left: 1.5rem; right: 1.5rem; margin: auto; max-width: 1120px; height: 76px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--glass); box-shadow: var(--shadow-lg); }
.nav-inner { padding: 0 1.25rem; gap: 1rem; }
.nav-logo-icon, .nav-logo-icon--sm { width: 44px; height: 44px; border-radius: var(--radius-md); }
.nav-logo-name { font-size: 1.125rem; letter-spacing: -.04em; }
.nav-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .75rem; font-size: .8125rem; }
.btn { min-height: 48px; padding: .75rem 1.5rem; }
.btn-dark { background: var(--primary); }
.nav-cta::after { content: '↗'; margin-left: .75rem; }
.nav-hamburger { min-width: 48px; min-height: 48px; align-items: center; justify-content: center; }
.mobile-menu { visibility: hidden; top: 7rem; left: 1.5rem; right: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-xl); transform: translateY(-.5rem); opacity: 0; }
.mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
.mobile-menu a { min-height: 48px; }
.mobile-menu a.btn-dark, .mobile-menu a.btn-dark:hover { color: var(--text-inverse); background: var(--primary); display: flex; text-align: center; }
.hero { position: relative; padding: 11rem 0 0; background: radial-gradient(ellipse at 50% 85%, var(--brand-glow), transparent 60%), var(--bg); }
.hero-inner { display: flex; flex-direction: column; gap: 3.5rem; text-align: center; }
.hero-content { position: relative; z-index: 2; max-width: 950px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .625rem; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: .6875rem; letter-spacing: .04em; text-transform: none; margin-bottom: 1.75rem; background: var(--bg); }
.hero-eyebrow::before { content: ''; width: .375rem; height: .375rem; border-radius: var(--radius-full); background: var(--success); }
.hero-heading { font-size: var(--heading-hero); line-height: 1.04; letter-spacing: -.065em; margin-bottom: 1.75rem; }
.hero-accent { color: var(--primary); }
.hero-body { max-width: 640px; margin: auto; font-size: 1.0625rem; line-height: 1.8; }
.hero-store-btns { justify-content: center; margin-top: 1.75rem; }
.store-badge { min-height: 48px; }
.hero .store-badge-svg { height: 52px; }
.hero-showcase { width: min(1600px, 100vw); max-width: none; padding-bottom: 3rem; overflow-x: auto; }
.hero-showcase-image { display: block; width: 100%; min-width: 1100px; height: auto; max-width: none; }
.how-it-works { position: relative; padding: 3.5rem 0 4rem; background: var(--bg); }
.how-it-works .section-eyebrow { text-align: center; }
.section-eyebrow { font-size: .6875rem; letter-spacing: .16em; margin-bottom: 1.25rem; }
.hiw-grid { gap: 0; margin-top: 2.5rem; counter-reset: steps; }
.hiw-item { text-align: left; padding: 0 2rem; position: relative; counter-increment: steps; }
.hiw-item + .hiw-item { border-left: 1px solid var(--border); }
.hiw-icon { margin: 0 0 1.5rem; width: 48px; height: 48px; }
.hiw-item::after { content: '0' counter(steps); position: absolute; right: 2rem; top: 0; color: var(--text-muted); font-size: .75rem; }
.hiw-svg { width: 24px; height: 24px; }
.hiw-item p { font-size: .875rem; line-height: 1.8; }
.features-header { padding: var(--space-section) 1.5rem 4rem; }
.features-header h2, .features-grid-header h2, .milestones-strip h2, .pricing-inner h2, .about-copy h2 { font-size: var(--heading-large); letter-spacing: -.055em; line-height: 1.12; }
.features-sub { max-width: 600px; font-size: 1rem; line-height: 1.8; margin-top: 1.5rem; }
.feature-row, .feature-row--alt { padding: 0 1.5rem 2rem; background: var(--bg); border: 0; }
.feature-row-inner { grid-template-columns: 1fr 1fr; gap: 5rem; padding: 4rem 5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 2rem; overflow: hidden; }
.feature-row--alt .feature-row-inner { background: var(--primary-muted); border-color: var(--primary-muted); }
.feature-copy h3 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.05em; line-height: 1.15; }
.feature-copy p { font-size: .9375rem; line-height: 1.85; }
.feature-list li { font-size: .8125rem; }
.feature-list li::before { color: var(--primary); }
.feature-icon-row { background: var(--bg); margin-bottom: 1.75rem; border: 1px solid var(--border); }
.feature-phone, .feature-phone--right, .feature-phone--left { justify-content: center; }
.phone-shell--sm { width: 260px; height: 520px; padding: .625rem; box-shadow: var(--shadow-lg); }
.phone-shell--sm:has(.phone-screen--image) .phone-notch { display: none; }
.pro-tag { background: var(--accent-muted); color: var(--text); font-size: .625rem; border: 1px solid var(--accent); }
.features-grid-section { border: 0; padding: var(--space-section) 0; }
.features-grid-header { margin-bottom: 3.5rem; }
.features-grid { gap: 1rem; }
.features-grid-card { background: var(--bg); padding: 1.75rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.features-grid-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.features-grid-card h3 { font-size: 1rem; letter-spacing: -.025em; }
.features-grid-card p { line-height: 1.8; margin-bottom: 1rem; }
.feature-tier--free { background: var(--surface-alt); color: var(--text-sub); }
.milestones-strip { padding: var(--space-section) 0; background: var(--primary); }
.milestones-strip-header { margin-bottom: 3rem; }
.milestones-grid { gap: .75rem; }
.milestone-badge { min-width: 112px; padding: 1.75rem 1rem; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: var(--radius-xl); }
.milestone-badge--achieved .milestone-svg { color: var(--accent-muted); }
.milestone-badge--locked { opacity: .65; }
.reviews { padding: var(--space-section) 0; }
.reviews-sub { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: var(--text); letter-spacing: -.05em; }
.review-card { background: var(--bg); width: 340px; padding: 2rem; border-radius: var(--radius-xl); }
.review-author { color: var(--text-sub); }
.about { padding: var(--space-section) 0; background: var(--bg); }
.about-inner { grid-template-columns: 1.4fr 1fr; gap: 7rem; }
.about-visual { align-self: stretch; align-items: center; border-radius: 2rem; background: var(--primary-muted); min-height: 360px; }
.about-badge-icon { width: 144px; height: 144px; box-shadow: var(--shadow-lg); }
.pricing { padding: var(--space-section) 0; background: var(--surface); }
.pricing-sub { margin-top: 1.5rem; font-size: 1rem; max-width: 600px; }
.pricing-grid { max-width: 960px; margin: 3rem auto 1.5rem; gap: 1.5rem; }
.pricing-card { padding: var(--space-card); border-radius: 2rem; box-shadow: none; }
.pricing-card--featured { border-width: 2px; background: var(--bg); box-shadow: var(--shadow-lg); }
.pricing-badge { background: var(--accent-muted); color: var(--text); }
.pricing-label { color: var(--primary); }
.pricing-amount { font-size: 3rem; letter-spacing: -.06em; }
.pricing-list { margin-top: 2rem; gap: .875rem; }
.pricing-list li { font-size: .8125rem; }
.pricing-note { max-width: 880px; margin: auto; line-height: 1.8; }
.download-cta { padding: var(--space-section) 0; background: radial-gradient(ellipse at bottom, var(--primary-muted), var(--bg) 70%); }
.download-cta h2 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.065em; }
.download-cta .download-disclaimer { font-size: .75rem; color: var(--text-sub); margin-top: 1rem; }
.download-cta .download-platform-note { font-size: .8125rem; }
.footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-logo .nav-logo-name, .footer-col a { color: var(--text); }
.footer-col h4, .footer-col span, .footer-tagline, .footer-copy-row p { color: var(--text-sub); }
.footer-col a { line-height: 1.6; }
.footer-col a:hover { color: var(--primary); }
.footer-inner { border-bottom-color: var(--border); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
@media (max-width: 1000px) {
  .nav-links a { padding: 0 .5rem; }
  .feature-row-inner { padding: 3rem; gap: 3rem; }
}
@media (max-width: 860px) {
  .nav { height: 68px; top: 1rem; }
  .hero { padding-top: 9rem; padding-bottom: 0; }
  .hero-inner { gap: 3rem; }
  .hero-body { max-width: 540px; }
  .hiw-grid { gap: 1rem; }
  .hiw-item { display: block; padding: 1.5rem; }
  .hiw-item + .hiw-item { border-left: 1px solid var(--border); }
  .hiw-icon { margin-bottom: 1rem; }
  .hiw-item::after { top: 1.5rem; }
  .feature-row-inner, .feature-row-inner--rev { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem; }
  .feature-copy { max-width: 520px; margin: auto; }
  .feature-icon-row { margin: 0 auto 1.5rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { display: flex; min-height: 280px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 540px; }
}
@media (max-width: 560px) {
  .nav { left: .75rem; right: .75rem; }
  .nav-inner { padding: 0 1rem; }
  .hero-heading { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-eyebrow { font-size: .625rem; padding: .5rem .75rem; }
  .hero-body { font-size: .9375rem; }
  .feature-row { padding: 0 .75rem 1rem; }
  .feature-row-inner { padding: 2rem 1.25rem; border-radius: var(--radius-xl); }
  .phone-shell--sm { width: 240px; height: 480px; }
  .feature-copy h3 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .milestones-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .milestone-badge { min-width: 0; }
  .review-card { width: 290px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .hero-showcase-image { width: 1100px; }
  .hero-showcase { padding-bottom: 1.5rem; }
}

@media (min-width: 861px) {
  .feature-row { padding: 0; }
  .feature-row-inner { max-width: none; border-radius: 0; border-left: 0; border-right: 0; padding-inline: max(3rem, calc((100vw - 1200px) / 2 + 3rem)); }
}

/* Keep all content readable when JavaScript is unavailable. */
.fade-up { opacity: 1; transform: none; }

/* Mobile preview pans through every screen, then returns gently. */
.showcase-pause, .showcase-pause-label { display: none; }
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
 .hero-showcase { position: relative; overflow: hidden; padding-bottom: 3rem; }
 .hero-showcase-image { animation: showcase-pan 24s linear infinite alternate; will-change: transform; }
 .showcase-pause { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .showcase-pause-label { position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .5rem 1rem; color: var(--primary); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-full); font-size: .6875rem; cursor: pointer; }
 .showcase-play-copy { display: none; }
 .showcase-pause:checked ~ .hero-showcase-image, .hero-showcase:active .hero-showcase-image { animation-play-state: paused; }
 .showcase-pause:checked ~ .showcase-pause-label .showcase-pause-copy { display: none; }
 .showcase-pause:checked ~ .showcase-pause-label .showcase-play-copy { display: inline; }
 .showcase-pause:focus-visible ~ .showcase-pause-label { outline: 3px solid var(--primary); outline-offset: 3px; }
}
@keyframes showcase-pan {
 0%, 8% { transform: translateX(0); }
 92%, 100% { transform: translateX(calc(100vw - 1100px)); }
}
