/* Pawnace — pawnace.com
   Palette from the app: steel blue, blue-gray surfaces, the heart red used once. */
:root {
  --ink: #15243a;
  --ink-2: #44546a;
  --ink-3: #6b7a90;
  --page: #ffffff;
  --surface: #e9eef5;
  --card: #e1e8f1;
  --line: #c6d3e2;
  --blue: #2f6db5;
  --blue-dark: #1e4a7e;
  --blue-light: #6f9fd6;
  --heart: #a3161c;
  --ok: #1f7a4d;
  --measure: 66ch;
  --radius: 14px;
  --radius-s: 8px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef3f9; --ink-2: #c3cedc; --ink-3: #8fa0b5;
    --page: #0f1a2a; --surface: #16233a; --card: #1b2b45; --line: #2d4263;
    --blue: #6f9fd6; --blue-dark: #9dc0ea; --blue-light: #2f6db5; --heart: #e0484f; --ok: #5ccc8f;
  }
}
:root[data-theme="dark"] {
  --ink: #eef3f9; --ink-2: #c3cedc; --ink-3: #8fa0b5;
  --page: #0f1a2a; --surface: #16233a; --card: #1b2b45; --line: #2d4263;
  --blue: #6f9fd6; --blue-dark: #9dc0ea; --blue-light: #2f6db5; --heart: #e0484f; --ok: #5ccc8f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-variation-settings: "opsz" 144, "SOFT" 60; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
p, li { max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .98rem; }
.nav a[aria-current="page"] { color: var(--blue-dark); }
.nav a:hover { color: var(--blue-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .45rem .7rem; color: var(--ink); font: inherit; }
@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--page); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-top: 1px solid var(--line); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue-dark); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); }
.btn-small { padding: .55rem .95rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero-paws { position: absolute; right: -40px; top: -30px; width: 360px; opacity: .14; pointer-events: none; }
.hero .grid-2 { align-items: start; gap: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-note { margin-top: 1rem; color: var(--ink-3); font-size: .95rem; }

/* The bill — the one loud element on the site */
.bill { background: var(--page); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -30px rgba(21,36,58,.45); padding: 1.3rem 1.4rem 1.4rem; max-width: 420px; margin-inline: auto; font-size: .98rem; }
.bill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.bill-head strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.bill-head span { color: var(--ink-3); font-size: .85rem; }
.bill-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bill-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); max-width: none; }
.bill-lines li.sub { color: var(--ink-3); font-size: .92rem; border-bottom-style: solid; }
.bill-lines li.fee { color: var(--ink-2); }
.bill-lines li.fee small { display: block; font-size: .8rem; color: var(--ink-3); }
.bill-total { display: flex; justify-content: space-between; padding: .8rem 0 .3rem; font-weight: 800; font-size: 1.15rem; }
.bill-actions { display: grid; gap: .6rem; margin-top: .8rem; }
.bill-actions .btn { width: 100%; }
.bill-code { margin-top: 1rem; background: var(--surface); border-radius: var(--radius); padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bill-code span { font-size: .9rem; color: var(--ink-2); max-width: 16ch; }
.bill-code b { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: .18em; color: var(--blue-dark); }

/* Steps (a real sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { max-width: none; padding-top: .5rem; border-top: 3px solid var(--blue); }
.steps li::before { counter-increment: step; content: "Step " counter(step); display: block; font-weight: 800; color: var(--blue-dark); margin: .6rem 0 .3rem; font-size: .95rem; }
.steps h3 { margin-bottom: .35rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Photos */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); aspect-ratio: 4 / 3; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.photo-tall { aspect-ratio: 3 / 4; }
.photo-wide { aspect-ratio: 16 / 9; }
.photo .placeholder { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .9rem; text-align: center; padding: 1rem; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.photo-strip .photo { aspect-ratio: 1; }
@media (max-width: 640px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* Fact list */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.facts li { padding-left: 1.6rem; position: relative; max-width: none; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--blue); }
.facts strong { color: var(--ink); }

/* Cards (used sparingly: clinic benefits, FAQ) */
.panel { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.section-tint .panel { background: var(--page); }
.panel h3 { margin-bottom: .4rem; }
.panel p { margin-bottom: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: grid; gap: .35rem; font-weight: 700; font-size: .95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .7rem .85rem; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.form-note { font-size: .9rem; color: var(--ink-3); }
.form-status { padding: .9rem 1rem; border-radius: var(--radius-s); display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 12%, var(--page)); color: var(--ok); }
.form-status.err { display: block; background: color-mix(in srgb, var(--heart) 10%, var(--page)); color: var(--heart); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.legal-toc { position: sticky; top: 84px; font-size: .92rem; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.legal-toc a { text-decoration: none; color: var(--ink-2); }
.legal-toc a:hover { color: var(--blue-dark); }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.4rem; scroll-margin-top: 90px; }
.legal-body h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; margin-top: 1.4rem; }
.legal-body p, .legal-body li { max-width: var(--measure); }
.legal-body ul { padding-left: 1.3rem; }
.legal-body .callout { background: var(--surface); border-left: 4px solid var(--blue); padding: .9rem 1.1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 1.2rem 0; }
.legal-meta { color: var(--ink-3); margin-bottom: 1.5rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0 1.5rem; }
.legal th, .legal td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem; } }

/* Footer */
.site-footer { background: var(--blue-dark); color: #e6eef8; padding: 3rem 0 2rem; margin-top: 2rem; }
:root[data-theme="dark"] .site-footer { background: #0a1322; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; margin-bottom: .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid a { text-decoration: none; opacity: .92; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: .6rem; }
.footer-brand img { width: 34px; height: 34px; }
.footer-disclaimer { font-size: .86rem; opacity: .8; max-width: 70ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .9rem; }
.footer-bottom .made { font-weight: 700; color: #fff; }
.footer-bottom button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie consent */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: var(--page); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); padding: 1.1rem 1.25rem; display: none; max-width: 720px; margin-inline: auto; }
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 .9rem; max-width: none; font-size: .97rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-modal { position: fixed; inset: 0; z-index: 110; background: rgba(10,19,34,.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.show { display: flex; }
.cookie-dialog { background: var(--page); color: var(--ink); border-radius: 18px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 1.5rem; }
.cookie-dialog h2 { font-size: 1.5rem; }
.cookie-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.cookie-row:last-of-type { border-bottom: 1px solid var(--line); }
.cookie-row p { margin: .2rem 0 0; font-size: .92rem; color: var(--ink-2); max-width: none; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; cursor: default; }
.switch input:focus-visible + span { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.cookie-dialog .cookie-actions { margin-top: 1.1rem; justify-content: flex-end; }

/* Badge */
.badge { display: inline-block; font-size: .8rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; background: var(--card); color: var(--blue-dark); }
.badge-ok { background: color-mix(in srgb, var(--ok) 14%, var(--page)); color: var(--ok); }
