@font-face {
  font-family: "Gilroy";
  src: url("/assets/demo/fonts/Gilroy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("/assets/demo/fonts/Gilroy-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("/assets/demo/fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ink: #10251c;
  --green: #08bd6f;
  --green-dark: #087f4b;
  --mint: #e8fbf1;
  --cream: #f8f5ee;
  --orange: #ffb43e;
  --border: rgba(16, 37, 28, 0.12);
  --shadow: 0 22px 70px rgba(17, 48, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.demo-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}

.top-bar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  display: grid;
  grid-template-columns: 120px minmax(180px, 420px) 120px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4vw;
  color: var(--ink);
  background: rgba(248, 245, 238, 0.76);
  border-bottom: 1px solid rgba(16, 37, 28, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
  transition: color 300ms ease, background 300ms ease, border-color 300ms ease;
}

.step-0 .top-bar,
.step-1 .top-bar,
.step-4 .top-bar {
  color: #fff;
  background: rgba(5, 22, 14, 0.32);
  border-color: rgba(255, 255, 255, 0.14);
}

.mini-brand-logo {
  width: 116px;
  height: auto;
  padding: 5px 7px;
  border-radius: 9px;
  background: white;
}

.demo-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.progress-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.65;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.progress-segment {
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.15;
  transition: opacity 420ms ease, transform 420ms ease, background 420ms ease;
}

.progress-segment.active {
  opacity: 1;
  background: var(--green);
  transform: scaleY(1.25);
}

.sound-toggle {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.sound-toggle:hover {
  opacity: 1;
  transform: scale(1.05);
}

.sound-toggle.on {
  border-color: var(--green);
  background: var(--green);
  color: white;
  opacity: 1;
}

.screen-stage,
.screen {
  min-height: 100svh;
}

.screen-stage {
  animation: screen-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen {
  position: relative;
  padding: 112px 6vw 50px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.eyebrow.light {
  color: #a9f3cc;
}

.screen h1 {
  margin: 14px 0 20px;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.screen p {
  font-size: 18px;
  line-height: 1.45;
}

.continue-button,
.desktop-continue,
.mobile-continue,
.protect-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 26px;
  border-radius: 18px;
  color: white;
  background: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(16, 37, 28, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.continue-button:hover,
.desktop-continue:hover,
.mobile-continue:hover,
.protect-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 37, 28, 0.24);
}

.continue-button:active,
.desktop-continue:active,
.mobile-continue:active,
.protect-button:active {
  transform: translateY(1px) scale(0.99);
}

/* NFC intro */
.intro-screen {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
  align-items: center;
  gap: 6vw;
  padding-inline: 10vw;
  color: white;
  background:
    radial-gradient(circle at 22% 72%, rgba(8, 189, 111, 0.36), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(255, 180, 62, 0.14), transparent 23%),
    linear-gradient(135deg, #071d13 0%, #0d3b29 58%, #062319 100%);
}

.intro-orbit {
  position: absolute;
  border: 1px solid rgba(183, 250, 215, 0.13);
  border-radius: 50%;
}

.orbit-one {
  width: 48vw;
  aspect-ratio: 1;
  left: -16vw;
  bottom: -32vw;
}

.orbit-two {
  width: 24vw;
  aspect-ratio: 1;
  right: 5vw;
  top: 12vh;
}

.tap-demo {
  position: relative;
  z-index: 2;
  height: min(65vh, 610px);
  display: grid;
  place-items: center;
}

.tap-phone {
  position: absolute;
  z-index: 3;
  top: 7%;
  left: 16%;
  width: clamp(145px, 16vw, 220px);
  aspect-ratio: 0.52;
  display: grid;
  place-items: center;
  border: 7px solid #0c100e;
  border-radius: 38px;
  color: var(--ink);
  background: linear-gradient(155deg, #fff 20%, #ddf7e9 100%);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(-14deg);
  animation: phone-tap 2.5s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}

.tap-phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(16, 37, 28, 0.08);
  border-radius: 27px;
}

.tap-phone-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 46%;
  height: 18px;
  border-radius: 999px;
  background: #0c100e;
  transform: translateX(-50%);
}

.tap-phone-logo {
  position: relative;
  z-index: 2;
  width: 80%;
  height: auto;
  padding: 6px;
  border-radius: 8px;
  background: white;
}

.tap-phone-wave {
  position: absolute;
  right: -42px;
  bottom: 28%;
  width: 52px;
  height: 52px;
  border: 3px solid var(--orange);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
  opacity: 0;
  animation: nfc-wave 2.5s ease-out infinite;
}

.tap-phone-wave.wave-two {
  width: 80px;
  height: 80px;
  right: -60px;
  bottom: 23%;
  animation-delay: 160ms;
}

.tap-tag {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 4%;
  width: min(38vw, 370px);
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.38));
  transform: rotate(12deg);
  animation: tag-glow 2.5s ease-in-out infinite;
}

.tap-spark {
  position: absolute;
  z-index: 5;
  color: #fff4c1;
  opacity: 0;
  animation: sparkle 2.5s ease-in-out infinite;
}

.spark-one {
  top: 37%;
  left: 60%;
  font-size: 42px;
}

.spark-two {
  top: 49%;
  left: 71%;
  font-size: 20px;
  animation-delay: 140ms;
}

.intro-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.intro-copy h1 {
  font-size: clamp(64px, 7vw, 112px);
}

.intro-copy p {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 26px);
}

.loading-line {
  width: min(360px, 100%);
  height: 5px;
  margin-top: 42px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.loading-line span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transform-origin: left;
  animation: loading 2.3s ease-out both;
}

/* Found */
.found-screen {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 120px 8vw 8vh;
  overflow: hidden;
  color: white;
  background: #163427;
}

.found-photo,
.found-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.found-photo {
  object-fit: cover;
  object-position: 55% 43%;
  animation: hero-zoom 12s ease-out both;
}

.found-scrim {
  background:
    linear-gradient(90deg, rgba(5, 22, 14, 0.9) 0%, rgba(5, 22, 14, 0.48) 42%, rgba(5, 22, 14, 0.05) 72%),
    linear-gradient(0deg, rgba(5, 22, 14, 0.46), transparent 52%);
}

.found-content {
  position: relative;
  z-index: 2;
  width: min(600px, 90vw);
  animation: rise-in 800ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.found-pill {
  width: max-content;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
}

.found-pill span {
  margin-right: 7px;
  color: var(--green);
}

.found-content h1 {
  margin-block: 22px 18px;
  font-size: clamp(70px, 9vw, 142px);
}

.found-content p {
  max-width: 510px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 25px);
}

.found-content strong {
  display: block;
  margin-bottom: 30px;
  color: #9ff0c6;
  font-size: 17px;
}

.light-button {
  color: var(--ink);
  background: white;
}

/* Phone shell */
.phone-wrap {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.phone-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.52;
}

.phone-shell {
  width: min(330px, 78vw);
  aspect-ratio: 0.495;
  position: relative;
  overflow: hidden;
  border: 8px solid #111715;
  border-radius: 48px;
  background: #f7f8f6;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.phone-screen {
  height: calc(100% - 39px);
  overflow: hidden;
}

.status-bar {
  position: relative;
  z-index: 10;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 17px 0;
  color: currentColor;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.dynamic-island {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 78px;
  height: 23px;
  border-radius: 99px;
  background: #0d0e0d;
  transform: translateX(-50%);
}

.charlie-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

/* Finder profile */
.profile-screen {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 7vw;
  padding-inline: 10vw;
  background:
    radial-gradient(circle at 78% 28%, rgba(8, 189, 111, 0.15), transparent 28%),
    var(--cream);
}

.profile-copy {
  align-self: center;
  max-width: 620px;
}

.profile-copy h1 {
  font-size: clamp(52px, 5.7vw, 90px);
}

.profile-copy p {
  max-width: 430px;
  color: rgba(16, 37, 28, 0.65);
}

.desktop-continue {
  margin-top: 16px;
}

.finder-phone {
  justify-self: center;
  transform: rotate(2deg);
  animation: phone-rise 800ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.finder-phone .phone-shell {
  width: min(345px, 82vw);
}

.finder-profile {
  min-height: 100%;
  padding: 8px 15px 20px;
  color: var(--ink);
  background: #f7f8f6;
}

.finder-photo {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 24px;
  background: #dfddd3;
}

.active-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(16, 37, 28, 0.16);
}

.active-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.finder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px 12px;
}

.finder-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 8px;
}

.finder-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.finder-heading p {
  margin: 5px 0 0;
  font-size: 12px;
  color: rgba(16, 37, 28, 0.58);
}

.verified-badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.action-button {
  width: 100%;
  min-height: 49px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 13px;
  border: 1px solid rgba(16, 37, 28, 0.11);
  border-radius: 15px;
  color: var(--ink);
  background: white;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 189, 111, 0.5);
}

.action-button:active {
  transform: scale(0.985);
}

.action-button.primary {
  border-color: var(--green-dark);
  color: white;
  background: var(--green-dark);
  box-shadow: 0 10px 22px rgba(8, 127, 75, 0.18);
}

.action-button.selected {
  border-color: rgba(8, 189, 111, 0.42);
  background: var(--mint);
  color: var(--green-dark);
}

.action-button small {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.58;
}

.button-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(8, 189, 111, 0.12);
  font-size: 14px;
}

.primary .button-icon {
  background: rgba(255, 255, 255, 0.15);
}

.text-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  color: rgba(16, 37, 28, 0.72);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.text-button .chevron {
  margin-left: auto;
  font-size: 17px;
}

.mini-map,
.emergency-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 360ms ease, opacity 280ms ease, margin 360ms ease;
}

.mini-map.visible {
  position: relative;
  max-height: 95px;
  height: 78px;
  margin: 0 0 8px;
  border: 1px solid rgba(8, 127, 75, 0.12);
  border-radius: 14px;
  background: #e8f3e9;
  opacity: 1;
}

.map-road {
  position: absolute;
  height: 9px;
  border: 3px solid white;
  border-inline: 0;
  background: #cbdacb;
  transform: rotate(-18deg);
}

.road-one {
  width: 130%;
  top: 20px;
  left: -10px;
}

.road-two {
  width: 100%;
  top: 46px;
  left: 50px;
  transform: rotate(22deg);
}

.map-pond {
  position: absolute;
  top: 8px;
  right: 13px;
  width: 54px;
  height: 30px;
  border-radius: 60% 35% 60% 40%;
  background: #a7d9e6;
}

.map-pin {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 44%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  color: white;
  background: var(--green);
  box-shadow: 0 6px 12px rgba(8, 127, 75, 0.3);
  transform: rotate(-45deg);
  animation: pin-drop 480ms cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

.map-pin span {
  font-size: 8px;
  transform: rotate(45deg);
}

.map-copy {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 7px;
  display: grid;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 12px rgba(16, 37, 28, 0.08);
}

.map-copy strong {
  font-size: 9px;
}

.map-copy span {
  font-size: 7px;
  color: rgba(16, 37, 28, 0.54);
}

.emergency-panel.visible {
  max-height: 74px;
  display: grid;
  gap: 3px;
  margin-top: 3px;
  padding: 10px;
  border-radius: 12px;
  background: #fff4db;
  opacity: 1;
}

.emergency-panel strong,
.emergency-panel span {
  font-size: 9px;
}

.emergency-panel span {
  color: rgba(16, 37, 28, 0.62);
}

.mobile-continue {
  display: none;
}

/* Mirrors PetDentify's live finder-page card. */
.finder-profile {
  padding: 13px 15px 18px;
  background: #f5f5f1;
}

.finder-tag-label {
  display: block;
  margin: 0 0 10px;
  color: #176f3a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.finder-photo {
  height: 215px;
  border-radius: 17px;
}

.finder-heading {
  display: block;
  padding: 17px 0 13px;
}

.finder-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.finder-heading p {
  margin: 7px 0 0;
  color: rgba(16, 37, 28, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.action-button.primary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 11px;
  padding: 0 16px;
  border-radius: 14px;
  color: white;
  background: #197c3f;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.safety-circle-card {
  padding: 13px;
  border: 1px solid #b9eacb;
  border-radius: 17px;
  background: #e7f9ed;
}

.safety-circle-card > strong {
  display: block;
  margin-bottom: 10px;
  color: #174f2b;
  font-size: 10px;
  line-height: 1.35;
}

.safety-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 14px rgba(16, 37, 28, 0.06);
}

.safety-contact > div {
  display: grid;
  gap: 2px;
}

.safety-contact b {
  font-size: 10px;
}

.safety-contact span {
  color: #637184;
  font-size: 9px;
  font-weight: 600;
}

.safety-contact button {
  min-width: 51px;
  min-height: 34px;
  border-radius: 999px;
  color: white;
  background: #197c3f;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.owner-information {
  margin: 13px 0 0 !important;
  color: rgba(16, 37, 28, 0.72);
  font-size: 8px !important;
  line-height: 1.35 !important;
}

/* Dialog & toast */
.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 22, 14, 0.58);
  backdrop-filter: blur(12px);
  animation: fade-in 220ms ease both;
}

.demo-dialog {
  width: min(470px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  background: white;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
  text-align: center;
  animation: dialog-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dialog-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 20px;
  color: white;
  background: var(--green-dark);
  font-size: 26px;
  transform: rotate(-6deg);
}

.demo-dialog h3 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.demo-dialog p {
  margin: 0 auto 24px;
  max-width: 350px;
  color: rgba(16, 37, 28, 0.62);
  font-size: 16px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(8, 189, 111, 0.3);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 44px rgba(16, 37, 28, 0.2);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 25px);
  transition: opacity 300ms ease, transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

/* Connection */
.connected-screen {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 4vw;
  padding-inline: 7vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 45%, rgba(8, 189, 111, 0.17), transparent 30%),
    #eef8f1;
}

.connection-copy {
  max-width: 540px;
}

.connection-copy h1 {
  font-size: clamp(55px, 6.3vw, 96px);
}

.connection-copy p {
  max-width: 430px;
  color: rgba(16, 37, 28, 0.66);
}

.connection-status {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--green-dark);
  background: white;
  box-shadow: 0 10px 30px rgba(16, 37, 28, 0.08);
  font-size: 12px;
  font-weight: 800;
  animation: delivered-in 600ms 1s both;
}

.connection-status span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

.connected-phones {
  position: relative;
  height: min(75vh, 680px);
}

.connected-phones .phone-shell {
  width: min(285px, 25vw);
}

.connection-finder,
.connection-owner {
  position: absolute;
  bottom: -10%;
}

.connection-finder {
  left: 0;
  transform: rotate(-6deg);
  animation: slide-left-phone 850ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.connection-owner {
  right: 0;
  z-index: 3;
  transform: rotate(6deg);
  animation: slide-right-phone 900ms 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.connection-beam {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 49%;
  width: 24%;
  display: flex;
  justify-content: space-between;
  color: var(--green);
  transform: translate(-50%, -50%);
}

.connection-beam::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.connection-beam span {
  position: relative;
  z-index: 1;
  animation: beam-dot 1.2s ease-in-out infinite;
}

.connection-beam span:nth-child(2) { animation-delay: 200ms; }
.connection-beam span:nth-child(3) { animation-delay: 400ms; }

.finder-profile.compact {
  padding: 10px 13px;
}

.finder-profile.compact .finder-photo {
  height: 200px;
}

.finder-profile.compact .finder-heading {
  padding-block: 20px;
}

.finder-profile.compact .finder-heading h2 {
  font-size: 36px;
}

.finder-profile.compact .action-button {
  min-height: 56px;
  font-size: 13px;
}

.owner-wallpaper {
  min-height: 100%;
  padding: 38px 12px 14px;
  color: white;
  background:
    linear-gradient(180deg, rgba(3, 15, 9, 0.06), rgba(3, 15, 9, 0.48)),
    url("/assets/demo/charlie.jpg") center 35% / cover;
}

.wallpaper-time {
  display: grid;
  margin-bottom: 34px;
  text-align: center;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.wallpaper-time span {
  order: -1;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
}

.owner-notification-card {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(145%);
  animation: notification-in 700ms 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.notification-topline {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notification-app-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.notification-topline div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-topline strong,
.notification-topline span {
  font-size: 9px;
}

.notification-topline span {
  color: rgba(16, 37, 28, 0.45);
}

.notification-dog-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 1px;
}

.notification-dog-row .charlie-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid white;
  border-radius: 18px;
  box-shadow: 0 6px 15px rgba(16, 37, 28, 0.12);
}

.notification-dog-row .eyebrow {
  font-size: 7px;
}

.notification-dog-row h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.location-card {
  display: grid;
  grid-template-columns: 28px 1fr 10px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 13px;
  background: rgba(8, 189, 111, 0.1);
}

.location-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--green-dark);
}

.location-card div:nth-child(2) {
  display: grid;
}

.location-card span,
.location-card strong {
  font-size: 8px;
}

.location-card span {
  color: rgba(16, 37, 28, 0.48);
}

.location-card strong {
  font-size: 11px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.2s ease-out infinite;
}

/* Calls */
.call-screen {
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 50% 52%, rgba(8, 189, 111, 0.24), transparent 25%),
    linear-gradient(145deg, #06160f, #102a20 55%, #071711);
}

.call-heading {
  position: relative;
  z-index: 3;
  text-align: center;
}

.call-heading h1 {
  margin-block: 10px 0;
  font-size: clamp(44px, 5.4vw, 82px);
}

.call-phones {
  position: relative;
  width: min(1000px, 90vw);
  height: calc(100svh - 230px);
  min-height: 470px;
  margin: 12px auto 0;
}

.call-phone {
  position: absolute;
  bottom: -22%;
}

.call-phone .phone-shell {
  width: min(310px, 29vw);
  color: white;
  background: #071610;
}

.finder-call-phone {
  left: 5%;
  transform: rotate(-7deg);
  animation: call-phone-left 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.owner-call-phone {
  right: 5%;
  transform: rotate(7deg);
  animation: call-phone-right 800ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.call-ui {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 68px 20px 28px;
  text-align: center;
}

.dark-call-ui {
  background: linear-gradient(180deg, #132d22, #06110c);
}

.call-ui .charlie-avatar {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.call-kicker {
  min-height: 17px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.call-ui h3 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.call-ui p {
  margin: 7px 0;
  font-size: 11px;
  opacity: 0.52;
}

.call-controls {
  display: flex;
  gap: 15px;
  margin-top: 50px;
}

.call-controls span,
.end-call,
.incoming-actions span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.end-call {
  margin-top: 35px;
  background: #f04f49;
  transform: rotate(135deg);
}

.owner-call-ui {
  color: var(--ink);
  background: linear-gradient(155deg, #f7fff9, #c8efda);
}

.incoming-orbit {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  border: 1px solid rgba(8, 127, 75, 0.14);
  border-radius: 50%;
  animation: incoming-pulse 1.3s ease-out infinite;
}

.incoming-orbit span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-dark);
  font-size: 24px;
}

.incoming-actions {
  display: flex;
  gap: 66px;
  margin-top: 85px;
}

.incoming-actions .decline {
  color: white;
  background: #f04f49;
  transform: rotate(135deg);
}

.incoming-actions .accept {
  color: white;
  background: var(--green);
}

.gratitude-bubble {
  position: absolute;
  z-index: 7;
  top: 30%;
  left: 50%;
  width: 210px;
  padding: 20px 24px;
  border-radius: 26px 26px 26px 6px;
  color: var(--ink);
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, 25px) scale(0.8) rotate(-3deg);
  transition: opacity 420ms ease, transform 600ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

.gratitude-bubble.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1) rotate(-3deg);
}

.gratitude-bubble span {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gratitude-bubble strong {
  font-size: 27px;
  line-height: 1;
}

.gratitude-bubble i {
  position: absolute;
  right: -12px;
  top: -15px;
  color: #f36d6d;
  font-size: 32px;
  font-style: normal;
  transform: rotate(12deg);
}

/* Reunion */
.reunion-screen {
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #dff4f8 0%, #f9f1d2 68%, #b8dfa5 68%);
}

.reunion-sun {
  position: absolute;
  top: 14%;
  right: 12%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffd76d;
  box-shadow: 0 0 0 22px rgba(255, 215, 109, 0.16), 0 0 0 46px rgba(255, 215, 109, 0.08);
}

.cloud {
  position: absolute;
  width: 130px;
  height: 33px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  animation: cloud-float 9s ease-in-out infinite alternate;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 24px;
  width: 58px;
  height: 58px;
}

.cloud::after {
  right: 18px;
  width: 44px;
  height: 44px;
}

.cloud-one {
  top: 23%;
  left: 8%;
}

.cloud-two {
  top: 36%;
  right: 22%;
  transform: scale(0.7);
  animation-delay: -3s;
}

.reunion-copy {
  position: relative;
  z-index: 4;
  text-align: center;
}

.reunion-copy h1 {
  font-size: clamp(62px, 8vw, 120px);
}

.reunion-scene {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 10%;
  width: min(900px, 90vw);
  height: 45vh;
  min-height: 320px;
  transform: translateX(-50%);
}

.home-shape {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: 270px;
  height: 220px;
  border-radius: 80px 80px 12px 12px;
  color: #d0694b;
  background: #f3c191;
  box-shadow: inset 0 -18px rgba(139, 83, 48, 0.08);
}

.home-shape::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -70px;
  width: 310px;
  height: 150px;
  background: #cf7454;
  clip-path: polygon(50% 0, 100% 80%, 86% 100%, 50% 43%, 14% 100%, 0 80%);
}

.home-shape::after {
  content: "";
  position: absolute;
  left: 102px;
  bottom: 0;
  width: 70px;
  height: 114px;
  border-radius: 40px 40px 0 0;
  background: #8c5541;
}

.home-shape span {
  display: none;
}

.running-charlie {
  position: absolute;
  z-index: 7;
  left: 2%;
  bottom: 0;
  animation: run-home 3.2s 180ms cubic-bezier(0.55, 0, 0.3, 1) both;
}

.running-charlie .charlie-avatar {
  width: 126px;
  height: 126px;
  border: 7px solid white;
  border-radius: 45% 55% 48% 52%;
  box-shadow: 0 18px 35px rgba(16, 37, 28, 0.22);
  animation: dog-bounce 400ms ease-in-out infinite alternate;
}

.running-charlie span {
  position: absolute;
  top: -25px;
  right: -18px;
  color: #ef6666;
  font-size: 32px;
  animation: heart-pop 800ms 2.3s both;
}

.sarah-figure {
  position: absolute;
  z-index: 5;
  right: 27%;
  bottom: 2%;
  width: 100px;
  height: 205px;
}

.sarah-head {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 30px;
  width: 49px;
  height: 58px;
  border: 6px solid #513b31;
  border-bottom-width: 2px;
  border-radius: 50% 50% 46% 46%;
  background: #dba07c;
}

.sarah-body {
  position: absolute;
  left: 19px;
  bottom: 0;
  width: 72px;
  height: 160px;
  border-radius: 38px 38px 12px 12px;
  background: #34a86c;
}

.sarah-arm {
  position: absolute;
  z-index: 4;
  top: 74px;
  width: 85px;
  height: 23px;
  border-radius: 999px;
  background: #34a86c;
  transform-origin: right center;
}

.sarah-arm.left {
  left: -49px;
  transform: rotate(-24deg);
  animation: arms-open-left 3.2s ease both;
}

.sarah-arm.right {
  right: -43px;
  transform-origin: left center;
  transform: rotate(24deg);
  animation: arms-open-right 3.2s ease both;
}

.hug-heart {
  position: absolute;
  z-index: 10;
  right: 31%;
  bottom: 31%;
  color: #ef6666;
  font-size: 52px;
  opacity: 0;
  animation: hug-heart 900ms 2.7s cubic-bezier(0.22, 1.5, 0.36, 1) both;
}

.reunion-ground {
  position: absolute;
  left: -5%;
  bottom: -13%;
  width: 110%;
  height: 28%;
  border-radius: 50% 50% 0 0;
  background: #8ac477;
}

/* Final */
.final-screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  column-gap: 7vw;
  padding: 110px 9vw 38px;
  background:
    radial-gradient(circle at 20% 65%, rgba(8, 189, 111, 0.17), transparent 24%),
    linear-gradient(135deg, #fffef9, #eff8f1);
}

.final-brand-logo {
  grid-column: 1 / -1;
  align-self: start;
  width: 170px;
  height: auto;
  padding: 7px;
  border-radius: 10px;
  background: white;
}

.final-heart {
  position: relative;
  width: min(430px, 34vw);
  aspect-ratio: 0.94;
  justify-self: center;
  overflow: hidden;
  border: 10px solid white;
  border-radius: 46% 54% 48% 52%;
  box-shadow: 0 30px 80px rgba(16, 37, 28, 0.18);
  transform: rotate(-4deg);
  animation: final-photo-in 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.final-heart span {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 5px solid white;
  border-radius: 50%;
  color: white;
  background: #f26767;
  font-size: 30px;
  box-shadow: 0 10px 30px rgba(91, 27, 27, 0.24);
}

.final-copy {
  align-self: end;
}

.final-copy h1 {
  font-size: clamp(62px, 7vw, 112px);
}

.final-copy h1 em {
  color: var(--green-dark);
  font-style: normal;
}

.stars {
  color: var(--orange);
  font-size: 19px;
  letter-spacing: 0.15em;
}

.final-copy p {
  margin: 12px 0 0;
  color: rgba(16, 37, 28, 0.68);
}

.benefits {
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 25px;
}

.benefits span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.benefits i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 10px;
  font-style: normal;
}

.final-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
}

.protect-button {
  min-width: 240px;
  background: var(--green-dark);
}

.restart-button {
  padding: 12px;
  color: rgba(16, 37, 28, 0.58);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.photo-credit {
  position: absolute;
  right: 18px;
  bottom: 10px;
  margin: 0;
  color: rgba(16, 37, 28, 0.32);
  font-size: 9px !important;
}

/* Animations */
@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-zoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.13); }
}

@keyframes phone-tap {
  0%, 15% { transform: translate(-70px, -40px) rotate(-18deg); }
  45%, 62% { transform: translate(18px, 34px) rotate(-8deg); }
  100% { transform: translate(-70px, -40px) rotate(-18deg); }
}

@keyframes nfc-wave {
  0%, 36% { opacity: 0; transform: rotate(45deg) scale(0.5); }
  48% { opacity: 0.9; }
  72%, 100% { opacity: 0; transform: rotate(45deg) scale(1.2); }
}

@keyframes tag-glow {
  0%, 28%, 100% { filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.38)); }
  48%, 65% { filter: drop-shadow(0 0 28px rgba(95, 255, 177, 0.65)); }
}

@keyframes sparkle {
  0%, 38%, 78%, 100% { opacity: 0; transform: scale(0.4) rotate(0); }
  51%, 64% { opacity: 1; transform: scale(1) rotate(28deg); }
}

@keyframes loading { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes phone-rise {
  from { opacity: 0; transform: translateY(90px) rotate(8deg); }
  to { opacity: 1; transform: translateY(0) rotate(2deg); }
}

@keyframes pin-drop {
  from { opacity: 0; transform: translateY(-20px) rotate(-45deg) scale(0.5); }
  to { opacity: 1; transform: rotate(-45deg) scale(1); }
}

@keyframes slide-left-phone {
  from { opacity: 0; transform: translateX(-120px) rotate(-14deg); }
  to { opacity: 1; transform: translateX(0) rotate(-6deg); }
}

@keyframes slide-right-phone {
  from { opacity: 0; transform: translateX(170px) rotate(15deg); }
  to { opacity: 1; transform: translateX(0) rotate(6deg); }
}

@keyframes delivered-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes notification-in {
  from { opacity: 0; transform: translateY(-40px) scale(0.93); }
  to { opacity: 1; transform: none; }
}

@keyframes beam-dot {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(8, 189, 111, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(8, 189, 111, 0); }
}

@keyframes call-phone-left {
  from { opacity: 0; transform: translate(-80px, 90px) rotate(-14deg); }
  to { opacity: 1; transform: rotate(-7deg); }
}

@keyframes call-phone-right {
  from { opacity: 0; transform: translate(80px, 90px) rotate(14deg); }
  to { opacity: 1; transform: rotate(7deg); }
}

@keyframes incoming-pulse {
  0% { box-shadow: 0 0 0 0 rgba(8, 189, 111, 0.3); }
  100% { box-shadow: 0 0 0 26px rgba(8, 189, 111, 0); }
}

@keyframes cloud-float { from { transform: translateX(-15px); } to { transform: translateX(30px); } }

@keyframes run-home {
  0% { left: 1%; transform: rotate(-4deg) scale(0.84); }
  68% { left: 58%; transform: rotate(4deg) scale(1); }
  100% { left: 61%; transform: rotate(-6deg) scale(0.92); }
}

@keyframes dog-bounce { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-14px) rotate(2deg); } }

@keyframes heart-pop {
  from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(12deg); }
}

@keyframes arms-open-left {
  0%, 60% { transform: rotate(-24deg); }
  100% { transform: rotate(12deg) translateX(20px); }
}

@keyframes arms-open-right {
  0%, 60% { transform: rotate(24deg); }
  100% { transform: rotate(-12deg) translateX(-20px); }
}

@keyframes hug-heart {
  from { opacity: 0; transform: translateY(18px) scale(0.4); }
  to { opacity: 1; transform: translateY(-12px) scale(1); }
}

@keyframes final-photo-in {
  from { opacity: 0; transform: translateX(-45px) rotate(-10deg) scale(0.9); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* Responsive */
@media (max-width: 980px) {
  .top-bar {
    grid-template-columns: 72px 1fr 44px;
    gap: 12px;
    padding-inline: 18px;
  }

  .progress-label {
    display: none;
  }

  .intro-screen {
    grid-template-columns: 1fr 1fr;
    padding-inline: 6vw;
  }

  .profile-screen {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3vw;
    padding-inline: 5vw;
  }

  .profile-copy h1 {
    font-size: clamp(46px, 6vw, 70px);
  }

  .connected-screen {
    grid-template-columns: 0.72fr 1.28fr;
    padding-inline: 4vw;
  }

  .connection-copy h1 {
    font-size: clamp(47px, 6vw, 68px);
  }

  .connected-phones .phone-shell {
    width: min(260px, 30vw);
  }

  .final-screen {
    column-gap: 4vw;
    padding-inline: 6vw;
  }

  .final-copy h1 {
    font-size: clamp(54px, 7vw, 78px);
  }
}

@media (max-width: 720px) {
  .demo-shell {
    overflow: hidden auto;
  }

  .top-bar {
    height: 64px;
  }

  .mini-brand-logo {
    width: 72px;
    padding: 4px;
  }

  .sound-toggle {
    width: 34px;
    height: 34px;
  }

  .screen {
    min-height: 100svh;
    padding: 92px 20px 30px;
  }

  .screen h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .intro-screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 80px 24px 40px;
  }

  .tap-demo {
    width: 100%;
    height: 47vh;
    min-height: 330px;
  }

  .tap-phone {
    left: 17%;
    width: 135px;
  }

  .tap-tag {
    right: 7%;
    width: min(52vw, 240px);
  }

  .intro-copy {
    padding-bottom: 2vh;
  }

  .intro-copy h1 {
    margin-block: 9px 10px;
    font-size: clamp(51px, 15vw, 74px);
  }

  .intro-copy p {
    font-size: 16px;
  }

  .loading-line {
    margin-top: 22px;
  }

  .found-screen {
    padding: 88px 22px 6vh;
  }

  .found-photo {
    object-position: 54% 44%;
  }

  .found-scrim {
    background: linear-gradient(0deg, rgba(5, 22, 14, 0.94) 0%, rgba(5, 22, 14, 0.5) 46%, rgba(5, 22, 14, 0.05) 72%);
  }

  .found-content h1 {
    font-size: clamp(75px, 23vw, 110px);
  }

  .found-content p {
    font-size: 17px;
  }

  .continue-button {
    width: 100%;
  }

  .profile-screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding: 86px 16px 28px;
  }

  .profile-copy {
    width: 100%;
    padding-inline: 5px;
  }

  .profile-copy h1 {
    margin-block: 7px 8px;
    font-size: 37px;
    line-height: 0.98;
  }

  .profile-copy p {
    margin: 0;
    font-size: 14px;
  }

  .desktop-continue {
    display: none;
  }

  .finder-phone {
    transform: rotate(0);
  }

  .finder-phone .phone-shell {
    width: min(335px, 88vw);
    max-height: 650px;
  }

  .mobile-continue {
    width: min(335px, 88vw);
    display: flex;
    flex: 0 0 auto;
    margin-top: 2px;
    background: var(--ink);
  }

  .connected-screen {
    display: flex;
    flex-direction: column;
    padding: 88px 18px 0;
  }

  .connection-copy {
    width: 100%;
  }

  .connection-copy h1 {
    margin-block: 7px 10px;
    font-size: 46px;
  }

  .connection-copy p {
    margin: 0;
    font-size: 14px;
  }

  .connection-status {
    margin-top: 13px;
  }

  .connected-phones {
    width: 100%;
    height: 56vh;
    min-height: 400px;
    margin-top: 7px;
  }

  .connected-phones .phone-shell {
    width: min(218px, 55vw);
  }

  .connection-finder {
    left: -12%;
  }

  .connection-owner {
    right: -10%;
  }

  .connection-beam {
    display: none;
  }

  .finder-profile.compact .finder-photo {
    height: 145px;
  }

  .finder-profile.compact .finder-heading {
    padding-block: 12px;
  }

  .finder-profile.compact .finder-heading h2 {
    font-size: 28px;
  }

  .owner-wallpaper {
    padding-top: 24px;
  }

  .wallpaper-time {
    margin-bottom: 14px;
    font-size: 36px;
  }

  .notification-dog-row {
    grid-template-columns: 46px 1fr;
  }

  .notification-dog-row .charlie-avatar {
    width: 46px;
    height: 46px;
  }

  .notification-dog-row h3 {
    font-size: 14px;
  }

  .call-screen {
    padding: 88px 10px 0;
  }

  .call-heading h1 {
    font-size: 42px;
  }

  .call-phones {
    width: 100%;
    height: calc(100svh - 175px);
    min-height: 560px;
    margin-top: 0;
  }

  .call-phone .phone-shell {
    width: min(230px, 56vw);
  }

  .finder-call-phone {
    left: -15%;
  }

  .owner-call-phone {
    right: -15%;
  }

  .call-ui {
    padding-top: 50px;
  }

  .call-ui .charlie-avatar {
    width: 74px;
    height: 74px;
  }

  .call-controls {
    margin-top: 32px;
    gap: 8px;
  }

  .call-controls span,
  .end-call,
  .incoming-actions span {
    width: 38px;
    height: 38px;
  }

  .incoming-actions {
    gap: 42px;
    margin-top: 60px;
  }

  .gratitude-bubble {
    top: 37%;
    width: 170px;
    padding: 17px;
  }

  .gratitude-bubble strong {
    font-size: 23px;
  }

  .reunion-screen {
    padding-top: 100px;
  }

  .reunion-copy h1 {
    margin-top: 8px;
    font-size: 58px;
  }

  .reunion-scene {
    bottom: 13%;
    height: 48vh;
  }

  .home-shape {
    right: -31%;
    transform: scale(0.8);
  }

  .sarah-figure {
    right: 12%;
    transform: scale(0.82);
    transform-origin: bottom;
  }

  .running-charlie .charlie-avatar {
    width: 92px;
    height: 92px;
  }

  .hug-heart {
    right: 19%;
  }

  @keyframes run-home {
    0% { left: -10%; transform: rotate(-4deg) scale(0.84); }
    68% { left: 56%; transform: rotate(4deg) scale(1); }
    100% { left: 60%; transform: rotate(-6deg) scale(0.92); }
  }

  .final-screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 84px 20px 34px;
    overflow: auto;
  }

  .final-brand-logo {
    width: 138px;
    align-self: center;
    margin-bottom: 16px;
  }

  .final-heart {
    width: min(61vw, 245px);
    aspect-ratio: 1;
    align-self: center;
    flex: 0 0 auto;
    border-width: 7px;
  }

  .final-heart span {
    right: 9px;
    bottom: 7px;
    width: 50px;
    height: 50px;
    border-width: 4px;
    font-size: 22px;
  }

  .final-copy {
    margin-top: 19px;
    text-align: center;
  }

  .final-copy h1 {
    margin-block: 8px 12px;
    font-size: 56px;
  }

  .final-copy p {
    font-size: 15px;
  }

  .benefits {
    width: min(360px, 100%);
    margin: 20px auto 0;
    padding: 15px;
    border-radius: 17px;
    background: white;
    box-shadow: 0 12px 32px rgba(16, 37, 28, 0.08);
  }

  .benefits span {
    font-size: 11px;
  }

  .final-actions {
    width: min(360px, 100%);
    flex-direction: column;
    gap: 5px;
    margin: 16px auto 0;
  }

  .protect-button {
    width: 100%;
  }

  .photo-credit {
    display: none;
  }
}

@media (max-height: 740px) and (min-width: 721px) {
  .top-bar { height: 62px; }
  .screen { padding-top: 82px; }
  .phone-shell { width: min(290px, 72vh); }
  .finder-phone .phone-shell { width: min(300px, 74vh); }
  .finder-photo { height: 132px; }
  .profile-copy h1 { font-size: 60px; }
  .connected-phones { height: 72vh; }
  .connected-phones .phone-shell { width: min(250px, 63vh); }
  .call-heading h1 { font-size: 58px; }
  .call-phones { height: calc(100vh - 180px); }
  .call-phone .phone-shell { width: min(270px, 67vh); }
  .final-heart { width: min(330px, 46vh); }
  .final-copy h1 { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
