/* Paw & Collar website. Colors and type match the app (app/components/ui.tsx). */
@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #13294B; --navy-2: #1C3560; --brass: #B08D57; --brass-light: #D4B887; --brass-ink: #7A5B2A;
  --paper: #FBFAF7; --stone: #EEEAE2; --line: #E0DACF; --slate: #556072; --white: #FFFFFF;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 12px 0; }
.brand { display: block; line-height: 0; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: rgba(255,255,255,0.88); }
.site-nav a:hover { color: var(--white); text-decoration: underline; }
.site-nav .nav-btn { background: var(--brass); color: var(--navy); border-radius: 999px; padding: 8px 18px; }
.site-nav .nav-btn:hover { background: var(--brass-light); color: var(--navy); text-decoration: none; }
.site-header .wrap { align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-brass { background: var(--brass); color: var(--navy); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); text-decoration: none; }
.btn-line { color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-line:hover { border-color: var(--white); text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); text-decoration: none; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Home: hero */
.hero { background: var(--navy); color: var(--white); text-align: center; padding: 96px 0 84px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: 0.6; }
.hero .lockup { width: min(78vw, 440px); margin: 0 auto 36px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); max-width: 17ch; margin: 0 auto 18px; }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero-short { padding: 72px 0 64px; }
.hero-short h1 { max-width: 20ch; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.86); max-width: 46ch; margin: 0 auto 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Home: sections */
.section { padding: 84px 0; }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 14px; }
.lede { color: var(--slate); font-size: 1.1rem; max-width: 56ch; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.feature { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.feature h3 { font-size: 1.45rem; margin-bottom: 8px; }
.feature p { color: var(--slate); margin: 0; max-width: 48ch; }

.sitters { background: var(--stone); }
.sitters-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 26px 0 30px; }
.checklist li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
.receipt { background: var(--white); border-radius: 6px; padding: 30px 30px 26px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(19,41,75,0.45);
  font-variant-numeric: tabular-nums; position: relative; }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px;
  background: radial-gradient(circle at 9px 0, transparent 7px, var(--white) 7.5px) -9px 0 / 18px 10px repeat-x; }
.receipt h3 { font-size: 1.35rem; margin-bottom: 4px; }
.receipt .sub { color: var(--slate); font-size: 0.95rem; margin-bottom: 16px; }
.receipt dl { margin: 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--line); }
.receipt dt { color: var(--slate); }
.receipt dd { margin: 0; font-weight: 600; }
.receipt .total { border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 12px; }
.receipt .total dt, .receipt .total dd { color: var(--navy); font-weight: 700; font-size: 1.15rem; }
.receipt .foot { margin: 16px 0 0; font-size: 0.92rem; color: var(--slate); }

.services { list-style: none; padding: 0; margin: 34px 0 10px; columns: 2; column-gap: 56px; }
.services li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.services b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.services span { color: var(--slate); font-size: 0.95rem; text-align: right; }
.note { color: var(--slate); font-size: 0.95rem; }

.band { background: var(--navy); color: var(--white); text-align: center; padding: 72px 0; }
.band h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.band p { color: rgba(255,255,255,0.86); margin: 0 auto 26px; max-width: 46ch; }

/* Footer */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,0.82); font-size: 0.95rem; padding: 34px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--white); }
.site-footer .fine { margin: 0; }

/* Legal pages */
.draft { background: var(--brass-light); color: var(--navy); font-weight: 600; text-align: center; padding: 10px 16px; font-size: 0.95rem; }
.doc { padding: 56px 0 88px; }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 56px; align-items: start; }
.doc-title { grid-column: 2; }
.doc-grid > .toc { grid-row: 2; }
.doc-grid > article { grid-row: 2; grid-column: 2; }
.toc { position: sticky; top: 24px; font-size: 0.92rem; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; text-decoration: none; color: var(--slate); }
.toc a:hover { color: var(--navy); text-decoration: underline; }
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(2.3rem, 4.6vw, 3.2rem); margin-bottom: 18px; }
.prose h2 { font-size: 1.65rem; margin: 44px 0 12px; scroll-margin-top: 20px; }
.prose ul { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin: 0 0 0.55em; }
.prose li::marker { color: var(--brass); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--navy); }
.lawyer { background: #F6EEDF; color: var(--brass-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 0.97rem; }
.prose th { text-align: left; font-weight: 700; padding: 10px 14px 10px 0; border-bottom: 2px solid var(--navy); }
.prose td { vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose td:first-child { font-weight: 600; width: 40%; }

/* App download page */
.get { background: var(--navy); color: var(--white); min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.get .lockup { width: min(70vw, 340px); margin: 0 auto 30px; }
.get h1 { font-size: clamp(2.1rem, 6vw, 3rem); margin-bottom: 12px; }
.get p { color: rgba(255,255,255,0.86); max-width: 40ch; margin: 0 auto 22px; }
.stores { display: grid; gap: 12px; justify-items: center; margin-bottom: 18px; }
.stores .btn { min-width: 260px; }
.invite { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 26px; padding-top: 22px; }
.invite[hidden] { display: none; }
.code { font: 700 1.2rem/1 var(--sans); letter-spacing: 0.12em; color: var(--brass-light); }
.back { display: inline-block; margin-top: 26px; color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* 404 */
.lost { padding: 96px 0 120px; text-align: center; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.lost p { color: var(--slate); margin-bottom: 26px; }

@media (max-width: 860px) {
  .features, .sitters-grid, .doc-grid { grid-template-columns: 1fr; }
  .sitters-grid { gap: 40px; }
  .doc-title, .doc-grid > article, .doc-grid > .toc { grid-column: 1; grid-row: auto; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
  .services { columns: 1; }
  .site-nav { gap: 16px; font-size: 0.9rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding: 84px 0 64px; }
  .section { padding: 60px 0; }
  .site-nav .opt { display: none; }
  .brand img { width: 120px; }
  .actions .btn { width: 100%; }
  .receipt { padding: 24px 20px 20px; }
  .services li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .services span { text-align: left; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; left: -9999px; }
  .prose tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .prose td { border: 0; padding: 3px 0; }
  .prose td:first-child { width: 100%; font-size: 1.02rem; margin-bottom: 4px; }
  .prose td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--navy); }
  .prose td:not(:first-child) { color: var(--slate); }
}
@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  .doc-grid { display: block; }
  body { background: #fff; }
}
