/* Best Pet Friends: shared design tokens and basics (website + app) */

:root {
  --bg: #f4fbfa;
  --card: #ffffff;
  --ink: #0f2b2d;
  --mute: #4a6466;
  --line: #d3e5e3;

  --teal: #0e7c74;          /* buttons */
  --on-teal: #ffffff;
  --teal-ink: #0a5f59;      /* teal text on light tints */
  --teal-soft: #dff5f2;
  --teal-bright: #2ec4b6;   /* big color bands */
  --hero-ink: #0f2b2d;      /* text on the bright teal band */

  --red: #c62828;
  --on-red: #ffffff;
  --red-soft: #fbe4e2;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 43, 45, 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1819;
    --card: #142526;
    --ink: #e6f4f2;
    --mute: #9db8b6;
    --line: #274042;

    --teal: #2ec4b6;
    --on-teal: #0b2224;
    --teal-ink: #7fe3d8;
    --teal-soft: #14383a;

    --red: #ff8a80;
    --on-red: #3a0b0b;
    --red-soft: #3b1c1c;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal-ink); }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 16px; }
.center { text-align: center; }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 12px; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: var(--on-teal);
  font: inherit;
  font-weight: 700;
  padding: 11px 18px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.red { background: var(--red); color: var(--on-red); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-weight: 600;
}
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.paw { fill: currentColor; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
