:root {
  color-scheme: light;
  --ink: #083f42;
  --muted: #667779;
  --teal: #075f62;
  --teal-bright: #0a7779;
  --mint: #e3f2f0;
  --cream: #fbfaf5;
  --paper: #ffffff;
  --coral: #ee5b48;
  --green: #288b5c;
  --line: rgba(8, 63, 66, 0.12);
  --shadow: 0 24px 64px rgba(8, 63, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(205, 233, 228, 0.72), transparent 34rem),
    linear-gradient(180deg, #fff 0%, var(--cream) 44%, #f5f3ec 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 245, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.72rem;
  color: var(--paper);
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(7, 95, 98, 0.22);
}

.brand-mark::before {
  content: "🐾";
  position: absolute;
  font-family: sans-serif;
  font-size: 1.12rem;
  filter: grayscale(1) brightness(0) invert(1);
}

.brand-mark {
  position: relative;
  font-size: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 1.6rem);
  font-size: 0.95rem;
  font-weight: 750;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"],
footer a:hover {
  color: var(--teal-bright);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.78fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding: clamp(3.5rem, 9vw, 7rem) 0 3rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.85rem;
  color: var(--teal-bright);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.1rem, 8vw, 6.55rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.lede {
  max-width: 670px;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 15px 30px rgba(7, 95, 98, 0.24);
}

.primary:hover {
  background: var(--teal-bright);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.passport-preview {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.passport-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
}

.pet-photo {
  display: grid;
  width: 6.6rem;
  height: 6.6rem;
  place-items: center;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 35% 28%, #f1d5aa 0 13%, transparent 14%),
    linear-gradient(145deg, #d9b57b, #f6e9d5);
  font-size: 2.55rem;
}

.passport-top div,
.status-row div {
  display: grid;
  gap: 0.27rem;
}

.passport-top strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.passport-top span:last-child,
.status-row span:last-child {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.35;
}

.preview-label {
  color: var(--teal-bright);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.5rem;
  border-block: 1px solid var(--line);
  background: rgba(227, 242, 240, 0.6);
}

.status-dot {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-weight: 900;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.preview-grid div {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem 1.5rem;
  background: var(--paper);
}

.preview-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 5rem;
}

.panel {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(8, 63, 66, 0.06);
}

.panel > p,
.panel > div > p {
  max-width: 850px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.66;
}

.intro-panel {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-item,
.support-list > div {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: rgba(227, 242, 240, 0.32);
}

.feature-icon {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.9rem;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.feature-item h3,
.support-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.feature-item p,
.support-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1.5rem;
}

.support-list {
  display: grid;
  gap: 0.8rem;
}

.contact {
  font-weight: 800;
}

.contact a,
.legal-card a {
  color: var(--teal-bright);
  font-weight: 800;
}

.small {
  font-size: 0.93rem !important;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 1.5rem;
}

.legal-hero h1 {
  font-size: clamp(3.1rem, 8vw, 6rem);
}

.legal-card {
  max-width: 880px;
  margin: 0 0 5rem;
  padding: clamp(1.5rem, 4vw, 2.7rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(8, 63, 66, 0.07);
}

.legal-card h2 {
  margin-top: 2.1rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.legal-card p,
.legal-card ul {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.legal-card ul {
  padding-left: 1.4rem;
}

.legal-card li {
  margin: 0.35rem 0;
}

.effective-date {
  color: var(--teal-bright) !important;
  font-weight: 800;
}

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--teal);
  border-radius: 0.9rem;
  color: var(--ink);
  background: rgba(227, 242, 240, 0.72);
  font-weight: 750;
  line-height: 1.55;
}

.email-fallback {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(39rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 700;
}

.email-fallback[hidden] {
  display: none;
}

.email-fallback button {
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--teal);
  font: inherit;
  cursor: pointer;
}

.email-fallback .email-fallback-close {
  min-width: 2.5rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.4rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.3rem;
  padding: 2rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 850px) {
  .hero,
  .support-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .passport-preview {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.85rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .passport-top {
    grid-template-columns: 1fr;
  }

  .email-fallback {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.emergency-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(205, 233, 228, 0.9), transparent 24rem),
    var(--cream);
}

.emergency-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0;
}

.shared-badge {
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  color: var(--green);
  background: rgba(40, 139, 92, 0.1);
  font-size: 0.8rem;
  font-weight: 800;
}

.emergency-shell {
  width: min(720px, calc(100% - 2rem));
  padding: 0.4rem 0 3rem;
}

.emergency-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 1.4rem;
}

.pet-avatar {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 1.45rem;
  background: var(--teal);
  box-shadow: 0 14px 28px rgba(7, 95, 98, 0.2);
  font-size: 2rem;
  filter: grayscale(1);
}

.emergency-identity h1,
.emergency-error h1 {
  font-size: clamp(2.5rem, 10vw, 4.3rem);
}

.emergency-summary {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.readiness-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(40, 139, 92, 0.16);
  border-radius: 1.2rem;
  background: rgba(232, 246, 235, 0.82);
}

.readiness-callout div {
  display: grid;
  gap: 0.18rem;
}

.readiness-callout span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.readiness-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.emergency-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.emergency-button {
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--teal);
  border-radius: 1rem;
  color: var(--teal);
  background: white;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.emergency-button.primary-call {
  color: white;
  background: var(--teal);
}

.emergency-card {
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(8, 63, 66, 0.07);
}

.emergency-card h2 {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.detail-list {
  margin: 0;
}

.detail-list div,
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list div:last-child,
.contact-row:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.critical-card {
  border-color: rgba(238, 91, 72, 0.17);
}

.critical-sections {
  display: grid;
  gap: 0;
}

.critical-sections > div {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.critical-sections > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.critical-sections h3 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.critical-sections ul {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.critical-sections li {
  line-height: 1.4;
}

.critical-sections div:first-child li:not(.empty-value) {
  color: var(--coral);
  font-weight: 800;
}

.empty-value {
  color: var(--muted);
}

.contact-row div {
  display: grid;
  gap: 0.2rem;
}

.contact-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-row a {
  color: var(--teal-bright);
  font-weight: 800;
  text-decoration: none;
  text-align: right;
}

.shared-time {
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.emergency-disclaimer {
  padding: 1rem;
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(8, 63, 66, 0.05);
  font-size: 0.82rem;
  line-height: 1.5;
}

.emergency-error {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 5rem 1.2rem;
  text-align: center;
}

.emergency-error p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.emergency-error[hidden],
#passport-content[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .emergency-actions {
    grid-template-columns: 1fr;
  }

  .emergency-header {
    padding-top: 0.85rem;
  }

  .emergency-identity {
    padding-top: 0.65rem;
  }

  .pet-avatar {
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 1.2rem;
  }

  .emergency-identity h1 {
    font-size: 2.55rem;
  }
}
