/* Popbye website. System fonts only, no third-party resources, no inline styles (strict CSP in Caddyfile).
   Class names avoid words that ad-blocking lists hide (ad, banner, popup, cookie, social, sponsor…),
   so the site looks right with Popbye turned on. */

:root {
  --coral: #ff6b3d;
  --coral-soft: #ff9466;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.14);
  --fill: #e5e5ea;
  --green: #34c759;
  --brand: linear-gradient(135deg, var(--coral), var(--coral-soft));
  --band: linear-gradient(135deg, #34426e, #1e2747 55%, #141a30); /* the app icon's ink blue */
  --radius: 22px;
  --shadow: 0 18px 50px rgba(255, 107, 61, 0.16);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --coral: #ff8a5c;
    --coral-soft: #ffa77f;
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989f;
    --line: rgba(84, 84, 88, 0.6);
    --fill: #2c2c2e;
    --green: #30d158;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 48px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background: var(--brand);
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }
.hero-copy { text-align: left; }
h1 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.accent-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.3vw, 21px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  box-shadow: var(--shadow);
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button[aria-disabled="true"] { cursor: default; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Illustrations (inline SVG, colored from here) */
.art { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.14)); }
.art .body { fill: #1c1c1e; }
.art .screen { fill: var(--surface); }
.art .island { fill: #000; }
.art .bar { fill: var(--fill); }
.art .ink { fill: var(--text); opacity: 0.85; }
.art .text { fill: var(--muted); opacity: 0.45; }
.art .photo { fill: var(--coral); opacity: 0.22; }
.art .photo-sun { fill: var(--coral); opacity: 0.55; }
.art .shield { fill: var(--coral); }
.art .check { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art .ring { fill: var(--surface); }
@media (prefers-color-scheme: dark) { .art .body { fill: #3a3a3c; } }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 60px; }
h2 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
  text-align: center;
}
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
}

.callout {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--muted);
  font-size: 16px;
}
.callout svg { flex: none; color: var(--coral); margin-top: 2px; }
.callout strong { color: var(--text); }

/* Privacy */
.privacy-band {
  background: var(--band);
  color: #fff;
  border-radius: 28px;
  padding: 44px 28px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
}
.privacy-band h2 { color: #fff; text-align: left; }
.privacy-band p { margin: 0 0 10px; opacity: 0.94; }
.privacy-band a { color: #fff; text-decoration: underline; }
.shield-art { width: 100%; max-width: 160px; height: auto; display: block; margin: 0 auto; }
.shield-art .shield { fill: #fff; }
.shield-art .check { fill: none; stroke: #e0502a; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px 18px 68px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps small { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.path { font-weight: 600; }
.center { text-align: center; }

/* Documents */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 6vw, 48px); margin-top: 0; }
.doc h2 { text-align: left; font-size: 24px; margin-top: 36px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--surface); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.placeholder {
  border: 1px dashed color-mix(in srgb, var(--coral) 55%, transparent);
  background: color-mix(in srgb, var(--coral) 7%, transparent);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--muted);
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p, .faq details ol, .faq details ul { color: var(--muted); margin: 10px 0 0; }
.faq details li { margin-bottom: 4px; }
.more { text-align: center; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .art { max-width: 240px; }
  .privacy-band { grid-template-columns: 1fr; text-align: center; }
  .privacy-band h2 { text-align: center; }
  .shield-art { max-width: 110px; }
}

@media (max-width: 600px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-small { display: none; }
  .hero { padding-top: 40px; }
  section { padding: 40px 0; }
}
