/* Chicken Cop public site: landing page, parents' guide, support, privacy, terms.
   Fonts are self-hosted (no Google Fonts call) so the site sends nothing to third parties. */

@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1c2133;
  --ink-2: #4a5470;
  --ink-3: #7a84a0;
  --blue: #2d4fb8;
  --blue-dark: #1d367f;
  --sun: #ffc21a;
  --sun-dark: #d99a00;
  --siren-red: #ff3b3b;
  --siren-blue: #3b82ff;
  --grass: #8bcb4c;
  --sky-top: #8fd3ff;
  --sky-bottom: #e4f6ff;
  --night: #1d2b55;
  --night-deep: #0b1022;
  --card: #ffffff;
  --line: #dde5f5;
  --shadow: #8fa3d8;
  --title: "Lilita One", "Fredoka", system-ui, sans-serif;
  --body: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.6 var(--body);
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-bottom) 520px, #f4f9ff 100%);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
::selection { background: rgba(255, 194, 26, .45); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 26px/1 var(--title); letter-spacing: .5px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 3px 0 var(--shadow); }
.brand b { color: var(--sun-dark); font-weight: 400; }
nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; font-size: 16px; }
nav a:hover { background: #eef3ff; color: var(--blue); }
nav a[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-dark); }
@media (max-width: 640px) {
  .top-inner { height: auto; padding: 10px 14px; flex-wrap: wrap; }
  nav { margin-left: 0; width: 100%; }
  nav a { font-size: 15px; padding: 5px 10px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 18px; font: 22px/1 var(--title); letter-spacing: .4px; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(4px); }
.btn-sun { background: var(--sun); color: #3a2600; box-shadow: 0 6px 0 var(--sun-dark); }
.btn-sun:active { box-shadow: 0 2px 0 var(--sun-dark); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 6px 0 var(--shadow); }
.btn-white:active { box-shadow: 0 2px 0 var(--shadow); }
.btn svg { width: 24px; height: 24px; }
.btn.soon { opacity: .9; cursor: default; }
.btn small { display: block; font: 13px/1.1 var(--body); opacity: .75; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero { max-width: 1080px; margin: 0 auto; padding: 56px 20px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font: clamp(56px, 9vw, 104px)/.92 var(--title); margin: 0 0 18px; color: #fff; text-shadow: 0 6px 0 var(--blue-dark), 0 10px 26px rgba(29, 54, 127, .35); letter-spacing: 1px; }
.hero h1 span { color: var(--sun); display: block; }
.hero p.lead { font-size: 22px; color: var(--ink); margin: 0 0 26px; max-width: 30ch; }
.hero .stores { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .fine { color: var(--ink-2); font-size: 15px; margin-top: 18px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 34px; overflow: hidden; border: 8px solid var(--ink); background: var(--ink); box-shadow: 0 24px 50px rgba(29, 54, 127, .35); }
.phone img { width: 100%; height: auto; }
.phone.a { left: 4%; top: 30px; transform: rotate(-7deg); animation: bob 5s ease-in-out infinite; }
.phone.b { right: 4%; top: 0; transform: rotate(6deg); animation: bob 5s ease-in-out -2.5s infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.siren { position: absolute; left: 50%; top: -18px; width: 70px; height: 70px; margin-left: -35px; border-radius: 50%; filter: blur(18px); animation: siren 1.1s steps(1) infinite; z-index: -1; }
@keyframes siren { 0% { background: var(--siren-red); } 50% { background: var(--siren-blue); } }
@media (prefers-reduced-motion: reduce) { .phone.a, .phone.b, .siren, .hop { animation: none !important; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 34px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .phones { height: 470px; max-width: 460px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; }
}

/* ---------- road divider ---------- */
.road { height: 64px; background: #5c6272; position: relative; border-top: 8px solid #f4f6f9; border-bottom: 8px solid #f4f6f9; overflow: hidden; }
.road::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: repeating-linear-gradient(90deg, #fff 0 40px, transparent 40px 80px); }
.hop { position: absolute; top: 6px; width: 46px; height: 46px; left: -60px; z-index: 1; animation: cross 9s linear infinite; }
.hop.cop { animation-delay: 1.1s; }
@keyframes cross { 0% { left: -60px; } 100% { left: calc(100% + 60px); } }
.hop img { width: 46px; height: 46px; border-radius: 12px; animation: hopy .35s ease-in-out infinite alternate; }
@keyframes hopy { to { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.band { padding: 64px 20px; }
.band.white { background: #fff; }
.band.night { background: radial-gradient(1200px 400px at 50% 0, #2a3d75, var(--night) 60%, var(--night-deep)); color: #eef1ff; }
.band.night h2 { color: #fff; }
.band.night p { color: #c9d3ff; }
.wrap { max-width: 1080px; margin: 0 auto; }
h2.big { font: clamp(34px, 5vw, 50px)/1.05 var(--title); text-align: center; margin: 0 0 12px; color: var(--blue-dark); }
p.sub { text-align: center; color: var(--ink-2); margin: 0 auto 40px; max-width: 46ch; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 6px 0 var(--line); border: 2px solid var(--line); }
.feature .emoji { font-size: 40px; line-height: 1; }
.feature h3 { font: 26px/1.1 var(--title); margin: 12px 0 8px; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-2); font-size: 17px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 230px; scroll-snap-align: center; }
.shots img { border-radius: 26px; border: 6px solid #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.shots figcaption { text-align: center; margin-top: 12px; font: 20px/1.2 var(--title); color: #fff; }
.parents-box { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: #fffbe9; border: 3px solid var(--sun); border-radius: 28px; padding: 30px; box-shadow: 0 6px 0 var(--sun-dark); }
.parents-box .emoji { font-size: 64px; }
.parents-box h3 { font: 30px/1.1 var(--title); margin: 0 0 8px; }
.parents-box ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); }
@media (max-width: 640px) { .parents-box { grid-template-columns: 1fr; text-align: center; } .parents-box ul { text-align: left; } }

/* ---------- document pages (privacy, terms, support, parents) ---------- */
main.doc { max-width: 780px; margin: 0 auto; padding: 36px 20px 60px; }
main.doc h1 { font: clamp(40px, 7vw, 58px)/1 var(--title); margin: 0 0 6px; color: #fff; text-shadow: 0 5px 0 var(--blue-dark); }
main.doc .updated { color: var(--ink-2); margin: 0 0 24px; font-size: 16px; }
main.doc h2 { font: 28px/1.15 var(--title); color: var(--blue-dark); margin: 40px 0 10px; scroll-margin-top: 90px; }
main.doc h3 { font-size: 19px; margin: 22px 0 6px; }
main.doc p, main.doc li { color: var(--ink); }
main.doc li { margin: 4px 0; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 20px 24px; margin: 18px 0; box-shadow: 0 5px 0 var(--line); }
.card h2 { margin-top: 0 !important; }
.card.sun { background: #fffbe9; border-color: var(--sun); box-shadow: 0 5px 0 var(--sun-dark); }
.card.blue { background: #eef3ff; border-color: #c8d6ff; box-shadow: 0 5px 0 #c8d6ff; }
.toc ol { columns: 2; column-gap: 30px; margin: 0; padding-left: 22px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.path { display: inline-block; background: #eef3ff; color: var(--blue-dark); padding: 0 8px; border-radius: 8px; font-size: .92em; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef3ff; color: var(--blue-dark); }
details { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 20px; margin: 12px 0; box-shadow: 0 4px 0 var(--line); }
details[open] { border-color: #c8d6ff; }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -4px; font: 28px/1 var(--title); color: var(--blue); }
details[open] summary::after { content: "–"; }
details p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 80px 20px 120px; }
.lost h1 { font: 96px/1 var(--title); color: #fff; text-shadow: 0 6px 0 var(--blue-dark); margin: 0; }
.lost p { font-size: 22px; }

/* ---------- footer ---------- */
footer { background: var(--night-deep); color: #9aa6d6; text-align: center; padding: 34px 20px 40px; font-size: 15px; }
footer a { color: #dfe6ff; }
footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
