:root {
  --brand: #ff7a59;          /* warm coral — friendly & loving */
  --brand-dark: #f0623d;
  --brand-soft: #fff1ec;
  --plum: #7b6ef0;           /* soft secondary accent */
  --accent: #18b78f;         /* safe / green */
  --warn: #e8893f;           /* caution */
  --danger: #e0454a;         /* never / danger */
  --heart: #ff6b8a;          /* cute pink for hearts/paws */
  --ink: #3a2f2b;            /* warm near-black */
  --muted: #8a7a72;          /* warm grey-brown */
  --line: #f0e4da;           /* warm hairline */
  --bg: #fdf7f0;             /* warm cream */
  --bg-2: #fbeee3;           /* deeper cream for accents */
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(120, 80, 50, .08);
  --shadow-hover: 0 16px 40px rgba(120, 80, 50, .16);
  --maxw: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  /* soft tiled paw-prints + a couple of warm glows behind everything */
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,122,89,.07), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(123,110,240,.06), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cg fill='%23f5e3d4'%3E%3Cellipse cx='30' cy='42' rx='8' ry='6.5'/%3E%3Cellipse cx='19' cy='30' rx='3.4' ry='4.6'/%3E%3Cellipse cx='27' cy='25' rx='3.4' ry='4.8'/%3E%3Cellipse cx='35' cy='26' rx='3.4' ry='4.6'/%3E%3Cellipse cx='42' cy='32' rx='3.2' ry='4.2'/%3E%3Cellipse cx='82' cy='92' rx='8' ry='6.5'/%3E%3Cellipse cx='71' cy='80' rx='3.4' ry='4.6'/%3E%3Cellipse cx='79' cy='75' rx='3.4' ry='4.8'/%3E%3Cellipse cx='87' cy='76' rx='3.4' ry='4.6'/%3E%3Cellipse cx='94' cy='82' rx='3.2' ry='4.2'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 18px;
}
.logo { font-weight: 800; font-size: 21px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--brand); }
.nav-links { margin-left: auto; display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.lang-switch { display: flex; gap: 2px; margin-left: 14px; background: var(--bg-2); border-radius: 20px; padding: 3px; flex: 0 0 auto; }
.lang-switch button { border: none; background: none; font-size: 13px; font-weight: 700; color: var(--muted); padding: 5px 11px; border-radius: 16px; cursor: pointer; line-height: 1; }
.lang-switch button.active { background: var(--brand); color: #fff; }
@media (max-width: 560px) { .lang-switch { margin-left: auto; } }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main { padding: 24px 0 60px; }

/* Hero */
.hero { text-align: center; padding: 50px 0 26px; position: relative; }
.hero::before {
  content: "🐾"; position: absolute; left: 6%; top: 18px; font-size: 34px; opacity: .35;
  transform: rotate(-18deg);
}
.hero::after {
  content: "🐾"; position: absolute; right: 7%; bottom: 4px; font-size: 28px; opacity: .3;
  transform: rotate(16deg);
}
.hero h1 { font-size: clamp(29px, 5vw, 44px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.6px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* Tool grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 32px 0; }
.tool-card {
  background: var(--card); border: 1px solid var(--line);
  padding: 0; box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.2,.8,.3,1.2), box-shadow .2s ease;
  display: block; color: var(--ink); position: relative; overflow: hidden;
  border-radius: 24px;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); text-decoration: none; }

/* full-bleed illustrated SCENE banner at the top of each card */
.tool-card .scene {
  display: block; width: 100%; aspect-ratio: 320 / 150; overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, var(--card-tint, var(--brand-soft)) 100%);
  border-bottom: 1px solid var(--line);
}
.tool-card .scene svg { width: 100%; height: 100%; display: block; transition: transform .3s ease; }
.tool-card:hover .scene svg { transform: scale(1.045); }

/* rotating palette — each card gets its own scene wash */
.tools-grid .tool-card:nth-child(8n+1) { --card-tint: #ffe5db; }  /* coral */
.tools-grid .tool-card:nth-child(8n+2) { --card-tint: #d6f3ea; }  /* teal */
.tools-grid .tool-card:nth-child(8n+3) { --card-tint: #ece7ff; }  /* plum */
.tools-grid .tool-card:nth-child(8n+4) { --card-tint: #fff0c9; }  /* sunny */
.tools-grid .tool-card:nth-child(8n+5) { --card-tint: #ffe1ed; }  /* pink */
.tools-grid .tool-card:nth-child(8n+6) { --card-tint: #e3f5d2; }  /* green */
.tools-grid .tool-card:nth-child(8n+7) { --card-tint: #dceffd; }  /* sky */
.tools-grid .tool-card:nth-child(8n)   { --card-tint: #ffe6d0; }  /* peach */

.tool-card h3 { margin: 0; padding: 16px 22px 0; font-size: 18px; }
.tool-card p { margin: 0; padding: 6px 22px 20px; font-size: 14px; color: var(--muted); }

/* Calculator card */
.calc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); margin: 24px 0;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=number], input[type=text], input[type=date], select {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 12px; background: #fffdfb; color: var(--ink); -webkit-appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,122,89,.16); }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented button {
  flex: 1; min-width: 90px; padding: 11px; border: 1px solid var(--line); background: #fffdfb;
  border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted);
  transition: all .15s ease;
}
.segmented button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn {
  display: inline-block; width: 100%; padding: 15px; font-size: 17px; font-weight: 800;
  background: var(--brand); color: #fff; border: none; border-radius: 14px; cursor: pointer;
  transition: background .15s, transform .1s; box-shadow: 0 6px 16px rgba(255,122,89,.28);
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }

/* Result */
.result { margin-top: 22px; padding: 24px; border-radius: 16px; background: var(--brand-soft); text-align: center; display: none; }
.result.show { display: block; animation: pop .28s cubic-bezier(.2,.8,.3,1.2); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result .big { font-size: 46px; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.result .label { color: var(--muted); font-size: 15px; margin-top: 4px; }
.result.safe { background: #e6f7f1; } .result.safe .big { color: var(--accent); }
.result.warn { background: #fdf0e3; } .result.warn .big { color: var(--warn); }
.result.danger { background: #fdebec; } .result.danger .big { color: var(--danger); }

/* Ad slots */
.ad-slot {
  margin: 28px 0; min-height: 100px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border: 1px dashed #e7d3c2; border-radius: 16px; color: #c4ab98; font-size: 13px;
}

/* Content / SEO copy */
.content { margin: 40px 0; }
.content h2 { font-size: 25px; margin: 34px 0 12px; letter-spacing: -.3px; }
.content h2.faq-title { display: flex; align-items: center; gap: 8px; }
.content h2.faq-title::before { content: "🐾"; font-size: 22px; }
.content h3 { font-size: 19px; margin: 24px 0 8px; }
.content p, .content li { color: #5a4b44; }
.content table { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--card); border-radius: 12px; overflow: hidden; }
.content th, .content td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; font-size: 15px; }
.content th { background: var(--brand-soft); }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; background: var(--card); }
.faq summary { font-weight: 700; cursor: pointer; padding: 12px 0; }
.faq details p { margin: 0 0 14px; }
.disclaimer { background: #fff6e6; border: 1px solid #ffe2ab; border-radius: 14px; padding: 14px 18px; font-size: 14px; color: #7a5b13; margin: 22px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.7); padding: 32px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); margin-right: 16px; }
.site-footer a:hover { color: var(--brand); }

.breadcrumb { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.breadcrumb a { color: var(--brand-dark); }
@media (max-width: 560px) { .row { flex-direction: column; gap: 0; } .hero::before, .hero::after { display: none; } }
