/* 4 Moves website: the app's two palettes (app/lib/app/theme/palette.dart).
   Paper in light mode, Midnight in dark mode — like the app. */
:root {
  --bg: #f5f0e8;
  --surface: #fffcf7;
  --board: #e7dfd1;
  --text: #2b2d42;
  --muted: #7a7768;
  --accent: #e0603f;
  --on-accent: #ffffff;
  --line: rgba(43, 45, 66, 0.12);
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1d2b;
    --surface: #262839;
    --board: #222433;
    --text: #edf2f4;
    --muted: #8d93ae;
    --accent: #ef8354;
    --on-accent: #1b1d2b;
    --line: rgba(237, 242, 244, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* height: auto keeps the aspect ratio when CSS narrows an image that has
   width/height attributes (they only reserve space while loading). */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-weight: 900; letter-spacing: 3px; font-size: 18px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav a.optional { display: none; } .nav { gap: 14px; } }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; margin: 0 0 12px; font-weight: 900; letter-spacing: 4px; }
.tagline { font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 34em; }
@media (max-width: 820px) { .lead { margin-left: auto; margin-right: auto; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 820px) { .cta { justify-content: center; } }
.button {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); font-weight: 800; line-height: 1.2;
}
.button small { font-weight: 600; opacity: 0.85; font-size: 12px; }
.button.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.launch { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.phone {
  width: min(300px, 78vw); margin: 0 auto; border-radius: 36px; overflow: hidden;
  box-shadow: var(--shadow); border: 8px solid var(--surface); background: var(--surface);
}

/* Sections */
section { padding: 48px 0; scroll-margin-top: 72px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; font-weight: 900; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 1px 0 var(--line); }
.card .icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 15px;
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.shots figure { margin: 0; }
.shots .phone { width: 100%; max-width: 280px; border-width: 6px; border-radius: 28px; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.promise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { background: var(--board); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.contact { background: var(--surface); border-radius: 24px; padding: 32px; text-align: center; }
.contact .button { margin-top: 12px; align-items: center; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: 1px; }
.legal h2 { font-size: 20px; margin: 28px 0 6px; }
.legal .meta { color: var(--muted); margin: 2px 0; }
.legal ul, .legal ol { padding-left: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
.site-footer .credit { font-size: 13px; }
