:root {
  /* Compatibility aliases keep the page layout readable while all visual
     values come from the same semantic contract as the app. */
  --paper: var(--theme-canvas);
  --cream: var(--theme-surface);
  --ink: var(--theme-text);
  --muted: var(--theme-text-muted);
  --clay: var(--theme-accent);
  --leaf: var(--theme-primary-strong);
  --navy: var(--theme-info);
  --line: var(--theme-border);
  --white: var(--theme-surface);
  --shadow: var(--shadow-raised);
  --soft-shadow: var(--shadow-surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--theme-accent);
  outline-offset: 3px;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

#care,
#places,
#alerts,
#early-access {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--wandar-lockup-background);
  color: var(--wandar-lockup-foreground);
}

.site-header::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--wandar-lockup-background);
}

.brand {
  display: grid;
  grid-template-columns: 52px auto;
  min-height: 40px;
  align-items: center;
  color: var(--wandar-lockup-foreground);
}

.brand-mark-slot {
  width: 52px;
  height: 40px;
  display: flex;
  align-items: center;
}

.brand-wordmark {
  color: var(--wandar-lockup-foreground);
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 34px;
  white-space: nowrap;
}

wandar-dog-logo,
.wandar-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: var(--wandar-lockup-background);
}

.wandar-logo--header {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-icon);
}

.wandar-logo--auth {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-modal);
}

.wandar-dog-mark {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--wandar-lockup-foreground);
  -webkit-mask: url("assets/wandar-dog-mark-mask.png") center / contain no-repeat;
  mask: url("assets/wandar-dog-mark-mask.png") center / contain no-repeat;
}

.wandar-logo--header .wandar-dog-mark {
  transform: scale(1.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-button);
  color: var(--wandar-lockup-foreground);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  background: color-mix(in srgb, var(--wandar-lockup-foreground) 12%, transparent);
  color: var(--wandar-lockup-foreground);
}

.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--wandar-lockup-foreground) 12%, transparent);
  color: var(--wandar-lockup-foreground);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  gap: 4px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-icon);
  background: var(--wandar-lockup-foreground);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--wandar-lockup-background);
}

.hero {
  min-height: min(540px, calc(100svh - 168px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 26px 0 30px;
}

.eyebrow {
  margin: 0;
  color: var(--theme-primary-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
.brand-wordmark {
  font-family: var(--font-title);
}

h1 {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.12;
  font-weight: 900;
}

.hero-text {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.button-primary {
  border-color: var(--theme-primary-strong);
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  box-shadow: var(--shadow-surface);
}

.button-primary:hover {
  opacity: 0.9;
}

.button-secondary {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-primary-strong);
}

.button-secondary:hover {
  background: var(--theme-surface-elevated);
}

.button:active {
  opacity: 0.78;
  transform: translateY(1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  border-color: var(--theme-border);
  background: var(--theme-surface-muted);
  color: var(--theme-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  width: min(500px, 100%);
  margin: 36px 0 0;
}

.hero-metrics div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-metrics dt {
  font-size: 20px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  width: min(260px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-surface);
  background: color-mix(in srgb, var(--theme-surface) 94%, transparent);
  box-shadow: var(--soft-shadow);
}

.hero-pill span {
  display: block;
  color: var(--theme-primary-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.hero-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--theme-surface) 94%, transparent);
  box-shadow: var(--soft-shadow);
}

.card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-icon);
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-card strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.hero-card > .hero-card-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: var(--radius-chip);
  background: var(--theme-surface-muted);
  color: var(--theme-primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.section {
  padding: 70px 0;
}

.value-section {
  display: block;
  padding-top: 46px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.45fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 20px;
}

.section-intro h2 {
  max-width: 620px;
  margin-top: 12px;
  font-size: 44px;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.55;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.value-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--theme-surface);
  box-shadow: var(--shadow-surface);
}

.icon-badge {
  width: 46px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-icon);
  background: var(--theme-warning-surface);
  color: var(--theme-warning);
  font-size: 12px;
  font-weight: 900;
}

.value-card .icon-badge {
  margin-bottom: auto;
}

.value-card p,
.story-copy p,
.cta-section p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.value-card p {
  margin: 14px 0 0;
}

.value-card .card-kicker {
  margin: 34px 0 8px;
  color: var(--theme-primary-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.value-card h3 + p {
  margin-top: 14px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: center;
}

.story-copy h2 {
  max-width: 560px;
  margin-top: 14px;
  font-size: 44px;
}

.story-copy > p:last-of-type {
  max-width: 560px;
  margin: 16px 0 0;
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.steps div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steps span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-icon);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.steps p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.story-images {
  position: relative;
  min-height: 440px;
}

.story-image-large,
.story-image-small {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.story-image-large {
  top: 0;
  right: 0;
  width: 74%;
  height: 390px;
  border: 1px solid var(--line);
}

.story-image-small {
  left: 0;
  bottom: 0;
  width: 52%;
  height: 220px;
  border: 8px solid var(--paper);
  background: var(--paper);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--ink);
}

.cta-section h2 {
  margin-top: 12px;
  color: var(--white);
}

.cta-section .eyebrow {
  color: var(--theme-accent);
}

.cta-section p:not(.eyebrow) {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form label {
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.signup-form input {
  min-width: 0;
  min-height: var(--control-height);
  padding: 0 14px;
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-input);
  background: var(--theme-surface-elevated);
  color: var(--theme-text);
  outline: none;
  font-weight: 700;
}

.signup-form input::placeholder {
  color: var(--theme-text-muted);
}

.signup-form input:focus {
  border-color: var(--theme-primary);
}

.signup-form input[aria-invalid="true"] {
  border-color: var(--theme-danger);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.signup-form.is-success .form-note {
  color: var(--theme-success-surface);
}

.page-hero,
.content-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: center;
  padding: 64px 0 44px;
}

.legal-hero {
  display: block;
  width: min(980px, calc(100% - 40px));
}

.page-hero h1 {
  max-width: 760px;
}

.page-lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}

.page-meta {
  margin: 22px 0 0;
  color: var(--theme-primary-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-visual {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.page-visual img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.content-section {
  padding: 56px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(360px, 0.75fr);
  gap: 54px;
  border-top: 1px solid var(--line);
}

.split-section h2 {
  max-width: 460px;
  margin-top: 12px;
  font-size: 42px;
}

.prose {
  display: grid;
  gap: 16px;
}

.prose p,
.policy-block p,
.policy-block li,
.feature-list p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.prose p,
.feature-list p,
.policy-block p {
  margin: 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-list article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--theme-surface);
  box-shadow: var(--shadow-surface);
}

.feature-list h2 {
  font-size: 27px;
}

.policy-section {
  width: min(980px, calc(100% - 40px));
  padding-top: 28px;
}

.policy-block {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.policy-block h2 {
  margin-bottom: 12px;
  font-size: 27px;
}

.policy-block p + p,
.policy-block p + ul {
  margin-top: 12px;
}

.policy-block ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.policy-block li + li {
  margin-top: 8px;
}

.policy-block a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-cta {
  margin-top: 20px;
}

.page-cta .button {
  justify-self: end;
}

.site-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .section,
  .site-footer,
  .page-hero,
  .content-section {
    width: min(100% - 32px, 720px);
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    z-index: 5;
    display: none;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--wandar-lockup-foreground) 18%, transparent);
    border-radius: var(--radius-surface);
    background: var(--wandar-lockup-background);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero,
  .story-section,
  .cta-section,
  .page-hero,
  .split-section,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
    gap: 30px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .section-intro,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    align-items: start;
    gap: 14px;
  }

  .section-intro h2 {
    font-size: 34px;
  }

  .value-card {
    min-height: 230px;
  }

  .story-copy h2 {
    font-size: 34px;
  }

  .page-hero {
    gap: 30px;
    padding: 38px 0 34px;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .page-lede {
    font-size: 17px;
  }

  .page-visual,
  .page-visual img {
    min-height: 300px;
  }

  .split-section {
    gap: 18px;
  }

  .split-section h2 {
    font-size: 34px;
  }

  .feature-list article {
    min-height: 220px;
  }

  .page-cta .button {
    justify-self: start;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 40px;
  }

  h2,
  .story-copy h2 {
    font-size: 30px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-visual,
  .page-visual img {
    min-height: 240px;
  }

  .content-section {
    padding: 44px 0;
  }

  .split-section h2,
  .feature-list h2,
  .policy-block h2 {
    font-size: 25px;
  }

  .hero-actions,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 28px;
  }

  .hero-metrics div {
    padding: 12px 8px 0;
  }

  .hero-metrics dt {
    font-size: 17px;
  }

  .hero-metrics dd {
    font-size: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-pill {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .hero-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: auto 1fr;
  }

  .hero-card > .hero-card-count {
    grid-column: 1 / -1;
  }

  .story-images {
    min-height: 360px;
  }

  .story-image-large {
    width: 78%;
    height: 300px;
  }

  .story-image-small {
    width: 58%;
    height: 180px;
  }

  .cta-section {
    padding: 20px;
  }

  .page-cta .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }
}

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