/* Bellyday website. Warm Cobalt tokens from app/Bellyday/Design/Theme.swift.
   No web fonts, no scripts, no third-party requests. */

:root {
  --cobalt: #2448C9;
  --cobalt-deep: #1937A4;
  --on-cobalt: #FFFFFF;
  --apricot: #F2A65A;
  --paper: #FAF8F4;
  --card: #FFFEFB;
  --ink: #24252B;
  --ink-2: #5F5E68;
  --line: #E4DED5;
  --peach: #FDEBDB;
  --peach-line: #F4D3B4;
  --blue-tint: #EDF1FF;
  --info: #F1EEE9;
  --radius: 22px;
  --wrap: 1120px;
  --read: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cobalt: #8A9EFF;
    --cobalt-deep: #A9B8FF;
    --on-cobalt: #10142B;
    --paper: #141417;
    --card: #1F1F24;
    --ink: #F2F1EE;
    --ink-2: #B4B3BC;
    --line: #3A3A42;
    --peach: #3A2B1F;
    --peach-line: #5A4230;
    --blue-tint: #232A48;
    --info: #2A2A30;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.read { width: min(100% - 40px, var(--read)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cobalt); }
.brand svg { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.wordmark { font-weight: 800; font-size: 25px; letter-spacing: -0.03em; line-height: 1; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-tint); color: var(--cobalt); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background:
  radial-gradient(48% 52% at 30% 38%, color-mix(in srgb, var(--apricot) 26%, transparent), transparent 70%),
  radial-gradient(50% 55% at 72% 40%, color-mix(in srgb, var(--cobalt) 18%, transparent), transparent 72%);
  z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--cobalt); background: var(--blue-tint); padding: 7px 14px; border-radius: 999px; margin: 0 0 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; max-width: 14ch; margin-inline: auto; }
.hero h1 .accent { color: var(--cobalt); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); max-width: 36ch; margin: 22px auto 0; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-primary:hover { background: var(--cobalt-deep); color: var(--on-cobalt); }
.btn-quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--info); color: var(--ink); }
.btn-static { cursor: default; }
.btn-static:hover { background: var(--cobalt); }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 56px; }
.phone { width: 300px; flex: none; border-radius: 52px; padding: 11px; background: #1B1C20; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 40px 80px -30px rgba(18, 28, 70, .45), 0 18px 36px -18px rgba(18, 28, 70, .35); }
.phone img { border-radius: 42px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; background: var(--paper); }
.phone.side { width: 250px; margin-bottom: 36px; }
.hero .phones { align-items: flex-start; height: 500px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.hero .phone.side { margin: 48px 0 0; }
@media (max-width: 420px) { .hero .phones { height: 420px; } }
@media (max-width: 860px) { .phone.side { display: none; } }
@media (max-width: 420px) { .phone { width: 260px; border-radius: 46px; } .phone img { border-radius: 36px; } }

/* Sections */
section { padding: 96px 0; }
.hero + section { padding-top: 64px; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 19px; margin: 14px 0 0; }
.kicker { display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 12px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; font-weight: 750; margin-top: 16px; }
.card p { color: var(--ink-2); margin: 8px 0 0; font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-tint); color: var(--cobalt); }
.icon.warm { background: var(--peach); color: #B4621C; }
@media (prefers-color-scheme: dark) { .icon.warm { color: var(--apricot); } }
.icon svg { width: 24px; height: 24px; }

/* Showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase.flip .showcase-text { order: 2; }
.showcase-text h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.showcase-text p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }
.showcase-text ul { margin: 18px 0 0; padding: 0; list-style: none; }
.showcase-text li { position: relative; padding-left: 30px; margin: 10px 0; }
.showcase-text li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--apricot); box-shadow: inset 0 0 0 4px var(--peach); }
.showcase-art { display: flex; justify-content: center; }
.showcase-art .phone { width: 280px; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; gap: 36px; } .showcase.flip .showcase-text { order: 0; } }

/* Privacy band */
.band { --band-ink: #FFFFFF; background: linear-gradient(160deg, #2A52D6, #1937A4); color: var(--band-ink); border-radius: 36px; padding: 72px 56px; }
@media (prefers-color-scheme: dark) { .band { background: linear-gradient(160deg, #22307A, #182259); } }
.band .kicker { color: color-mix(in srgb, var(--band-ink) 75%, transparent); }
.band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 18ch; }
.band-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); }
.band-grid div { padding: 26px 28px 26px 0; border-bottom: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); }
.band-grid div:nth-child(odd) { padding-right: 36px; border-right: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); }
.band-grid div:nth-child(even) { padding-left: 36px; }
.band-grid h3 { font-size: 21px; font-weight: 750; }
.band-grid p { margin: 8px 0 0; color: color-mix(in srgb, var(--band-ink) 82%, transparent); font-size: 16px; }
.band a { color: var(--band-ink); font-weight: 700; }
.band-link { display: inline-block; margin-top: 30px; }
@media (max-width: 760px) { .band { padding: 48px 26px; border-radius: 28px; } .band-grid { grid-template-columns: 1fr; } .band-grid div, .band-grid div:nth-child(odd), .band-grid div:nth-child(even) { padding: 22px 0; border-right: 0; } }

/* Notice */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--peach); border: 1px solid var(--peach-line); border-radius: 18px; padding: 20px 22px; color: var(--ink); }
.notice svg { width: 24px; height: 24px; flex: none; margin-top: 1px; color: #B4621C; }
@media (prefers-color-scheme: dark) { .notice svg { color: var(--apricot); } }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }

/* Long-form pages */
.page-head { padding: 64px 0 28px; }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.page-head .meta { color: var(--ink-2); margin: 12px 0 0; font-size: 15px; }
.page-head .lede { margin: 16px 0 0; max-width: none; }
.prose { padding-bottom: 96px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 52px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; font-weight: 750; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
.snapshot { background: var(--blue-tint); border-radius: var(--radius); padding: 26px 28px; margin: 8px 0 12px; }
.snapshot h2 { margin: 0 0 10px; font-size: 21px; }
.snapshot ul { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 24px 0 0; background: var(--card); }
.toc strong { display: block; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 2px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--cobalt); font-size: 22px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 2px 22px; color: var(--ink-2); }
.faq .answer p { margin: 0 0 10px; }
.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 8px 0 48px; }
.contact-card h2 { margin: 0; font-size: 22px; }
.contact-card p { margin: 6px 0 0; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-2); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; align-content: flex-start; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--cobalt); text-decoration: underline; }
.site-footer p { margin: 8px 0 0; }
.fine { font-size: 13px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* 404 */
.lost { text-align: center; padding: 120px 0; }
.lost h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.lost p { color: var(--ink-2); }
