/* Capey website. Mobile first. */
:root {
  --ink: #4A2E1C;
  --ink-soft: #6E4E3A;
  --paper: #FFF8F0;
  --card: #FFFFFF;
  --line: #F0DFCF;
  --pink: #F0607E;
  --pink-ink: #B8324F;   /* pink for text on light backgrounds (AA contrast) */
  --mint: #BFF0C8;
  --sun: #FFE7C2;
  --border: 3px solid var(--ink);
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 5px 0 var(--ink);
  --wrap: 1080px;
}

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

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--pink-ink); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section--tint { background: var(--sun); border-top: var(--border); border-bottom: var(--border); }
.section--mint { background: var(--mint); border-top: var(--border); border-bottom: var(--border); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.small { font-size: .92rem; color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { top: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 900; color: var(--ink); text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 4px 8px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sun); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font: inherit; font-size: 1.2rem; font-weight: 900; line-height: 1.2; text-align: center;
  color: var(--ink); background: var(--card); text-decoration: none;
  border: var(--border); border-radius: 999px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { color: #fff; }
.btn--mint { background: var(--mint); }
.btn--sun { background: var(--sun); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 40px; text-align: center; overflow: hidden; }
.hero__pets { position: relative; max-width: 290px; margin: 0 auto 10px; }
.hero__pets img { margin: 0 auto; animation: bob 3.2s ease-in-out infinite; }
.hero__pets::after { content: ''; display: block; height: 18px; margin: -8px 14% 0; background: var(--line); border-radius: 50%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 { margin-bottom: .3em; }
.hero h1 .accent { color: var(--pink-ink); }
.hero .lead { max-width: 34em; margin: 0 auto 22px; }
.hero .btn-row { max-width: 360px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 6px; padding: 0; list-style: none; font-weight: 800; }
.badges li { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: .95rem; }
.phone-hint { margin-top: 14px; font-size: .95rem; }

/* ---------- Cards / grids ---------- */
.card { background: var(--card); border: var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: 1fr; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.5rem; background: var(--sun); border: var(--border); border-radius: 14px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature--privacy { background: var(--mint); }
.feature--privacy p { color: var(--ink); }

/* Demo GIF slots */
.demos { grid-template-columns: 1fr; }
.demo { margin: 0; }
.demo__slot {
  display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%;
  background: repeating-linear-gradient(45deg, var(--paper) 0 14px, var(--sun) 14px 28px);
  border: 3px dashed var(--ink); border-radius: var(--radius); font-weight: 900; font-size: 1.1rem;
}
.demo img, .demo video { width: 100%; border: var(--border); border-radius: var(--radius); }
.demo figcaption { text-align: center; font-weight: 800; margin-top: 8px; }

/* Showcase (selfie + ID card) */
.showcase { display: grid; gap: 18px; align-items: center; }
.showcase__media { display: flex; gap: 14px; align-items: flex-end; justify-content: center; }
.showcase__media img { border: var(--border); border-radius: var(--radius); background: var(--card); }
.showcase__media .selfie { width: 64%; }
.showcase__media .idcard { width: 30%; }

/* Costume gallery */
.gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.costume { position: relative; text-align: center; padding: 12px 8px 10px; }
.costume__pair { display: flex; justify-content: center; gap: 2px; }
.costume__pair img { width: 50%; max-width: 76px; }
.costume h3 { font-size: 1.05rem; margin: 6px 0 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 900; padding: 1px 10px; border-radius: 999px; border: 2px solid var(--ink); margin-top: 4px; }
.tag--free { background: var(--mint); }
.tag--pass { background: var(--sun); }

/* Pricing table */
.compare-wrap { background: var(--card); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 10px 8px; border-bottom: 2px solid var(--line); text-align: center; vertical-align: middle; }
.compare th[scope="row"] { text-align: left; font-weight: 700; }
.compare thead th { background: var(--sun); font-size: 1.05rem; font-weight: 900; border-bottom: var(--border); }
.compare thead th.pass { background: #FFC9D5; }
.compare thead .price { display: block; font-size: .85rem; font-weight: 800; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.pass { background: #FFF1F4; }
.compare col.c-feature { width: 52%; }
.yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); font-weight: 900; }
.no { color: #8A6F5F; font-weight: 900; }
.buy { text-align: center; margin-top: 28px; }
.buy .launch { display: inline-block; background: var(--sun); border: var(--border); border-radius: 16px; padding: 6px 14px; font-weight: 800; margin: 0 0 16px; }
.buy .btn { min-width: 260px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 900; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; background: var(--mint); }
.faq details > div { padding: 0 18px 16px; }
.faq details > div p:last-child { margin: 0; }

/* Email form */
.email-box { max-width: 560px; margin: 0 auto; text-align: center; }
.form { display: grid; gap: 12px; text-align: left; margin-top: 16px; }
.form label { font-weight: 800; }
.form input[type="email"], .form input[type="text"], .form textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--ink);
  background: var(--card); border: var(--border); border-radius: 16px;
}
.form input:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 2px; }
.honey { display: none !important; }
.notice { background: var(--mint); border: var(--border); border-radius: 16px; padding: 12px 16px; font-weight: 800; margin-top: 16px; }

/* Plain content pages */
.page { padding: 36px 0 56px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.page h2 { font-size: 1.45rem; margin-top: 1.6em; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin-bottom: .4em; }
.page .card { margin: 18px 0; }
.mascot { width: 110px; margin: 0 auto 12px; }
.keybox { font-family: Consolas, 'Courier New', monospace; background: var(--paper); border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; overflow-wrap: anywhere; }

/* Install steps + mock SmartScreen dialogs */
.steps { list-style: none; counter-reset: step; padding: 0 !important; display: grid; gap: 22px; }
.steps > li { counter-increment: step; position: relative; padding: 30px 18px 20px; }
.steps > li::before {
  content: counter(step); position: absolute; top: -16px; left: 16px;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--pink); color: #fff; font-weight: 900; font-size: 1.15rem; border: var(--border); border-radius: 50%;
}
.steps h2 { margin: 6px 0 .4em; font-size: 1.25rem; }
.mock {
  margin: 14px 0 4px; background: #1F5FA8; color: #fff; border-radius: 6px; padding: 16px 16px 12px;
  font-family: 'Segoe UI', system-ui, sans-serif; font-size: .88rem; line-height: 1.45; box-shadow: 0 4px 14px rgba(74, 46, 28, .25);
}
.mock__title { font-size: 1.35rem; font-weight: 300; margin: 0 0 8px; }
.mock p { margin: 0 0 8px; }
.mock__link { color: #fff; text-decoration: underline; font-weight: 600; display: inline-block; padding: 1px 4px; }
.mock__meta { margin: 6px 0 10px; }
.mock__bar { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 10px; margin-top: 6px; }
.mock__btn { border: 2px solid #fff; padding: 4px 14px; font-weight: 600; background: transparent; color: #fff; }
.hl { position: relative; outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 3px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { outline-color: var(--pink); } }
.callout { font-weight: 800; color: var(--pink-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 32px 0 40px; margin-top: 0; text-align: center; }
.site-footer a { color: var(--paper); font-weight: 700; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer p { margin: 0; color: #E9D7C6; font-size: .92rem; }
.site-footer :focus-visible { outline-color: var(--sun); }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .btn-row { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .hero .btn-row { max-width: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .demos { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .site-header { position: sticky; top: 0; z-index: 5; }
  .nav a { padding: 4px 12px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; text-align: left; }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; }
  .hero__pets { order: 2; max-width: 460px; }
  .hero .lead { margin-left: 0; }
  .hero .btn-row { justify-content: flex-start; margin: 0; }
  .badges { justify-content: flex-start; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .demos { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .showcase { grid-template-columns: 1fr 1fr; gap: 40px; }
  .compare { font-size: 1.02rem; }
  .compare th, .compare td { padding: 12px 18px; }
}
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(5, 1fr); } }
.card > h2:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.buy .small { margin-top: 14px; }
.compare-wrap { max-width: 860px; margin: 0 auto; }

/* the price, easy to find (home page top and the Hero Pass section) */
.hero-price { margin: 10px 0 4px; font-weight: 700; }
.hero-price strong { font-size: 1.15em; color: var(--pink-ink); }
.bigprice { margin: 0 0 12px; font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.bigprice small { display: block; font-size: .95rem; font-weight: 700; color: var(--ink-soft); }
.h-price { color: var(--pink-ink); }
.contact-list { list-style: none; padding: 0; margin: 0 0 10px; }
.contact-list li { margin: 4px 0; }
