/* ===== CSS Custom Properties ===== */
:root {
  --primary: #388E3C;
  --primary-light: #C8E6C9;
  --bg-green-light: #EDF7EE;
  --secondary: #FF9800;
  --bg: #F9FAF5;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #555;
  --score-healthy: #4CAF50;
  --score-warning: #FF9800;
  --score-danger: #F44336;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: #e0e0e0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo:hover { text-decoration: none; }

.logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger svg { display: block; }

/* Mobile nav */
@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid #e0e0e0;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* Phone mockup */
.phone-mockup {
  max-width: 280px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: #e8e8e8;
  border-radius: 24px;
  aspect-ratio: 9/19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* ===== Section Shared ===== */
section {
  padding: 72px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

#how-it-works,
#features,
#steps {
  background: var(--bg-green-light);
}

/* ===== How It Works — Score Cards ===== */
.scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.score-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.score-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-icon.green { background: var(--primary-light); color: var(--primary); }
.score-icon.orange { background: #FFF3E0; color: var(--secondary); }

.score-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.score-labels {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.score-labels li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.healthy { background: var(--score-healthy); }
.dot.warning { background: var(--score-warning); }
.dot.danger { background: var(--score-danger); }

.score-card details {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.score-card summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-card summary::-webkit-details-marker { display: none; }

.score-card summary::after {
  content: "\25B8";
  transition: transform 0.2s;
}

.score-card details[open] summary::after {
  transform: rotate(90deg);
}

.score-card details .detail-content {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.score-card details .detail-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.score-card details .detail-content ul li {
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .scores-grid { grid-template-columns: 1fr; }
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== Steps Grid ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  font-weight: 700;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== Social Proof / Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== Hero Carousel ===== */
.hero-carousel {
  max-width: 360px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid #ddd;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow);
  transition: background 0.2s;
  font-size: 1.2rem;
  color: var(--text);
}

.carousel-btn:hover { background: #f0f0f0; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dots button.active { background: var(--primary); }

/* ===== Why Both Scores Matter ===== */
.matters-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.matters-content p {
  margin-bottom: 20px;
}

/* ===== Founder's Story ===== */
.founders-story {
  background: var(--bg-green-light);
}

.story-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.story-content p {
  margin-bottom: 20px;
}

.story-content .story-highlight {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.story-content .story-signoff {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
  margin-top: 32px;
}

/* ===== Download CTA ===== */
.download-cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.download-cta h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.download-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .store-badges {
    gap: 20px;
  }
}

.store-badge {
  position: relative;
  display: inline-block;
}

.store-badge-link {
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge-link:hover {
  transform: translateY(-2px);
}

.store-badge-img {
  height: 56px;
  width: auto;
}

.coming-soon-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.footer-links-row a {
  color: #aaa;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links-row a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
  color: #777;
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer-bottom p {
  margin-bottom: 8px;
}


/* ===== Policy Pages ===== */
.policy-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.policy-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.policy-page .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.policy-page h2 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--primary);
}

.policy-page h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.policy-page p {
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.policy-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-page ul li {
  margin-bottom: 6px;
  color: var(--text-muted);
  line-height: 1.6;
}

.policy-page strong {
  color: var(--text);
}

.policy-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.policy-page th,
.policy-page td {
  text-align: left;
  padding: 12px 32px 12px 0;
  color: var(--text-muted);
  border-bottom: 1px solid #e0e0e0;
}

.policy-page th {
  color: var(--text);
  font-weight: 600;
}

.policy-page blockquote {
  border-left: 3px solid var(--primary-light);
  padding: 12px 20px;
  margin: 20px 0;
  background: #f5f7f0;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Responsive Hero ===== */
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .phone-mockup { max-width: 220px; }
  .download-cta h2 { font-size: 1.6rem; }
}
