/* BellyLogic website. Built from design-reference.html (design D): the app icon's blue as the one
   accent on a pale blue-grey ground, Nunito headings, Atkinson Hyperlegible body.
   Fonts are self-hosted in /fonts so the site makes no third-party requests. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/Nunito-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegible-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegible-700.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --ground: #F2F6FB;
  --card: #FFFFFF;
  --ink: #1B2430;
  --ink-2: #55606E;
  --line: #D9E2EE;
  --clay: #2764A0;        /* primary: the app icon's blue */
  --clay-soft: #E2ECF7;
  --sage: #2764A0;        /* secondary role is also the icon blue, so the page has one accent */
  --sage-soft: #E2ECF7;
  --accent: #2764A0;
  --btn: #2764A0;
  --btn-ink: #FFFFFF;
  --focus: #2764A0;
  --head: "Nunito", "Avenir Next Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1620;
    --card: #1A2432;
    --ink: #EEF3F9;
    --ink-2: #AEBBCB;
    --line: #2C3A4C;
    --clay: #8DB9E8;
    --clay-soft: #1C3355;
    --sage: #8DB9E8;
    --sage-soft: #1C3355;
    --accent: #8DB9E8;
    --btn: #8DB9E8;
    --btn-ink: #0F1620;
    --focus: #8DB9E8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1.15rem; line-height: 1.6; }
a { color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
img, svg { max-width: 100%; }
.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 2.6vw + 1.4rem, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.intro { max-width: 46ch; }
.intro-wide { max-width: 50ch; }

/* skip link: hidden until focused */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: .6rem 1rem; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* thin notice band at the top of a page (used for the draft notice on privacy and terms) */
.note { background: var(--clay-soft); font-size: .95rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.note strong { color: var(--clay); }
@media (prefers-color-scheme: dark) { .note strong { color: var(--ink); } }

header.site { background: var(--ground); border-bottom: 2px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.5rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; flex-wrap: wrap; }
nav a { display: inline-block; padding: .6rem 1rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
nav a[aria-current="page"] { background: var(--sage-soft); color: var(--sage); box-shadow: inset 0 -3px 0 var(--sage); }
nav a:hover { background: var(--clay-soft); }

.hero { padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); z-index: 0; opacity: .12;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero p.lead { font-size: 1.3rem; max-width: 34ch; color: var(--ink-2); margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 58px; padding: .8rem 1.6rem; border-radius: 18px; background: var(--btn); color: var(--btn-ink); font-family: var(--head); font-weight: 800; font-size: 1.15rem; text-decoration: none; box-shadow: 0 6px 18px rgba(39, 100, 160, .18); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; line-height: 1.1; }
.btn span { line-height: 1.15; }
.fine { margin-top: 1rem; font-size: .95rem; }

.promise { margin-top: 1.4rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.promise div { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; font-weight: 700; display: flex; gap: .7rem; align-items: center; }
.promise svg { width: 26px; height: 26px; color: var(--sage); flex: none; }

section { padding: 3.2rem 0; }
.band { background: var(--card); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

/* steps as a path */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding-bottom: 2rem; }
.step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--clay); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.5rem; display: grid; place-items: center; position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { .step .num { color: #0F1620; } }
.step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 3px dashed var(--line); }
.step:last-child::before { display: none; }
.step:last-child { padding-bottom: 0; }
.step h3 { margin-top: .7rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; align-content: start; }
  .step::before { left: 56px; right: -1.5rem; top: 27px; bottom: auto; border-left: 0; border-top: 3px dashed var(--line); }
}

.features { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.feature { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 1.4rem; }
.feature .icon { width: 54px; height: 54px; border-radius: 16px; background: var(--sage-soft); color: var(--sage); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .icon svg { width: 30px; height: 30px; }
.feature p { margin: 0; color: var(--ink-2); }
.verdicts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 1rem; padding: .3rem .75rem; border-radius: 999px; white-space: nowrap; }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip.yes { background: #DCF2E4; color: #0F5132; }
.chip.caution { background: #FFE9C9; color: #6B3E00; }
.chip.no { background: #FBDADA; color: #7A1C1C; }
@media (prefers-color-scheme: dark) {
  .chip.yes { background: #16452C; color: #BFEBD0; }
  .chip.caution { background: #4F3410; color: #FFD9A0; }
  .chip.no { background: #5A1F1F; color: #F6BFBF; }
}

/* app screenshots in plain phone frames */
.screens { margin-top: 1.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .screens { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.phone { margin: 0; display: grid; justify-items: center; gap: .9rem; }
.phone .frame { width: min(100%, 17rem); background: #1B2430; border: 2px solid var(--line); border-radius: 2.6rem; padding: .6rem; box-shadow: 0 10px 30px rgba(27, 36, 48, .18); }
@media (prefers-color-scheme: dark) { .phone .frame { background: #0A0F16; } }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 460 / 1000; border-radius: 2rem; }
.phone figcaption { text-align: center; color: var(--ink-2); font-size: 1rem; max-width: 26ch; }

/* example check card */
.hero-card { margin-top: 2.2rem; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 1.3rem 1.4rem; max-width: 30rem; }
.hero-card .cap { margin: 0 0 .3rem; font-size: .95rem; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 2px solid var(--line); }
.hero-card .row:first-of-type { border-top: 0; }

.faq dl { margin: 0; }
.faq dt { font-family: var(--head); font-weight: 800; font-size: 1.2rem; margin-top: 1.4rem; }
.faq dd { margin: .3rem 0 0; color: var(--ink-2); padding-bottom: 1.4rem; border-bottom: 2px solid var(--line); }
.faq dd:last-child { border-bottom: 0; }
.faq dd p:last-child { margin-bottom: 0; }

.safety { margin-top: 2rem; background: var(--sage-soft); border-radius: 22px; padding: 1.4rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.safety svg { width: 28px; height: 28px; color: var(--sage); margin-top: .15rem; }
.safety p { margin: 0; }
.safety ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.safety li { margin: .25rem 0; }

/* inner pages: support, privacy, terms, 404 */
.page-head { padding: 3rem 0 1rem; }
.page-head h1 { max-width: 22ch; }
.page-head .lead { font-size: 1.3rem; max-width: 40ch; color: var(--ink-2); margin-bottom: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin: .35rem 0; }
.prose .meta { font-size: .95rem; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 1.4rem; }
.card p:last-child { margin-bottom: 0; }
.contact-address { font-family: var(--head); font-weight: 800; font-size: 1.35rem; overflow-wrap: anywhere; }

/* an open question for the site owner, visible on draft pages only */
mark.todo { background: #FFE9C9; color: #6B3E00; padding: .1em .35em; border-radius: 6px; font-weight: 700; }
@media (prefers-color-scheme: dark) { mark.todo { background: #4F3410; color: #FFD9A0; } }

.notfound { padding: 4rem 0 5rem; }
.notfound ul { padding-left: 1.3rem; }

footer.site { background: #1B2430; color: #F2F6FB; padding: 2.5rem 0 3rem; font-size: 1rem; }
@media (prefers-color-scheme: dark) { footer.site { background: #0A0F16; } }
footer .cols { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
footer a { color: inherit; }
footer p { overflow-wrap: anywhere; }
footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: .2rem; flex-wrap: wrap; }
footer nav a { color: inherit; }
footer nav a:hover { background: rgba(255, 255, 255, .1); }
footer :focus-visible { outline-color: #F2F6FB; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* the "coming soon" home page shown before launch (the full home page is kept in full-site/) */
.soon { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.soon img { width: 120px; height: 120px; border-radius: 27px; display: block; margin: 0 auto 1.4rem; box-shadow: 0 10px 30px rgba(27, 36, 48, .18); }
.soon h1 { margin-bottom: .6rem; }
.soon .lead { font-size: 1.3rem; max-width: 30ch; margin: 0 auto 1.6rem; color: var(--ink-2); }
.soon .muted { margin: 0; overflow-wrap: anywhere; }
