/* BarkGoals shared stylesheet: index, privacy, consumer-health and 404.
   terms/index.html keeps its own inline CSS (byte-pinned) until the next Terms version.
   The file name carries a content hash: run `python3 scripts/version_assets.py` after editing. */

:root { color-scheme: light; --ink:#102133; --muted:#5d6b7a; --accent:#1769aa; --glass:rgba(255,255,255,.78); --edge:rgba(47,141,216,.16); --sheen:inset 0 1px 0 rgba(255,255,255,.9); }
* { box-sizing: border-box; }
html { min-height:100%; background:radial-gradient(circle at 20% 0%,#dff4ff 0,#f7fbff 34%,#fff8ec 100%) no-repeat; }
body { margin:0; min-height:100vh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height:1.58; color:var(--ink); }
a { color:var(--accent); }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; border-radius:6px; }
.skip { position:absolute; left:16px; top:-64px; z-index:10; padding:10px 16px; border-radius:14px; background:var(--ink); color:#fff; font-weight:700; text-decoration:none; }
.skip:focus { top:12px; }

.wrap { max-width:1060px; margin:0 auto; padding:28px 20px 72px; }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:56px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:-.03em; font-size:1.25rem; color:inherit; text-decoration:none; }
.mark { width:42px; height:42px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(135deg,#53b7ff,#756dff); color:#fff; box-shadow:0 12px 32px rgba(47,141,216,.28), inset 0 1px 0 rgba(255,255,255,.45); }
nav { display:flex; gap:6px 18px; flex-wrap:wrap; font-size:.95rem; }
nav a { color:var(--muted); text-decoration:none; padding:4px 0; transition:color .15s ease; }
nav a:hover, nav a[aria-current="page"] { color:var(--ink); }
nav a:hover { text-decoration:underline; text-underline-offset:4px; }
nav a[aria-current="page"] { font-weight:650; }

.hero { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr); gap:32px; align-items:center; }
h1 { font-size:clamp(2.6rem,7vw,5.4rem); line-height:.96; margin:0 0 18px; letter-spacing:-.07em; }
h2 { font-size:clamp(1.7rem,4vw,2.45rem); line-height:1.06; letter-spacing:-.05em; margin:0 0 14px; }
.lead { color:var(--muted); font-size:clamp(1.08rem,2vw,1.32rem); max-width:620px; }
.pillrow { display:flex; flex-wrap:wrap; gap:10px; margin:26px 0; }
.pill { background:rgba(255,255,255,.7); border:1px solid var(--edge); border-radius:999px; padding:9px 13px; color:#31465c; font-weight:650; font-size:.94rem; box-shadow:var(--sheen); }
.cta-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin-top:8px; }
.soon { display:inline-flex; align-items:center; gap:10px; margin:0; border-radius:999px; padding:12px 20px 12px 16px; background:linear-gradient(180deg,#1d3752,#102133); color:#fff; font-weight:750; box-shadow:0 16px 42px rgba(16,33,51,.22), inset 0 1px 0 rgba(255,255,255,.22); }
.soon::before { content:""; width:10px; height:10px; border-radius:50%; background:#53b7ff; box-shadow:0 0 0 4px rgba(83,183,255,.3); }
.cta-link { font-weight:650; }
/* No backdrop-filter here: Chromium composited the AVIF/WebP <picture> inside it as blank white. */
.phone { background:rgba(255,255,255,.74); border:1px solid rgba(47,141,216,.18); border-radius:42px; padding:12px; box-shadow:0 24px 80px rgba(33,99,150,.16), var(--sheen); }
.app-preview { display:block; width:100%; height:auto; border-radius:32px; box-shadow:0 12px 38px rgba(16,33,51,.12); }

section { margin-top:72px; }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.card { background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.68)); border:1px solid rgba(47,141,216,.14); border-radius:26px; padding:22px; box-shadow:0 16px 50px rgba(33,99,150,.10), var(--sheen); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.legal-card { max-width:860px; margin:0 auto; background:rgba(255,255,255,.86); border:1px solid var(--edge); border-radius:28px; padding:32px; box-shadow:0 20px 60px rgba(33,99,150,.12), var(--sheen); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.legal-card h1 { font-size:clamp(2rem,5vw,3.2rem); line-height:1.05; margin:0 0 8px; letter-spacing:-.04em; }
.legal-card h2 { margin-top:34px; font-size:1.25rem; letter-spacing:0; }
.muted { color:var(--muted); }

.footer { margin-top:34px; padding-top:20px; border-top:1px solid rgba(16,33,51,.12); color:var(--muted); font-size:.94rem; }
.wrap-doc .site-header, .wrap-doc .footer { max-width:860px; margin-left:auto; margin-right:auto; }
.wrap-doc .site-header { margin-bottom:28px; }

@media (max-width:820px) {
  .hero, .cards { grid-template-columns:1fr; }
  .site-header { align-items:flex-start; flex-direction:column; }
  .legal-card { padding:24px 20px; border-radius:24px; }
}
@media (prefers-reduced-motion:no-preference) { html { scroll-behavior:smooth; } }
@media (prefers-reduced-motion:reduce) { *, ::before, ::after { transition-duration:.01ms !important; animation-duration:.01ms !important; scroll-behavior:auto !important; } }
