/* ============================================================
   PetTriage — Design System
   Brand: triage-first pet health. Warm, trustworthy, precise.
   ============================================================ */

:root {
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --ink: #12241C;
  --muted: #5D6F66;
  --brand: #0E4D3A;
  --brand-2: #08291F;
  --brand-3: #13432F;
  --accent: #FF6B35;
  --accent-2: #FF8A5C;
  --accent-soft: #FFE3D3;
  --mint: #17B890;
  --mint-soft: #DDF4EC;
  --warning: #C77800;
  --warning-soft: #FBEED2;
  --danger: #C63A46;
  --danger-soft: #FCE1E3;
  --line: #E8DFD2;
  --line-2: rgba(255,255,255,.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(18,36,28,.06);
  --shadow-md: 0 14px 40px rgba(18,36,28,.10);
  --shadow-lg: 0 30px 70px rgba(18,36,28,.16);
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Typography ---------- */
h1,h2,h3,.display { font-family: var(--font-display); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section { padding: 84px 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 640px; }
.section-sub { color: var(--muted); max-width: 560px; margin-top: 14px; font-size: 1.02rem; }
.lead { font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(255,107,53,.35); }
.btn-primary:hover { background: #f25f2a; }
.btn-light { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,239,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--mint));
  color: #fff; box-shadow: 0 6px 16px rgba(14,77,58,.3);
}
.logo small { font-weight: 600; font-size: .68rem; color: var(--accent); letter-spacing: .1em; display: block; line-height: 1; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-size: .95rem; font-weight: 500; color: var(--ink);
  transition: background .15s;
}
.nav-links a:hover { background: rgba(14,77,58,.08); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch a { padding: 6px 12px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.lang-switch a.active { background: var(--brand); color: #fff; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ============================================================
   Emergency ribbon
   ============================================================ */
.emergency-ribbon { background: var(--ink); color: #fff; font-size: .86rem; }
.emergency-ribbon .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 0; text-align: center; flex-wrap: wrap; }
.emergency-ribbon b { color: var(--accent-2); font-family: var(--font-display); }
.emergency-ribbon .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5252; animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,82,82,.5);} 50% { opacity: .7; box-shadow: 0 0 0 6px rgba(255,82,82,0);} }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(23,184,144,.22), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(255,107,53,.16), transparent 55%),
    linear-gradient(150deg, var(--brand-2) 0%, var(--brand) 55%, var(--brand-3) 100%);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 74px 0 86px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); max-width: 620px; }
.hero h1 .hl { color: var(--accent-2); }
.hero p.lead { color: rgba(255,255,255,.82); margin: 20px 0 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; color: rgba(255,255,255,.66); font-size: .86rem; flex-wrap: wrap; }
.hero-trust .t-item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--mint); }

/* Hero calculator card */
.calc-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(0deg);
  border: 1px solid rgba(255,255,255,.6);
}
.calc-card-head {
  background: linear-gradient(135deg, #fdf6ec, #fff);
  padding: 16px 22px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.calc-card-head .lbl { font-family: var(--font-display); font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 9px; }
.calc-card-head .lbl .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.calc-card-head .live { font-size: .72rem; color: var(--mint); font-weight: 700; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.calc-card-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.8s infinite; }
.calc-body { padding: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #F3EDE3; border-radius: 11px; padding: 4px; gap: 4px; }
.seg button {
  border: none; background: transparent; padding: 9px 0; border-radius: 8px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .86rem; color: var(--muted); transition: .15s;
}
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.input-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; align-items: end; }
input[type=text], input[type=number], select {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(23,184,144,.13); }
.select-wrap { position: relative; }
.select-wrap::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .8rem; }
.select-wrap select { appearance: none; -webkit-appearance: none; }

/* Result */
.result { margin-top: 6px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #FBF8F2; }
.result-body { padding: 16px 18px; }
.result-level { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; display: flex; align-items: center; gap: 10px; }
.result-level .pill { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.result-note { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.result-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.result-actions .action { flex: 1; min-width: 130px; text-align: center; font-size: .8rem; font-weight: 600; padding: 9px 8px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.level-safe   .result-level { color: var(--mint); }     .level-safe   .pill { background: var(--mint); }
.level-watch  .result-level { color: var(--warning); }  .level-watch  .pill { background: var(--warning); }
.level-vet    .result-level { color: var(--accent); }   .level-vet    .pill { background: var(--accent); }
.level-emerg  .result-level { color: var(--danger); }   .level-emerg  .pill { background: var(--danger); animation: pulse 1.2s infinite; }
.level-safe   { background: #F3FAF6; border-color: #CFE9DB; }
.level-watch  { background: #FFFBF0; border-color: #F4E3B8; }
.level-vet    { background: #FFF6F1; border-color: #F6CDB8; }
.level-emerg  { background: #FFF1F2; border-color: #F3BCC1; }
.calc-foot { padding: 13px 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: center; background: #FAFAF7; }
.calc-foot svg { width: 14px; height: 14px; color: var(--mint); flex: none; }
.calc-disclaimer { font-size: .74rem; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.5; }

/* ============================================================
   Marquee / feature ribbon
   ============================================================ */
.feature-strip { background: var(--surface); border-block: 1px solid var(--line); }
.feature-strip .container { display: grid; grid-template-columns: repeat(4,1fr); }
.strip-item { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: none; }
.strip-item .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--mint-soft); color: var(--brand); }
.strip-item b { font-family: var(--font-display); font-size: .98rem; display: block; }
.strip-item span { font-size: .8rem; color: var(--muted); }

/* ============================================================
   Steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem;
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand); color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand), var(--mint));
}
.step:nth-child(2) .num { background: linear-gradient(135deg, #D85A28, var(--accent)); }
.step:nth-child(3) .num { background: linear-gradient(135deg, #A33A44, var(--danger)); }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }
.step svg.icon { position: absolute; top: 26px; right: 26px; width: 22px; height: 22px; color: #E4DACE; }

/* ============================================================
   Tool cards grid
   ============================================================ */
.tool-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 44px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s; display: block;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #CFC3AF; }
.tool-card::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(23,184,144,.14), transparent 70%);
}
.tool-card .tic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.tool-card .tic svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tool-card p { font-size: .85rem; color: var(--muted); }
.tool-card .go { position: absolute; bottom: 22px; right: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; opacity: 0; transform: translateX(-6px); transition: .2s; }
.tool-card:hover .go { opacity: 1; transform: translateX(0); }
.tool-card.danger .tic { background: linear-gradient(135deg, var(--danger), #E07A82); }
.tool-card.accent .tic { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.tool-card.brand .tic { background: linear-gradient(135deg, var(--brand), var(--mint)); }
.tool-card .tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; margin-bottom: 12px; }
.tag-hot { background: var(--danger-soft); color: var(--danger); }
.tag-new { background: var(--mint-soft); color: var(--brand); }
.tag-soon { background: #EFE9DD; color: var(--muted); }

/* ============================================================
   Q&A list
   ============================================================ */
.qa-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.qa-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  display: flex; gap: 14px; align-items: flex-start; transition: .2s; cursor: pointer;
}
.qa-item:hover { border-color: var(--mint); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.qa-item .qic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.qa-item .qic svg { width: 19px; height: 19px; }
.qa-item b { font-family: var(--font-display); font-size: .98rem; display: block; margin-bottom: 4px; line-height: 1.35; }
.qa-item span { font-size: .83rem; color: var(--muted); }
.qa-item .meta { display: flex; gap: 12px; margin-top: 8px; font-size: .74rem; color: #9AA79F; }
.qa-cat { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Split banner (food safety)
   ============================================================ */
.banner-dark {
  background: linear-gradient(140deg, var(--brand-2), var(--brand) 60%, #145a43);
  color: #fff; border-radius: 28px; overflow: hidden; position: relative;
}
.banner-dark .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 60px 4%; align-items: center; position: relative; z-index: 1; }
.banner-dark::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(23,184,144,.25), transparent 65%); }
.banner-dark h2 { color: #fff; }
.banner-dark .section-sub { color: rgba(255,255,255,.75); }
.food-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.food-chip { padding: 9px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.food-chip.no { background: rgba(198,58,70,.25); border-color: rgba(255,255,255,.15); color: #FFC9CD; }
.food-chip.yes { background: rgba(23,184,144,.2); border-color: rgba(255,255,255,.15); color: #BFF0DF; }
.food-chip.maybe { background: rgba(255,107,53,.2); border-color: rgba(255,255,255,.15); color: #FFD9C7; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.mini-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px; backdrop-filter: blur(4px); }
.mini-stat b { font-family: var(--font-display); font-size: 1.9rem; display: block; color: #fff; }
.mini-stat span { font-size: .8rem; color: rgba(255,255,255,.7); }

/* ============================================================
   Trust / sources
   ============================================================ */
.trust-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 44px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; }
.trust-card .ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; color: var(--brand); }
.trust-card .ic svg { width: 26px; height: 26px; }
.trust-card b { font-family: var(--font-display); display: block; font-size: 1rem; margin-bottom: 6px; }
.trust-card span { font-size: .82rem; color: var(--muted); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: center; padding: 30px 0 0; }
.cta-card {
  background: linear-gradient(135deg, var(--accent), #FF4F1F);
  border-radius: 28px; padding: 56px 6%; color: #fff; position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; }
.cta-card h2 { color: #fff; position: relative; }
.cta-card p { position: relative; color: rgba(255,255,255,.85); max-width: 520px; margin: 14px auto 26px; }
.cta-card .btn { position: relative; background: #fff; color: var(--accent); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.cta-card .btn:hover { background: #FFF3ED; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--brand-2); color: rgba(255,255,255,.72); margin-top: 90px; }
.footer .container { padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer p { font-size: .86rem; max-width: 300px; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: .98rem; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: .88rem; transition: color .15s; }
.footer ul a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; }
.footer .disc { font-size: .74rem; color: rgba(255,255,255,.45); max-width: 100%; margin-top: 14px; line-height: 1.6; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 70px; }
  .tool-grid { grid-template-columns: repeat(2,1fr); }
  .feature-strip .container { grid-template-columns: repeat(2,1fr); }
  .strip-item:nth-child(2) { border-right: none; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px 6%; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); align-items: stretch; }
  .steps { grid-template-columns: 1fr; }
  .qa-wrap { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2,1fr); }
  .banner-dark .container { grid-template-columns: 1fr; padding: 44px 6%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 540px) {
  .tool-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip-item { padding: 14px 10px; }
  .feature-strip .container { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid var(--line); }
  .nav-right .btn { display: none; }
}
