:root {
  --cream: #faf7f2;
  --cream-2: #f3ede4;
  --card: #ffffff;
  --ink: #33291f;
  --ink-2: #5d5044;
  --muted: #8a7d6f;
  --line: #e8e0d4;
  --accent: #8a5a3b;
  --accent-dark: #6f4630;
  --accent-soft: #f0e4d8;
  --green: #4a6b52;
  --amber: #9a6b22;
  --red: #a34a3c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(51, 41, 31, .04), 0 8px 24px -12px rgba(51, 41, 31, .12);
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ─── nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand {
  font-weight: 750; font-size: 17px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 7px;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
/* The nav CTA is a .btn — keep its own colours, do not inherit the link grey.
   Without this the white label renders on the brown pill at ~1.8:1 contrast. */
.nav-links a.nav-cta,
.nav-links a.btn {
  color: #fff;
  font-weight: 650;
  font-size: 13.5px;
  padding: 9px 18px;
  background: var(--accent);
  border-radius: 999px;
}
.nav-links a.nav-cta:hover,
.nav-links a.btn:hover { color: #fff; background: var(--accent-dark); }
@media (max-width: 720px) {
  /* keep the CTA reachable on phones; hide only the text links */
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 0; }
  .nav-links a.nav-cta { font-size: 12.5px; padding: 8px 14px; }
}

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0;
  padding: 14px 28px; border-radius: 999px;
  font-size: 15.5px; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, transform .16s ease, opacity .16s ease;
  font-family: inherit;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 17px 36px; font-size: 17px; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--cream-2); color: var(--ink); border-color: #d8cdbc; }
.btn-quiet { background: var(--cream-2); color: var(--ink-2); }
.btn-quiet:hover { background: #eae1d3; color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #8c3d31; }
.btn-block { width: 100%; }

/* ─── hero ─── */
.hero { padding: 66px 0 52px; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 52px;
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-media {
  margin: 0;
  position: relative;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 2px 6px rgba(51, 41, 31, .06), 0 30px 60px -34px rgba(51, 41, 31, .5);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero-media figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .005em;
}

@media (max-width: 900px) {
  .hero { padding: 12px 0 24px; }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-media { order: -1; }
  /* Keep the primary CTA above the fold on a 700px-tall phone.
     A 4:5 portrait image plus a 3-line headline does not fit, so the image
     gets a shorter, wider crop on small screens. Measured: CTA bottom must
     land above the fold at 375 AND 390 width. */
  .hero-media img { aspect-ratio: 16 / 11; border-radius: 14px; }
  .hero-media figcaption { margin-top: 7px; font-size: 11.5px; }

  .hero h1 {
    font-size: clamp(25px, 7.6vw, 32px);
    line-height: 1.06;
    margin-bottom: 11px;
    max-width: none;
  }
  .hero-copy .eyebrow { margin-bottom: 9px; font-size: 11px; padding: 4px 10px; }
  .hero p.sub { font-size: 15px; margin-bottom: 13px; line-height: 1.42; max-width: none; }
  .hero-copy .btn-lg { padding: 14px 26px; font-size: 16px; width: 100%; }
  .hero-copy .small.mt-2 { margin-top: 8px; font-size: 11.5px; }
}

@media (max-width: 400px) {
  /* 375-400px: the widest phones here are the tightest for vertical space,
     because the image scales with width. Flatten the crop further. */
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero h1 { font-size: 25px; }
  .hero p.sub { font-size: 14.5px; }
}

.hero h1 {
  font-size: clamp(34px, 6.2vw, 58px);
  line-height: 1.06; letter-spacing: -.032em;
  font-weight: 800; margin: 0 0 22px; max-width: 15ch;
}
.hero p.sub {
  font-size: clamp(16px, 2.1vw, 19.5px); color: var(--ink-2);
  max-width: 46ch; margin: 0 0 34px; line-height: 1.55;
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}

/* ─── sections ─── */
section { padding: 56px 0; }
section.tight { padding: 32px 0; }
h2 { font-size: clamp(23px, 3.4vw, 32px); letter-spacing: -.024em; line-height: 1.15; margin: 0 0 14px; font-weight: 750; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 680; letter-spacing: -.01em; }
.lede { color: var(--ink-2); font-size: 16.5px; max-width: 60ch; margin: 0 0 32px; }

/* ─── cards ─── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 780px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card-flat { box-shadow: none; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 14.8px; margin: 0; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 750; font-size: 14px; margin-bottom: 14px;
}

/* ─── steps / promises ─── */
.promise { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.promise:last-child { border-bottom: 0; }
.promise .ic { font-size: 19px; line-height: 1.4; flex-shrink: 0; width: 26px; }
.promise b { display: block; font-weight: 650; font-size: 15.2px; margin-bottom: 2px; }
.promise span { color: var(--muted); font-size: 14px; }

/* ─── form ─── */
.field { margin-bottom: 18px; }
label.lbl { display: block; font-size: 14px; font-weight: 620; margin-bottom: 7px; color: var(--ink); }
.hint { font-size: 12.8px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 15.5px; font-family: inherit; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 90, 59, .12);
}
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238a7d6f' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* city / state / zip on one line — collapses to stacked on phones */
.row-3 { display: grid; grid-template-columns: 1.4fr .9fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-3 { grid-template-columns: 1fr; gap: 14px; } }

/* ─── quantity picker ─── */
.qty-opts { display: grid; gap: 11px; }
.qty-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.qty-opt:hover { border-color: #d6c9b6; }
.qty-opt.sel { border-color: var(--accent); background: #fdfaf6; box-shadow: 0 0 0 3px rgba(138,90,59,.09); }
.qty-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qty-opt .dot {
  width: 19px; height: 19px; border-radius: 999px; border: 2px solid #d5c8b6;
  flex-shrink: 0; position: relative;
}
.qty-opt.sel .dot { border-color: var(--accent); }
.qty-opt.sel .dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 999px; background: var(--accent);
}
.qty-opt .qt { flex: 1; }
.qty-opt .qt b { display: block; font-size: 15.2px; font-weight: 650; }
.qty-opt .qt span { font-size: 13px; color: var(--muted); }
.qty-opt .qp { font-weight: 750; font-size: 16.5px; letter-spacing: -.01em; text-align: right; }
.qty-opt .qp em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--green); letter-spacing: .01em; }

/* ─── upload ─── */
.drop {
  border: 2px dashed #d9ccb9; border-radius: var(--radius);
  padding: 30px 20px; text-align: center; background: #fdfbf7;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: #fbf6ef; }
.drop .big { font-size: 26px; margin-bottom: 8px; }
.drop b { display: block; font-size: 15px; margin-bottom: 4px; }
.drop span { font-size: 13px; color: var(--muted); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb {
  position: relative; width: 84px; height: 84px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line); background: var(--cream-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* upload progress bar along the bottom of a thumbnail */
.thumb .tprogress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.55);
}
.thumb .tbar {
  height: 100%; width: 0;
  background: var(--accent);
  transition: width .18s ease;
}
.thumb .x {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 999px; background: rgba(51,41,31,.72); color: #fff;
  border: 0; font-size: 13px; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.thumb .tagname {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(51,41,31,.72); color: #fff; font-size: 10px;
  padding: 2px 4px; text-align: center;
}

/* ─── pet block ─── */
.pet-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: #fff; margin-bottom: 16px;
}
.pet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pet-head b { font-size: 15.5px; }

/* ─── summary / price ─── */
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sline { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; color: var(--ink-2); }
.sline.tot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 750; color: var(--ink); }
.sline .save { color: var(--green); font-weight: 620; }
.sticky-sum { position: sticky; top: 78px; }
@media (max-width: 860px) { .sticky-sum { position: static; } }

/* feature grid: 3 across on desktop, collapse properly on small screens */
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* two-column customiser layout */
#layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.layout-main { min-width: 0; }
.layout-side { min-width: 0; }
@media (max-width: 900px) {
  #layout { grid-template-columns: 1fr; gap: 22px; }
  .layout-side { order: -1; }
}

/* ─── badges ─── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; white-space: nowrap;
}
.b-gray { background: #eee8de; color: #6d6153; }
.b-blue { background: #e2eaf4; color: #3a5a7d; }
.b-green { background: #e3ede4; color: var(--green); }
.b-amber { background: #f6ead4; color: var(--amber); }
.b-purple { background: #eae3f0; color: #5f4570; }
.b-red { background: #f5e2de; color: var(--red); }

/* ─── notices ─── */
.notice {
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.2px;
  line-height: 1.6; margin: 16px 0;
}
.n-info { background: #eef3f8; color: #33506b; }
.n-warn { background: #fbf1de; color: #7d5a1c; }
.n-ok { background: #e8f0e9; color: #3d5a45; }
.n-err { background: #f9e8e4; color: #8c3d31; }

/* ─── tables ─── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fdfbf8; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── footer ─── */
footer {
  border-top: 1px solid var(--line); background: var(--cream-2);
  padding: 44px 0 32px; margin-top: 40px; font-size: 14px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.foot-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; font-size: 13.8px; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.copy { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 12.8px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ─── misc ─── */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 34px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; letter-spacing: -.01em; }
.hidden { display: none !important; }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 999px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-grid a { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

.plain-list { padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.plain-list li { margin-bottom: 9px; }
