/* Dailybetes product showcase. Local assets, system typography, progressive enhancement. */
:root { --showcase-ease: cubic-bezier(0.23, 1, 0.32, 1); }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 88px; }
nav { background: rgba(250, 248, 243, 0.92); }
.nav-inner { max-width: 1280px; padding-block: 12px; }
.nav-brand small { display: none; }
.nav-links { gap: 22px; }
.nav-brand span { font-weight: 700; }
.section-label { background: transparent; border: 0; padding: 0; color: var(--teal); font-size: 13px; font-weight: 650; letter-spacing: 0.035em; }
.section-title { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.055em; }
.section-desc { font-size: 18px; line-height: 1.6; }
.hero { display: block; min-height: 0; padding: 108px 24px 76px; background: var(--canvas); overflow: hidden; }
.hero::before, .hero::after { content: none; }
.hero-inner { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 1240px; }
.hero-content { text-align: center; width: 100%; max-width: 1120px; margin-inline: auto; }
.hero-badge { border: 0; border-radius: 0; background: transparent; padding: 0; margin-bottom: 22px; font-size: 14px; color: var(--teal); font-weight: 650; }
.hero-badge::before { content: none; }
.hero h1 { margin-bottom: 22px; font-size: clamp(48px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.065em; line-height: 1.02; }
.hero h1 .gradient-text { color: var(--teal); -webkit-text-fill-color: var(--teal); }
.hero p.hero-description { max-width: 680px; margin: 0 auto 26px; font-size: 20px; line-height: 1.55; }
.hero-cta { justify-content: center; gap: 18px; margin: 0; }
.hero-cta .btn-primary { background: var(--teal); padding: 12px 26px; min-height: 48px; font-weight: 600; box-shadow: none; }
.hero-cta .btn-primary:hover { background: var(--evergreen); box-shadow: none; }
.hero-cta .btn-secondary { background: transparent; border-color: transparent; padding: 12px 4px; min-height: 48px; color: var(--teal); font-weight: 600; }
.hero-cta .btn-secondary::after { content: ' ↗'; margin-left: 5px; }
.hero-product-stage { position: relative; width: min(100%, 1080px); margin: 36px auto 0; isolation: isolate; }
.hero-product-stage::before { content: ''; position: absolute; z-index: -1; inset: 18% 4% 0; border-radius: 50%; background: radial-gradient(ellipse at 35% 55%, rgba(220,238,226,0.85), transparent 62%), radial-gradient(ellipse at 72% 48%, rgba(238,230,247,0.82), transparent 62%); }
.hero-product-render { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; filter: drop-shadow(0 28px 24px rgba(36,61,53,0.08)); }
.hero-product-stage figcaption { text-align: center; margin-top: 18px; position: relative; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.hero p.hero-slogan { max-width: none; font-size: 14px; line-height: 1.6; text-align: center; margin: 28px 0 0; }
.signup { padding: 32px 24px 52px; background: var(--canvas); border: 0; }
.signup-inner { max-width: 760px; }
.signup h2 { font-size: 28px; font-weight: 650; letter-spacing: -0.04em; }
.signup p { margin: 12px auto 0; font-size: 15px; max-width: 620px; color: var(--text-muted); }
.store-badges-row { margin-bottom: 0 !important; gap: 14px; }
.store-badge-link:hover { box-shadow: none; }
.android-availability-badge { box-shadow: none; }
.counter-section { padding: 54px 24px; background: var(--evergreen); }
.counter-section::before, .counter-section::after { content: none; }
.counter-title { font-size: clamp(32px, 4vw, 48px); font-weight: 650; }
.counter-subtitle { margin-bottom: 26px; max-width: 620px; }
.counter-grid { gap: 0; }
.counter-item { border: 0; border-radius: 0; padding: 12px 16px; background: transparent; box-shadow: none; backdrop-filter: none; }
.counter-item + .counter-item { border-left: 1px solid rgba(220,238,226,0.24); }
.counter-item:hover { background: transparent; transform: none; box-shadow: none; }
.counter-icon { display: none; }
.counter-number { font-size: 38px; font-weight: 650; }
.counter-label { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.counter-section .report-scope-note { font-size: 12px; }
.features { max-width: 1280px; padding: 100px 40px 68px; }
.features > .section-header { margin-bottom: 52px; }
.app-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; gap: 52px; margin: 0 auto 24px; align-items: start; }
.app-preview-card { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; }
.product-device { position: relative; width: min(100%, 260px); margin: 0 auto 34px; padding: 7px; border: 1px solid #8A968F; border-radius: 34px; background: #26352F; box-shadow: 0 24px 34px -16px rgba(36,61,53,0.28), inset 0 0 0 2px #52655B; }
.product-device img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 27px; box-shadow: none; }
.app-preview-card strong { font-size: 24px; font-weight: 650; line-height: 1.2; letter-spacing: -0.035em; }
.app-preview-card span { font-size: 15px; line-height: 1.6; margin-top: 9px; max-width: 290px; }
.app-preview-card em { display: inline-block; margin-top: 10px; padding: 0; border-radius: 0; background: transparent; color: var(--teal); font-size: 12px; font-weight: 650; }
.product-caution { max-width: 760px; margin: 20px auto 58px; text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.scan-story { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: center; margin: 0 auto 88px; max-width: 1120px; padding-block: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scan-story-heading { margin-bottom: 20px; font-size: clamp(42px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -0.06em; font-weight: 650; }
.scan-story-heading span { display: block; color: var(--teal); }
.scan-story p { font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 460px; }
.scan-story .scan-story-note { font-size: 13px; margin-top: 20px; }
.scan-steps { list-style: none; counter-reset: scan; display: grid; gap: 24px; }
.scan-steps li { counter-increment: scan; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.scan-steps li::before { content: '0' counter(scan); color: var(--teal); font-size: 17px; font-weight: 600; line-height: 1.7; }
.scan-steps h3 { font-size: 19px; line-height: 1.5; font-weight: 650; letter-spacing: -0.02em; }
.scan-steps p { font-size: 15px; }
.features-detail-heading { font-size: 30px; font-weight: 650; letter-spacing: -0.04em; margin-bottom: 30px; }
.features-grid { gap: 36px 48px; }
.feature-card { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; }
.feature-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.feature-icon { display: none; }
.feature-card h3 { font-size: 18px; font-weight: 650; }
.feature-card p { font-size: 14px; line-height: 1.7; }
.feature-badge { padding: 2px 5px; font-size: 10px; border-radius: 4px; }
.global-reach { background: var(--canvas); padding-block: 80px; }
.global-reach::before { content: none; }
.global-reach .section-header { margin-bottom: 16px; }
.country-grid { gap: 10px; margin-top: 34px; }
.country-pill { border: 0; border-radius: 0; background: transparent; padding: 6px 10px; font-size: 13px; }
.country-pill:hover { border: 0; box-shadow: none; transform: none; background: transparent; }
.country-download-count { background: transparent; }
.our-story-section { background: #F0F4EF; padding-block: 76px; }
.our-story-badge { background: transparent; color: var(--teal); padding: 0; }
.our-story-title { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1; font-weight: 650; letter-spacing: -0.055em; }
#pricing { background: var(--canvas); }
#pricing .pricing-card { box-shadow: none; }
#pricing .pricing-card.featured::before { content: none; }
#pricing .pricing-trial-banner { text-align: left; background: var(--sage); color: var(--evergreen); border-radius: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
#pricing .pricing-trial-banner::before { content: none; }
#pricing .pricing-trial-banner h3 { color: var(--evergreen); }
#pricing .pricing-trial-banner p { color: var(--text-muted); opacity: 1; margin: 0; }
#pricing .pricing-trial-banner .trial-cta { grid-column: 2; grid-row: 1 / 3; background: var(--evergreen); color: #fff; }
.milestone-section, .latest-news { padding-block: 64px; background: var(--canvas); }
.milestone-timeline .timeline-milestone { min-height: 0; padding: 20px; border-radius: 0; border: 0; box-shadow: none; background: transparent; color: var(--evergreen); }
.timeline-milestone.is-latest .timeline-number { color: var(--teal); font-size: 42px; }
.timeline-milestone.is-latest .timeline-label, .timeline-milestone.is-latest .timeline-date { color: var(--text-muted); }
.timeline-status { color: var(--teal); background: transparent; }
.news-card { padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.news-card::before { content: none; }
.faq, #diabetes-guide { background: #fff !important; }
.education-section { padding-block: 64px; }
.education-grid, .faq-card-grid { gap: 24px 32px; }
.faq-item { padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.faq-item:hover { box-shadow: none; transform: none; }
.faq-question { font-size: 19px; font-weight: 650; padding-right: 0; letter-spacing: -0.02em; }
.faq-answer { max-height: none; overflow: visible; }
.faq-answer p { font-size: 14px; line-height: 1.75; }
.education-note { background: var(--canvas); border: 0; border-radius: 0; padding: 24px; }
.contact { background: var(--canvas); }
.disclaimer { background: #F0F4EF; }
.fade-in { opacity: 1; transform: none; }
[data-showcase-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-showcase-reveal].showcase-pending { opacity: 0; transform: translateY(10px); }
  [data-showcase-reveal].showcase-visible { opacity: 1; transform: translateY(0); transition: opacity 280ms var(--showcase-ease), transform 280ms var(--showcase-ease); }
  .hero-cta a { transition: transform 160ms var(--showcase-ease); }
  .hero-cta a:active { transform: scale(0.98); }
}
@media (max-width: 1000px) {
  .nav-links { gap: 16px; }
  .nav-links a[href="#news"], .nav-links a[href="#contact"] { display: none; }
  .app-preview-grid { gap: 28px; }
  .product-device { width: min(100%, 230px); }
  .scan-story { gap: 40px; }
}
@media (max-width: 900px) {
  .hero { padding-top: 112px; }
  .hero-inner { max-width: 1240px; }
  .hero-content { text-align: center; }
  .app-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero { padding: 104px 18px 48px; }
  .hero h1 { font-size: clamp(42px, 11.9vw, 62px); letter-spacing: -0.062em; margin-bottom: 18px; }
  .hero-badge { margin-bottom: 18px; font-size: 13px; }
  body #zw-toggle { width: 52px; height: 52px; padding: 4px; border-radius: 50%; right: 16px; bottom: 16px; gap: 0; }
  body #zw-toggle img { width: 44px; height: 44px; }
  body #zw-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body #zw-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
  .hero p.hero-description { font-size: 17px; margin-bottom: 20px; }
  .hero-cta { flex-direction: row; flex-wrap: nowrap; gap: 18px; justify-content: center; }
  .hero-cta .btn-primary, .hero-cta .btn-secondary { width: auto; font-size: 14px; white-space: nowrap; }
  .hero-product-stage { width: calc(100% + 36px); margin: 32px -18px 0; }
  .hero-product-stage figcaption { margin-top: 12px; padding-inline: 24px; font-size: 11px; }
  .hero p.hero-slogan { font-size: 12px; max-width: 320px; margin: 24px auto 0; }
  .signup { padding: 24px 18px 44px; }
  .signup h2 { font-size: 25px; }
  .signup p { font-size: 14px; }
  .store-badges-row { flex-direction: column; gap: 12px; }
  .counter-section { padding: 44px 18px; }
  .counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .counter-item { padding: 4px 12px; }
  .counter-item:nth-child(3) { border-left: 0; }
  .counter-number { font-size: 32px; }
  .features { padding: 64px 24px 36px; }
  .features > .section-header { margin-bottom: 36px; }
  .section-title { font-size: 36px; }
  .section-desc { font-size: 16px; }
  .app-preview-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 24px; }
  .app-preview-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 24px; text-align: left; align-items: center; }
  .product-device { width: 100%; padding: 4px; border-radius: 24px; margin: 0; }
  .product-device img { border-radius: 19px; }
  .app-preview-card:nth-child(2) .product-device { grid-column: 2; grid-row: 1; }
  .app-preview-card:nth-child(2) figcaption { grid-column: 1; grid-row: 1; }
  .app-preview-card strong { font-size: 23px; }
  .app-preview-card span { font-size: 14px; line-height: 1.6; }
  .app-preview-card em { font-size: 11px; }
  .product-caution { margin: 28px auto 40px; text-align: left; }
  .scan-story { grid-template-columns: 1fr; padding-block: 40px; gap: 32px; margin-bottom: 48px; }
  .scan-story-heading { font-size: 48px; }
  .scan-story p { font-size: 16px; }
  .scan-steps p { font-size: 14px; }
  .features-detail-heading { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-card { padding-bottom: 20px; }
  .global-reach { padding-block: 56px; }
  .global-reach .section-title { font-size: 34px; }
  .country-grid { gap: 6px; }
  .country-pill { padding: 4px 5px; font-size: 12px; }
  .our-story-section { padding: 56px 24px; }
  .our-story-title { font-size: 36px; }
  #pricing .pricing-trial-banner { grid-template-columns: 1fr; gap: 12px; }
  #pricing .pricing-trial-banner .trial-cta { grid-column: 1; grid-row: auto; justify-self: start; }
  .education-grid, .faq-card-grid { gap: 20px; }
  .faq-question { font-size: 18px; }
  .education-section, .faq { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body #zw-toggle, body #zw-toggle.bounce { animation: none; transition: none; }
  [data-showcase-reveal], [data-showcase-reveal].showcase-pending, [data-showcase-reveal].showcase-visible { opacity: 1; transform: none; transition: none; }
}
