/* MooCheck site. Colors match the app (MooCheck/Theme.swift): harbor navy, lantern amber, warm off-white.
   Fonts are served from this site (no third-party requests): Nunito for headings, Inter for text. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --canvas: #f7f5f0;
  --surface: #ffffff;
  --ink: #1b1f2a;
  --muted: #5c6270;
  --line: #e2ddd2;
  --brand: #22305a;
  --brand-soft: #e7eaf3;
  --lantern: #e0992c;
  --sage: #2a8a6a;
  --honey: #b7791f;
  --honey-soft: #fdf1dc;
  --bezel: #10131c;
  --shadow: 0 18px 40px -22px rgba(34, 48, 90, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f1320;
    --surface: #171c2c;
    --ink: #eceef4;
    --muted: #a3a9b8;
    --line: #2b3247;
    --brand: #a9b8ea;
    --brand-soft: #1c2440;
    --lantern: #f0b14a;
    --sage: #7fd3b0;
    --honey: #f3c77a;
    --honey-soft: #3a2d17;
    --bezel: #2a3045;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, .wordmark { font-family: "Nunito", ui-rounded, -apple-system, sans-serif; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); margin: 0.2em 0 0.35em; }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.5rem); margin: 2.4em 0 0.6em; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5em 0 0.3em; }
p, li { max-width: 68ch; }
ul { padding-left: 1.2em; }
li + li { margin-top: 0.35em; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Header */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 30px; height: 30px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 -10px; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 6px 10px; border-radius: 999px; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); background: var(--brand-soft); }

/* Line art: the logo and icons share the app's drawing style. */
.art-line { stroke: var(--brand); }
.art-accent { stroke: var(--lantern); }
.art-fill { fill: var(--canvas); }
.art-dot { fill: var(--brand); }
.art-glow { fill: var(--lantern); }

/* Hero */
.hero { text-align: center; padding: 48px 0 8px; }
.hero .art { width: 112px; height: 112px; padding: 20px; border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); border-radius: 50%; display: inline-block; background: var(--canvas); }
.hero .art svg { width: 100%; height: 100%; display: block; }
.hero p.lede { font-size: 1.06rem; color: var(--muted); margin: 0 auto; max-width: 34em; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lantern); }

.waves { display: block; width: 100%; height: 40px; margin: 28px 0 0; }
.waves path { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linecap: round; opacity: 0.18; }
.waves path + path { opacity: 0.1; }

/* Cards and icons */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.card h3 { margin: 0.6em 0 0.25em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon { width: 44px; height: 44px; padding: 8px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); display: block; }
.icon svg { width: 100%; height: 100%; display: block; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .icon { flex: none; }
.feature h3 { margin: 0.15em 0 0.15em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Screenshots */
.screens-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.screens-head h2 { margin-bottom: 0; }
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--brand-soft); }
.toggle button { font: 600 0.88rem "Inter", sans-serif; color: var(--muted); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; }
.phone { margin: 0; }
.phone .screen { aspect-ratio: 1206 / 2622; border-radius: 30px; border: 5px solid var(--bezel); overflow: hidden; background: var(--bezel); box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }
.phone figcaption { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
/* Which set shows: the visitor's mode by default, or the toggle's choice. */
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { .shot-light { display: none; } .shot-dark { display: block; } }
[data-shots="light"] .shot-light { display: block; }
[data-shots="light"] .shot-dark { display: none; }
[data-shots="dark"] .shot-light { display: none; }
[data-shots="dark"] .shot-dark { display: block; }

/* Pricing */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.price .card h3 { margin-top: 0; }
.price .amount { font-family: "Nunito", sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--ink); margin: 2px 0; }
.price .card.featured { border-color: color-mix(in srgb, var(--lantern) 60%, transparent); }
.small { color: var(--muted); font-size: 0.92rem; }

.notice { background: var(--honey-soft); border: 1px solid color-mix(in srgb, var(--honey) 40%, transparent); border-radius: 20px; padding: 16px 20px; margin: 28px 0; font-size: 0.95rem; }
.notice strong { color: var(--ink); }

/* Policy pages */
.doc { padding: 28px 0 8px; }
.doc .updated { color: var(--muted); font-size: 0.92rem; }
.doc h2 { margin-top: 2em; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Footer, with a small ferry on the water. */
footer.site { margin-top: 48px; padding-bottom: max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.86rem; }
footer.site .ferry { display: block; width: 100%; height: 56px; }
footer.site .ferry .water { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linecap: round; opacity: 0.22; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
footer.site a { color: var(--muted); }

/* Phones */
@media (max-width: 720px) {
  .hero { padding-top: 32px; }
  .hero .art { width: 92px; height: 92px; padding: 16px; }
  /* Screenshots become a row you swipe through. */
  .phones {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 16px calc(-1 * max(16px, env(safe-area-inset-left))) 0;
    padding: 4px max(16px, env(safe-area-inset-left)) 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 62%; scroll-snap-align: center; }
  .phone .screen { border-radius: 26px; }
}
@media (max-width: 380px) {
  body { font-size: 15px; }
  .phone { flex-basis: 70%; }
}
