/* Breevo's web pages (breevo.si), in the app's default look: Mustard Gold. Colors are the app's own
   (Theme.swift, palette "gold"): gold fills with dark text, a deep gold result card, warm cream cards. */
:root {
  --page: #FFFFFF;
  --card: #F8F5EC;
  --sunken: #EFEADC;
  --tint: #FBF3DD;
  --ink: #1C170B;
  --ink-2: #4A4132;
  --muted: #7A6F5C;
  --accent: #8A5A00;          /* links and small gold text */
  --brand: #E3A626;           /* buttons */
  --on-brand: #1F1503;
  --hero-1: #5C3F05; --hero-2: #8F6206; --hero-3: #C48F12;
  --on-hero: #FFFFFF;
  --line: #E7DFCB;
  --ok: #15803D;
  --shadow: 0 1px 2px rgba(60, 40, 0, .06), 0 8px 24px rgba(60, 40, 0, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000; --card: #1A1810; --sunken: #2A261A; --tint: #2A2310;
    --ink: #FBF8F0; --ink-2: #D9D2C2; --muted: #A69C88;
    --accent: #F5C04A; --brand: #E3A626; --on-brand: #1F1503;
    --line: #332D1E; --ok: #4ADE80;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
img { max-width: 100%; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .in {
  max-width: 920px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
nav a:hover { background: var(--card); }
nav a[aria-current="page"] { background: var(--tint); color: var(--accent); }

main { max-width: 920px; margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left)); }

/* The gold hero card, like the app's result card, with Breevo beside it */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; color: var(--on-hero);
  background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  padding: 36px 36px 36px 40px; min-height: 260px;
}
.hero::after {   /* a soft light in the corner */
  content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 140, .35), rgba(255, 220, 140, 0) 70%); pointer-events: none;
}
.hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin: 0 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.hero p { margin: 0; font-size: 18px; opacity: .92; max-width: 34ch; }
.hero .mascot { width: clamp(150px, 26vw, 230px); height: auto; position: relative; z-index: 1; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }
.hero.small { min-height: 200px; padding-top: 28px; padding-bottom: 28px; }
.hero.small .mascot { width: clamp(120px, 20vw, 170px); }
.hero .meta { margin-top: 14px; font-size: 14px; opacity: .8; }
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; padding: 28px 24px 0; text-align: left; }
  .hero .mascot { justify-self: center; width: 170px; margin-top: 8px; }
  .hero.small .mascot { width: 130px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px;
  background: var(--brand); color: var(--on-brand); padding: 12px 20px; border-radius: 999px;
}
.btn.light { background: rgba(255,255,255,.18); color: #fff; }
.hero .actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards and sections */
.card { background: var(--card); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.callout { background: var(--tint); border-radius: 20px; padding: 18px 22px; margin: 24px 0; }
.callout strong { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.grid .card h3 { margin: 0 0 6px; font-size: 18px; }
.grid .card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.eyebrow-dark { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 36px 0 12px; }

/* Long pages (privacy, terms, accuracy) */
.doc { max-width: 720px; margin: 0 auto; }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin: 4px 0; }

/* Questions and answers */
details { background: var(--card); border-radius: 16px; padding: 0 20px; margin: 10px 0; }
summary { cursor: pointer; list-style: none; font-weight: 650; padding: 16px 28px 16px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--accent); font-weight: 500; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--ink-2); }

/* Tables (accuracy page) */
.wrap { overflow-x: auto; border-radius: 16px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
td.ok { color: var(--ok); font-weight: 650; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 24px; }
footer.site .in {
  max-width: 920px; margin: 0 auto; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; padding: 22px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left));
}
footer.site a { color: var(--muted); }
footer.site .links { display: flex; gap: 16px; flex-wrap: wrap; }

/* A warm light behind Breevo on the gold card */
.hero .stage { position: relative; display: grid; place-items: center; }
.hero .stage::before {
  content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, .55) 0%, rgba(255, 214, 120, .18) 40%, rgba(255, 214, 120, 0) 68%);
}
.hero .spark { position: absolute; color: #FFE7A3; opacity: .9; font-size: 18px; }

/* Icons in tinted squares, like the app's cards */
.icon { width: 44px; height: 44px; border-radius: 13px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.icon svg { width: 24px; height: 24px; }

/* The app's own screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 0; }
.screens figure { margin: 0; text-align: center; }
.phone {
  border-radius: 38px; overflow: hidden; border: 7px solid #15110A; background: #15110A;
  box-shadow: 0 2px 4px rgba(40, 25, 0, .10), 0 24px 48px rgba(90, 60, 0, .16);
  aspect-ratio: 600 / 1303; max-width: 260px; margin: 0 auto;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screens figcaption { margin-top: 14px; font-weight: 650; }
.screens figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto;
             scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; }
  .screens figure { scroll-snap-align: center; }
}

/* The app's privacy promise */
.promise { display: flex; gap: 14px; align-items: flex-start; background: color-mix(in srgb, var(--ok) 10%, var(--page));
           border-radius: 20px; padding: 18px 22px; margin: 28px 0; }
.promise svg { flex: none; width: 26px; height: 26px; color: var(--ok); margin-top: 2px; }
.promise strong { color: var(--ok); display: block; font-size: 17px; }
.promise p { margin: 2px 0 0; color: var(--ink-2); }

/* Long pages: the gold card lines up with the text below it */
.hero.small { max-width: 760px; margin: 0 auto; }
.doc { max-width: 760px; }

/* Phones: the menu stays on one line */
@media (max-width: 480px) {
  .top .in { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  nav { flex-wrap: nowrap; gap: 2px; }
  nav a { font-size: 14px; padding: 6px 10px; }
  main { padding-top: 18px; }
}

/* Home page */
.hero.big { min-height: 440px; padding: 48px 48px 48px 52px; }
.hero.big h1 { font-size: clamp(34px, 6vw, 58px); max-width: 13ch; }
.hero.big p { font-size: 19px; max-width: 36ch; }
.hero.big .mascot { width: clamp(180px, 30vw, 300px); }
.soon {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 18px 10px 16px; line-height: 1.15; border: 1px solid rgba(255,255,255,.25);
}
.soon small { display: block; font-size: 11px; opacity: .8; letter-spacing: .02em; }
.soon b { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.soon svg { width: 22px; height: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills span { font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); }
.section-title { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 64px 0 8px; text-wrap: balance; }
.section-sub { color: var(--muted); margin: 0 0 28px; font-size: 18px; max-width: 52ch; }
.band { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--card);
        border-radius: 28px; padding: 32px 36px; margin-top: 56px; box-shadow: var(--shadow); }
.band img { width: 170px; height: auto; }
.band h2 { font-size: clamp(24px, 3.5vw, 32px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.15; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.band li { display: flex; gap: 10px; color: var(--ink-2); }
.band li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.band li b { color: var(--ink); }
.band.gold { background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3)); color: var(--on-hero); }
.band.gold p { opacity: .92; margin: 0 0 18px; }
.ending { text-align: center; margin: 64px auto 8px; max-width: 560px; }
.ending img { width: 150px; }
.ending h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.02em; margin: 8px 0 8px; }
.ending p { color: var(--muted); margin: 0 0 18px; }
@media (max-width: 640px) {
  .hero.big { padding: 32px 24px 0; min-height: 0; }
  .band { grid-template-columns: 1fr; padding: 26px 22px; text-align: left; }
  .band img { width: 130px; justify-self: center; }
}
