/* PawMatch — warm, calm and trustworthy.
   Warm ivory and sand, deep green-ink text, one terracotta accent, sage for good news.
   Fraunces (headings) + DM Sans (text). */

:root {
  --bg: #fbf7f1;
  --bg-2: #f3ebdf;
  --surface: #ffffff;
  --surface-2: #f8f3ec;
  --text: #23302b;
  --muted: #66706a;
  --border: #e9e1d5;
  --ink: #1f2c27;            /* dark bands */
  --ink-text: #f4efe7;
  --accent: #d2603c;          /* terracotta */
  --accent-strong: #b54d2c;
  --accent-ink: #ffffff;
  --accent-soft: #f8e4da;
  --good: #3c7a60;            /* sage */
  --good-soft: #e2efe8;
  --sun: #e2a93f;
  --sun-soft: #f8edd2;
  --plum: #7a68a6;
  --plum-soft: #ece8f4;
  --warn: #9a6512;
  --warn-soft: #f8edd2;
  --danger: #c2473a;
  --danger-soft: #f8e1dd;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(35, 48, 43, .04), 0 14px 34px -18px rgba(35, 48, 43, .22);
  --shadow-lg: 0 2px 4px rgba(35, 48, 43, .04), 0 28px 60px -28px rgba(35, 48, 43, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Light scatter of pet prints (dog, cat, rabbit, horse, bird) behind the page. */
  --prints: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22260%22 height=%22260%22 viewBox=%220 0 260 260%22%3E%3Cg fill=%22%239a6a4a%22 stroke=%22%239a6a4a%22 stroke-width=%220%22 opacity=%220.085%22%3E%3Cg transform=%22translate(40 46) rotate(-18) scale(1.0)%22%3E%3Cellipse cx=%220%22 cy=%226%22 rx=%228%22 ry=%226.5%22/%3E%3Ccircle cx=%22-10%22 cy=%22-4%22 r=%223.4%22/%3E%3Ccircle cx=%22-4%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%224%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%2210%22 cy=%22-4%22 r=%223.4%22/%3E%3C/g%3E%3Cg transform=%22translate(150 30) rotate(12) scale(0.95)%22%3E%3Cpath d=%22M-7 8c0-6 3-9 7-9s7 3 7 9c0 3-3 4-7 4s-7-1-7-4Z%22/%3E%3Ccircle cx=%22-8%22 cy=%22-5%22 r=%222.6%22/%3E%3Ccircle cx=%22-3%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%223%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%228%22 cy=%22-5%22 r=%222.6%22/%3E%3C/g%3E%3Cg transform=%22translate(222 96) rotate(28) scale(1.45)%22%3E%3Cellipse cx=%220%22 cy=%227%22 rx=%224.2%22 ry=%229%22/%3E%3Cellipse cx=%22-4.5%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%22-1.5%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%221.8%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%224.8%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3C/g%3E%3Cg transform=%22translate(96 128) rotate(-8) scale(0.9)%22%3E%3Cpath d=%22M-9 10V0a9 9 0 0 1 18 0v10%22 fill=%22none%22 stroke-width=%224.2%22 stroke-linecap=%22round%22/%3E%3C/g%3E%3Cg transform=%22translate(30 176) rotate(20) scale(1.05)%22%3E%3Cpath d=%22M0 10V-2M0-2l-7-9M0-2 7-11M0-2V-12%22 fill=%22none%22 stroke-width=%222.2%22 stroke-linecap=%22round%22/%3E%3C/g%3E%3Cg transform=%22translate(188 190) rotate(-24) scale(0.9)%22%3E%3Cpath d=%22M-7 8c0-6 3-9 7-9s7 3 7 9c0 3-3 4-7 4s-7-1-7-4Z%22/%3E%3Ccircle cx=%22-8%22 cy=%22-5%22 r=%222.6%22/%3E%3Ccircle cx=%22-3%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%223%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%228%22 cy=%22-5%22 r=%222.6%22/%3E%3C/g%3E%3Cg transform=%22translate(118 226) rotate(16) scale(0.85)%22%3E%3Cellipse cx=%220%22 cy=%226%22 rx=%228%22 ry=%226.5%22/%3E%3Ccircle cx=%22-10%22 cy=%22-4%22 r=%223.4%22/%3E%3Ccircle cx=%22-4%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%224%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%2210%22 cy=%22-4%22 r=%223.4%22/%3E%3C/g%3E%3Cg transform=%22translate(236 238) rotate(-30) scale(0.9)%22%3E%3Cpath d=%22M0 10V-2M0-2l-7-9M0-2 7-11M0-2V-12%22 fill=%22none%22 stroke-width=%222.2%22 stroke-linecap=%22round%22/%3E%3C/g%3E%3Cg transform=%22translate(62 238) rotate(-14) scale(1.3)%22%3E%3Cellipse cx=%220%22 cy=%227%22 rx=%224.2%22 ry=%229%22/%3E%3Cellipse cx=%22-4.5%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%22-1.5%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%221.8%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%224.8%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141b18; --bg-2: #1a231f; --surface: #1e2823; --surface-2: #242f2a; --text: #eef0ea; --muted: #a6b0a9; --border: #2f3b35;
    --ink: #0a0f0d; --ink-text: #eef0ea;
    --accent: #ec8560; --accent-strong: #f39a78; --accent-ink: #231109; --accent-soft: #3d2a22;
    --good: #7cc3a3; --good-soft: #1f3a2f; --sun: #efc36a; --sun-soft: #3a3120; --plum: #b3a3dc; --plum-soft: #2d2a3d;
    --warn: #efc36a; --warn-soft: #3a3120; --danger: #f08c80; --danger-soft: #3f2522;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -28px rgba(0, 0, 0, .8);
    --prints: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22260%22 height=%22260%22 viewBox=%220 0 260 260%22%3E%3Cg fill=%22%23e8c9ad%22 stroke=%22%23e8c9ad%22 stroke-width=%220%22 opacity=%220.06%22%3E%3Cg transform=%22translate(40 46) rotate(-18) scale(1.0)%22%3E%3Cellipse cx=%220%22 cy=%226%22 rx=%228%22 ry=%226.5%22/%3E%3Ccircle cx=%22-10%22 cy=%22-4%22 r=%223.4%22/%3E%3Ccircle cx=%22-4%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%224%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%2210%22 cy=%22-4%22 r=%223.4%22/%3E%3C/g%3E%3Cg transform=%22translate(150 30) rotate(12) scale(0.95)%22%3E%3Cpath d=%22M-7 8c0-6 3-9 7-9s7 3 7 9c0 3-3 4-7 4s-7-1-7-4Z%22/%3E%3Ccircle cx=%22-8%22 cy=%22-5%22 r=%222.6%22/%3E%3Ccircle cx=%22-3%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%223%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%228%22 cy=%22-5%22 r=%222.6%22/%3E%3C/g%3E%3Cg transform=%22translate(222 96) rotate(28) scale(1.45)%22%3E%3Cellipse cx=%220%22 cy=%227%22 rx=%224.2%22 ry=%229%22/%3E%3Cellipse cx=%22-4.5%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%22-1.5%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%221.8%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%224.8%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3C/g%3E%3Cg transform=%22translate(96 128) rotate(-8) scale(0.9)%22%3E%3Cpath d=%22M-9 10V0a9 9 0 0 1 18 0v10%22 fill=%22none%22 stroke-width=%224.2%22 stroke-linecap=%22round%22/%3E%3C/g%3E%3Cg transform=%22translate(30 176) rotate(20) scale(1.05)%22%3E%3Cpath d=%22M0 10V-2M0-2l-7-9M0-2 7-11M0-2V-12%22 fill=%22none%22 stroke-width=%222.2%22 stroke-linecap=%22round%22/%3E%3C/g%3E%3Cg transform=%22translate(188 190) rotate(-24) scale(0.9)%22%3E%3Cpath d=%22M-7 8c0-6 3-9 7-9s7 3 7 9c0 3-3 4-7 4s-7-1-7-4Z%22/%3E%3Ccircle cx=%22-8%22 cy=%22-5%22 r=%222.6%22/%3E%3Ccircle cx=%22-3%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%223%22 cy=%22-10%22 r=%222.6%22/%3E%3Ccircle cx=%228%22 cy=%22-5%22 r=%222.6%22/%3E%3C/g%3E%3Cg transform=%22translate(118 226) rotate(16) scale(0.85)%22%3E%3Cellipse cx=%220%22 cy=%226%22 rx=%228%22 ry=%226.5%22/%3E%3Ccircle cx=%22-10%22 cy=%22-4%22 r=%223.4%22/%3E%3Ccircle cx=%22-4%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%224%22 cy=%22-11%22 r=%223.4%22/%3E%3Ccircle cx=%2210%22 cy=%22-4%22 r=%223.4%22/%3E%3C/g%3E%3Cg transform=%22translate(236 238) rotate(-30) scale(0.9)%22%3E%3Cpath d=%22M0 10V-2M0-2l-7-9M0-2 7-11M0-2V-12%22 fill=%22none%22 stroke-width=%222.2%22 stroke-linecap=%22round%22/%3E%3C/g%3E%3Cg transform=%22translate(62 238) rotate(-14) scale(1.3)%22%3E%3Cellipse cx=%220%22 cy=%227%22 rx=%224.2%22 ry=%229%22/%3E%3Cellipse cx=%22-4.5%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%22-1.5%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%221.8%22 cy=%22-9.5%22 rx=%221.9%22 ry=%223%22/%3E%3Cellipse cx=%224.8%22 cy=%22-7%22 rx=%221.9%22 ry=%223%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg) var(--prints) 0 0 / 260px 260px repeat; color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }

/* ---------- header, main, footer ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem clamp(1rem, 4vw, 2.5rem); position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; }
.brand .logo { width: 2.1rem; height: 2.1rem; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px -8px var(--accent); }
.brand .logo svg { width: 1.2rem; height: 1.2rem; }
nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
nav .btn { border-color: transparent; background: transparent; }
nav .btn:hover { background: var(--surface); border-color: var(--border); }
nav .btn.primary { background: var(--accent); border-color: var(--accent); }
nav .btn svg { width: 1.15rem; height: 1.15rem; }

main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.75rem clamp(1rem, 4vw, 2rem) 4rem; outline: none; flex: 1; }
main.enter > * { animation: rise .45s var(--ease) both; }
main.enter > *:nth-child(2) { animation-delay: .05s; }
main.enter > *:nth-child(3) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font-size: .9rem; }
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); display: flex; gap: 1.5rem; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer nav a { color: var(--muted); text-decoration: none; margin-right: 1.2rem; }
.site-footer nav a:hover { color: var(--text); }

/* ---------- layout helpers ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.stack > * + * { margin-top: .8rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.auth { max-width: 520px; margin: 1.5rem auto; }

/* ---------- sign-in / sign-up ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); max-width: 1000px; margin: .5rem auto 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-side { background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%), var(--ink);
  color: var(--ink-text); padding: clamp(1.6rem, 4vw, 2.6rem); display: flex; flex-direction: column; }
.auth-side h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink-text); }
.auth-side p { color: color-mix(in srgb, var(--ink-text) 75%, transparent); }
.auth-mark { width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 1.4rem; }
.auth-mark svg { width: 1.5rem; height: 1.5rem; }
.auth-side ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.1rem; }
.auth-side li { display: flex; gap: .8rem; align-items: flex-start; }
.auth-side li svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; color: color-mix(in srgb, var(--accent) 65%, white); }
.auth-side li b { display: block; color: var(--ink-text); }
.auth-side li span { font-size: .9rem; color: color-mix(in srgb, var(--ink-text) 70%, transparent); }
.auth-main { padding: clamp(1.4rem, 4vw, 2.6rem); }
.auth-main .tabs { margin-bottom: 1.4rem; }
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side ul { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: .6rem 1.15rem; border-radius: 999px; font: 600 .95rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible, .linkish:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -14px var(--accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.danger { color: var(--danger); }
.btn.lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.linkish { background: none; border: 0; color: var(--accent-strong); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }

/* ---------- forms ---------- */
form .fields { display: grid; gap: 1rem 1.1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
label, .field-label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--text); }
label.check { flex-direction: row; align-items: center; font-weight: 500; gap: .6rem; }
.full { grid-column: 1 / -1; }
input, select, textarea { font: 400 1rem/1.4 var(--sans); padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 20%, var(--border)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--accent); }
input[type=file] { padding: .5rem; }
textarea { min-height: 84px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.inline-input { display: flex; gap: .5rem; }
.inline-input input { flex: 1; min-width: 0; }
.inline-input .btn { flex: none; }
details.coords summary { cursor: pointer; font-size: .88rem; color: var(--muted); }
details.coords .fields { margin-top: .7rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.chip-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; letter-spacing: .06em; }
.thumb { width: 64px; height: 64px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--border); display: grid; place-items: center; font-size: 1.4rem; overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- tags, banners, notices ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--good-soft); color: var(--good); white-space: nowrap; letter-spacing: .01em; }
.badge.warn { background: var(--sun-soft); color: var(--warn); }
.badge.danger { background: var(--accent-soft); color: var(--accent-strong); }
.badge.plain { background: var(--surface-2); color: var(--muted); }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; margin-left: .3rem; }
.banner { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1rem; background: var(--sun-soft); color: var(--warn); }
.banner.good { background: var(--good-soft); color: var(--good); }
.banner.alert { background: var(--accent-soft); color: var(--accent-strong); }
.notif { padding: .9rem 0; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif.unread b::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: middle; }

/* ---------- pets & matches ---------- */
.pet { display: flex; gap: 1rem; }
.pet img, .pet .ph { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 2rem; }
.ph { background: var(--accent-soft); color: var(--accent-strong); }
.ph svg { width: 2rem; height: 2rem; }
.ph.dog { background: var(--sun-soft); color: var(--warn); }
.ph.cat { background: var(--plum-soft); color: var(--plum); }
.ph.rabbit, .ph.ferret, .ph.bird { background: var(--good-soft); color: var(--good); }
/* Pet cards: roomier, with actions laid out in a tidy row. */
.pet-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.pet-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.pet-card .actions .linkish { margin-left: auto; font-weight: 500; color: var(--muted); }
.card.lost { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent), var(--shadow); }
.match { border-left: 4px solid var(--good); }
.match.weak { border-left-color: var(--sun); }
.score { font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--good); }
.match.weak .score { color: var(--warn); }
.reasons { margin: .5rem 0 .8rem; padding-left: 1.1rem; font-size: .92rem; color: var(--muted); }

/* ---------- data ---------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; word-break: break-all; }
.stats { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .84rem; }
.tabs { display: inline-flex; gap: .25rem; margin-bottom: 1.2rem; overflow-x: auto; max-width: 100%; background: var(--bg-2); padding: .3rem; border-radius: 999px; }
.tabs button { background: none; border: 0; padding: .5rem 1rem; font: 600 .92rem var(--sans); color: var(--muted); cursor: pointer; border-radius: 999px; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
pre.email { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-size: .88rem; max-height: 340px; overflow: auto; }

#toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translate(-50%, 8px); background: var(--ink); color: var(--ink-text); padding: .8rem 1.3rem; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease); max-width: calc(100% - 2rem); z-index: 10; box-shadow: var(--shadow-lg); font-weight: 500; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; }

/* ---------- landing ---------- */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .6rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero { padding: 1rem 0 1.5rem; }
.hero h1 { max-width: 20ch; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.hero.home { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(1rem, 5vw, 3.5rem) 0 clamp(2rem, 6vw, 4rem); }
.hero.home h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; }
.hero.home h1 em { font-style: italic; color: var(--accent-strong); }
.trust { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }
.trust svg { width: 1.05rem; height: 1.05rem; color: var(--good); }

.hero-visual { position: relative; min-height: 360px; }
.hero-visual::before { content: ""; position: absolute; inset: 6% 4% 4% 10%; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%), radial-gradient(circle at 75% 70%, var(--good-soft), transparent 60%), var(--bg-2); }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1rem 1.1rem; animation: float 7s ease-in-out infinite; }
.float-card b { display: block; font-weight: 700; font-size: .98rem; }
.float-card p { margin: .2rem 0 0; font-size: .86rem; color: var(--muted); }
.fc-text { top: 6%; left: 0; width: min(330px, 88%); }
.fc-head { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--muted); margin-bottom: .45rem; }
.fc-head .dot { width: 1.3rem; height: 1.3rem; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.fc-head .dot svg { width: .8rem; height: .8rem; }
.fc-head .time { margin-left: auto; }
.fc-match { bottom: 16%; right: 0; width: min(300px, 82%); display: flex; gap: .8rem; align-items: center; animation-delay: -2.5s; }
.fc-avatar { width: 3rem; height: 3rem; border-radius: 16px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; flex: none; }
.fc-avatar svg { width: 1.5rem; height: 1.5rem; }
.fc-score { margin-left: auto; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--good); }
.fc-pill { bottom: 2%; left: 8%; padding: .55rem .95rem; border-radius: 999px; font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: .45rem; animation-delay: -4.5s; }
.fc-pill svg { width: 1rem; height: 1rem; color: var(--good); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head h2, .band h2, .cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.how-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: how; }
.how-step { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.how-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.how-step::after { counter-increment: how; content: "0" counter(how); position: absolute; top: 1.3rem; right: 1.4rem; font-family: var(--display); font-size: 1.1rem; color: var(--muted); opacity: .6; }
.icon { width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--accent-soft); color: var(--accent-strong); }
.icon svg { width: 1.35rem; height: 1.35rem; }
.icon.good { background: var(--good-soft); color: var(--good); }
.icon.sun { background: var(--sun-soft); color: var(--warn); }
.how-step p { color: var(--muted); margin: 0; }

.band { margin-inline: calc(50% - 50vw); padding: clamp(3rem, 7vw, 5rem) max(calc(50vw - 540px + 2rem), 1.25rem); }
.band.dark { background: var(--ink); color: var(--ink-text); }
.band.dark .eyebrow { color: color-mix(in srgb, var(--accent) 70%, white); }
.band.dark p, .band.dark li { color: color-mix(in srgb, var(--ink-text) 75%, transparent); }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.band li { display: flex; gap: .8rem; align-items: flex-start; }
.band li svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; color: color-mix(in srgb, var(--good) 60%, white); }
.band li b { color: var(--ink-text); }
.band .btn { margin-top: 1.4rem; }
.band.dark .btn:not(.primary) { background: transparent; color: var(--ink-text); border-color: color-mix(in srgb, var(--ink-text) 30%, transparent); }

.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent-strong); font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .7rem 0 0; max-width: 70ch; }

.cta-band { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; border-radius: 28px; margin: 1rem 0 2rem;
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 50%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--good) 20%, transparent), transparent 50%), var(--bg-2); }
.cta-band p { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- pricing & offers ---------- */
.price { font-family: var(--display); font-size: 2.3rem; font-weight: 600; letter-spacing: -.02em; }
.price small { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan .btn { margin-top: .6rem; }
.pricing .plan { display: flex; flex-direction: column; }
.pricing .plan > .btn, .pricing .plan > a.btn { margin-top: auto; align-self: flex-start; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.offer { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: linear-gradient(170deg, var(--surface) 55%, color-mix(in srgb, var(--accent-soft) 70%, var(--surface))); box-shadow: var(--shadow-lg); }
.offer.lost { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
ul.checks { list-style: none; padding: 0; margin: .6rem 0 1.1rem; }
ul.checks li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--good-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c7a60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.2rem; margin-bottom: .7rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }

/* ---------- flyer ---------- */
.flyer { background: #fff; color: #111; max-width: 8in; margin: 0 auto; padding: .5in; border: 1px solid var(--border); text-align: center; }
.flyer h1 { font-size: 3.4rem; color: #b42318; margin: 0; letter-spacing: .04em; }
.flyer h2 { font-size: 2.4rem; margin: .1em 0 .3em; }
.flyer-photo { width: 100%; max-height: 4.2in; object-fit: cover; border-radius: 8px; }
.flyer-looks { font-size: 1.4rem; font-weight: 700; text-transform: capitalize; margin-top: .6rem; }
.flyer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; border-top: 3px solid #111; padding-top: 1rem; margin-top: 1rem; }
.flyer-call { font-size: 1.5rem; margin: 0; }
.flyer-call b { font-size: 2rem; }
.flyer-qr { width: 1.6in; text-align: center; flex: none; }
.flyer-qr svg { width: 100%; height: auto; }


@media print {
  body.print-page .topbar, body.print-page .no-print, body.print-page #toast { display: none !important; }
  body.print-page { background: #fff !important; }
  body.print-page main { padding: 0; max-width: none; }
  body.print-page .flyer { border: 0; padding: 0; }
  @page { margin: .5in; }
}


@media print {
  body.print-page .site-footer { display: none !important; }
}

/* ---------- small screens & motion ---------- */
@media (max-width: 760px) {
  .hero.home, .band-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .fc-text { top: 0; }
  .fc-match { bottom: 14%; }
  .fc-pill { bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
