:root {
  --bg: #faf6ee;
  --bg-card: #ffffff;
  --bg-card-alt: #fff8ee;
  --border: #e6dac0;
  --border-strong: #d8caa8;
  --text: #221d17;
  --text-muted: #6e6455;
  --text-faint: #9c927e;
  --accent: #e2572a;
  --accent-strong: #c8441c;
  --accent-soft: #fbe4d6;
  --accent-dim: rgba(226, 87, 42, 0.1);
  --ink: #2c2620;
  --max-width: 1120px;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(226, 87, 42, 0.07), transparent 70%);
  z-index: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a { color: inherit; }

/* Nav */
.nav { position: relative; z-index: 2; }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--text);
}
.brand-mark { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.nav-domain { color: var(--text-muted); font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 16px 34px;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px -10px rgba(226, 87, 42, 0.55);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(226, 87, 42, 0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  padding: 10px 20px;
  font-size: 0.92rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Hero */
.hero { padding: 56px 0 64px; text-align: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(226, 87, 42, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  max-width: 16ch;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--text-muted); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 40px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-cta-note { color: var(--text-faint); font-size: 0.88rem; }

/* ---------------------------------------------------------------- */
/* Dashboard showcase                                                */
/* ---------------------------------------------------------------- */
.showcase { padding: 24px 0 88px; position: relative; z-index: 1; }
.showcase-canvas {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.showcase-frame {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  z-index: 2;
}
.device {
  background: #211c15;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(34, 29, 23, 0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.device-mount {
  width: 56px;
  height: 8px;
  background: #3a332a;
  border-radius: 0 0 4px 4px;
  margin: 0 auto 12px;
}
.dashboard {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1.5px solid #efe8d8;
}
.dash-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}
.dash-greeting { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.dash-date { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }
.dash-time-block { text-align: right; }
.dash-time { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-strong); }
.dash-countdown {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.dash-row { display: flex; gap: 18px; margin-bottom: 18px; }
.dash-row:last-child { margin-bottom: 0; }

.widget {
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  position: relative;
}
.widget-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

/* Weather widget */
.widget-weather { flex: 0 0 360px; }
.weather-now { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.weather-temp { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.weather-desc { color: var(--text-muted); font-size: 0.9rem; }
.weather-tomorrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--border);
  margin-bottom: 14px;
}
.weather-temp-sm { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.weather-desc-sm { color: var(--text-muted); font-size: 0.85rem; }
.wear-row { display: flex; gap: 8px; }
.wear-icon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 6px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  color: var(--text-faint);
  background: #fff;
}
.wear-icon svg { width: 20px; height: 20px; }
.wear-icon span { font-size: 0.62rem; font-weight: 600; text-align: center; }
.wear-icon.active { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }

/* Kids widget */
.widget-kids { flex: 1; }
.kids-row { display: flex; gap: 12px; }
.kid-card {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
}
.kid-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.kid-lesson { font-size: 0.88rem; color: var(--text); }
.kid-time { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.kid-flag {
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}
.kid-flag.cancelled { background: #fde3d8; color: #b8451f; }
.kid-flag.sport { background: var(--accent-soft); color: var(--accent-strong); }

/* Row 2 small widgets */
.widget-sport, .widget-birthday { flex: 0 0 300px; }
.widget-parents { flex: 1; }
.widget-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.widget-icon svg { width: 18px; height: 18px; }
.widget-title { font-weight: 700; font-size: 0.98rem; margin: 2px 0 4px; }
.widget-note { font-size: 0.82rem; color: var(--text-muted); }

.parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.parent-row + .parent-row { border-top: 1.5px dashed var(--border); }
.parent-name { font-weight: 700; font-size: 0.92rem; }
.parent-meeting { font-size: 0.82rem; color: var(--text-muted); }

/* Chores / routines widget */
.widget-chores { flex: 1; }
.chore-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.chore-row + .chore-row { border-top: 1.5px dashed var(--border); }
.chore-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chore-icon svg { width: 16px; height: 16px; }
.chore-task { font-weight: 600; font-size: 0.9rem; }
.chore-who {
  margin-left: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-strong);
}

/* Vacation widget */
.widget-vacation { flex: 0 0 300px; }
.vacation-count { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.vacation-num { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent-strong); }
.vacation-unit { color: var(--text-muted); font-size: 0.95rem; }

/* Shoutouts widget */
.widget-shoutouts { flex: 1; }
.shoutouts-row { display: flex; gap: 14px; }
.shoutout {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.shoutout-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.shoutout-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.shoutout-text strong { display: block; color: var(--text); font-size: 0.85rem; margin-bottom: 3px; }

/* Annotations */
.annotations { display: none; }
.ann-svg { position: absolute; top: 0; left: 0; overflow: visible; }
.ann-note {
  position: absolute;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink);
  max-width: 220px;
}

@media (min-width: 1440px) {
  .showcase-canvas { max-width: 1420px; padding: 96px 190px; }
  .annotations { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
}

.showcase-caption {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin: 28px 0 0;
}

/* Positioning strip */
.strip { border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); padding: 40px 0; }
.strip .wrap { max-width: 760px; text-align: center; }
.strip p { font-size: 1.25rem; line-height: 1.5; color: var(--text); margin: 0; font-weight: 500; }
.strip p span { color: var(--text-muted); font-weight: 400; }

/* Section headings */
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-kicker {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; margin: 0 0 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* Hero features */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.pillar-num { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 18px; }
.pillar h3 { font-size: 1.3rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.pillar p { color: var(--text-muted); margin: 0; line-height: 1.55; }

/* Supporting features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 8px; padding: 26px 24px; }
.card-icon {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { text-align: center; }
.step-badge {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-weight: 700;
  color: var(--accent-strong);
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Trust */
.trust {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.trust-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.trust h2 { margin: 0 0 10px; font-size: 1.3rem; }
.trust p { margin: 0; color: var(--text-muted); line-height: 1.6; max-width: 62ch; }

/* Closing CTA */
.closing { text-align: center; padding: 100px 0 110px; }
.closing h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 16px; letter-spacing: -0.01em; }
.closing p { color: var(--text-muted); margin: 0 0 36px; }

/* Footer */
footer { border-top: 1.5px solid var(--border); padding: 36px 0 48px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .brand { font-size: 0.95rem; }
.footer-note { color: var(--text-faint); font-size: 0.85rem; }

@media (max-width: 900px) {
  .dash-row { flex-direction: column; }
  .widget-weather, .widget-kids, .widget-sport, .widget-birthday, .widget-parents, .widget-chores, .widget-vacation, .widget-shoutouts { flex: 1 1 auto; }
  .shoutouts-row { flex-direction: column; }
  .kids-row { flex-direction: column; }
  .kid-card { min-height: unset; }
}

@media (max-width: 860px) {
  .pillars, .grid, .steps { grid-template-columns: 1fr; }
  .trust { flex-direction: column; padding: 32px; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .dash-header { flex-direction: column; align-items: flex-start; }
  .device { padding: 12px; border-radius: 12px; }
  .dashboard { padding: 16px; border-radius: 6px; }
}
