/* Routine Planner — Morning Prep
   Palette and type mirror the app (src/theme.ts) so the site and product read
   as one thing: dawn gradient, warm cream ground, sun orange, night navy. */

:root {
  --cream: #F7F5F0;
  --card: #FFFFFF;
  --ink: #23262F;
  --muted: #6E7079;
  --faint: #A2A29E;
  --rule: #E4DFD6;

  --accent: #F0762B;
  --accent-deep: #C95F17;
  --accent-soft: #FCE9DB;

  --night: #2E3352;
  --night-deep: #20243C;

  --success: #2A7A46;

  --dawn: linear-gradient(180deg, #2E3352 0%, #4A4270 34%, #8E5560 58%, #D96B3A 80%, #F5A15C 100%);

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; display: block; }

.shell { width: min(1060px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { width: min(720px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { letter-spacing: -0.025em; text-wrap: balance; margin: 0; font-weight: 800; }
p { margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
  font-size: 17px;
}
.wordmark img { width: 34px; height: auto; }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; font-weight: 600; }
.topbar nav a { text-decoration: none; color: inherit; opacity: .78; }
.topbar nav a:hover { opacity: 1; }

.on-dawn .wordmark, .on-dawn nav a { color: #fff; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--dawn);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 76px) clamp(56px, 8vw, 96px);
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero .lede {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 19px);
  color: rgba(255,255,255,.82);
  max-width: 46ch;
}
.hero .eyebrow { color: rgba(255,255,255,.66); }
.hero-mascot {
  width: 62px;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 26px rgba(90,40,0,.32));
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(240,118,43,.34); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.26); }
.cta-note { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 12px; }

/* ---------- phone mock ---------- */

.phone {
  width: min(300px, 78vw);
  margin-inline: auto;
  border-radius: 42px;
  padding: 11px;
  background: #14162A;
  box-shadow: 0 40px 80px rgba(15, 12, 30, .45), 0 0 0 1px rgba(255,255,255,.09);
}
.screen {
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream);
}
.screen-top {
  background: var(--dawn);
  padding: 26px 18px 22px;
  color: #fff;
}
.screen-eyebrow { font-size: 9.5px; letter-spacing: .12em; font-weight: 700; color: rgba(255,255,255,.7); text-transform: uppercase; }
.screen-title { font-size: 21px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(35,39,66,.5); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 5px 10px; font-size: 10.5px; font-weight: 600; margin-top: 9px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 3px; background: #FFB4A8; }
.count { display: flex; align-items: baseline; gap: 7px; margin-top: 16px; }
.count b { font-size: 52px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.count span { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.8); }
.count-sub {
  display: inline-block; background: rgba(35,39,66,.55); border-radius: 999px;
  padding: 4px 11px; font-size: 11px; font-weight: 700; margin-top: 10px;
}
.screen-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.mini-card { background: #fff; border-radius: 13px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(46,51,82,.07); }
.mini-progress { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; color: var(--night); }
.track { flex: 1; height: 5px; border-radius: 3px; background: #EFEBE3; overflow: hidden; }
.track i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #F0762B, #FFA05C); }
.task { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: 12.5px; }
.box { width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--rule); flex: none; }
.box.done { background: var(--accent); border-color: var(--accent); position: relative; }
.box.done::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; }
.task.done span { color: var(--faint); text-decoration: line-through; }

/* ---------- sections ---------- */

section { padding-block: clamp(52px, 8vw, 88px); }
.section-head { max-width: var(--measure); }
.section-head .eyebrow { color: var(--accent-deep); }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 10px; line-height: 1.15; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17.5px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 34px; }
.feature {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature .tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 2px;
}

.band { background: var(--night-deep); color: #fff; }
.band .section-head h2 { color: #fff; }
.band .section-head p { color: rgba(255,255,255,.72); }
.band .section-head .eyebrow { color: #FFA05C; }

.quiet-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.quiet-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; color: rgba(255,255,255,.86); font-size: 16.5px; }
.quiet-list li::before { content: "→"; color: #FFA05C; font-weight: 700; }

/* ---------- App Store badge ----------
   Custom pre-launch badge. Once the app is live, swap this for Apple's
   official "Download on the App Store" artwork, which their marketing
   guidelines require for links to a shipping App Store listing. */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  padding: 9px 18px 9px 15px;
  text-decoration: none;
}
.appstore.dark { border-color: rgba(0,0,0,.12); }
.appstore svg { width: 24px; height: 28px; flex: none; }
.appstore .lines { display: flex; flex-direction: column; line-height: 1.15; }
.appstore .small { font-size: 11px; font-weight: 500; opacity: .82; }
.appstore .big { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }

.closer { text-align: center; padding-bottom: clamp(60px, 9vw, 100px); }
.closer .section-head { margin-inline: auto; }
.closer .cta-row { justify-content: center; margin-top: 26px; }

/* ---------- doc pages ---------- */

.doc-head { background: var(--night-deep); color: #fff; padding-block: clamp(34px, 6vw, 58px) clamp(30px, 5vw, 46px); }
.doc-head h1 { font-size: clamp(28px, 4.4vw, 42px); }
.doc-head .eyebrow { color: #FFA05C; }
.doc-head p { color: rgba(255,255,255,.72); margin-top: 12px; }

.doc { padding-block: clamp(38px, 6vw, 60px); }
.doc h2 { font-size: 21px; margin-top: 38px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 17px; margin-top: 24px; }
.doc p, .doc li { color: #33363F; font-size: 16.5px; }
.doc p + p { margin-top: 14px; }
.doc h2 + p, .doc h3 + p { margin-top: 12px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 9px; }
.doc strong { font-weight: 700; }

.callout {
  background: var(--accent-soft);
  border: 1px solid #EFD3B7;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 22px;
}
.callout p { color: #7A4E19; }

.table-wrap { overflow-x: auto; margin-top: 18px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */

footer { background: var(--night); color: rgba(255,255,255,.7); padding-block: 44px; margin-top: 20px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; opacity: .8; }
footer a:hover { opacity: 1; text-decoration: underline; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.foot-note { font-size: 13.5px; color: rgba(255,255,255,.5); margin-top: 18px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { margin-top: 8px; }
  .topbar nav { display: none; }
}
