:root {
  --blue: #6ca3fe;
  --primary: #1f2a44;
  --secondary: #2f5fb8;
  --accent: #ffd54f;
  --surface: #ffffff;
  --ink: #1f2a44;
  --subtext: #4b5c74;
  --border: #e2e6ef;
  --shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --radius-lg: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  background: var(--blue);
  color: white;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(16px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
  gap: 20px;
}

.content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-bottom: 90px;
}

.topbar {
  display: flex;
  justify-content: flex-start;
}

.back-btn {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 700;
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-icon {
  font-size: 18px;
  line-height: 1;
}

.app-nav-bottom {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  border: 1px solid #e2e6ef;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
  max-width: 520px;
  width: min(92vw, 520px);
  z-index: 20;
}

.app-nav-bottom a,
.app-nav-bottom button {
  background: transparent;
  border: none;
  color: #5b6b85;
  font-size: 11px;
  padding: 6px 4px;
  text-decoration: none;
  text-align: center;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 58px;
  position: relative;
}

.app-nav-bottom .active {
  color: #000000;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa3b2;
}

.nav-icon .material-icons {
  font-size: 20px;
  line-height: 1;
}

.app-nav-bottom .active .nav-icon {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e54646;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: none;
}

.nav-badge.show {
  display: inline-block;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  width: min(92vw, 660px);
}

.logo-link {
  display: inline-flex;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.hero-image {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  height: clamp(220px, 38vw, 420px);
}

.hero-copy h1 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-copy p {
  margin: 0 0 18px;
  color: rgba(31, 42, 68, 0.72);
  font-size: 15px;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  justify-items: center;
}

.hero-copy {
  text-align: center;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-light {
  align-self: flex-start;
  background: white;
  color: var(--primary);
  border-radius: 20px;
  padding: 10px 16px;
  width: auto;
  margin-top: 12px;
}

.block h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1.2px solid var(--border);
  box-shadow: var(--shadow);
}

.list-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.list-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--subtext);
  font-weight: 600;
}

.how-it-works-card {
  width: 100%;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.07);
  display: grid;
  gap: 12px;
}

.how-it-works-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
}

.how-it-works-copy {
  display: grid;
  gap: 2px;
}

.how-it-works-icon {
  font-family: "Material Icons Round";
  font-size: 18px;
  line-height: 18px;
  color: #000000;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.how-it-works-title {
  margin: 0;
  color: #000000;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.how-it-works-body {
  margin: 0;
  color: var(--subtext);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  color: black;
  font-weight: 700;
}

.locale-card {
  padding: 10px;
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.locale-card img {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
}

.locale-text {
  font-weight: 700;
  color: var(--primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  border-radius: 20px;
  padding: 8px 14px;
  border: 1.2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 13px;
  color: white;
  cursor: pointer;
}

.chip.active {
  background: white;
  color: var(--secondary);
  border-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.care-grid {
  display: grid;
  gap: 12px;
}

.care-card {
  padding: 10px;
  display: grid;
  gap: 12px;
  display: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.care-card.active {
  display: grid;
}
.care-card img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.care-info h3 {
  margin: 0 0 6px;
  color: #152645;
  font-weight: 700;
  font-size: 16px;
}

.care-info p {
  margin: 0 0 6px;
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.4;
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtext);
  font-weight: 600;
  font-size: 12px;
}

.feature-grid {
  display: grid;
  gap: 12px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
}

.feature-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.feature-copy {
  padding: 12px;
  color: var(--ink);
}

.feature-copy h3 {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--primary);
}

.feature-copy p {
  margin: 0;
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.4;
}

.faq-card {
  padding: 18px;
  display: grid;
  gap: 12px;
  background: #ffffff;
  border-radius: 18px;
}

.faq-title {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.faq-card details {
  position: relative;
  border: 1px solid rgba(226, 230, 239, 0.7);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.faq-card details::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: transparent;
  transition: width 0.2s ease, background 0.2s ease;
}

.faq-card details[open] {
  border-color: rgba(108, 163, 254, 0.6);
  box-shadow: none;
  transform: none;
}

.faq-card details:hover {
  border-color: rgba(47, 95, 184, 0.8);
  background: rgba(108, 163, 254, 0.12);
  box-shadow: 0 8px 16px rgba(31, 42, 68, 0.12);
  transform: translateY(-1px);
}

.faq-card details:focus-within {
  outline: 2px solid rgba(108, 163, 254, 0.5);
  outline-offset: 2px;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 4px;
}

.faq-card summary:hover {
  color: #0f1d36;
}

.faq-card summary:hover::after {
  transform: rotate(-90deg);
}

.faq-card details:hover summary {
  background: rgba(108, 163, 254, 0.2);
  border-radius: 10px;
  padding: 6px 8px;
  margin: -6px -8px;
}

.faq-card details:hover summary span,
.faq-card details:hover summary {
  text-decoration: underline;
  text-decoration-color: rgba(47, 95, 184, 0.65);
  text-underline-offset: 3px;
}

.faq-card details:hover::before {
  width: 3px;
  background: rgba(47, 95, 184, 0.7);
}

.faq-card details:focus-within {
  border-color: rgba(47, 95, 184, 0.95);
  background: rgba(108, 163, 254, 0.12);
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  color: var(--secondary);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-card details[open] summary::after {
  transform: rotate(-90deg);
}

.faq-card details p {
  margin: 10px 0 0;
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.45;
}

.link-grid {
  display: grid;
  gap: 12px;
}

.link-card {
  background: white;
  color: #152645;
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius);
  border: 1.2px solid rgba(226, 230, 239, 0.6);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0 20px;
}

.page-header {
  color: white;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

.page-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  border: 1.2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.page-section {
  margin-bottom: 16px;
}

.page-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.page-text {
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.5;
}

/* White text when the paragraph sits on the blue page background */
.content > .page-text {
  color: rgba(255, 255, 255, 0.9);
}

.page-bullets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-bullets li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.4;
}

.page-bullets li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.25);
  margin-top: 6px;
}

.about-page .page-bullets li::before,
.benefits-page .page-bullets li::before {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 42, 68, 0.2);
}

.page-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
  border: 0;
}

.faq-page {
  background: var(--blue);
}

.faq-page .screen {
  gap: 16px;
}

.faq-page .page-header {
  text-align: center;
  font-size: 26px;
  text-shadow: 0 12px 24px rgba(20, 30, 60, 0.25);
}

.faq-page .page-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  margin-top: -6px;
}

/* Ensure intro text on blue background is white */
.about-page .content > .page-text,
.benefits-page .content > .page-text,
.how-it-works-page .content > .page-text {
  color: rgba(255, 255, 255, 0.9);
}

.faq-page .page-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.faq-page .page-divider {
  display: none;
}

.faq-page .page-section {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 230, 239, 0.7);
  box-shadow: 0 8px 16px rgba(31, 42, 68, 0.08);
}

.faq-page .page-section:last-child {
  margin-bottom: 0;
}

.faq-page .page-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(108, 163, 254, 0.18);
}

.faq-page details {
  border: 1px solid rgba(226, 230, 239, 0.8);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfcff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease, background 0.2s ease;
}

.faq-page details + details {
  margin-top: 10px;
}

.faq-page details[open] {
  border-color: rgba(108, 163, 254, 0.6);
  background: #f5f8ff;
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.12);
}

.faq-page details:hover {
  border-color: rgba(47, 95, 184, 0.65);
  transform: translateY(-1px);
}

.faq-page details:focus-within {
  outline: 2px solid rgba(108, 163, 254, 0.45);
  outline-offset: 2px;
}

.faq-page summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-page summary::-webkit-details-marker {
  display: none;
}

.faq-page summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: var(--secondary);
  transition: transform 0.2s ease;
}

.faq-page details[open] summary::after {
  content: "-";
}

.faq-page details p {
  margin: 10px 0 0;
  color: var(--subtext);
  font-size: 13.5px;
  line-height: 1.55;
}

.how-it-works-page .page-card,
.about-page .page-card,
.benefits-page .page-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

.how-it-works-page .info-block,
.about-page .info-block,
.benefits-page .info-block {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(226, 230, 239, 0.8);
  box-shadow: 0 8px 16px rgba(31, 42, 68, 0.06);
}

.how-it-works-page .info-block h3,
.about-page .info-block h3,
.benefits-page .info-block h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(108, 163, 254, 0.15);
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 10px;
}

.how-it-works-page .page-divider,
.about-page .page-divider,
.benefits-page .page-divider {
  background: transparent;
  height: 16px;
  margin: 0;
}

.how-it-works-page .section-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin: 4px 0 10px;
}

.how-it-works-page .page-text strong,
.about-page .page-text strong,
.benefits-page .page-text strong {
  color: var(--primary);
}

.how-it-works-page .page-bullets,
.about-page .page-bullets,
.benefits-page .page-bullets {
  gap: 10px;
}

.how-it-works-page .page-bullets li,
.about-page .page-bullets li,
.benefits-page .page-bullets li {
  background: rgba(108, 163, 254, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  grid-template-columns: 12px 1fr;
  border: 1px solid rgba(108, 163, 254, 0.18);
}

.how-it-works-page .page-bullets li::before {
  content: "pets";
  width: 18px;
  height: 18px;
  font-family: "Material Icons";
  font-size: 18px;
  line-height: 18px;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  margin-top: 1px;
}

.about-page .page-bullets li::before,
.benefits-page .page-bullets li::before {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 42, 68, 0.18);
}

.about-page .page-card {
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.about-page .info-block {
  box-shadow: none;
  border: 1px solid rgba(226, 230, 239, 0.7);
  padding: 12px 14px;
}

.about-page .info-block h3 {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 17px;
}

.about-page .page-bullets li {
  background: transparent;
  border: none;
  padding: 0;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.about-page .page-bullets li::before {
  content: "pets";
  width: 18px;
  height: 18px;
  font-family: "Material Icons";
  font-size: 18px;
  line-height: 18px;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  margin-top: 1px;
}

.how-it-works-page .page-card {
  padding: 18px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 230, 239, 0.8);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.how-it-works-page .info-block {
  margin-bottom: 0;
}

.how-it-works-page .info-block h3 {
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.how-it-works-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-it-works-stack .page-card + .page-card {
  margin-top: 16px;
}

.how-it-works-stack .section-line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin: 16px 0;
}

.how-it-works-page .page-bullets li {
  background: transparent;
  border: none;
  padding: 0;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.how-it-works-page .page-bullets-numbered {
  counter-reset: tip-step;
}

.how-it-works-page .page-bullets-numbered li {
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.how-it-works-page .page-bullets-numbered li::before {
  counter-increment: tip-step;
  content: counter(tip-step) ".";
  width: auto;
  height: auto;
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-top: 0;
}

.benefits-page .page-card {
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.benefits-page .info-block {
  box-shadow: none;
  border: 1px solid rgba(226, 230, 239, 0.7);
  padding: 12px 14px;
}

.benefits-page .info-block h3 {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 17px;
}

.benefits-page .page-bullets li {
  background: transparent;
  border: none;
  padding: 0;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.benefits-page .page-bullets li::before {
  content: "pets";
  width: 18px;
  height: 18px;
  font-family: "Material Icons";
  font-size: 18px;
  line-height: 18px;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  margin-top: 1px;
}

.benefits-cta {
  margin-top: 4px;
}

.benefits-cta .page-text {
  margin: 8px 0 14px;
}

.doc-callout {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 230, 239, 0.8);
  background: rgba(108, 163, 254, 0.08);
}

.dock {
  margin-top: auto;
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  background: rgba(16, 24, 38, 0.3);
  border-radius: 18px;
  padding: 10px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.dock-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 12px;
  padding: 8px 6px;
}

.dock-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

@media (min-width: 720px) {
  .hero-actions {
    max-width: 320px;
    margin: 0 auto;
  }

  .locale-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .locale-card img {
    height: 140px;
  }

  .care-card {
    grid-template-columns: 1fr 180px;
    align-items: center;
  }

  .care-card img {
    height: 200px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
