/* ============================================================
   PetHub — marketing landing styles
   Brand: deep teal / warm amber / sand. Radius 16, pill CTAs.
   ============================================================ */

:root {
  --teal: #0E7C66;
  --teal-dark: #0A5D4D;
  --teal-tint: #D7F0E9;
  --amber: #F5A623;
  --amber-ink: #7A4D00;
  --sand: #FAF8F4;
  --ink: #1D2B27;
  --ink-soft: #47564F;
  --surface: #FFFFFF;
  --surface-2: #F2EEE6;
  --line: rgba(29, 43, 39, 0.12);
  --cta: var(--teal);
  --cta-hover: var(--teal-dark);
  --cta-text: #FFFFFF;
  --accent: var(--teal);
  --link: #0B6353;
  --shadow-soft: 0 6px 24px rgba(19, 46, 39, 0.08), 0 1px 3px rgba(19, 46, 39, 0.06);
  --shadow-lift: 0 14px 40px rgba(19, 46, 39, 0.14), 0 2px 6px rgba(19, 46, 39, 0.08);
  --radius: 16px;
  --paw-pad: var(--teal);
  --hero-blob: #F0E5CF;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #4FC3A1;
    --teal-dark: #3AA987;
    --teal-tint: #123A31;
    --amber: #F5A623;
    --amber-ink: #FFD489;
    --sand: #121614;
    --ink: #E8EFEB;
    --ink-soft: #A7B6AF;
    --surface: #1C221F;
    --surface-2: #232B27;
    --line: rgba(232, 239, 235, 0.14);
    --cta: #4FC3A1;
    --cta-hover: #6AD2B4;
    --cta-text: #0A1F19;
    --accent: #4FC3A1;
    --link: #6AD2B4;
    --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 14px 40px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
    --paw-pad: #4FC3A1;
    --hero-blob: #1E2A25;
  }
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--ink);
  color: var(--sand);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus-visible { top: 0.75rem; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease,
              transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--cta-hover); box-shadow: var(--shadow-lift); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-amber {
  background: var(--amber);
  color: #201400;
  box-shadow: var(--shadow-soft);
}
.btn-amber:hover { background: #FFB63E; box-shadow: var(--shadow-lift); }

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.925rem; }

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 34px; height: 34px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--teal-tint); }
.nav-links .btn { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 767.98px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.75rem 1rem; }
  .nav-links .btn { margin: 0.5rem 0 0; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
@media (prefers-color-scheme: dark) {
  .hero-copy .eyebrow { color: var(--teal); }
}

.hero-copy h1 .accent { color: var(--accent); }

.hero-copy .sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.hero-note svg { width: 18px; height: 18px; flex: none; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; max-width: 480px; margin-inline: auto; }

@media (max-width: 899.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 340px; }
}

/* ---------- Trust strip ---------- */

.trust { padding-block: 0 clamp(3rem, 6vw, 4.5rem); }

.trust-list {
  list-style: none;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.trust-list li { display: flex; align-items: center; gap: 0.85rem; }
.trust-badge-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-tint);
}
.trust-badge-icon svg { width: 26px; height: 26px; }
.trust-list strong { display: block; font-size: 0.98rem; line-height: 1.3; }
.trust-list span { font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 767.98px) {
  .trust-list { grid-template-columns: 1fr; }
}

/* ---------- Services grid ---------- */

.services { background: var(--surface-2); }

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--teal-tint);
  margin-bottom: 1rem;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { margin-bottom: 0.35rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.service-card .tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.18); /* fallback */
  background: color-mix(in srgb, var(--amber) 18%, transparent);
  color: var(--amber-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 991.98px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0; /* room for the floating step number */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.step-num {
  position: absolute;
  top: -1.1rem;
  left: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #201400;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
}

.step h3 { margin-top: 0.25rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* connecting arrow between steps on wide screens */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.4rem;
  width: 1.3rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px);
}
@media (max-width: 899.98px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step:not(:last-child)::after {
    top: auto; right: auto;
    bottom: -1.6rem; left: 2.5rem;
    width: 2px; height: 1.3rem;
    background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 9px);
  }
}

/* ---------- For providers ---------- */

.providers {
  background: var(--teal-dark);
  color: #F2FBF7;
}
@media (prefers-color-scheme: dark) {
  .providers { background: #10231E; }
}

.providers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.providers .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFC55C; /* lighter amber: >=4.5:1 on the deep teal panel */
  margin-bottom: 0.5rem;
}
.providers h2 { color: #FFFFFF; }
.providers .lede { color: rgba(242, 251, 247, 0.82); margin-bottom: 1.5rem; }

.provider-perks {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.provider-perks li { display: flex; gap: 0.8rem; align-items: flex-start; }
.provider-perks svg { flex: none; width: 24px; height: 24px; margin-top: 0.15rem; }
.provider-perks strong { display: block; color: #FFFFFF; }
.provider-perks span { font-size: 0.92rem; color: rgba(242, 251, 247, 0.75); }

.provider-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.provider-card svg { width: 100%; }

@media (max-width: 899.98px) {
  .providers-grid { grid-template-columns: 1fr; }
}

/* ---------- Waitlist form ---------- */

.waitlist-panel {
  max-width: 620px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lift);
}
.waitlist-panel .section-head { margin-bottom: 1.5rem; }

.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 575.98px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  appearance: none;
}
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.waitlist-form .btn { width: 100%; margin-top: 0.35rem; }
.form-privacy { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin: 0.9rem 0 0; }

.form-success { text-align: center; padding-block: 1rem; }
.form-success[hidden] { display: none; }
.form-success .success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-tint);
}
.form-success .success-icon svg { width: 40px; height: 40px; }
.form-success h3 { font-size: 1.5rem; }
.form-success .queue-number { color: var(--accent); }
.form-success p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { background: var(--surface-2); }

.faq-list { max-width: 760px; display: grid; gap: 0.85rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }

.faq-chevron {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 200ms ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-item .faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-soft);
}
.faq-item .faq-answer p { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #C9D6D0;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #0C100E; border-top: 1px solid var(--line); }
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 214, 208, 0.18);
  margin-bottom: 1.5rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; color: #FFFFFF; }
.footer-brand svg { width: 32px; height: 32px; }
.footer-brand + p { max-width: 26rem; font-size: 0.92rem; color: #9DAFA7; }

.footer-langs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-langs .lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 214, 208, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  color: #E4EDE9;
}
.footer-langs .lang[aria-disabled="true"] { opacity: 0.55; }
.footer-langs .lang .soon {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.footer-social { display: flex; gap: 0.6rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(201, 214, 208, 0.3);
  color: #E4EDE9;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}
.footer-social a:hover { border-color: var(--amber); color: var(--amber); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9DAFA7;
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */

/* Hidden state applies only when JS is running (html.js set by app.js),
   so content is never lost if scripts fail to load. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms cubic-bezier(0.22, 0.8, 0.35, 1),
              transform 600ms cubic-bezier(0.22, 0.8, 0.35, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Gentle idle float for hero paw accents */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.float { animation: float-y 5s ease-in-out infinite; }
.float.delay { animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Relocation lead section ---------- */
.relocation { background: var(--sand-deep, #F1EDE6); }
@media (prefers-color-scheme: dark) {
  .relocation { background: color-mix(in srgb, var(--surface) 60%, black); }
}
:root[data-theme="light"] .relocation { background: #F1EDE6; }

.reloc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 899.98px) { .reloc-grid { grid-template-columns: 1fr; } }

.reloc-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.reloc-points li { position: relative; padding-left: 1.75rem; color: var(--ink-soft); }
.reloc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
}

.reloc-form {
  display: grid;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lift);
}
.reloc-form .btn { width: 100%; }
.reloc-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin: 0; }
.form-status { margin: 0; font-weight: 700; text-align: center; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #C0392B; }
@media (prefers-color-scheme: dark) { .form-status.err { color: #FF8A7A; } }
