:root {
  --brand-blue: #0e3a76;
  --brand-pet: #ff236d;
  --brand-vet: #e3e3e3;
  --brand-cloud: #ffb000;
  --pvc-bg: #fafafa;
  --pvc-surface: #fff;
  --pvc-brand-blue: #0e3a76;
  --pvc-pink: #ff236d;
  --pvc-yellow: #ffb000;
  --pvc-text: #152033;
  --pvc-muted: #5f6673;
  --pvc-border: #e5e7eb;
  --text: #4f5d6b;
  --text-h: #14263b;
  --muted: #6f7c89;
  --bg: #fafafa;
  --card-bg: #fffffff5;
  --panel-bg: #fffffff0;
  --panel-elevated: #fff;
  --border: #e8e8e8;
  --accent: #6dc78f;
  --accent-strong: #2f6f4c;
  --accent-bg: #6dc78f24;
  --accent-border: #6dc78f33;
  --shadow: 0 20px 48px #0f172a0f;
  --shadow-soft: 0 8px 24px #0f172a0f;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafafa;
  font-weight: 400;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #d5dfeb;
    --text-h: #f8fbff;
    --muted: #9bb0c3;
    --bg: linear-gradient(180deg, #08101d 0%, #0b1727 52%, #10182a 100%);
    --card-bg: #09101df0;
    --panel-bg: #0c1626eb;
    --panel-elevated: #0f1b2efa;
    --border: #5f7a9547;
    --accent: #86d9a6;
    --accent-strong: #caf5d9;
    --accent-bg: #6dc78f24;
    --accent-border: #6dc78f33;
    --shadow: 0 24px 60px #0006;
    --shadow-soft: 0 12px 28px #00000038;
  }
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100svh;
  margin: 0;
}

body {
  background: var(--bg);
}

body,
button,
a,
input,
textarea,
select {
  font-family: var(--sans);
}

h1,
h2,
h3,
strong {
  color: var(--text-h);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 0;
}

a {
  color: inherit;
}

/* ── Layout frames ─────────────────────────────────────── */

.app-frame,
.landing-app-frame {
  min-height: 100svh;
}

.app-frame {
  background:
    radial-gradient(circle at 0 0, #ff236d0a, #0000 24%),
    radial-gradient(circle at 100% 0, #ffb0000d, #0000 22%),
    #fafafa;
  padding: 24px 20px;
}

.landing-app-frame {
  background:
    radial-gradient(circle at 0 0, #ff236d0a, #0000 24%),
    radial-gradient(circle at 100% 0, #ffb0000d, #0000 22%),
    #fafafa;
}

.landing-content-shell {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
  padding: 28px 0 96px;
}

/* ── Shell / card ──────────────────────────────────────── */

.mobile-shell {
  background: var(--card-bg);
  border: 1px solid var(--pvc-border);
  width: min(1180px, 100%);
  min-height: calc(100svh - 48px);
  box-shadow: var(--shadow);
  border-radius: 36px;
  flex-direction: column;
  margin: 0 auto;
  display: flex;
  overflow: hidden;
}

/* ── App header ────────────────────────────────────────── */

.app-header {
  border-bottom: 1px solid var(--pvc-border);
  background: linear-gradient(#fffffffa, #fafafaeb);
  padding: 28px 28px 18px;
}

.header-topline {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.header-supporting-text {
  color: var(--pvc-muted);
  margin-top: 8px;
  font-size: .95rem;
}

/* ── Badges / kickers / pills ──────────────────────────── */

.header-badge,
.landing-status,
.section-kicker,
.landing-kicker,
.plan-name {
  letter-spacing: .01em;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 700;
  display: inline-flex;
}

.header-badge,
.landing-status,
.section-kicker,
.plan-name {
  color: #5f6673;
  background: #ffffffeb;
  border: 1px solid #e8e8e8;
}

.section-kicker,
.plan-name {
  color: var(--brand-blue);
}

/* ── Brand logo ────────────────────────────────────────── */

.brand-logo {
  letter-spacing: .04em;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
}

.brand-logo-compact {
  font-size: 1.25rem;
}

.brand-logo-word {
  display: inline-block;
}

.brand-logo-pet   { color: var(--brand-pet); }
.brand-logo-cloud { color: var(--brand-cloud); }

.brand-logo-on-light .brand-logo-vet { color: #6f7280; }
.brand-logo-on-dark  .brand-logo-vet { color: var(--brand-vet); }

/* ── App content ───────────────────────────────────────── */

.app-content {
  background: 0 0;
  flex: 1;
  padding: 24px 28px 112px;
}

/* ── Grid utilities ────────────────────────────────────── */

.page-stack,
.profile-grid,
.timeline-list,
.pet-card-stack,
.info-stack,
.landing-page,
.benefit-grid,
.plans-grid,
.plan-feature-list,
.cta-grid,
.section-heading {
  gap: 16px;
  display: grid;
}

/* ── Landing page ──────────────────────────────────────── */

.landing-page {
  --text: var(--pvc-text);
  --muted: var(--pvc-muted);
  --border: var(--pvc-border);
  --panel-elevated: var(--pvc-surface);
  /* background: var(--pvc-bg); */
  color: var(--pvc-text);
  gap: 88px;
}

.landing-hero {
  padding: 20px 0 0;
}

.landing-topbar {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  display: flex;
}

.landing-access-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  display: flex;
}

/* ── Hero grid ─────────────────────────────────────────── */

.landing-hero-grid {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 36px;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 56px;
  padding: 56px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px #0f172a0d;
}

.landing-hero-grid::before {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #ff236d12, #0000 70%);
  border-radius: 999px;
  width: 260px;
  height: 260px;
  position: absolute;
  inset: auto auto -80px -60px;
}

.landing-hero-grid::after {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #ffb00017, #0000 72%);
  border-radius: 999px;
  width: 300px;
  height: 300px;
  position: absolute;
  inset: 38px 24px auto auto;
}

/* ── Landing copy ──────────────────────────────────────── */

.landing-copy {
  z-index: 1;
  gap: 20px;
  display: grid;
  position: relative;
}

.landing-kicker {
  width: fit-content;
  color: var(--brand-pet);
  background: #ff236d12;
  border: 1px solid #ff236d1a;
}

.landing-copy h1 {
  color: var(--pvc-brand-blue);
  max-width: 11ch;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.04;
}

.landing-lead {
  color: var(--pvc-text);
  max-width: 56ch;
  font-size: 1.16rem;
  line-height: 1.72;
}

.landing-supporting-text {
  color: var(--pvc-muted);
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── CTA buttons ───────────────────────────────────────── */

.cta-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 420px;
  margin-top: 12px;
}

.cta-button {
  text-align: center;
  border: 1px solid #0000;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
  display: inline-flex;
  font-size: 14px;
}

.cta-button-header {
  width: clamp(150px, 13vw, 170px);
  min-height: 56px;
  padding-inline: 18px;
  box-shadow: 0 10px 22px #0f172a1f;
}

.cta-button-hero-secondary {
  border-radius: 16px;
  min-height: 48px;
}

.cta-button:hover {
  transform: translateY(-1px);
}

.cta-button-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 20px #0e3a7624;
  width: auto;
}

.cta-button-primary:hover {
  background: #123f80;
}

.cta-button-professional {
  background: var(--brand-cloud);
  color: #1f2f45;
  box-shadow: 0 10px 20px #ffb0002e;
  width: auto;
}

.cta-button-professional:hover {
  background: #f3b52b;
}

.cta-button-secondary {
  color: var(--pvc-brand-blue);
  background: #fff;
  border-color: #0e3a7633;
}

.cta-button-secondary:hover {
  background: #0e3a760a;
}

.cta-button-secondary-professional {
  color: #6f5200;
  background: #fff9ec;
  border-color: #ffb00059;
}

/* ── Hero visual ───────────────────────────────────────── */

.hero-visual-wrap {
  z-index: 1;
  position: relative;
}

.hero-image {
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #ececec;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  background: linear-gradient(#ffffff03, #15203305);
  position: absolute;
  inset: 0;
}

.hero-image-main {
  background-image:
    linear-gradient(#ffffff03, #0e3a7608),
    url(https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?auto=format&fit=crop&w=1200&q=80);
  min-height: 580px;
  box-shadow: 0 18px 44px #11283f14;
}

.hero-image-vet {
  background-image:
    linear-gradient(#ffffff03, #0e3a760a),
    url(https://images.unsplash.com/photo-1583337130417-3346a1be7dee?auto=format&fit=crop&w=1200&q=80);
  min-height: 360px;
}

/* ── Landing sections ──────────────────────────────────── */

.landing-section {
  padding: 0;
}

.landing-section-benefits,
.landing-section-plans {
  background: 0 0;
}

.landing-section-alt {
  background: #f7f4ef;
  border: 1px solid #ece8df;
  border-radius: 36px;
  padding: 72px 64px;
}

/* ── Section heading ───────────────────────────────────── */

.section-heading {
  gap: 12px;
  margin-bottom: 32px;
}

.section-heading h2,
.plan-card-header h3 {
  color: var(--pvc-brand-blue);
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: 1.12;
}

.section-heading-center {
  text-align: center;
  justify-items: center;
}

.section-heading p,
.benefit-card p,
.plan-card p,
.section-card-header p,
.list-row p,
.info-block p,
.timeline-item p,
.action-card p,
.insight-row p,
.welcome-banner p,
.pet-card p,
.vet-spotlight p,
.profile-hero p {
  color: var(--pvc-muted);
}

.section-heading-center p {
  max-width: 44rem;
}

.section-heading-split {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: center;
  gap: 32px;
}

.section-visual-note {
  background: 0 0;
  border: 0;
  padding: 0;
}

/* ── Benefit grid ──────────────────────────────────────── */

.benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* ── Cards (shared base) ───────────────────────────────── */

.benefit-card,
.plan-card,
.section-card,
.welcome-banner,
.pet-card,
.vet-spotlight,
.profile-hero,
.timeline-item,
.info-block,
.insight-row,
.stat-card,
.action-card {
  background: var(--panel-elevated);
  border: 1px solid #e8e8e8;
  border-radius: 24px;
  box-shadow: 0 8px 24px #0f172a0f;
}

.benefit-card {
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 30px;
  display: grid;
}

.benefit-card h3 {
  color: var(--pvc-text);
  margin-bottom: 8px;
  font-size: 1.12rem;
}

/* ── Icons / avatars ───────────────────────────────────── */

.benefit-icon,
.action-icon,
.pet-avatar,
.vet-avatar,
.profile-avatar {
  width: 52px;
  height: 52px;
  color: var(--brand-blue);
  background: #f5f7fb;
  border-radius: 18px;
  flex-shrink: 0;
  place-items: center;
  font-size: 1.4rem;
  display: grid;
}

/* ── Plans grid ────────────────────────────────────────── */

.plans-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.plan-card {
  background: #fff;
  gap: 24px;
  padding: 36px;
  display: grid;
}

.plan-card-featured {
  background: #fff;
  border-color: #ffb0008c;
}

.plan-card-featured .plan-name {
  color: #7b5a00;
  background: #fff7e5;
  border-color: #ffb00047;
}

.plan-card-header {
  gap: 12px;
  display: grid;
}

.plan-feature-list {
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-feature-list li {
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.plan-feature-list li::before {
  content: "•";
  color: var(--brand-pet);
  font-weight: 900;
  position: absolute;
  left: 8px;
}

.plan-note {
  color: var(--pvc-muted);
  font-size: .95rem;
}

/* ── Section card ──────────────────────────────────────── */

.section-card {
  background: var(--pvc-surface);
  border-color: var(--pvc-border);
  padding: 28px;
}

.section-card-header {
  margin-bottom: 16px;
}

.section-card-header h2 {
  color: var(--pvc-brand-blue);
  margin-bottom: 8px;
  font-size: 1.45rem;
}

/* ── Welcome banner ────────────────────────────────────── */

.welcome-banner,
.pet-card,
.vet-spotlight,
.profile-hero,
.timeline-item,
.info-block,
.insight-row {
  background: var(--panel-elevated);
}

.welcome-banner {
  background: linear-gradient(135deg, #0e3a760a, #ffb00014);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
}

/* ── Stats / action grids ──────────────────────────────── */

.stats-grid,
.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.profile-grid,
.info-stack,
.pet-card-stack,
.timeline-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Stat card ─────────────────────────────────────────── */

.stat-card,
.action-card {
  padding: 20px;
}

.stat-card {
  text-align: center;
  gap: 4px;
  display: grid;
}

.stat-number {
  color: var(--pvc-brand-blue);
  font-size: 1.8rem;
  font-weight: 800;
}

.stat-label {
  color: var(--pvc-muted);
  font-size: .9rem;
}

/* ── Action / insight / info ───────────────────────────── */

.action-card,
.insight-row,
.info-block {
  gap: 8px;
  display: grid;
}

.insight-list {
  gap: 12px;
  display: grid;
}

.insight-row,
.info-block-soft,
.timeline-item-soft {
  padding: 15px;
}

/* ── Pet / vet / profile cards ─────────────────────────── */

.pet-card,
.vet-spotlight,
.profile-hero {
  align-items: center;
  gap: 14px;
  padding: 16px;
  display: flex;
}

.pet-card {
  justify-content: space-between;
}

.pet-card-main {
  align-items: center;
  gap: 14px;
  display: flex;
}

.pet-meta,
.timeline-date {
  color: var(--pvc-muted);
  font-size: .9rem;
}

/* ── Timeline ──────────────────────────────────────────── */

.timeline-item {
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px;
  display: grid;
}

/* ── Pills ─────────────────────────────────────────────── */

.pill {
  white-space: nowrap;
  color: var(--pvc-brand-blue);
  background: #0e3a7614;
  border-radius: 999px;
  align-self: flex-start;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 800;
}

.pill-soft    { color: #7b5a00; background: #ffb00029; }
.pill-success { color: #15803d; background: #22c55e24; }

/* ── Bottom nav ────────────────────────────────────────── */

.bottom-nav {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--pvc-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #fffffff5;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  display: grid;
  position: sticky;
  bottom: 0;
}

.bottom-link {
  color: var(--pvc-muted);
  border-radius: 18px;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  display: grid;
}

.bottom-link-icon   { font-size: 1.2rem; }
.bottom-link-active { color: var(--brand-blue); background: var(--accent-bg); }

/* ── Responsive: ≤ 920px ───────────────────────────────── */

@media (width <= 920px) {
  .landing-content-shell {
    width: min(100% - 24px, 960px);
    padding-top: 18px;
    padding-bottom: 56px;
  }

  .landing-page {
    gap: 56px;
  }

  .landing-hero-grid,
  .section-heading-split,
  .plans-grid,
  .benefit-grid,
  .action-grid,
  .profile-grid,
  .info-stack,
  .pet-card-stack,
  .timeline-list {
    grid-template-columns: 1fr;
  }

  .landing-hero       { padding-top: 12px; }
  .landing-topbar     { margin-bottom: 28px; }
  .landing-access-nav { justify-content: flex-start; width: 100%; }
  .cta-button-header  { width: 100%; }

  .landing-copy h1    { max-width: 12ch; }
  .landing-hero-grid  { padding: 36px; }
  .hero-image-main    { min-height: 420px; }

  .landing-section-alt { padding: 48px 32px; }
  .mobile-shell        { width: 100%; }
}

/* ── Responsive: ≤ 420px ───────────────────────────────── */

@media (width <= 420px) {
  .app-frame { padding: 0; }

  .mobile-shell {
    border-inline: none;
    border-radius: 0;
    max-width: none;
    min-height: 100svh;
  }

  .app-header   { padding: 20px 18px 14px; }
  .app-content  { padding: 16px 18px 104px; }

  .landing-content-shell {
    width: calc(100% - 20px);
    padding-bottom: 40px;
  }

  .landing-page { gap: 40px; }

  .landing-topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .landing-access-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    display: grid;
  }

  .landing-copy h1 {
    max-width: 11ch;
    font-size: 2.5rem;
  }

  .landing-lead,
  .landing-supporting-text {
    font-size: 1rem;
  }

  .landing-hero-grid,
  .benefit-card,
  .plan-card {
    padding: 24px;
  }

  .hero-image-main {
    border-radius: 24px;
    min-height: 320px;
  }

  .hero-image-vet { min-height: 260px; }

  .landing-section-alt {
    border-radius: 28px;
    padding: 32px 22px;
  }

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

  .pet-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Dark mode overrides (app + landing) ───────────────── */

@media (prefers-color-scheme: dark) {
  .app-frame,
  .landing-page {
    --text: var(--pvc-text);
    --muted: var(--pvc-muted);
    --border: var(--pvc-border);
    --panel-elevated: var(--pvc-surface);
    /* background: var(--pvc-bg); */
    color: var(--pvc-text);
  }

  .header-badge,
  .bottom-nav,
  .landing-status,
  .section-kicker,
  .plan-name,
  .landing-kicker {
    color: #5f6673;
    background: #ffffffeb;
    border-color: #e8e8e8;
  }

  .section-kicker,
  .plan-name {
    color: var(--pvc-brand-blue);
  }

  .landing-app-frame {
    background:
      radial-gradient(circle at 0 0, #ff236d0a, #0000 24%),
      radial-gradient(circle at 100% 0, #ffb0000d, #0000 22%),
      #fafafa;
  }

  .mobile-shell,
  .app-header,
  .bottom-nav,
  .landing-hero-grid,
  .cta-panel,
  .benefit-card,
  .plan-card,
  .section-card,
  .welcome-banner,
  .pet-card,
  .vet-spotlight,
  .profile-hero,
  .timeline-item,
  .info-block,
  .insight-row,
  .stat-card,
  .action-card {
    background: #fff;
    border-color: #e8e8e8;
    box-shadow: 0 8px 24px #0f172a0f;
  }

  .landing-section-alt {
    background: #f7f4ef;
    border-color: #ece8df;
  }

  .landing-copy h1,
  .section-heading h2,
  .plan-card-header h3,
  .section-card-header h2,
  .stat-number,
  .bottom-link-active,
  .pill,
  .benefit-card h3 {
    color: var(--pvc-brand-blue);
  }

  .landing-lead,
  .plan-card h3,
  .welcome-banner strong,
  .pet-card strong,
  .vet-spotlight strong,
  .profile-hero strong,
  .timeline-item strong,
  .info-block strong,
  .insight-row strong,
  .action-card strong {
    color: var(--pvc-text);
  }

  .landing-supporting-text,
  .section-heading p,
  .benefit-card p,
  .plan-card p,
  .plan-feature-list li,
  .plan-note,
  .section-card-header p,
  .stat-label,
  .pet-meta,
  .timeline-date,
  .welcome-banner p,
  .pet-card p,
  .vet-spotlight p,
  .profile-hero p,
  .timeline-item p,
  .info-block p,
  .insight-row p,
  .action-card p,
  .bottom-link {
    color: var(--pvc-muted);
  }

  .cta-button-secondary,
  .cta-button-secondary-professional {
    background: #fff;
  }

  .cta-button-secondary             { color: var(--pvc-brand-blue); }
  .cta-button-secondary-professional { color: #6f5200; }
  .cta-button-secondary:hover       { background: #0e3a760a; }

  .pill-success {
    color: #4ade80;
    background: #22c55e2e;
  }
}