@font-face { font-family: Nunito; src: url("/nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f2f2f7;
  --surface: #fff;
  --ink: #19191f;
  --muted: #555563;
  --line: #dedee7;
  --blue: #005bbb;
  --blue-soft: #e7f1ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #147ce5; outline-offset: 4px; }
::selection { background: #c0d9ff; }
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-inner { max-width: 1110px; margin: auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.bar-inner a { text-decoration: none; font-weight: 650; }
.brand { color: var(--ink); display: flex; align-items: center; font-size: 1.15rem; letter-spacing: -.025em; }
.brand svg { width: 25px; height: 25px; color: var(--blue); margin-right: 8px; }
.brand span { color: var(--blue); }
.home, .screen { width: min(calc(100% - 36px), 1060px); margin: 54px auto; }
.screen { max-width: 680px; }
h1, h2, p { margin: 0 0 16px; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; }
p { line-height: 1.55; color: var(--muted); }
.intro { font-size: 1.14rem; }
.hero { display: grid; grid-template-columns: 1fr .95fr; overflow: hidden; background: #fff; border-radius: 20px; }
.hero-copy { align-self: center; padding: clamp(30px, 5vw, 65px); }
.hero-copy p { font-size: 1.2rem; margin: 22px 0; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 330px; background: radial-gradient(ellipse at 60% 38%, #b5d8ff, #e8f2ff 73%); overflow: hidden; }
.pendant { display: grid; place-items: center; width: 205px; aspect-ratio: 1; border-radius: 41%; color: white; position: relative; background: linear-gradient(145deg, #1d8bff, #075bc0 66%, #004492); transform: translate(10px, 22px) rotate(-18deg); box-shadow: inset 0 2px 6px #ffffff8a, inset 0 -8px 10px #003a8d, 10px 25px 35px #23486d55; }
.pendant svg { width: 90px; margin-top: 12px; filter: drop-shadow(0 2px 1px #003a8d); }
.pendant i { position: absolute; top: 12px; width: 17px; height: 17px; border-radius: 50%; background: #003a82; box-shadow: 0 1px 3px #ffffff87; }
.ring { position: absolute; top: calc(50% - 150px); left: calc(50% - 69px); width: 86px; height: 86px; border-radius: 50%; border: 8px solid #788fa6; box-shadow: inset 0 2px 3px #fff, 0 2px 3px #fff; transform: rotate(-28deg) scaleX(.83); }
.how { max-width: 500px; margin: 52px auto 0; text-align: center; }
.sheet { margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(17px, 4vw, 28px); }
form, .fields { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-weight: 640; }
small { color: var(--muted); font-weight: 500; }
input, textarea, select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #c9c9d4; border-radius: 10px; background: #fbfbfd; color: var(--ink); padding: 10px 12px; font: inherit; font-weight: 450; }
textarea { resize: vertical; min-height: 96px; }
.pin { letter-spacing: .32em; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--line); font-weight: 500; }
.check input { width: 19px; min-height: 19px; accent-color: var(--blue); }
.check input[role="switch"] { appearance: none; border: 0; padding: 0; width: 42px; height: 26px; background: #777784; border-radius: 20px; position: relative; flex-shrink: 0; cursor: pointer; }
.check input[role="switch"]::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; }
.check input[role="switch"]:checked { background: var(--blue); }
.check input[role="switch"]:checked::after { left: 19px; }
fieldset { min-width: 0; margin: 6px 0 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 720; font-size: 1.13rem; }
button, .button { cursor: pointer; border: 0; display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 46px; padding: 11px 18px; border-radius: 12px; color: white; background: var(--blue); font: inherit; font-weight: 650; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.92); }
button:disabled { opacity: .65; cursor: wait; }
.secondary { color: var(--blue); background: var(--blue-soft); }
summary { cursor: pointer; line-height: 1.6; }
summary span { float: right; color: var(--muted); margin-left: 6px; }
details[open] > summary { margin-bottom: 16px; }
.actions { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.notice { border-radius: 12px; padding: 13px; background: #e5f3ea; color: #205236; }
.error { background: #fff0ee; color: #8a2427; }
.pet-hero { display: grid; gap: 20px; }
.pet-photo { width: 100%; max-height: 310px; border-radius: 13px; object-fit: cover; }
.pet-hero.lost { background: #fff5e4; border-color: #e8cfaa; }
.pet-hero.lost .pet-copy { grid-row: 1; }
.pet-hero.lost .button { background: #803a10; }
.badge { display: inline-block; background: #f6dfbb; color: #71360f; border-radius: 20px; padding: 5px 12px; font-weight: 740; margin-bottom: 10px; }
#encontrei { scroll-margin-top: 18px; }
[data-location-status] { margin: -6px 0 0; }
dl { margin: 0; }
dl div { display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 12px 0; }
dt { font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; margin-top: 16px; text-align: left; }
td, th { border-top: 1px solid var(--line); padding: 10px 6px; overflow-wrap: anywhere; }
.tags { padding: 0; list-style: none; }
.tags li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tags li form { margin-left: auto; }
footer { padding: 20px; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 285px; }
  .home, .screen { margin-top: 28px; }
}
@media print {
  body, .sheet { background: white; }
  header, footer, button, details, .screen > h1, .screen > .sheet:not(:has([data-export])) { display: none; }
}

/* MeuPet.me */
:root {
  --paper: #f3f6f0;
  --ink: #142c23;
  --muted: #496257;
  --line: #d9e4da;
  --blue: #215840;
  --blue-soft: #e2eee4;
  --forest: #12392e;
  --lime: #ddf4b0;
}
.bar-inner .brand { gap: 8px; color: var(--forest); font: 800 22px/1 Nunito, system-ui, sans-serif; letter-spacing: -.04em; }
.brand img { display: block; flex: none; }
.brand span { color: inherit; }
.brand b { color: #316a54; }
.home { margin-top: clamp(22px, 5vw, 60px); }
.hero { grid-template-columns: 1fr .95fr; background: var(--forest); border-radius: 24px; }
.hero-copy { color: #fff; }
.hero-copy h1 { font-size: clamp(2.75rem, 6vw, 5.3rem); }
.hero-copy p { color: #e2f0e8; max-width: 34ch; }
.hero-copy .button { background: var(--lime); color: var(--forest); }
.hero-visual { margin: 0; min-height: 430px; background: #c7dfb4; }
.pendant { width: clamp(155px, 24vw, 230px); border-radius: 35%; background: #215840; color: var(--lime); box-shadow: inset 0 1px 2px #ffffff72, inset 0 -5px 8px #12392e, 14px 24px 28px #12392e52; align-content: center; }
.pendant span { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 780; letter-spacing: -.04em; }
.pendant small { color: #e2f0e8; letter-spacing: .13em; }
.pendant i { background: var(--forest); }
.ring { border-color: #778e79; }
.hero-visual figcaption { position: absolute; bottom: 14px; right: 16px; color: #29493a; font-size: .82rem; }
.product-steps { padding: clamp(36px, 6vw, 72px) 0; }
.product-steps h2, .product-end h2 { font-size: clamp(1.65rem, 4vw, 2.7rem); }
.product-end { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #e2eee4; border-radius: 16px; padding: clamp(20px, 4vw, 38px); }
.product-end p { margin: 0; }
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 290px; }
  .product-end { align-items: flex-start; flex-direction: column; }
}

.steps, .panel-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.steps span, .panel-nav a { padding: 10px 12px; border-radius: 10px; background: var(--surface); color: var(--muted); }
.steps [aria-current], .panel-nav [aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.panel-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.panel-list { padding: 0; list-style: none; }
.panel-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.panel-list small { display: block; margin-top: 4px; }
.account-options { display: grid; gap: 10px; }
.account-back { margin-top: 20px; }
.bar-inner { flex-wrap: wrap; gap: 8px 16px; }

.reunion-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 26px 0 38px; }
.reunion-story figure { margin: 0; overflow: hidden; border-radius: 18px; background: var(--surface); }
.reunion-image { aspect-ratio: 3 / 4; background: #c7dfb4 url('/reencontro.webp') no-repeat; background-size: 200% 100%; }
.reunion-image.search-scene { background-position: left center; }
.reunion-image.reunion-scene { background-position: right center; }
.reunion-story figcaption { padding: clamp(18px, 3vw, 28px); }
.reunion-story h3, .setup-heading { margin: 0 0 8px; font-size: clamp(1.28rem, 2.4vw, 1.7rem); }
.reunion-story p { margin: 0; }
@media (max-width: 600px) {
  .reunion-story { grid-template-columns: 1fr; }
}

/* Painéis com hierarquia de títulos e listas agrupadas. */
.screen-heading { margin-bottom: 28px; }
.screen-heading h1, .screen-activate h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); }
.screen-heading p { margin-bottom: 0; }
.group-heading { margin-bottom: 8px; }
.screen-admin { max-width: 1000px; }
.screen-activate { max-width: 520px; }
.screen-admin .panel-nav { background: var(--blue-soft); border-radius: 14px; padding: 4px; gap: 4px; }
.screen-admin .panel-nav a { justify-content: center; flex: 1 1 auto; background: transparent; text-align: center; }
.screen-admin .panel-nav [aria-current] { background: var(--surface); box-shadow: 0 1px 3px #12392e22; }
.screen-activate .steps span { flex: 1; min-width: 0; padding: 10px 6px; text-align: center; font-size: .875rem; }
.screen-activate .account-options { gap: 0; border-radius: 12px; background: var(--paper); }
.account-options a { position: relative; display: grid; gap: 4px; padding: 14px 40px 14px 16px; text-decoration: none; }
.account-options a + a { border-top: 1px solid var(--line); }
.account-options a::after { content: ""; position: absolute; top: calc(50% - 4px); right: 18px; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.screen-dashboard details.sheet > summary { min-height: 44px; padding-block: 8px; }
.screen-dashboard summary span { padding: 2px 8px; background: var(--blue-soft); border-radius: 8px; font-size: .875rem; }
.screen-activate .pin { font-variant-numeric: tabular-nums; font-size: 1.625rem; letter-spacing: .45em; text-align: center; }
@media (min-width: 900px) {
  .screen-admin { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .screen-admin .screen-heading, .screen-admin > .notice { grid-column: 1 / -1; }
  .screen-admin .panel-nav { display: grid; }
  .screen-admin .panel-nav a { justify-content: flex-start; }
  .screen-admin .admin-content > :first-child { margin-top: 0; }
}
.reunion-image.scan-scene, .reunion-image.alert-scene { background-image: url('/leitura-aviso.webp'); }
.reunion-image.scan-scene { background-position: left center; }
.reunion-image.alert-scene { background-position: right center; }

.screen-admin { width: min(1200px, calc(100% - 36px)); }
.screen-admin .screen-heading h1 { font-size: 2rem; margin-bottom: 8px; }
.inventory-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.inventory-heading h2 { margin: 0 0 6px; }
.inventory-heading p, .inventory-list > p { margin-bottom: 0; }
.inventory-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 18px 0; }
.inventory-stats div { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; }
.inventory-stats dt { color: var(--muted); font-size: .875rem; }
.inventory-stats dd { font-weight: 750; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.inventory-search { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.inventory-search label { flex: 1 1 180px; }
.inventory-row { border-top: 1px solid var(--line); }
.inventory-row summary { min-height: 44px; padding: 12px 0; overflow-wrap: anywhere; }
.inventory-row summary span { font-size: .875rem; }
@media (min-width: 600px) { .inventory-fields { grid-template-columns: minmax(0,1fr) minmax(120px,.4fr); } }

.home .hero { grid-template-columns: minmax(0, 1fr); background: #142c23; }
.home .hero-visual, .home .hero-copy { grid-area: 1 / 1; }
.home .hero-visual { position: relative; min-height: 0; }
.home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #091411f5, #091411ce 42%, transparent 78%);
}
.home .hero-copy {
  z-index: 1;
  align-self: end;
  padding: clamp(20px, 4vw, 48px);
  color: white;
  pointer-events: none;
}
.home .hero-copy h1 { max-width: 12ch; font-size: clamp(2rem, 5vw, 4.5rem); }
.home .hero-copy p { color: #f3f6f0; font-size: clamp(1rem, 2vw, 1.2rem); margin: 14px 0 20px; }
.home .hero-copy .button { background: #543091; color: white; pointer-events: auto; }
.home .hero-copy .button:hover { background: #412273; }
.hero-pet { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 600px) {
  .home .hero-visual { min-height: 440px; }
  .home .hero-copy { padding: 20px; }
  .home .hero-visual::after {
    background: linear-gradient(0deg, #091411fa 10%, #091411df 42%, transparent 80%);
  }
}
.home .reunion-story figure:nth-child(1) { background: #ffecbf; }
.home .reunion-story figure:nth-child(2) { background: #e0edff; }
.home .reunion-story figure:nth-child(3) { background: #ffe2d8; }
.home .reunion-story figure:nth-child(4) { background: #def3e2; }
.home .product-end { background: #e8defa; }

/* Cores da marca nas áreas de operação. */
:is(.screen-dashboard, .screen-admin, .screen-activate) {
  --blue: #543091;
  --blue-soft: #efe6ff;
  --line: #ded6ea;
}
:is(.screen-dashboard, .screen-admin, .screen-activate) h1 {
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 800;
}
:is(.screen-dashboard, .screen-admin, .screen-activate) :focus-visible {
  outline-color: var(--blue);
}
.screen-dashboard .screen-heading {
  background: #def3e2;
  border-radius: 16px;
  padding: clamp(18px, 4vw, 30px);
}
.screen-admin .screen-heading {
  background: #efe6ff;
  border-radius: 16px;
  padding: clamp(18px, 4vw, 30px);
}
.screen-dashboard summary .pet-status-lost {
  background: #ffecbf;
  color: #713e15;
}
.screen-admin .inventory-stats > :nth-child(1) { background: #e0edff; }
.screen-admin .inventory-stats > :nth-child(2) { background: #def3e2; }
.screen-admin .inventory-stats > :nth-child(3) { background: #ffecbf; }
.screen-admin .inventory-stats dt { color: var(--ink); }
.screen-activate .steps span { border: 1px solid var(--line); }
.screen-activate .steps [aria-current] {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.screen-activate .account-options { background: var(--blue-soft); }
.screen-activate .pin { background: #faf6ff; }

.home-nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.home-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 8px;
  color: #543091;
  font-size: .875rem;
}
.home-nav a:hover { background: #efe6ff; }
.home [id] { scroll-margin-top: 20px; }
@media (max-width: 720px) {
  .home-nav { order: 1; width: 100%; border-top: 1px solid var(--line); padding-top: 4px; }
}

.setup-guide { margin: 0 0 36px; padding: clamp(20px, 4vw, 48px); border-radius: 24px; background: #efe6ff; }
.setup-guide h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 26px 0 0; }
.setup-steps li { display: flex; flex-direction: column; padding: clamp(16px, 2vw, 24px); border-radius: 16px; background: #fff; }
.setup-steps h3 { margin: 0 0 10px; font-size: 1.2rem; }
.setup-example { display: grid; gap: 6px; margin-top: auto; padding: 16px; border-radius: 12px; background: #ffecbf; }
.setup-steps li:nth-child(2) .setup-example { background: #def3e2; }
.setup-steps li:nth-child(3) .setup-example { background: #e0edff; }
.setup-pin { font: 700 1.25rem monospace; }
@media (max-width: 800px) {
  .setup-steps { grid-template-columns: 1fr; }
}

.setup-example { justify-items: center; padding: 12px; }
.setup-phone {
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(100%, 230px);
  min-height: 340px;
  padding: 20px 12px;
  border: 5px solid #20252b;
  border-radius: 24px;
  background: #faf8ff;
  font-size: .875rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.setup-phone > strong { font-size: 1.2rem; }
.setup-phone > small { text-align: center; }
.setup-phone-step, .setup-phone-action, .setup-field span {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
}
.setup-phone-step { background: #efe6ff; color: #543091; }
.setup-field span { margin-top: 4px; background: #fff; border: 1px solid #ded6ea; }
.setup-phone-action { background: #543091; color: white; text-align: center; font-weight: 700; }

.home-page {
  background: radial-gradient(ellipse at left 22%, #eee5fa, transparent 46%),
              radial-gradient(ellipse at right 58%, #e3f3e9, transparent 46%),
              #fff8ed;
}
.reunion-route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-left: 50px;
  counter-reset: reunion;
}
.reunion-route figure {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: center;
  counter-increment: reunion;
}
.reunion-route .reunion-image { border-radius: 18px; }
.reunion-route figure::before {
  content: counter(reunion);
  position: absolute;
  left: -48px;
  top: calc(50% - 15px);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #543091;
  color: white;
  font-weight: 750;
}
.reunion-road {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38px;
}
.reunion-road > svg { width: 100%; height: 100%; }
.reunion-road path#reunion-curve, .reunion-road-fill {
  fill: none;
  stroke-width: 7px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.reunion-road path#reunion-curve { stroke: #dfd2ef; }
.reunion-road-fill { stroke: #9471c3; }
.reunion-road-fill, .reunion-paws {
  clip-path: inset(0 0 calc((1 - var(--route-progress, 1)) * 100%) 0);
}
.reunion-paws { position: absolute; inset: 0; }
.reunion-paws svg {
  position: absolute;
  left: 3px;
  width: 14px;
  height: 14px;
  fill: #543091;
  transform: rotate(-24deg);
}
.reunion-paws svg:nth-child(even) { left: auto; right: 3px; transform: rotate(24deg); }
@media (max-width: 600px) {
  .reunion-route { padding-left: 36px; }
  .reunion-route figure { grid-template-columns: minmax(0, 1fr); }
  .reunion-route figure::before { left: -34px; width: 26px; height: 26px; }
  .reunion-road { width: 30px; }
}
