/* NLife — Global Styles */
:root {
  --blue-dark:   #1B4F8A;
  --blue-mid:    #2563EB;
  --blue-light:  #EFF6FF;
  --red:         #DC2626;
  --red-light:   #FEF2F2;
  --white:       #FFFFFF;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-300:    #D1D5DB;
  --gray-500:    #6B7280;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --border:      #E5E7EB;
  --radius:      8px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section:nth-child(even) { background: var(--gray-50); }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 22px; color: var(--blue-dark);
  text-decoration: none;
}
.logo svg { width: 36px; height: 36px; }
nav a {
  color: var(--gray-700); margin-left: 28px;
  font-size: 14px; font-weight: 500;
}
nav a:hover { color: var(--blue-dark); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(160deg, var(--white) 60%, var(--blue-light) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.beta-badge {
  display: inline-block;
  background: var(--red-light); color: var(--red);
  border: 1px solid var(--red); border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  padding: 4px 12px; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.15;
  color: var(--blue-dark); margin-bottom: 20px;
}
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 18px; color: var(--gray-500); margin-bottom: 36px; max-width: 480px;
}
.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-store {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; border: 1.5px solid transparent;
  transition: all .2s; text-decoration: none;
}
.btn-store.android {
  background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark);
}
.btn-store.android:hover { background: var(--blue-mid); border-color: var(--blue-mid); text-decoration: none; }
.btn-store.ios {
  background: var(--white); color: var(--gray-300);
  border-color: var(--gray-300); cursor: not-allowed; opacity: .7;
}
.btn-store svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-store small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.phone-mock {
  width: 220px; height: 420px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(27,79,138,.15);
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.phone-status {
  background: var(--blue-dark); height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.phone-status span { color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.phone-content { padding: 16px; flex: 1; }
.phone-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.phone-row:last-child { border: none; }
.phone-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.phone-dot.blue { background: var(--blue-mid); }
.phone-dot.red  { background: var(--red); }
.phone-dot.gray { background: var(--gray-300); }
.phone-label { font-size: 11px; color: var(--gray-700); font-weight: 500; }
.phone-sub   { font-size: 10px; color: var(--gray-500); }
.phone-bar {
  height: 4px; border-radius: 2px; margin-top: 4px;
  background: var(--border);
}
.phone-bar-fill { height: 100%; border-radius: 2px; background: var(--blue-mid); }

/* ── Section headings ── */
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.section-title {
  font-size: 34px; font-weight: 800; color: var(--blue-dark);
  margin-bottom: 16px; line-height: 1.2;
}
.section-sub {
  font-size: 17px; color: var(--gray-500); max-width: 560px; margin-bottom: 48px;
}

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: 0 8px 30px rgba(27,79,138,.1); }
.feature-icon {
  width: 48px; height: 48px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-dark); color: var(--white);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--gray-500); }
.step-connector {
  display: flex; align-items: center; padding-top: 24px;
}

/* ── Beta section ── */
.beta-section {
  background: var(--blue-dark); padding: 80px 0;
}
.beta-section .section-title { color: var(--white); }
.beta-section .section-sub   { color: rgba(255,255,255,.7); }
.beta-section .section-label { color: var(--red); }
.beta-features {
  display: flex; gap: 32px; flex-wrap: wrap; margin-top: 40px;
}
.beta-feature {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-size: 15px;
}
.beta-feature svg { color: var(--red); flex-shrink: 0; }

/* ── Nudge example ── */
.nudge-card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--blue-mid);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 16px; max-width: 520px;
}
.nudge-time { font-size: 11px; color: var(--gray-500); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.nudge-text { font-size: 15px; color: var(--gray-700); line-height: 1.5; }

/* ── Legal pages ── */
.legal-header {
  background: var(--blue-dark); padding: 60px 0 40px; color: var(--white);
}
.legal-header h1 { font-size: 36px; font-weight: 800; }
.legal-header p  { color: rgba(255,255,255,.7); margin-top: 8px; }
.legal-content { max-width: 760px; margin: 60px auto; padding: 0 24px 80px; }
.legal-content h2 { font-size: 22px; font-weight: 700; color: var(--blue-dark); margin: 36px 0 12px; }
.legal-content p  { color: var(--gray-700); margin-bottom: 14px; line-height: 1.7; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { color: var(--gray-700); margin-bottom: 6px; line-height: 1.7; }

/* ── Footer ── */
footer {
  background: #111827;
  color: #9CA3AF;
  padding: 40px 0;
  width: 100%;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #9CA3AF; font-size: 13px; }
.footer-links a:hover { color: #ffffff; text-decoration: none; }
footer p { font-size: 13px; color: #9CA3AF; }

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: #111827; color: #ffffff;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  transform: translateY(100%); transition: transform .3s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: 14px; color: #D1D5DB; max-width: 700px; }
#cookie-banner a { color: #60A5FA; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie {
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
}
.btn-accept { background: var(--blue-mid); color: var(--white); }
.btn-decline { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.3); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  nav { display: none; }
}
