/* Static marketing pages (home, app pages, about, 404). Built by site/build.mjs.
   The React app (login, pricing, legal, admin) does not use this file. */
:root {
  --navy: #1e3875;
  --navy-deep: #152a5c;
  --orange: #f55926;
  --orange-dark: #bf360c;
  --teal: #14b8a6;
  --cream: #fffaf3;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #ece4d8;
  --radius: 18px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

a { color: var(--orange-dark); }
a:hover { color: var(--orange); }

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
@media (max-width: 640px) { .site-header { position: static; } }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.brand img { height: 40px; width: auto; }
.brand span { color: var(--teal); font-weight: 800; font-size: 0.95rem; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a {
  color: #dbe4ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 0%, #2c4f9e 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero p.lead { font-size: 1.2rem; color: #d5ddf3; max-width: 46em; }
.hero .eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.app-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.app-hero img.icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.app-hero .text { flex: 1 1 320px; }
.store-note {
  margin-top: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { max-width: 46em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 560px) and (max-width: 979px) { .cards.four { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 0 rgba(30, 56, 117, 0.05);
}
.card h3 { margin-bottom: 0.3em; }
.card p:last-child { margin-bottom: 0; }

.app-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.app-card:hover { border-color: var(--orange); }
.app-card img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 14px; }
.app-card .more { margin-top: auto; color: var(--orange-dark); font-weight: 800; }

.feature-banner { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(30, 56, 117, 0.18); }

.spotlight { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) {
  .spotlight { grid-template-columns: 1.1fr 1fr; }
  .spotlight.flip > :first-child { order: 2; }
}

/* ---------- screenshots ---------- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 16px; box-shadow: 0 8px 22px rgba(30, 56, 117, 0.18); }
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; font-weight: 700; text-align: center; }

/* ---------- guides ---------- */
.article h2 { margin-top: 1.4em; font-size: 1.45rem; }
.article ol li, .article ul li { margin-bottom: 0.6em; }
.article .tip {
  background: #fff4e5;
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 1.6em 0;
}
.article .helps { display: flex; gap: 18px; align-items: flex-start; margin-top: 2.2em; }
.article .helps img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.article .helps h3 { margin-bottom: 0.3em; }
.eyebrow-dark {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

/* ---------- legal + support documents (markup from the React pages) ---------- */
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal-doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-doc h3 { font-size: 1.05rem; margin: 1.2em 0 0.3em; }
.legal-doc dl { margin: 0; border-top: 1px solid var(--line); }
.legal-doc dl > div { display: grid; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .legal-doc dl > div { grid-template-columns: 1fr 2fr; } }
.legal-doc dt { font-weight: 800; }
.legal-doc dd { margin: 0; }

/* ---------- steps + faq ---------- */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 18px 20px 18px 68px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font: 700 1rem/34px "Fredoka", sans-serif;
  text-align: center;
}
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
details.faq summary { cursor: pointer; font-weight: 800; }
details.faq p { margin: 10px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c4e4; padding: 40px 0; margin-top: 40px; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { color: #fff; margin: 0 0 10px; font: 600 1rem "Fredoka", sans-serif; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #b9c4e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; font-size: 0.85rem; }
