/* PurrMurr pages on apprillion.com: the game's cozy look (cream, wood, orange) under a slim Apprillion bar. */

:root {
  --cream: #FFF7EC;
  --cream-2: #FDEFDC;
  --paper: #FFFDF8;
  --peach: #FFE3C2;
  --wood: #8A5A34;
  --wood-dark: #5E3A1E;
  --ink: #4A2410;
  --ink-soft: #7A5638;
  --orange: #E8742C;
  --orange-dark: #C95A18;
  --pink: #F0628E;
  --green: #5DB46C;
  --line: #EED9BD;
  --bar: #2A1A10;
  --shadow: 0 10px 30px rgba(122, 74, 32, 0.16);
  --radius: 28px;
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* --- the Apprillion bar ------------------------------------------------------------------ */
.topbar { background: var(--bar); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 0.5px; }
.brand svg { width: 26px; height: 26px; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  color: #F3DCC0; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 7px 12px; border-radius: 999px;
}
.topnav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topnav a[aria-current="page"] { background: var(--orange); color: #fff; }
@media (max-width: 420px) {
  .brand span { display: none; }
  .topnav a { padding: 7px 10px; font-size: 14px; }
}

/* --- hero ----------------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, #FFE7C7 0%, #FFD9AE 100%);
  overflow: hidden;
}
.hero::before {   /* paw prints */
  content: ""; position: absolute; inset: 0; opacity: 0.18; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23B9773F'%3E%3Cellipse cx='30' cy='38' rx='9' ry='8'/%3E%3Cellipse cx='18' cy='26' rx='4' ry='5'/%3E%3Cellipse cx='27' cy='19' rx='4' ry='5'/%3E%3Cellipse cx='37' cy='20' rx='4' ry='5'/%3E%3Cellipse cx='44' cy='28' rx='4' ry='5'/%3E%3Cellipse cx='88' cy='96' rx='9' ry='8'/%3E%3Cellipse cx='76' cy='84' rx='4' ry='5'/%3E%3Cellipse cx='85' cy='77' rx='4' ry='5'/%3E%3Cellipse cx='95' cy='78' rx='4' ry='5'/%3E%3Cellipse cx='102' cy='86' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .wrap {
  position: relative; display: grid; gap: 28px; align-items: center;
  padding-top: 36px; padding-bottom: 48px;
}
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; padding-top: 56px; padding-bottom: 64px; } }
.hero-logo { width: min(340px, 78vw); margin: 0 auto 8px; filter: drop-shadow(0 12px 18px rgba(122, 74, 32, 0.25)); }
@media (min-width: 900px) { .hero-logo { margin: 0 0 8px -10px; } }
.hero-copy { text-align: center; }
@media (min-width: 900px) { .hero-copy { text-align: left; } }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tagline { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 4.6vw, 32px); color: var(--ink); margin: 0 0 10px; }
.sub { color: var(--ink-soft); font-size: 18px; margin: 0 auto 22px; max-width: 520px; }
@media (min-width: 900px) { .sub { margin-left: 0; } }

.pill {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.6px;
  color: #fff; background: var(--pink); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
  box-shadow: 0 4px 0 #C94570;
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 900px) { .stores { justify-content: flex-start; } }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 190px;
  padding: 10px 18px; border-radius: 16px; text-decoration: none;
  background: var(--bar); color: #fff; box-shadow: 0 5px 0 #000;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.store[aria-disabled="true"] { opacity: 0.88; cursor: default; }

.phones { position: relative; height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
@media (max-width: 520px) { .phones { height: 440px; } }
.phone {
  position: absolute; width: 230px; border-radius: 34px; padding: 9px; background: #2B1C12;
  box-shadow: 0 24px 50px rgba(74, 36, 16, 0.35);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 1080 / 2340; object-fit: cover; }
.phone.front { left: 50%; top: 0; transform: translateX(-30%) rotate(4deg); z-index: 2; }
.phone.back { left: 50%; top: 40px; transform: translateX(-95%) rotate(-7deg); width: 205px; }
@media (max-width: 520px) {
  .phone { width: 190px; border-radius: 28px; }
  .phone.back { width: 170px; }
}

/* --- sections ------------------------------------------------------------------------------- */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 5vw, 40px); color: var(--ink); }
.section-head p { color: var(--ink-soft); margin: 8px auto 0; max-width: 560px; }
.kicker { display: block; font-family: var(--font-head); color: var(--orange); font-weight: 600; letter-spacing: 1px; font-size: 14px; text-transform: uppercase; margin-bottom: 6px; }

.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .art {
  height: auto; aspect-ratio: 2 / 1; min-height: 150px; border-radius: 20px; background: linear-gradient(180deg, #FFF0DA, #FFE2BC);
  display: grid; place-items: center; overflow: hidden;
}
.feature .art img { max-height: 132px; width: auto; filter: drop-shadow(0 8px 10px rgba(122, 74, 32, 0.2)); }
.feature .art.photo { position: relative; }
.feature .art.photo img { position: absolute; inset: 0; max-height: none; height: 100%; width: 100%; object-fit: cover; object-position: var(--focus, center); filter: none; }
.feature h3 { font-size: 22px; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.shots-band { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 16px 22px; margin: 0 -16px; -webkit-overflow-scrolling: touch;
}
@media (min-width: 720px) { .shots { margin: 0 -32px; padding: 6px 32px 22px; } }
.shot { flex: 0 0 auto; width: 210px; scroll-snap-align: center; text-align: center; }
.shot .phone { position: static; width: 100%; transform: none; padding: 7px; border-radius: 30px; }
.shot .phone img { border-radius: 24px; }
.shot figcaption { margin-top: 12px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }

.promises { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise .ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--peach); font-size: 24px;
}
.promise h3 { font-size: 18px; margin-bottom: 2px; }
.promise p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, #F28A3E, #E0662A); border-radius: 36px; padding: 40px 20px 0;
  box-shadow: 0 16px 40px rgba(201, 90, 24, 0.3);
}
.cta h2 { font-size: clamp(26px, 5vw, 38px); }
.cta p { margin: 8px auto 20px; max-width: 480px; opacity: 0.95; }
.cta .stores .store { background: #fff; color: var(--ink); box-shadow: 0 5px 0 #B8501A; }
.cta .stores { justify-content: center; }
.cta img.peek { width: 260px; margin: 22px auto 0; }

/* --- legal pages ------------------------------------------------------------------------------ */
.doc-hero { background: linear-gradient(180deg, #FFE7C7, #FFF1DE); border-bottom: 2px solid var(--line); }
.doc-hero .wrap { display: flex; align-items: center; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
.doc-hero img { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); flex: none; }
.doc-hero h1 { font-size: clamp(28px, 6vw, 42px); }
.doc-hero p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.back { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: none; }

.doc { display: grid; gap: 24px; padding: 32px 0 56px; }
@media (min-width: 960px) { .doc { grid-template-columns: 250px 1fr; align-items: start; } }
.doc > * { min-width: 0; }   /* lets the services table scroll inside its card on phones */
.toc { padding: 18px 20px; }
@media (min-width: 960px) { .toc { position: sticky; top: 76px; } }
.toc b { font-family: var(--font-head); font-size: 18px; display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--orange-dark); text-decoration: underline; }
details.toc summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 18px; list-style: none; }
details.toc summary::after { content: " ▾"; color: var(--orange); }
details.toc[open] summary { margin-bottom: 8px; }

.prose { padding: 26px 22px; }
@media (min-width: 720px) { .prose { padding: 34px 40px; } }
.prose h2 { font-size: 24px; margin: 30px 0 10px; padding-top: 6px; scroll-margin-top: 76px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #5A3820; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.summary {
  background: #FFF3DF; border: 2px dashed #F0C98E; border-radius: 22px; padding: 18px 20px; margin-bottom: 24px;
}
.summary b.title { font-family: var(--font-head); font-size: 19px; display: block; margin-bottom: 6px; }
.summary ul { margin: 0; }
table.tidy { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
table.tidy th, table.tidy td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tidy th { font-family: var(--font-head); font-weight: 600; color: var(--ink); background: #FFF3E2; }
.table-scroll { overflow-x: auto; }

/* --- footer -------------------------------------------------------------------------------- */
footer { background: var(--bar); color: #E9D3B8; padding: 30px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: #fff; text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer .brand { font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 5s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
