:root {
  --green: #6a994e;
  --green-light: #9ccc65;
  --navy: #0d1e40;
  --ink: #1f2933;
  --muted: #5b6672;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --radius: 14px;
  --maxw: 720px;
  /* homepage additions */
  --cream: #f4f6ef;
  --sage-tint: #eef3ea;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar img { width: 34px; height: 34px; }

.bar a.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.bar nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.bar nav a:hover { color: var(--green); }

/* Legal documents */
main.doc { padding: 40px 0 64px; }

main.doc h1 {
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 30px;
}

main.doc h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  padding-top: 4px;
}

main.doc h3 {
  font-size: 16px;
  margin: 22px 0 6px;
}

main.doc p, main.doc li { color: #333c47; }

main.doc ul { padding-left: 22px; }

main.doc li { margin-bottom: 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

th, td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--bg-soft); font-weight: 600; }

a { color: var(--green); }

.note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 20px 0;
}

.note p { margin: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

footer a { color: var(--muted); text-decoration: none; }

footer a:hover { color: var(--green); }

/* ============================================================
   Homepage
   ============================================================ */

.wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-hero h1,
.band h2,
.split-title {
  font-family: var(--serif);
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
}

/* Hero */
.home-hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--sage-tint));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 64px 20px;
}

.hero-appicon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(13, 30, 64, 0.22);
}

.hero-copy h1 {
  margin: 24px 0 14px;
  font-size: 46px;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 480px;
  color: var(--muted);
  font-size: 18px;
}

.hero-shot { justify-self: center; }

/* Store badges — both stores live, see the note in index.html */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px 10px 16px;
  background: var(--navy);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13, 30, 64, 0.25);
}

.store-badge svg { width: 26px; height: 26px; flex: none; }

.store-badge-text { display: flex; flex-direction: column; }

.store-badge-text small { font-size: 11px; opacity: 0.85; }

.store-badge-text strong { font-size: 17px; font-weight: 600; }

.store-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Screenshots */
.phone-shot {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
  border: 9px solid var(--navy);
  border-radius: 38px;
  box-shadow: 0 24px 48px rgba(13, 30, 64, 0.18);
  background: var(--navy);
}

.mock-shot {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(13, 30, 64, 0.16);
}

/* Sections */
.band { padding: 76px 0; }

.band-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band h2 {
  margin: 0 0 14px;
  font-size: 34px;
}

.section-lead {
  margin: 0 0 36px;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

/* The eleven tracking cards */
.card-grid {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}

.card-grid li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card-grid img {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

.card-grid h3 { margin: 0 0 4px; font-size: 16px; }

.card-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Two-column feature splits */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.split-reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

.split-reverse .split-copy { order: 2; }
.split-reverse .split-shot { order: 1; }

.split-shot { justify-self: center; }

.split-copy p { color: #333c47; }

.split-title {
  margin: 40px 0 10px;
  font-size: 24px;
}

.band .split .split-title { margin-top: 0; }

/* Numbered steps (sleep plan) */
.steps {
  margin: 18px 0;
  padding-left: 24px;
}

.steps li { margin-bottom: 12px; }

/* Tick lists */
.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: #333c47;
}

.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.fine-print {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Fun — the three AI cards */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.ai-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  text-align: center;
}

.ai-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ai-card-img img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
}

.ai-card h3 { margin: 0 0 6px; font-size: 18px; font-family: var(--serif); }

.ai-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Album */
.split-album { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }

.album-pair {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.album-pair .mock-shot { max-width: 215px; flex: 1 1 170px; min-width: 0; }

/* Privacy band */
.privacy-band {
  background: var(--navy);
  color: #dfe6f3;
  text-align: center;
}

.privacy-band h2 { color: #fff; }

.privacy-inner p {
  max-width: 600px;
  margin: 0 auto 26px;
  font-size: 17px;
}

.ghost-link {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.ghost-link:hover { background: rgba(255, 255, 255, 0.08); }

/* Closing call to action */
.cta-band {
  background: linear-gradient(180deg, var(--bg), var(--sage-tint));
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.cta-duck { width: 180px; height: 180px; flex: none; }

.cta-copy { max-width: 480px; }

.cta-copy h2 { margin-top: 0; }

.cta-copy p { color: #333c47; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px;
    text-align: center;
  }

  .hero-lead { margin-left: auto; margin-right: auto; }

  .store-badges { justify-content: center; }

  .split,
  .split-reverse { grid-template-columns: 1fr; gap: 36px; }

  .split-reverse .split-copy { order: 1; }
  .split-reverse .split-shot { order: 2; }

  .band { padding: 56px 0; }

  .band h2 { font-size: 29px; }

  .hero-copy h1 { font-size: 36px; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 31px; }

  .phone-shot { max-width: 240px; }

  .album-pair .mock-shot { max-width: 200px; }

  .cta-grid { gap: 24px; }

  .cta-duck { width: 130px; height: 130px; }
}
