:root{
  /* Brand tokens (light theme) */
  --brand-primary:#0F3B5A;
  --brand-primary-soft:#CFE3ED;
  --brand-accent:#E07A2D;
  --background:#FCF6EF;
  --surface:#FAF3E8;
  --text-primary:#0F3B5A;
  --text-secondary:#9FB6C1;
  --sage:#7FBF9E;
  --danger:#C65A4A;

  /* Derived tokens for layout */
  --border:#E2D4C4;
}

*{box-sizing:border-box}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial;
  margin:0;
  background:var(--background);
  color:var(--text-primary);
}

header{
  background:var(--surface);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

nav{
  max-width:900px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

nav a{
  color:var(--brand-primary);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}

nav a:first-child{
  margin-right:auto;
  font-size:16px;
}

main{
  max-width:900px;
  margin:32px auto 40px;
  padding:0 16px;
}

footer{
  max-width:900px;
  margin:32px auto;
  padding:0 16px 24px;
  color:var(--text-secondary);
  text-align:center;
}

/* Hero + marketing sections */
.hero{
  background:linear-gradient(135deg,var(--surface), var(--brand-primary-soft));
  border-radius:20px;
  padding:28px 24px 24px;
  box-shadow:0 14px 40px rgba(15,23,42,0.08);
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,59,90,0.06);
  color:var(--brand-primary);
  font-size:11px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin:0 0 8px;
}

.hero-carousel{
  display:block;
}

.hero-carousel > .hero-controls{
  margin-top:12px;
  margin-bottom:0;
  justify-content:flex-end;
}

.hero-slide{
  display:none;
  align-items:center;
  gap:24px;
}

.hero-slide.is-active{
  display:flex;
}

.hero-copy{
  flex:1 1 0;
}

.hero-image{
  flex:0 0 auto;
}

.hero-title{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.15;
}

.hero-tagline{
  margin:0 0 8px;
  color:var(--text-secondary);
  max-width:520px;
}

.hero-body{
  margin:0 0 16px;
  color:var(--text-primary);
  max-width:560px;
  font-size:16px;
}

.hero-image img{
  max-width:260px;
  width:100%;
  border-radius:24px;
  box-shadow:0 12px 30px rgba(15,23,42,0.25);
  border:4px solid var(--surface);
}

.hero-controls{
  display:flex;
  gap:8px;
  margin:12px 0 0;
}

.hero-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  border:none;
  background:rgba(15,59,90,0.2);
  padding:0;
  cursor:pointer;
}

.hero-dot.is-active{
  width:24px;
  background:var(--brand-accent);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
  margin-bottom:0;
}

.store-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:var(--brand-primary);
  color:#fff;
  font-size:13px;
  font-weight:600;
}

.store-badge img{
  display:block;
  height:40px;
  width:auto;
}

.store-badge-ios,
.store-badge-google{
  padding:0;
  background:transparent;
  border-radius:0;
}

.store-badge.secondary{
  background:var(--brand-accent);
  color:#fff;
  border:none;
}

.small-note{
  margin:0;
  font-size:12px;
  color:var(--text-secondary);
}

.section{
  margin-top:32px;
}

.section-title{
  margin:0 0 12px;
  font-size:18px;
  color:var(--brand-primary);
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.feature-card{
  background:var(--surface);
  border-radius:14px;
  padding:14px 14px 16px;
  border:1px solid var(--border);
}

.feature-card h3{
  margin:0 0 6px;
  font-size:15px;
  color:var(--brand-primary);
}

.feature-card p{
  margin:0;
  font-size:13px;
  color:var(--text-secondary);
}

.link-list{
  list-style:none;
  padding:0;
  margin:0;
}

.link-list li{
  margin-bottom:4px;
}

.link-list a{
  color:var(--brand-accent);
  text-decoration:none;
  font-weight:500;
  font-size:14px;
}

@media (max-width:640px){
  nav{
    padding:10px 12px;
  }

  main{
    margin:20px auto 28px;
  }

  .hero{
    padding:22px 16px 18px;
  }

  .hero-slide.is-active{
    flex-direction:column;
  }

  .hero-carousel > .hero-controls{
    justify-content:center;
  }

  .feature-grid{
    grid-template-columns:1fr;
  }
}

/* Footer */
.footer-heading{
  margin:0 0 8px;
  font-size:14px;
  font-weight:600;
  color:var(--brand-primary);
  text-align:center;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0 0 12px;
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  justify-content:center;
}

.footer-links a{
  color:var(--brand-primary);
  text-decoration:none;
  font-size:13px;
  font-weight:500;
}

.footer-links a:hover{
  text-decoration:underline;
}
