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

:root {
  --ink:        #16324F;
  --ink-dark:   #0B1B2D;
  --ink-light:  #335C85;
  --cobalt:     #2563EB;
  --cobalt-light: #5B8CFF;
  --teal:       #0F8B8D;
  --mint:       #7CE2D2;
  --coral:      #DE5B49;
  --sky:        #EFF6FF;
  --mist:       #F2FBFA;
  --white:      #FFFFFF;
  --text-dark:  #16324F;
  --text-mid:   #335C85;
  --text-light: #ABC0D4;

  --radius:     12px;
  --radius-lg:  20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
p  { font-size: 1rem; line-height: 1.7; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-links .btn-nav {
  color: var(--white);
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(37,99,235,0.4);
}
.nav-links .btn-nav:hover { opacity: 0.88; box-shadow: 0 4px 16px rgba(37,99,235,0.5); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--ink-dark) 0%, #1a3a70 45%, var(--teal) 100%);
  padding: 120px 0 96px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative glow blobs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,226,210,0.2) 0%, transparent 70%);
  bottom: -150px;
  right: -50px;
  pointer-events: none;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}

.hero h1 { color: var(--white); margin-bottom: 20px; position: relative; z-index: 1; }

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

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--teal) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(37,99,235,0.5), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.55); }

/* ── App Store Badges ─────────────────────────────────────── */
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 12px 20px;
  min-width: 160px;
  cursor: default;
}

.store-badge-icon {
  font-size: 1.6rem;
  opacity: 0.5;
}

.store-badge-text { text-align: left; }
.store-badge-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; }
.store-badge-name  { display: block; font-size: 0.95rem; font-weight: 600; }

.coming-soon-pill {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how { background: var(--white); }
.how .section-label { text-align: center; margin-bottom: 16px; }
.how h2 { text-align: center; margin-bottom: 64px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cobalt), var(--mint));
}

.step { text-align: center; padding: 0 24px; }

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--teal) 100%);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 28px rgba(37,99,235,0.45);
}

.step h3 { margin-bottom: 10px; color: var(--ink); }
.step p { font-size: 0.95rem; color: var(--text-mid); }

/* ── FEATURES ─────────────────────────────────────────────── */
.features {
  background: linear-gradient(160deg, #e8f0fe 0%, var(--mist) 100%);
}
.features h2 { text-align: center; margin-bottom: 56px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border-top: 4px solid var(--teal);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: 0 16px 48px rgba(37,99,235,0.14);
  transform: translateY(-3px);
}

.feature-card:nth-child(1) { border-top-color: var(--teal); }
.feature-card:nth-child(2) { border-top-color: var(--cobalt); }
.feature-card:nth-child(3) { border-top-color: var(--mint); }
.feature-card:nth-child(4) { border-top-color: var(--coral); }
.feature-card:nth-child(5) { border-top-color: #7C3AED; }
.feature-card:nth-child(6) { border-top-color: var(--teal); }
.feature-card:nth-child(7) { border-top-color: var(--cobalt); }
.feature-card:nth-child(8) { border-top-color: var(--mint); }

/* CSS illustrations */
.feat-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  position: relative;
}

/* 1 — Shared devices: two overlapping rounded rects */
.icon-shared-devices {
  width: 56px;
  height: 56px;
  position: relative;
}
.icon-shared-devices::before,
.icon-shared-devices::after {
  content: '';
  position: absolute;
  border-radius: 8px;
  width: 36px;
  height: 44px;
}
.icon-shared-devices::before {
  top: 0; left: 0;
  background: linear-gradient(135deg, var(--teal), #0bc5c8);
  box-shadow: 0 4px 12px rgba(15,139,141,0.4);
}
.icon-shared-devices::after {
  bottom: 0; right: 0;
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-light));
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

/* 2 — Cross-platform: two half-circles (iOS / Android) */
.icon-cross-platform {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--teal) 50%, var(--cobalt) 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.icon-cross-platform::after {
  content: '';
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
}

/* 3 — Gamification: progress arc */
.icon-gamified {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--cobalt) 0deg 90deg, var(--teal) 90deg 210deg, var(--mint) 210deg 270deg, #e0f0ff 270deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(15,139,141,0.35);
}
.icon-gamified::after {
  content: '✓';
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}

/* 4 — No battles: shield with gradient bg */
.icon-shield {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--coral), #f07060);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(222,91,73,0.4);
}
.icon-shield::before {
  content: '🛡';
  font-size: 1.8rem;
  filter: brightness(10);
}

/* 5 — Habits: upward arrow with gradient */
.icon-habits {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt) 0%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.icon-habits::after { content: '↑'; line-height: 1; }

/* 6 — Time ledger: stacked bar chart */
.icon-ledger {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--mint) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 10px 10px 8px;
  box-shadow: 0 4px 16px rgba(15,139,141,0.4);
}
.icon-ledger::before,
.icon-ledger::after {
  content: '';
  border-radius: 3px 3px 0 0;
  background: rgba(255,255,255,0.9);
}
.icon-ledger::before { width: 10px; height: 22px; }
.icon-ledger::after  { width: 10px; height: 14px; opacity: 0.6; }

/* 7 — Quick approvals: lightning bolt */
.icon-approval {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, var(--coral) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(245,158,11,0.45);
}
.icon-approval::after { content: '⚡'; }

/* 8 — Schedule: circular arrows */
.icon-schedule {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt) 0%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.icon-schedule::after { content: '↻'; color: var(--white); font-weight: 900; }

.feature-body h3 { margin-bottom: 8px; color: var(--ink); }
.feature-body p  { font-size: 0.95rem; color: var(--text-mid); line-height: 1.65; }

/* ── PHILOSOPHY ───────────────────────────────────────────── */
.philosophy {
  background: linear-gradient(145deg, #0d2444 0%, var(--cobalt) 55%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(124,226,210,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.philosophy h2 { color: var(--white); margin-bottom: 24px; }
.philosophy h2 span { color: var(--mint); }

.philosophy p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 20px;
}

.philosophy p:last-child { margin-bottom: 0; }

/* ── WAITLIST ─────────────────────────────────────────────── */
.waitlist { background: var(--white); text-align: center; }
.waitlist h2 { margin-bottom: 12px; }
.waitlist .sub { color: var(--text-mid); margin-bottom: 40px; }

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: 2px solid #D1DCE8;
  border-radius: 100px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input[type="email"]:focus { border-color: var(--cobalt); }
.waitlist-form input[type="email"]::placeholder { color: var(--text-light); }

.waitlist-form button {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--teal) 100%);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.45);
}
.waitlist-form button:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.5); }

.waitlist-note { font-size: 0.85rem; color: var(--text-light); }

.waitlist-success {
  display: none;
  background: var(--mist);
  border: 1px solid var(--mint);
  border-radius: var(--radius);
  padding: 20px 32px;
  max-width: 480px;
  margin: 0 auto;
  color: var(--teal);
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--ink-dark);
  color: rgba(255,255,255,0.5);
  padding: 48px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-made { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 0.8rem; }

/* ── Shared section label ─────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--cobalt), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

/* ── Inner page (privacy / terms) ────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-dark) 100%);
  padding: 80px 0 64px;
  color: var(--white);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero .updated { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 8px; }

.page-content { padding: 80px 0; }
.page-content .container { max-width: 760px; }

.page-content h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 48px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sky);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p  { color: var(--text-mid); margin-bottom: 16px; }
.page-content ul { padding-left: 20px; color: var(--text-mid); margin-bottom: 16px; }
.page-content ul li { margin-bottom: 6px; }
.page-content a  { color: var(--cobalt); text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .steps::before { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }

  .nav-links a:not(.btn-nav) { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 0 72px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input[type="email"],
  .waitlist-form button { width: 100%; border-radius: var(--radius); }
}
