/* PawScan website — colours match the app's light palette (ui/theme/Color.kt) */
:root {
  --ground: #fff5ea;
  --surface: #ffffff;
  --sunken: #fceedf;
  --ink: #2a1b10;
  --ink-soft: #4a3727;
  --ink-muted: #6e5a48;
  --border: #f0dfcc;
  --brand: #aa4706;
  --brand-hover: #8f3b04;
  --brand-tint: #ffe7cf;
  --on-brand: #ffffff;
  --forest: #2f7d12;
  --forest-tint: #edf7e4;
  --caution: #7f5200;
  --caution-tint: #fff1dc;
  --avoid: #a4262c;
  --avoid-tint: #fdedea;
  --shadow: 0 18px 50px -18px rgba(138, 74, 18, 0.35);
  --radius: 22px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #16100b;
    --surface: #211811;
    --sunken: #2b2018;
    --ink: #fbf1e6;
    --ink-soft: #e3d5c6;
    --ink-muted: #b8a794;
    --border: #35281d;
    --brand: #ff9a3d;
    --brand-hover: #ffb26b;
    --brand-tint: #3a2312;
    --on-brand: #2a1406;
    --forest: #93db6c;
    --forest-tint: #1c2814;
    --caution: #f2be57;
    --caution-tint: #2b2312;
    --avoid: #ff9a9a;
    --avoid-tint: #2e1718;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand)); color: var(--on-brand); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-muted); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -220px; top: -260px; width: 760px; height: 760px; border-radius: 50%; background: var(--brand-tint); opacity: .8; z-index: -1; }
.hero::after { content: ""; position: absolute; left: -160px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: var(--forest-tint); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--forest-tint); display: grid; place-items: center; color: var(--forest); font-size: 13px; }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 20px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-muted); max-width: 34ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--forest); }

.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 270px; border-radius: 38px; padding: 9px; background: #1d140d; box-shadow: var(--shadow), 0 2px 0 rgba(255,255,255,.08) inset; }
.phone img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 540 / 1120; object-fit: cover; object-position: top; background: var(--sunken); }
.phone.back { left: 8%; top: 40px; transform: rotate(-6deg); opacity: .96; }
.phone.front { right: 4%; top: 0; transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-12px); } }
.badge-float { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.badge-float small { display: block; font-weight: 500; color: var(--ink-muted); font-size: 12px; }
.badge-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.badge-float.b1 { left: 0; bottom: 70px; }
.badge-float.b1 .ic { background: var(--avoid-tint); color: var(--avoid); }
.badge-float.b2 { right: 0; bottom: 20px; }
.badge-float.b2 .ic { background: var(--forest-tint); color: var(--forest); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .phone { width: 230px; }
}
@media (max-width: 480px) {
  .phones { height: 440px; }
  .phone { width: 190px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .badge-float { font-size: 13px; padding: 8px 10px; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.kicker { color: var(--brand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--ink-muted); margin: 0; font-size: 18px; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.alt .step { background: var(--ground); }
.step::after { counter-increment: step; content: counter(step); position: absolute; top: 20px; right: 24px; font-size: 44px; font-weight: 800; color: var(--brand-tint); line-height: 1; }
.step h3 { margin: 18px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-muted); font-size: 16px; }
.icon-tile { width: 52px; height: 52px; border-radius: 15px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.icon-tile svg { width: 26px; height: 26px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 40px; background: var(--brand-tint); z-index: 0; transform: rotate(-3deg); }
.feature-media .phone { position: relative; transform: none; width: 280px; z-index: 1; animation: none; }
.feature h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.025em; margin: 10px 0 14px; }
.feature p { color: var(--ink-muted); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--forest); margin-top: 2px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 32px; } .feature.flip .feature-media { order: 0; } .feature-media .phone { width: 240px; } }

/* Verdicts */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.verdict { border-radius: var(--radius); padding: 26px; }
.verdict .v-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.verdict .v-label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.verdict p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }
.v-great { background: var(--forest-tint); } .v-great .v-label { color: var(--forest); }
.v-caution { background: var(--caution-tint); } .v-caution .v-label { color: var(--caution); }
.v-avoid { background: var(--avoid-tint); } .v-avoid .v-label { color: var(--avoid); }
.disclaimer { text-align: center; color: var(--ink-muted); font-size: 15px; margin: 26px auto 0; max-width: 60ch; }
@media (max-width: 820px) { .verdicts { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.p-card h3 { margin: 14px 0 6px; font-size: 18px; }
.p-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.p-card .icon-tile { background: var(--forest-tint); color: var(--forest); width: 46px; height: 46px; border-radius: 13px; }
@media (max-width: 960px) { .privacy-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.alt .faq details { background: var(--ground); }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: 0 10px 30px -20px rgba(138, 74, 18, .5); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--ink-muted); border-bottom: 2.5px solid var(--ink-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-muted); }
.faq .answer p { margin: 0; }

/* CTA */
.cta { padding: 40px 0 96px; }
.cta-card { position: relative; overflow: hidden; border-radius: 32px; padding: 56px 48px; background: linear-gradient(135deg, #c0580f, #7e3205); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; }
.cta-card::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-card h2 { color: #fff; margin-top: 0; }
.cta-card p { color: #ffe3c7; margin: 0 0 26px; font-size: 18px; max-width: 46ch; }
.cta-card .btn-light { background: #fff; color: #7e3205; }
.cta-card .btn-light:hover { color: #7e3205; transform: translateY(-1px); }
.cta-card .btn-outline { color: #fff; border: 1.5px solid rgba(255,255,255,.55); background: transparent; }
.cta-card .btn-outline:hover { color: #fff; border-color: #fff; }
.cta-card .bowl { width: 220px; justify-self: center; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); animation: bob 5s ease-in-out infinite; position: relative; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 820px) { .cta-card { grid-template-columns: 1fr; padding: 40px 24px; text-align: left; } .cta-card .bowl { width: 150px; justify-self: start; order: -1; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: 15px; color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--ink); margin: 0 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Document pages (privacy, 404) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 8px; }
.doc .meta { color: var(--ink-muted); margin: 0 0 28px; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--forest); border-radius: 16px; padding: 18px 22px; margin: 0 0 36px; color: var(--ink-soft); }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin-bottom: 8px; }
.doc .toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.doc .toc a { text-decoration: none; }
@media (max-width: 560px) { .doc .toc ol { columns: 1; } }
.back-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; font-size: 15px; }
