/* Pagi public site (sc-6695). Palette and fonts follow the app's design system
   (android core/ui/theme: primary #0052FF, Calistoga + Inter + JetBrains Mono).
   Fonts are self-hosted (OFL, see fonts/LICENSE.txt) — no request to Google
   before the visitor consents to anything. */

@font-face { font-family: 'Calistoga'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/calistoga-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Calistoga'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/calistoga-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #0052FF;
  --primary-100: #CCDAFF;
  --primary-800: #002166;
  --primary-900: #001033;
  --secondary-container: #D6E4FF;
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --fg: #0F172A;
  --muted: #F1F5F9;
  --muted-fg: #64748B;
  --border: #E2E8F0;
  --accent: #059669;
  --accent-container: #D1FAE5;
  --font-display: 'Calistoga', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
  --gradient: linear-gradient(135deg, #0052FF 0%, #0039B3 55%, #002166 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-800); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .home .site-header :focus-visible { outline-color: #fff; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-800); color: #fff; }
/* Official Google Play badge (assets/google-play-badge-pl.png, unmodified as
   Google's badge guidelines require). The PNG carries its own clear space. */
.play-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s ease; }
.play-badge img { display: block; width: auto; height: 64px; }
.play-badge:hover { transform: translateY(-1px); }
.play-badge:active { transform: translateY(0) scale(.98); }
.btn-choice { background: var(--card); color: var(--fg); border-color: var(--fg); min-width: 8.5rem; }
.btn-choice:hover { background: var(--muted); color: var(--fg); }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
body:not(.home) .site-header { position: static; background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--fg); text-decoration: none;
}
.logo:hover { color: var(--fg); }
/* The app icon (android ic_launcher), see assets/logo.svg. */
.logo-mark { display: block; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.home .site-header .logo, .home .site-header .logo:hover { color: #fff; }
.home .site-header .logo-mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 6px 16px rgba(0, 16, 51, .35); }
.header-nav { display: flex; align-items: center; gap: 1.25rem; }
.header-link { font-weight: 600; text-decoration: none; color: var(--fg); }
.header-link:hover { color: var(--primary); }
.header-cta { font-weight: 600; text-decoration: none; padding: .45rem 1rem; border-radius: 999px; border: 2px solid currentColor; }
.home .site-header .header-cta, .home .site-header .header-link { color: #fff; }
.home .site-header .header-link:hover { color: var(--primary-100); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(5, 150, 105, .35), transparent 45%),
    var(--gradient);
  padding: 120px 0 72px;
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--primary-100); }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.15rem; max-width: 34rem; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.hero-note { font-family: var(--font-mono); font-size: .8rem; color: var(--primary-100); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ''; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent);
}
.hero-badge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; border-radius: 16px;
  background: var(--card); color: var(--fg);
  box-shadow: 0 18px 40px rgba(0, 16, 51, .3);
  font-size: .85rem; line-height: 1.3;
}
.hero-badge strong { display: block; font-size: 1rem; color: var(--fg); }
.hero-badge span { color: var(--muted-fg); }
.hero-badge-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.hero-badge-icon svg { width: 20px; height: 20px; }
.hero-badge-scan { left: 0; top: 18%; }
.hero-badge-scan .hero-badge-icon { background: var(--accent-container); color: var(--accent); }
.hero-badge-report { right: 0; bottom: 14%; }
.hero-badge-report .hero-badge-icon { background: var(--secondary-container); color: var(--primary); }
@media (max-width: 400px) { .hero-badge { display: none; } }

/* Phone frames — the screenshots live in /assets/screens and are swapped as files. */
.phone {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  padding: 10px;
  background: #0F172A;
  box-shadow: 0 30px 60px rgba(0, 16, 51, .35), inset 0 0 0 2px #334155;
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  width: 70px; height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0F172A;
  z-index: 1;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 29px;
  background: var(--bg);
}
.hero .phone { transform: rotate(-3deg); z-index: 1; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted-fg); font-size: 1.1rem; }

.steps { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--primary);
  background: var(--secondary-container);
  border-radius: 999px;
  padding: .15rem .7rem;
  margin-bottom: 1rem;
}
.step p { color: var(--muted-fg); margin: 0; }

.screens { display: grid; gap: 40px; justify-items: center; list-style: none; margin: 0; padding: 0; }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.screens figcaption { font-weight: 600; text-align: center; max-width: 240px; }
.screens figcaption span { display: block; font-weight: 400; color: var(--muted-fg); font-size: .95rem; }

.features { display: grid; gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--muted); }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; color: var(--muted-fg); }
.feature-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: #fff; margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }

.cta-band {
  background: var(--gradient);
  color: #fff;
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band-logo { display: block; width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .4); }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 34rem; margin: 0 auto 1.5rem; }

/* Pro page */
.pro-hero { padding: 64px 0 24px; text-align: center; }
.pro-lead { color: var(--muted-fg); font-size: 1.15rem; max-width: 36rem; margin: 0 auto 1.75rem; }
.feature { position: relative; }
.feature-soon { background: var(--bg); border: 1px dashed var(--primary-100); }
.feature-soon .feature-icon { background: var(--secondary-container); color: var(--primary); }
.soon-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; background: var(--accent-container); color: var(--accent);
}
.compare { border-collapse: collapse; width: 100%; font-size: .98rem; }
.compare th, .compare td { border-bottom: 1px solid var(--border); padding: .75rem 1rem; text-align: left; vertical-align: top; }
.compare thead th { background: var(--muted); font-weight: 600; }
.compare thead th:last-child, .compare td:last-child { color: var(--primary); font-weight: 600; }
.compare tbody th { font-weight: 500; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare-soon th, .compare-soon td:first-of-type { color: var(--muted-fg); }
.compare-note { color: var(--muted-fg); font-size: .9rem; }

/* Generated pages: legal documents, 404 */
.page { padding: 48px 0 72px; min-height: 60vh; }
.doc-meta { font-family: var(--font-mono); font-size: .85rem; color: var(--muted-fg); margin-bottom: 2rem; }
.draft-banner {
  border: 2px solid #D97706;
  background: #FEF3C7;
  color: #78350F;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-weight: 500;
}
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; scroll-margin-top: 24px; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--muted); padding: .1em .35em; border-radius: 6px; }
.prose blockquote { margin: 0 0 1em; padding: .2em 1em; border-left: 4px solid var(--primary-100); color: var(--muted-fg); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; overflow-wrap: normal; }
.prose th { background: var(--muted); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
mark.placeholder { background: #FDE68A; color: #78350F; padding: 0 .25em; border-radius: 4px; font-weight: 600; }
.not-found { text-align: center; }
.not-found .container { padding-top: 40px; }

/* Footer */
.site-footer { background: var(--primary-900); color: #CBD5E1; padding: 48px 0 32px; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand p { margin: .6rem 0 0; color: #94A3B8; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-mark { background: #fff; color: var(--primary); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-nav a { color: #E2E8F0; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-family: var(--font-mono); font-size: .8rem; color: #94A3B8; margin: 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
  font-size: .95rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-title { font-weight: 700; margin-bottom: .4em; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.cookie-actions .btn { flex: 1 1 8rem; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .features-2 { grid-template-columns: repeat(2, 1fr); }
  .pro-hero { padding: 96px 0 32px; }
  .screens { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 2fr; align-items: start; }
  .footer-copy { grid-column: 1 / -1; }
  .cta-band { padding: 64px 48px; }
}
@media (min-width: 960px) {
  .hero { padding: 150px 0 110px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .phone { width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover, .btn:active, .play-badge:hover, .play-badge:active { transform: none; }
  .play-badge { transition: none; }
}
