@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --focus-ring: rgba(99, 102, 241, 0.15);
  --text: #111827;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-tint: #eef2ff;
  --success: #059669;
  --success-tint: #ecfdf5;
  --success-border: #a7f3d0;
  --error: #dc2626;
  --error-tint: #fef2f2;
  --error-border: #fecaca;
  --r: 10px;
  --r-sm: 6px;
  --r-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 52px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: opacity .15s;
}
.logo:hover { opacity: .65; }

.lang-switch { display: flex; align-items: center; gap: 2px; }

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--subtle);
  transition: color .15s;
}
.lang-btn:hover { color: var(--muted); }
.lang-btn.active { color: var(--primary); font-weight: 600; }
.lang-sep { color: var(--border); padding: 0 2px; font-size: 11px; }

/* ── Layout ── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.centered-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}
.form-page-content { width: 100%; max-width: 560px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger { background: transparent; color: var(--error); border-color: var(--error-border); }
.btn-danger:hover { background: var(--error-tint); }
.btn-danger-solid { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger-solid:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-primary-ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn-primary-ghost:hover { background: var(--primary-tint); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card-body { padding: 20px 24px; }
.card-heading { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── Form ── */
.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label { font-size: 12px; font-weight: 500; color: var(--muted); }

.form-input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.form-input.is-error { border-color: var(--error); }
.form-input::placeholder { color: var(--subtle); }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }

/* intl-tel-input compat */
.iti { width: 100%; }

/* ── Checkbox ── */
.check-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.check-wrap input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.check-label { font-size: 14px; }

/* ── Alerts ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.5;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-tint); border: 1px solid var(--success-border); color: #065f46; }
.alert-error { background: var(--error-tint); border: 1px solid var(--error-border); color: #991b1b; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.badge-success { background: var(--success-tint); color: #065f46; }
.badge-neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.badge-outline { border: 1px solid var(--border); color: var(--muted); }

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 24, 39, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.modal-body { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0; }

/* ── Hero ── */
.hero-section { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px 88px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title .accent { color: var(--primary); }

.hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { flex-shrink: 0; width: 230px; }

/* ── Steps ── */
.steps-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 6px; }
.section-subtitle { font-size: 14px; color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Benefits ── */
.benefits-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.bi-green  { background: #ecfdf5; color: #059669; }
.bi-blue   { background: #eff6ff; color: #2563eb; }
.bi-yellow { background: #fffbeb; color: #b45309; }
.bi-violet { background: var(--primary-tint); color: var(--primary); }
.benefit-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.benefit-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ── Pet view (scan page) ── */
.scan-main {
  flex: 1;
  padding: 32px 16px 48px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.pet-avatar {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}
.pet-name-lg { font-size: 24px; font-weight: 700; margin-bottom: 2px; }
.pet-type-sm { font-size: 14px; color: var(--muted); }

.contact-card { padding: 16px 20px; margin-bottom: 12px; }
.contact-name { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; }

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: filter .15s;
  text-decoration: none;
  border: none;
}
.contact-btn:hover { filter: brightness(.96); }
.cb-call      { background: #ecfdf5; color: #065f46; }
.cb-whatsapp  { background: #f0fdf4; color: #166534; }
.cb-telegram  { background: #eff6ff; color: #1d4ed8; }
.cb-messenger { background: #f0f9ff; color: #0369a1; }
.cb-email     { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.cb-location  { background: #fff7ed; color: #9a3412; }

.scan-branding { text-align: center; padding: 24px 0 8px; }
.scan-branding a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--subtle);
  transition: color .15s;
}
.scan-branding a:hover { color: var(--muted); }

/* ── Data page ── */
.data-grid { display: grid; gap: 2px; }
.data-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.data-row:last-child { border-bottom: none; }
.data-label { font-size: 12px; color: var(--muted); }
.data-value { font-size: 13px; font-weight: 500; }

/* ── Print tags ── */
.pet-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1px dashed #000;
  padding: 3mm;
  margin: 2mm;
  background: white;
  border-radius: 2mm;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}
.pet-tag .tag-header { font-size: 2.5mm; font-weight: bold; font-family: sans-serif; white-space: nowrap; margin-top: 3mm; margin-bottom: 1mm; }
.pet-tag .tag-footer { font-size: 2.5mm; font-weight: bold; font-family: sans-serif; margin-top: 1mm; word-break: break-word; }

@page { margin: 0; }
@media print {
  .no-print { display: none !important; }
  html, body { margin: 0 !important; padding: 0 !important; background: white !important; }
  body { display: flex !important; align-items: center !important; justify-content: center !important; min-height: 100vh !important; }
  main { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; padding: 0 !important; flex: 1 !important; }
  .card { box-shadow: none !important; border-radius: 0 !important; background: white !important; border: none !important; }
  .pet-tag { break-inside: avoid; page-break-inside: avoid; }
}

/* ── Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }
.text-muted { color: var(--muted); }
.text-subtle { color: var(--subtle); }
.text-primary { color: var(--primary); }
.text-error { color: var(--error); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.tracking-wide { letter-spacing: .05em; }
.uppercase { text-transform: uppercase; }
.w-full { width: 100%; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 32px; padding: 48px 24px 56px; text-align: center; }
  .hero-art { width: 160px; }
  .hero-cta { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .card-body { padding: 16px; }
  .centered-main { padding: 24px 16px 48px; }
}
