:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1f2a5c;
  --muted: #5b6478;
  --border: #dde2ec;
  --primary: #d4f04a;
  --primary-shadow: #a3bd2b;
  --primary-soft: #f1f9cf;
  --accent: #2f55d4;
  --sky: #e7eeff;
  --grass: #ddf3e5;
  --done: #23784a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent); }
h1, h2, h3, .brand { font-family: 'Fredoka', 'Figtree', system-ui, sans-serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0.6rem 0 0.3rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top { padding: 16px 0; position: relative; z-index: 2; }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.brand { font-size: 1.4rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-ball { width: 30px; height: 30px; transition: transform 0.5s; }
.brand:hover .brand-ball { transform: rotate(200deg); }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--accent); }
nav a.lang { border: 2px solid var(--text); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; letter-spacing: 0.04em; }
nav a.lang:hover { background: var(--text); color: #fff; }

/* Hero */
.hero { background: var(--sky); position: relative; padding: 24px 0 70px; }
.page-home header.top { background: var(--sky); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; }
.hl { background: linear-gradient(transparent 62%, var(--primary) 62%, var(--primary) 92%, transparent 92%); padding: 0 4px; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--text); box-shadow: 0 4px 0 var(--text); }
.badge svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 300px; }
.hero-dog { width: min(340px, 80%); height: auto; position: relative; z-index: 1; filter: drop-shadow(0 10px 0 rgba(31, 42, 92, 0.08)); }
.tball { display: block; }
.float { position: absolute; width: 46px; height: 46px; animation: float 4s ease-in-out infinite; }
.float.f1 { top: 8%; left: 8%; }
.float.f2 { top: 22%; right: 6%; width: 34px; height: 34px; animation-delay: -1.3s; }
.float.f3 { bottom: 18%; left: 2%; width: 28px; height: 28px; animation-delay: -2.4s; }
.grass { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; fill: var(--bg); }

/* Mascot animation: tail sweeps, eyes blink, head bobs a little. */
.dog .tail { transform-box: view-box; transform-origin: 128px 180px; }
.dog .eyes { transform-box: view-box; transform-origin: 100px 70px; animation: blink 5s infinite; }
.dog.wag .tail { animation: wag 0.7s ease-in-out infinite alternate; }
.hero-dog .head { transform-box: view-box; transform-origin: 100px 116px; animation: bob 2.8s ease-in-out infinite; }
@keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes bob { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(25deg); } }

/* App preview */
.show { padding: 40px 0 24px; }
.show-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.show-text p { color: var(--muted); font-size: 1.15rem; max-width: 28em; }
.phone { text-align: left; width: 280px; background: var(--text); border-radius: 44px; padding: 14px; box-shadow: 0 24px 48px rgba(31, 42, 92, 0.22); position: relative; transform: rotate(-3deg); }
.notch { width: 90px; height: 22px; background: var(--text); border-radius: 0 0 14px 14px; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1; }
.screen { background: var(--bg); border-radius: 32px; padding: 40px 14px 18px; display: grid; gap: 10px; font-size: 13px; line-height: 1.35; }
.p-hello { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px; }
.p-hello small { display: block; font-family: 'Figtree', sans-serif; font-weight: 400; font-size: 12px; color: var(--muted); }
.p-card { background: var(--surface); border-radius: 18px; padding: 10px 12px; display: grid; gap: 6px; box-shadow: 0 1px 0 var(--border); }
.p-row { display: flex; gap: 10px; align-items: center; }
.p-row b { display: block; font-family: 'Fredoka', sans-serif; font-size: 15px; }
.p-row small, .p-status small, .p-week small { color: var(--muted); }
.p-face { width: 36px; height: 36px; background: var(--sky); border-radius: 50%; flex: none; }
.p-status { display: flex; gap: 8px; align-items: center; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.chip.done { background: var(--grass); color: var(--done); }
.chip.planned { background: #e6ecff; color: var(--accent); }
.p-cta { background: var(--primary); border-radius: 14px; text-align: center; font-weight: 700; padding: 9px; box-shadow: 0 3px 0 var(--primary-shadow); font-family: 'Fredoka', sans-serif; font-size: 15px; }
.p-week { grid-template-columns: 1fr auto; }
.p-week b { font-family: 'Fredoka', sans-serif; font-size: 15px; }
.p-week small { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; }
.paw { fill: currentColor; }
.paw.mini { width: 14px; height: 14px; color: var(--text); }

/* Features */
.features { padding: 40px 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(31, 42, 92, 0.08); }
.card p { margin: 0; color: var(--muted); }
.ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--primary-soft); }
.ic svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The pack */
.pack { padding: 40px 0 24px; text-align: center; }
.pack > .wrap > p { color: var(--muted); max-width: 34em; margin: 0 auto; }
.dogs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 8px; }
.dogs figure { margin: 0; }
.dogs svg { width: 130px; height: 130px; }
.dogs figure:nth-child(2) .tail { animation-delay: -0.2s; }
.dogs figure:nth-child(3) .tail { animation-delay: -0.4s; animation-duration: 0.55s; }
.dogs figure:nth-child(4) .tail { animation-delay: -0.1s; animation-duration: 0.85s; }
.dogs figcaption { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.1rem; }
.closing { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; margin-top: 28px; font-weight: 600; }
.tball.inline { width: 24px; height: 24px; }

/* Documents (support, privacy) */
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 32px 28px; margin: 24px auto 32px; max-width: 760px; position: relative; }
.doc-dog { position: absolute; top: -56px; right: 24px; width: 100px; height: 100px; }
.doc-dog svg { width: 100%; height: 100%; }
.doc h2 { font-size: 1.35rem; margin: 2rem 0 0.4rem; }
.doc ul { padding-left: 1.2em; }
.doc .intro { font-size: 1.1rem; }
.meta { color: var(--muted); font-size: 0.95rem; }
details { border-top: 1px solid var(--border); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: 'Fredoka', sans-serif; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: '–'; }
details p { margin: 8px 0 0; color: var(--muted); }

/* Footer */
footer { color: var(--muted); font-size: 0.92rem; padding: 32px 0 48px; text-align: center; }
footer p { margin: 4px 0; }
footer a { color: var(--muted); }
.footer-paws { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; color: var(--border); }
.footer-paws .paw { width: 22px; height: 22px; }
.footer-paws .paw:nth-child(2) { transform: translateY(-6px) rotate(12deg); }
.footer-paws .paw:nth-child(3) { transform: rotate(-8deg); }

/* Phones and tablets */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .show-grid { gap: 32px; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { min-height: 220px; }
  .hero-dog { width: 220px; }
  .show-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .show-text p { margin: 0 auto; }
  .phone { transform: none; width: 260px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  nav a { font-size: 0.95rem; }
  .doc { padding: 28px 20px; }
  .doc-dog { width: 80px; height: 80px; top: -44px; right: 16px; }
  .dogs svg { width: 100px; height: 100px; }
}

/* Respect "reduce motion": a still, happy dog. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
