/* Kwispel — warm chalk editorial. Tokens mirror PawportTheme.swift (Pruim/Mos/Perzik/Surface). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600&display=swap');

:root {
  --krijt: #FFFCF4;
  --kruim: #FCF6E6;
  --boter: #F7EDD3;
  --korst: #ECDFC0;
  --lijn: #E2D5C5;
  --rand: #C9B7A0;
  --inkt: #25182A;
  --roet: #4B3953;
  --mauve: #6E5C77;
  --pruim: #8B5096;
  --pruim-deep: #533059;
  --pruim-night: #3A2240;
  --pruim-tint: #F6F0F7;
  --pruim-soft: #ECDCEF;
  --mos: #5C6F40;
  --mos-mid: #94A66A;
  --mos-tint: #DCE3CB;
  --perzik: #DC6F3E;
  --perzik-soft: #FBD7BD;
  --boterbloem: #F3D254;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'General Sans', -apple-system, 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--krijt);
  color: var(--inkt);
  line-height: 1.65;
  font-size: 17px;
  /* subtle paper grain */
  background-image: radial-gradient(rgba(37, 24, 42, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

::selection { background: var(--pruim-soft); color: var(--pruim-night); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  padding: 28px 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--inkt);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.logo .paw {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--pruim);
  color: var(--krijt);
  border-radius: 12px;
  font-size: 1.1rem;
  transform: rotate(-6deg);
}
nav.site-nav { display: flex; gap: 26px; }
nav.site-nav a {
  color: var(--roet);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
nav.site-nav a:hover { color: var(--pruim); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mos);
  background: var(--mos-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--pruim-night);
  margin-bottom: 22px;
}
h1 em {
  font-style: italic;
  color: var(--pruim);
}
.hero p.lede {
  font-size: 1.18rem;
  color: var(--roet);
  max-width: 34em;
  margin-bottom: 34px;
}
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pruim);
  color: var(--krijt);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(83, 48, 89, 0.25);
  transition: transform 0.16s ease, background 0.16s ease;
}
.btn-primary:hover { background: var(--pruim-deep); transform: translateY(-2px); }
.cta-note { font-size: 0.9rem; color: var(--mauve); }

/* Hero dog card */
.hero-card {
  background: var(--kruim);
  border: 1.5px solid var(--korst);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 18px 44px rgba(83, 48, 89, 0.10);
  transform: rotate(1.5deg);
  text-align: center;
}
.hero-card .dog {
  font-size: 4.6rem;
  display: inline-block;
  line-height: 1;
}
.hero-card .tail {
  display: inline-block;
  transform-origin: 20% 80%;
  animation: wag 0.9s ease-in-out infinite;
  font-size: 2.4rem;
  margin-left: -14px;
}
@keyframes wag {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(14deg); }
}
.hero-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--pruim-night);
  margin-top: 14px;
}
.hero-card p { color: var(--mauve); font-size: 0.95rem; margin-top: 6px; }
.hero-card .checkrow {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.hero-card .checkrow span {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem;
  background: var(--mos-tint);
  color: var(--mos);
  font-weight: 600;
}
.hero-card .checkrow span.today {
  background: var(--mos);
  color: var(--krijt);
}

/* ---------- Features ---------- */
.features { padding: 30px 0 90px; }
.features h2, .section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--pruim-night);
  margin-bottom: 14px;
}
.features .intro { color: var(--roet); max-width: 40em; margin-bottom: 44px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1.5px solid var(--lijn);
  border-radius: 20px;
  padding: 28px 26px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(83, 48, 89, 0.09);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.icon.plum { background: var(--pruim-tint); }
.icon.sage { background: var(--mos-tint); }
.icon.peach { background: var(--perzik-soft); }
.icon.butter { background: var(--boter); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--inkt);
  margin-bottom: 8px;
}
.card p { color: var(--mauve); font-size: 0.96rem; }

/* ---------- Band ---------- */
.band {
  background: var(--pruim-night);
  color: var(--krijt);
  padding: 72px 0;
}
.band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.band p { color: var(--pruim-soft); max-width: 38em; }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.band .btn-primary { background: var(--boterbloem); color: var(--pruim-night); box-shadow: none; }
.band .btn-primary:hover { background: #fff; }

/* ---------- Legal / prose pages ---------- */
.prose { padding: 30px 0 90px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.prose .meta { color: var(--mauve); font-size: 0.92rem; margin-bottom: 40px; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--pruim-night);
  margin: 44px 0 12px;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--inkt);
  margin: 26px 0 8px;
}
.prose p, .prose li { color: var(--roet); margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--pruim); }
.lang-divider {
  margin: 64px 0 44px;
  border: none;
  border-top: 1.5px dashed var(--rand);
  position: relative;
}
.lang-divider::after {
  content: attr(data-label);
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--krijt);
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve);
}
.callout {
  background: var(--mos-tint);
  border-radius: 16px;
  padding: 18px 22px;
  color: var(--mos) !important;
  font-weight: 500;
  margin: 20px 0;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1.5px solid var(--lijn);
  padding: 44px 0 56px;
  background: var(--kruim);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
footer.site .foot-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--pruim-night);
}
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--mauve); text-decoration: none; font-size: 0.92rem; }
footer.site a:hover { color: var(--pruim); }
footer.site .fine { width: 100%; color: var(--mist, #A89BAF); font-size: 0.84rem; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 380px; margin: 0 auto; transform: rotate(0deg); }
  .band .wrap { grid-template-columns: 1fr; }
  nav.site-nav { display: none; }
}

/* Load-in reveal */
.reveal { animation: rise 0.7s ease both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
