/* flaggyapp.com: shared by the landing page and the legal pages. */
@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1E2230;
  --soft: #4B5070;
  --muted: #7A7F98;
  --sky1: #9CCBFF;
  --sky2: #C3D9FF;
  --sky3: #E6D9FF;
  --red: #E8364A;
  --green: #22C55E;
  --teal: #14B8A6;
  --pink: #EC4899;
  --page: #F6F7FB;
  --card: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --link: #2F6FE0;
  --shadow: 0 14px 34px rgba(74, 58, 168, 0.14);
  --display: 'Bricolage', ui-rounded, -apple-system, 'Segoe UI', sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--link); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* ---------- Sky + glass ---------- */
.sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 18% at 85% 12%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(ellipse 45% 20% at 8% 45%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(ellipse 60% 22% at 90% 96%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(ellipse 55% 22% at 10% 100%, rgba(255,255,255,.9), transparent 70%),
    linear-gradient(180deg, var(--sky1), var(--sky2) 55%, var(--sky3));
}
.glass {
  background: var(--glass);
  border: 1.5px solid var(--glass-edge);
  border-radius: 22px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; opacity: .8; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 84px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 72px; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); padding: 6px 12px; border-radius: 999px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.hero h1 { font-size: clamp(42px, 7vw, 68px); font-weight: 800; margin: 18px 0 16px; }
.hero h1 .red { color: var(--red); }
.lede { font-size: 19px; color: var(--soft); max-width: 34em; margin: 0 0 26px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 16px; padding: 12px 18px; min-width: 190px; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.2; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.store svg { flex: none; }
.store[aria-disabled="true"] { opacity: .92; cursor: default; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--soft); }

/* Hero art: the verdict card from the app */
.art { position: relative; max-width: 420px; justify-self: center; width: 100%; padding: 46px 8px 8px; }
.art .float { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .art .float { animation: none; } html { scroll-behavior: auto; } }
.verdict { padding: 20px; position: relative; z-index: 1; }
.verdict h3 { font-size: 20px; margin-bottom: 14px; }
.meter { margin: 10px 0; }
.meter div { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.track { height: 12px; border-radius: 6px; background: rgba(30,34,48,.08); overflow: hidden; margin-top: 6px; }
.track span { display: block; height: 100%; border-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(232,54,74,.12); color: #9E1B2E; }
.chip.good { background: rgba(34,197,94,.15); color: #11663A; }
.pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.pill.top { top: 0; right: 0; transform: rotate(-5deg); }
.pill.bottom { bottom: -26px; left: -6px; transform: rotate(4deg); }
.mascot { position: absolute; z-index: 3; width: 110px; right: -18px; bottom: -40px; transform: rotate(8deg); filter: drop-shadow(0 12px 20px rgba(74,58,168,.25)); }
@media (max-width: 480px) { .mascot { width: 84px; right: -4px; } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; }
.section-head p { color: var(--soft); font-size: 18px; margin: 12px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: 24px; padding: 22px; }
.card .icon { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--soft); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 18px/1 var(--display); margin-bottom: 14px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--soft); }

.privacy { background: var(--ink); color: #fff; border-radius: 32px; padding: 48px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; padding: 36px 22px; } }
.privacy h2 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; }
.privacy p { color: #C9CDE0; }
.privacy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.06); border-radius: 16px; padding: 14px 16px; }
.privacy li span { font-size: 20px; line-height: 1.3; }
.privacy a { color: #9CCBFF; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 18px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--soft); }

.cta { text-align: center; padding: 72px 20px; border-radius: 32px; }
.cta h2 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--soft); margin: 0 0 26px; font-size: 18px; }
.cta .stores { justify-content: center; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--soft); }
footer .tm { margin-top: 18px; font-size: 12.5px; }

/* ---------- Legal pages ---------- */
.legal-head { padding-bottom: 40px; }
.legal-head h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; margin: 18px 0 6px; }
.legal-head .updated { color: var(--soft); margin: 0; font-size: 15px; }
.legal-head .other { display: flex; gap: 18px; margin-top: 16px; font-weight: 600; font-size: 15px; }
.legal-head .other a { color: var(--ink); }
.legal { max-width: 760px; padding-top: 36px; padding-bottom: 64px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: #2B2E3D; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

@media (prefers-color-scheme: dark) {
  .legal-page { --page: #12141B; --card: #1B1E28; --link: #8DB5FF; }
  .legal-page body, body.legal-page { background: var(--page); color: #ECEEF6; }
  .legal-page .legal p, .legal-page .legal li { color: #D6D9E6; }
  .legal-page footer a { color: #A9AEC6; }
  .legal-page .sky, .legal-page .sky a { color: #1E2230; }
  .legal-page .legal a { color: var(--link); }
}
