/**
 * Smart Meds Reminder — Landing Page
 * Health slate + teal · SBR layout patterns · compact mobile default
 */

:root {
  --teal: #14b8a6;
  --teal-bright: #2dd4bf;
  --teal-dim: #0d9488;
  --amber: #f59e0b;
  --red: #ef4444;
  --slate: #0b1220;
  --slate-elevated: #111b2e;
  --slate-card: #162238;
  --slate-border: rgba(255, 255, 255, 0.08);
  --ink: #e8eef4;
  --ink-muted: #94a3b8;
  --ink-faint: #64748b;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --shadow-glow: 0 0 60px rgba(20, 184, 166, 0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --play: https://play.google.com/store/apps/details?id=com.smartappsfactory.smartmedsreminder;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--slate);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 0.75rem 1rem; background: var(--teal); color: var(--slate);
}
.skip-link:focus { left: 0; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }

.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: 999px; font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dim) 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(20, 184, 166, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(20, 184, 166, 0.5); }
.btn-outline {
  border: 1.5px solid var(--slate-border); background: rgba(255,255,255,0.04);
}
.btn-outline:hover { border-color: var(--teal); background: rgba(20,184,166,0.08); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: clamp(0.78rem, 2.2vw + 0.4rem, 0.95rem);
  line-height: 1.2; min-width: 0; flex: 1 1 auto;
}
.logo-img { border-radius: 10px; flex-shrink: 0; width: 36px; height: 36px; }
.logo-text {
  white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.main-nav { display: flex; gap: 1.5rem; }
.nav-link { font-size: 0.9rem; color: var(--ink-muted); font-weight: 500; }
.nav-link:hover { color: var(--teal-bright); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--slate-border); border-radius: 999px; overflow: hidden;
}
.lang-btn {
  padding: 0.35rem 0.7rem; font-size: 0.75rem; font-weight: 700;
  color: var(--ink-muted); background: transparent;
}
.lang-btn.active { background: rgba(20,184,166,0.2); color: var(--teal-bright); }
.nav-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--slate-border); border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

/* Install banner */
.banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--slate-elevated); border-top: 1px solid var(--slate-border);
  padding: 0.75rem 1rem;
}
body.has-install-banner { padding-bottom: 4.5rem; }
.banner-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.app-info { display: flex; align-items: center; gap: 0.75rem; }
.app-icon { border-radius: 12px; }
.banner-subtitle { font-size: 0.8rem; color: var(--ink-muted); }
.banner-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

/* Hero */
.hero {
  position: relative; padding: calc(var(--header-h) + 3rem) 0 4rem;
  min-height: 92vh; display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(20,184,166,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(20,184,166,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--slate) 0%, #0a1422 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 30%, transparent 90%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  grid-template-areas: "copy visual" "trust trust";
  gap: 3rem; align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-visual { grid-area: visual; position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero-grid > .trust-strip { grid-area: trust; }

.brand-mark {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--teal-bright); margin-bottom: 0.5rem;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.85rem;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400; line-height: 1.12; margin-bottom: 1.25rem;
}
.hero-title em { display: block; font-style: italic; color: var(--teal-bright); }
.hero-lead { color: var(--ink-muted); font-size: 1.1rem; max-width: 32rem; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 0.75rem; }
.hero-cta-note { font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 1.5rem; }

.hero-promo-wrap {
  position: relative; z-index: 2; display: block;
  width: fit-content; max-width: min(100%, 360px); margin-inline: auto;
  border-radius: 1rem; box-shadow: var(--shadow-glow), 0 25px 50px rgba(0,0,0,0.5);
  line-height: 0; overflow: hidden;
}
.hero-promo-img {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  object-fit: contain; object-position: center top; pointer-events: none;
}

/* Trust */
.trust-strip { padding: 1.25rem 0 0; border-top: 1px solid var(--slate-border); margin-top: 0.5rem; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--ink-muted); font-weight: 500;
}
.trust-icon {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px;
  background: rgba(20,184,166,0.12); display: grid; place-items: center;
}
.trust-icon svg { width: 14px; height: 14px; fill: var(--teal-bright); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--slate-elevated); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400; margin-bottom: 0.75rem;
}
.section-sub { color: var(--ink-muted); font-size: 1.05rem; }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.step {
  background: var(--slate-card); border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px; margin-bottom: 1rem;
  background: rgba(20,184,166,0.15); color: var(--teal-bright); font-weight: 700; font-size: 0.9rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-muted); font-size: 0.95rem; }

/* Features */
.feature-list { display: grid; gap: 0.75rem; max-width: 800px; margin: 0 auto; }
.feature-item {
  background: var(--slate-card); border: 1px solid var(--slate-border);
  border-radius: var(--radius); padding: 1.15rem 1.35rem;
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature-item p { color: var(--ink-muted); font-size: 0.95rem; }
.feature-tag {
  display: inline-block; margin-top: 0.55rem; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-bright);
  background: rgba(20,184,166,0.12); padding: 0.2rem 0.5rem; border-radius: 4px;
}
.feature-tag.gated { color: var(--amber); background: rgba(245,158,11,0.12); }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 860px; margin: 0 auto;
}
.pricing-card {
  background: var(--slate-card); border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg); padding: 1.75rem; position: relative;
}
.pricing-card-featured {
  border-color: rgba(20,184,166,0.45);
  box-shadow: 0 0 0 1px rgba(20,184,166,0.2), var(--shadow-glow);
}
.pricing-badge {
  position: absolute; top: -10px; right: 1rem;
  background: var(--teal); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.65rem; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.pricing-note { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.pricing-card ul { display: grid; gap: 0.55rem; }
.pricing-card li {
  position: relative; padding-left: 1.4rem; color: var(--ink-muted); font-size: 0.95rem;
}
.pricing-card li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--teal);
}
.pricing-cta { margin-top: 1.5rem; }

/* Screens */
.screenshot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.screenshot-item {
  background: var(--slate-card); border: 1px solid var(--slate-border);
  border-radius: var(--radius); overflow: hidden;
}
.screenshot-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.screenshot-caption {
  padding: 0.75rem; font-size: 0.85rem; color: var(--ink-muted); text-align: center;
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--slate-card); border: 1px solid var(--slate-border);
  border-radius: var(--radius); padding: 0.25rem 1rem;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal-bright); font-size: 1.25rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--ink-muted); padding: 0 0 1rem; font-size: 0.95rem; }

/* Shorts / tutorials */
.video-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 900px; margin: 0 auto;
}
.video-card {
  background: var(--slate-card); border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.video-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.yt-placeholder { position: absolute; inset: 0; cursor: pointer; }
.yt-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.yt-placeholder button {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; background: rgba(20,184,166,0.9); display: grid; place-items: center;
}
.yt-placeholder button svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }
.video-body { padding: 1.15rem; }
.video-body h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.video-body p { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 0.85rem; }
.video-link { color: var(--teal-bright); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.compact-yt-cta { display: none; }

/* Install */
.install-section { text-align: center; }
.install-card {
  background: linear-gradient(160deg, var(--slate-card) 0%, #0f2a2a 100%);
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: var(--radius-lg); padding: 3rem 2rem; max-width: 720px; margin: 0 auto;
}
.install-title {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 0.75rem;
}
.install-desc { color: var(--ink-muted); margin-bottom: 1.75rem; max-width: 28rem; margin-inline: auto; }
.install-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem;
  margin-top: 1.5rem; color: var(--ink-muted); font-size: 0.9rem;
}
.disclaimer {
  max-width: 40rem; margin: 2rem auto 0; font-size: 0.8rem; color: var(--ink-faint); text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--slate-border); padding: 2.5rem 0; color: var(--ink-muted); font-size: 0.9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.footer-links a:hover { color: var(--teal-bright); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.1); font-size: 1.5rem;
}

/* Legal pages reuse */
.legal-body { padding: calc(var(--header-h) + 2rem) 0 4rem; }
.legal-body h1 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 0.5rem; }
.legal-body .updated { color: var(--ink-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.legal-body h2 { font-size: 1.2rem; margin: 1.75rem 0 0.75rem; color: var(--teal-bright); }
.legal-body h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
.legal-body p, .legal-body li { color: var(--ink-muted); margin-bottom: 0.65rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-body .notice {
  background: var(--slate-card); border: 1px solid var(--slate-border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.lang-block[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--slate-elevated); padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--slate-border);
    gap: 0.85rem;
  }
  .nav-toggle { display: inline-flex; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "trust";
    text-align: center;
  }
  .hero-lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-visual { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }

  html:not(.lp-layout-full) .hero {
    padding-top: calc(var(--header-h) + 0.75rem);
    padding-bottom: 1rem;
    min-height: 0;
  }
  html:not(.lp-layout-full) .hero-grid { gap: 1rem; }
  html:not(.lp-layout-full) .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    margin-bottom: 0.65rem;
  }
  html:not(.lp-layout-full) .hero-lead {
    font-size: 0.95rem; margin-bottom: 1rem;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }
  html:not(.lp-layout-full) .hero-cta-note { margin-bottom: 0; }
  html:not(.lp-layout-full) .trust-strip { padding: 0.75rem 0; }
  html:not(.lp-layout-full) .trust-item:nth-child(n + 3) { display: none; }
  html:not(.lp-layout-full) .hero-promo-wrap { max-width: min(42vw, 180px); border-radius: 0.75rem; }
  html:not(.lp-layout-full) .section { padding: 2.5rem 0; }
  html:not(.lp-layout-full) #screens { display: none; }
  html:not(.lp-layout-full) .compact-yt-cta {
    display: block; text-align: center; margin: 1.25rem 0 0;
  }
}

@media (max-width: 560px) {
  .screenshot-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .header-actions .btn { display: none; }
}

/* Short locale SEO landings (Play CTA) */
.locale-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(45, 212, 191, 0.08), transparent 55%),
    var(--slate);
}
.locale-header {
  border-bottom: 1px solid var(--slate-border);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
}
.locale-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.locale-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.locale-brand img { border-radius: 8px; }
.locale-nav {
  display: flex;
  gap: 1rem;
  margin-inline-start: auto;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.locale-nav a:hover { color: var(--teal-bright); }
.locale-home-link {
  color: var(--teal-bright);
  font-size: 0.88rem;
  width: 100%;
}
.locale-main { flex: 1; padding: 2.5rem 0 3rem; }
.locale-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.locale-kicker {
  color: var(--teal-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.locale-article h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.locale-lead {
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.locale-article p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.locale-cta-row { margin-top: 1.5rem; }
.locale-footer {
  border-top: 1px solid var(--slate-border);
  padding: 1.25rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.locale-footer a { color: var(--ink-muted); }
.locale-footer a:hover { color: var(--teal-bright); }
