/* ============================================================
   Team PetPal — core styles
   tokens · layout · components
   (keyframes / motion live in animations.css)
    DisLoPik 2026
   ============================================================ */

:root {

  --ink:          #1f2a37;
  --ink-soft:     #51616f;
  --paper:        #f4faf6;
  --paper-2:      #e7f4ec;
  --white:        #ffffff;

  --green:        #3dbe5e;
  --green-deep:   #2a9d4e;
  --green-wash:   #dff5e6;

  --sunny:        #ffc24b;
  --coral:        #ff7a6b;
  --sky:          #5bb8e8;


  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;


  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;


  --shadow-sm: 0 2px 0 rgba(31,42,55,.06), 0 6px 16px rgba(31,42,55,.07);
  --shadow-md: 0 4px 0 rgba(31,42,55,.06), 0 14px 30px rgba(31,42,55,.10);
  --shadow-pop: 0 10px 28px rgba(61,190,94,.28);

  --maxw: 1080px;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }


.wrap { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 700;
}

.lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 56ch; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--green);
  box-shadow: var(--shadow-pop);
}
.brand__mark svg { width: 24px; height: 24px; }

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav__links a {
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a[aria-current="page"] { color: var(--green-deep); background: var(--green-wash); }

.nav__toggle {
  margin-left: auto;
  display: none;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s, opacity .2s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav[data-open="true"] .nav__toggle span { background: transparent; }
.nav[data-open="true"] .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }


.btn {
  --b: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .75rem 1.4rem;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--b);
  color: var(--white);
  box-shadow: 0 4px 0 var(--green-deep);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-deep); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-deep); }
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }


.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.hero::before {

  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 60% 40%, var(--green-wash), transparent 62%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.hero h1 .hl { color: var(--green-deep); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero__note {
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
}
.hero__note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }


.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}
.stage__pet {
  width: clamp(230px, 32vw, 320px);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stage__shadow {
  position: absolute;
  bottom: 8%;
  width: 46%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(31,42,55,.18), transparent 70%);
  border-radius: 50%;
  z-index: -1;
}
.stage__tip {
  position: absolute;
  bottom: -8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  background: var(--white);
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.stage__tip b { color: var(--green-deep); }


.passcard {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: .55rem .7rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: .82rem;
}
.passcard .pin { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; }
.passcard small { display: block; font-weight: 700; color: var(--ink-soft); font-size: .68rem; letter-spacing: .02em; }
.passcard--a { top: 6%;  left: -4%;  --pin: var(--coral); }
.passcard--b { top: 36%; right: -6%; --pin: var(--sky); }
.passcard--c { bottom: 14%; left: 2%; --pin: var(--sunny); }
.passcard .pin { background: color-mix(in srgb, var(--pin) 22%, white); color: var(--pin); }


.head { max-width: 60ch; margin-bottom: 2.4rem; }
.head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.head--center { margin-inline: auto; text-align: center; }


.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: var(--green-wash);
}
.card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }


.t-green  { background: var(--green-wash); }
.t-coral  { background: color-mix(in srgb, var(--coral) 18%, white); }
.t-sky    { background: color-mix(in srgb, var(--sky) 18%, white); }
.t-sunny  { background: color-mix(in srgb, var(--sunny) 24%, white); }


.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px; left: 1.5rem;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--green-deep);
}
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }


.band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--r-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.band h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .6rem; }
.band p { color: rgba(255,255,255,.9); max-width: 48ch; margin: 0 auto 1.6rem; }
.band .btn--primary { background: var(--white); color: var(--green-deep); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.band .btn--primary:hover { box-shadow: 0 6px 0 rgba(0,0,0,.18); }


.code {
  background: #14202b;
  color: #d7e6df;
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.code .c { color: #6e8a7e; }
.code .g { color: #7fe0a0; }
.code .y { color: #ffd479; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; align-items: baseline; }
.kv dt { font-family: var(--font-mono); font-size: .82rem; color: var(--green-deep); font-weight: 700; }
.kv dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.figure {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}
.figure img { border-radius: var(--r-md); width: 100%; }
.figure figcaption {
  margin-top: .8rem;
  text-align: center;
  font-size: .88rem;
  color: var(--ink-soft);
  font-weight: 700;
}


.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}


.spec { display: grid; gap: .7rem; }
.spec li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: var(--white);
  padding: .85rem 1.1rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.spec li::before {
  content: "";
  flex: 0 0 auto;
  margin-top: .35em;
  width: 14px; height: 14px;
  border-radius: 5px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-wash);
}
.spec b { font-weight: 800; }
.spec span { color: var(--ink-soft); }

.species { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white);
  padding: .5rem .95rem .5rem .55rem;
  border-radius: var(--r-pill);
  font-weight: 800; font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.chip i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }


.footer {
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  background: var(--paper-2);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__links a { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.footer__links a:hover { color: var(--green-deep); }
.footer__fine { margin-top: 1.5rem; font-size: .82rem; color: var(--ink-soft); max-width: 60ch; }
.footer__fine a { color: var(--green-deep); font-weight: 700; }


.x-link { color: var(--green-deep); font-weight: 800; border-bottom: 2px solid var(--green-wash); }
.x-link:hover { border-color: var(--green); }


@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .stage { order: -1; min-height: 300px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    background: var(--paper);
    padding: .75rem 1.25rem 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav__links .btn { margin-top: .4rem; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .passcard--c { display: none; }
}


.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal[aria-hidden="false"] { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 43, .55);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(20, 32, 43, .35);
  padding: clamp(1.35rem, 3.5vw, 2rem);
  text-align: center;
}
.modal__dialog--sm { max-width: 420px; }
.modal__close {
  position: absolute;
  top: .8rem;
  right: .9rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, transform .12s;
}
.modal__close:hover { background: var(--green-wash); transform: rotate(90deg); }

.modal__title {
  font-size: clamp(1.4rem, 3.6vw, 1.8rem);
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}
.modal__desc {
  color: var(--ink-soft);
  font-size: .98rem;
  max-width: 42ch;
  margin: 0 auto .95rem;
}
.modal__desc b { color: var(--ink); font-weight: 800; }
.modal__figure {
  margin: 0 0 .8rem;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: var(--r-md);
  padding: .5rem;
  min-height: 0;
}
.modal__figure img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  max-height: clamp(150px, 30vh, 290px);
  height: auto;
  border-radius: var(--r-sm);
}
.modal__hint {
  font-weight: 700;
  font-size: .98rem;
  margin-bottom: 1.05rem;
  line-height: 1.45;
}
.modal__hint b {
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: .95em;
}
.modal__foot { margin-top: .85rem; font-size: .88rem; color: var(--ink-soft); }


.contact { display: grid; gap: .7rem; text-align: left; margin-top: .4rem; }
.contact__row { display: block; }
.contact__row,
.contact__link {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: var(--r-md);
  padding: .8rem .95rem;
}
.contact__link { transition: transform .12s ease, box-shadow .15s ease, border-color .15s; }
.contact__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
}
.contact__icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, white);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__body { display: flex; flex-direction: column; line-height: 1.25; }
.contact__label { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); font-weight: 800; }
.contact__val { font-weight: 800; font-size: 1.02rem; }


body.modal-open { overflow: hidden; }
