:root {
  --ink: #17211d;
  --muted: #66736f;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #d9ded7;
  --brand: #e96f48;
  --brand-dark: #a94328;
  --green: #426f55;
  --gold: #e8b75d;
  --shadow: 0 20px 50px rgba(23, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 33, 29, 0.12);
  background: rgba(251, 250, 245, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell,
.hero,
.safety-strip,
.browse-section,
.detail-section,
.list-section,
.legal-section,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}

.brand {
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(233, 111, 72, 0.24);
  transform: translateY(-1px);
}

.button-secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid rgba(169, 67, 40, 0.25);
}

.button-muted {
  background: #e8eee7;
  color: var(--ink);
}

.button-danger {
  background: #8f2d2d;
  color: #fff;
}

.button-danger:hover,
.button-danger:focus-visible {
  background: #681f1f;
  box-shadow: 0 10px 22px rgba(143, 45, 45, 0.24);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: 34px;
  align-items: center;
  min-height: 570px;
  padding: 34px 0 28px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.hero-text,
.section-heading p:not(.eyebrow),
.legal-section p,
.legal-section li {
  color: var(--muted);
  font-weight: 800;
}

.hero-text {
  max-width: 600px;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.safety-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 34px;
}

.safety-strip div,
.warning-box,
.report-callout {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(66, 111, 85, 0.22);
  border-radius: 8px;
  background: #f2f7ef;
}

.safety-strip strong,
.warning-box strong,
.report-callout strong {
  color: var(--green);
  font-size: 0.98rem;
}

.safety-strip span,
.warning-box span,
.report-callout span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.report-callout a,
.report-strip a:not(.button) {
  color: var(--brand-dark);
  font-weight: 900;
}

.report-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 18px;
  border: 1px solid rgba(169, 67, 40, 0.2);
  border-radius: 8px;
  background: #fff8f4;
}

.report-strip h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.report-strip p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.browse-section,
.detail-section,
.list-section,
.legal-section {
  scroll-margin-top: 78px;
}

.browse-section,
.list-section {
  padding: 42px 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 22px;
}

.filter-bar,
.pet-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.seller-payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 33, 29, 0.06);
}

.seller-payment h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.seller-payment p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.payment-explainer {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.payment-explainer h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.payment-explainer p {
  margin: 0;
}

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

.bypass-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(66, 111, 85, 0.18);
  border-radius: 8px;
  background: #f8fbf6;
}

.payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.payment-total span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.payment-total strong {
  font-size: 1.8rem;
}

.search-lanes {
  grid-column: 1 / -1;
}

.lane-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lane-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(169, 67, 40, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
}

.lane-button.is-active,
.lane-button:hover,
.lane-button:focus-visible {
  background: var(--brand);
  color: #fff;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
  font-weight: 900;
}

legend {
  padding: 0;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font-weight: 800;
}

textarea {
  resize: vertical;
}

.wide-field {
  grid-column: 1 / -1;
}

.rule-checks {
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(169, 67, 40, 0.22);
  border-radius: 8px;
  background: #fff8f4;
}

.rule-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.rule-checks input {
  width: auto;
  margin-top: 4px;
}

.ai-writer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-writer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.smart-question-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(66, 111, 85, 0.24);
  border-radius: 8px;
  background: #f2f7ef;
}

.smart-question-panel h3,
.smart-question-panel p {
  margin-bottom: 0;
}

.smart-question-panel p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
}

.smart-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.08);
  cursor: pointer;
}

.listing-card:focus-visible {
  outline: 3px solid rgba(233, 111, 72, 0.4);
  outline-offset: 3px;
}

.listing-image,
.detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.placeholder-image {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f4c67c, #e96f48);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.listing-copy {
  padding: 16px;
}

.listing-copy strong,
.detail-fee {
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.listing-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(66, 111, 85, 0.22);
  border-radius: 999px;
  background: #f4f8f1;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.empty-card {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.detail-section {
  padding: 10px 0 42px;
}

.detail-view {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-image {
  border-radius: 8px;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-copy p {
  color: var(--muted);
  font-weight: 800;
}

.smart-answer-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(66, 111, 85, 0.22);
  border-radius: 8px;
  background: #f7faf4;
}

.smart-answer-list div {
  display: grid;
  gap: 2px;
}

.smart-answer-list strong {
  color: var(--green);
  font-size: 0.82rem;
}

.smart-answer-list span {
  color: var(--muted);
  font-weight: 800;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 900;
}

.manage-link-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(66, 111, 85, 0.25);
  border-radius: 8px;
  background: #f2f7ef;
}

.manage-link-panel[hidden] {
  display: none;
}

.manage-link-panel h3,
.manage-link-panel p {
  margin-bottom: 0;
}

.manage-link-panel p:not(.eyebrow),
.manage-empty p {
  color: var(--muted);
  font-weight: 800;
}

.manage-section {
  max-width: 980px;
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manage-empty {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.manage-empty[hidden] {
  display: none;
}

.admin-section {
  max-width: 1060px;
}

.admin-login,
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-panel[hidden],
.admin-login[hidden] {
  display: none;
}

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

.admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-card h2 {
  margin-bottom: 6px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.admin-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-card p:last-child {
  margin-bottom: 0;
}

.admin-email {
  color: var(--brand-dark) !important;
}

.legal-page {
  min-height: calc(100vh - 150px);
}

.legal-section {
  display: grid;
  gap: 14px;
  max-width: 850px;
  padding: 50px 0;
}

.legal-section h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.legal-section li {
  margin-bottom: 10px;
}

.inline-link {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.site-footer strong {
  color: var(--brand-dark);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  color: var(--brand-dark);
}

@media (max-width: 900px) {
  .hero,
  .detail-view {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .safety-strip,
  .listing-grid,
  .seller-payment,
  .report-strip,
  .manage-link-panel,
  .admin-login,
  .admin-toolbar,
  .admin-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav-shell,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    width: min(100% - 24px, 1160px);
    gap: 20px;
    padding-top: 24px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .filter-bar,
  .pet-form,
  .smart-question-grid {
    grid-template-columns: 1fr;
  }

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