/* Layout: a warm cream page made of full-width bands, each with one job.
   The three paths (adoptar / acoger / apadrinar) are the only saturated colours, and they never mix.
   The gold knot is the recurring mark. Deliberately single (light) theme: the brand lives on cream. */
:root {
  color-scheme: light;
  --cream: #F5E6C8;
  --cream-deep: #EBD7AF;
  --glow: #FFFBF2;
  --soft: #FAFAF8;
  --white: #FFFFFF;
  --gold: #D4A84B;
  --ochre: #C49A3E;
  --gold-ink: #7A5A16;
  --ink: #2C2C2C;
  --ink-soft: #4A4540;
  --grey: #666666;
  --sage: #708865;
  --line: #E8E8E4;
  --line-cream: #E2CDA2;
  --error: #A8432F;

  --adopt: #E2725B;   --adopt-tint: #FBEAE5;
  --foster: #2A9D8F;  --foster-tint: #E4F2F0;
  --sponsor: #7E6BA6; --sponsor-tint: #EEEAF4;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.75rem);

  --r-card: 16px;
  --r-pill: 999px;
  --shadow: 0 2px 8px rgba(44, 44, 44, .08), 0 12px 32px rgba(44, 44, 44, .06);
  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Paints the phone status-bar band in the header colour. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--cream);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow img { width: 22px; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 38ch; }
.prose { max-width: 62ch; color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #DDB55E; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* TV strip */
.tv-strip { background: var(--ink); color: var(--cream); }
.tv-strip a {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
  padding-block: 10px; text-decoration: none; font-size: .95rem; text-align: center;
}
.tv-strip .tag { font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tv-strip .msg { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--cream); border-bottom: 1px solid var(--line-cream);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 112px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: var(--r-pill);
}
.nav a:hover { background: var(--cream-deep); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.menu-btn {
  display: none; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill);
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  font: 600 .95rem/1 var(--font-body); cursor: pointer;
}
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line-cream);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
    box-shadow: 0 12px 24px rgba(44, 44, 44, .08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line-cream); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 380px) {
  .brand img { width: 92px; }
  .header-actions .btn { padding: 8px 14px; }
}

/* Bands */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-cream { background: var(--cream); }
.band-soft { background: var(--soft); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--cream); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head h2 { font-size: var(--step-3); }

/* Hero */
.hero { background: var(--cream); padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); line-height: 1.02; }
.hero h1 em {
  font-style: italic; white-space: nowrap;
  background: linear-gradient(transparent 68%, rgba(212, 168, 75, .55) 68%, rgba(212, 168, 75, .55) 94%, transparent 94%);
}
.hero .kicker {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem);
  line-height: 1.3; color: var(--gold-ink); display: flex; gap: 12px; align-items: flex-start; max-width: 34ch;
}
.hero .kicker img { width: 24px; flex: none; margin-top: .2em; }
.hero-free { font-weight: 700; font-size: var(--step-0); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: var(--step--1); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

.steve-frame { margin: 0; display: grid; gap: 12px; justify-items: center; }
.steve-card {
  width: 100%; max-width: 380px; aspect-ratio: 4 / 5;
  background: radial-gradient(120% 85% at 50% 38%, var(--glow) 0%, #F9EDD3 50%, var(--cream-deep) 100%);
  border: 1px solid var(--line-cream);
  border-radius: 24px; overflow: hidden; position: relative; box-shadow: var(--shadow);
}
.steve-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.steve-card .knot { position: absolute; right: 16px; top: 16px; width: 36px; height: auto; object-fit: contain; opacity: .9; }
.steve-frame figcaption { font-size: var(--step--1); color: var(--ink-soft); text-align: center; max-width: 34ch; }
@media (max-width: 859px) { .steve-card { max-width: 300px; } }

/* How it works: three paths */
.paths { display: grid; gap: 20px; }
@media (min-width: 820px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path { border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.path-head { padding: 24px 24px 20px; color: var(--white); display: grid; gap: 4px; }
.path-head h3 { font-size: 2.25rem; }
.path-head p { font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.path-body { padding: 20px 24px 28px; display: grid; gap: 14px; align-content: start; color: var(--ink); }
.path-body .who { font-size: var(--step--1); color: var(--ink-soft); }
.path-adopt .path-head { background: var(--adopt); }
.path-adopt .path-body { background: var(--adopt-tint); }
.path-foster .path-head { background: var(--foster); }
.path-foster .path-body { background: var(--foster-tint); }
.path-sponsor .path-head { background: var(--sponsor); }
.path-sponsor .path-body { background: var(--sponsor-tint); }

.order {
  margin-top: clamp(32px, 5vw, 48px); border: 1.5px solid var(--ink); border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; background: var(--white);
}
@media (min-width: 820px) { .order { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); align-items: center; gap: 40px; } }
.order h3 { font-size: var(--step-2); }
.formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.factor { flex: 1 1 200px; min-width: 0; background: var(--cream); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; }
.factor b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.factor span { font-size: var(--step--1); color: var(--ink-soft); }
.times { align-self: center; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold-ink); }
@media (max-width: 599px) {
  .formula { flex-direction: column; gap: 8px; }
  .factor { flex-basis: auto; }
}
.order .rule { grid-column: 1 / -1; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.order .rule img { width: 22px; flex: none; }

/* Two-column audience sections with a form */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.split-copy { display: grid; gap: 24px; min-width: 0; }
.split-copy h2 { font-size: var(--step-3); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; }
.points li::before {
  content: ""; width: 22px; height: 21px; margin-top: 3px;
  background: url("../img/knot-gold.svg") center / contain no-repeat;
}
.points b { display: block; font-weight: 700; }
.points span { color: var(--ink-soft); }

.rules {
  background: var(--ink); color: var(--cream); border-radius: var(--r-card); padding: 24px;
  display: grid; gap: 12px;
}
.rules h3 { font-size: 1.5rem; color: var(--white); }
.rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.rules li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--line-cream); background: var(--white); border-radius: var(--r-pill); padding: 6px 14px; font-size: var(--step--1); font-weight: 500; }

/* Forms */
.form-card {
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 18px; min-width: 0;
  border: 1px solid var(--line);
}
.form-card h3 { font-size: var(--step-2); }
.form-card > p { color: var(--ink-soft); font-size: .95rem; }
form { display: grid; gap: 16px; margin: 0; }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #CFC7B8; background: var(--soft); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 104px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 168, 75, .45); background: var(--white); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--error); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .93rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); }
.privacy-note { font-size: .8rem; line-height: 1.5; color: var(--grey); border-top: 1px solid var(--line); padding-top: 14px; }
.privacy-note a { color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; border-radius: 12px; padding: 14px 16px; }
.form-status.ok { background: #EAF2E6; color: #2F4A26; }
.form-status.err { background: #FCEAE6; color: var(--error); }
.form-done { display: grid; gap: 8px; padding: 8px 0; }
.form-done h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; margin: 0; line-height: 1.1; }
.form-done p { color: var(--ink-soft); }
.form-done .preview { font-size: .85rem; color: var(--grey); }

/* Steve's story */
.story-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; } }
.story .eyebrow { color: var(--gold); }
.story-main { display: grid; gap: 24px; min-width: 0; }
.story blockquote { margin: 0; display: grid; gap: 20px; }
.story blockquote p { font-size: var(--step-1); line-height: 1.55; color: var(--cream); max-width: 60ch; }
.story blockquote .tale {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); line-height: 1.22; color: var(--white); max-width: none;
}
.story .magic { display: grid; gap: 10px; border-left: 3px solid var(--gold); padding-left: 20px; }
.story .magic .wand { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.25; color: var(--gold); }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.signature img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 55% 22%; background: #3a342d; border: 2px solid var(--gold); }
.signature b { display: block; color: var(--white); font-size: 1.05rem; }
.signature span { color: var(--cream); font-size: var(--step--1); }
.story-aside { display: grid; gap: 20px; align-content: start; border-left: 1px solid rgba(245, 230, 200, .25); padding-left: 28px; }
@media (max-width: 899px) { .story-aside { border-left: 0; padding-left: 0; border-top: 1px solid rgba(245, 230, 200, .25); padding-top: 28px; } }
.story-aside .knot { width: 56px; }
.story-aside dl { margin: 0; display: grid; gap: 14px; }
.story-aside dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.story-aside dd { margin: 2px 0 0; color: var(--cream); }
.story-aside a { color: var(--white); }

/* Steve ya tiene familia (photo band) */
.family-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .family-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
.family-photo { margin: 0; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-deep); }
.family-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.family-text { display: grid; gap: 18px; min-width: 0; justify-items: start; }
.family-text h2 { font-size: var(--step-3); color: var(--ink); }
.family-text .ask { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); line-height: 1.2; color: var(--gold-ink); text-wrap: balance; margin: 0; }
.family-text p { margin: 0; }

/* Waitlist */
.waitlist-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .waitlist-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } }
.waitlist-copy { display: grid; gap: 18px; }
.waitlist-copy h2 { font-size: var(--step-3); }
.waitlist-copy .ca { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--gold-ink); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; color: var(--gold-ink);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 22px 22px; color: var(--ink-soft); display: grid; gap: 10px; max-width: 68ch; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 56px 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 120px; }
.footer-brand p { color: var(--cream); max-width: 36ch; font-size: .95rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(245, 230, 200, .2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--cream); }

.footer-base.solo { margin-top: 0; padding-top: 0; border-top: 0; }

/* Legal pages */
.legal { background: var(--soft); padding-block: 48px 80px; }
.legal article { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: 1.5rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .updated { font-size: var(--step--1); color: var(--grey); }
.legal .ph { background: #FDF5E6; border: 1px dashed var(--ochre); border-radius: 6px; padding: 0 6px; color: var(--ink); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); width: 34%; }
.table-scroll { overflow-x: auto; }
.back { font-weight: 600; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* La app: phone mockups (Explorar one by one + grid view). Sample dogs use coat-tone fills, not photos. */
.app-demo { display: grid; gap: 56px; justify-items: center; }
@media (min-width: 860px) { .app-demo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; } }
.demo { display: grid; gap: 22px; justify-items: center; min-width: 0; width: 100%; }
.demo-caption { display: grid; gap: 8px; max-width: 38ch; text-align: center; }
.demo-caption h3 { font-size: 1.75rem; }
.demo-caption p { color: var(--ink-soft); font-size: .98rem; }
.demo-caption .try { font-size: var(--step--1); font-weight: 600; color: var(--gold-ink); letter-spacing: .02em; }
.demo-note { margin-top: clamp(28px, 4vw, 44px); font-size: var(--step--1); color: var(--ink-soft); text-align: center; }

.phone {
  width: 296px; max-width: 100%; aspect-ratio: 9 / 19; padding: 9px; border-radius: 46px;
  background: #4A423A; box-shadow: 0 2px 8px rgba(44, 44, 44, .1), 0 28px 56px rgba(74, 66, 58, .22);
}
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--soft);
  display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: var(--ink); text-align: left;
}
.screen svg { width: 100%; height: 100%; display: block; }
.island { position: absolute; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #1F1B17; z-index: 3; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 2px; font-size: 12px; font-weight: 700; }
.statusbar i { width: 20px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; }
.statusbar i::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 16px; }
.appbar b { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1; }
.appbar .icons { display: flex; gap: 6px; }
.ibtn { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.ibtn.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* Swipe deck */
.deck { position: relative; flex: 1; margin: 0 14px; touch-action: pan-y; }
.dcard {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none;
  background: linear-gradient(165deg, var(--c1), var(--c2));
  box-shadow: 0 8px 20px rgba(44, 44, 44, .18);
  transition: transform .35s ease, opacity .35s ease;
}
.dcard:active { cursor: grabbing; }
.dcard:nth-last-child(2) { transform: translateY(12px) scale(.94); }
.dcard:nth-last-child(n+3) { transform: translateY(24px) scale(.88); opacity: 0; }
.dcard .art { position: absolute; inset: 14% 22% 34%; color: rgba(255, 255, 255, .82); }
.dcard .art svg { stroke-width: 1.1; }
.badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--white); color: var(--ink); white-space: nowrap; }
.badge.wait { background: var(--adopt-tint); color: #8F3A27; }
.badge.fit { margin-left: auto; }
.dinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 16px; background: linear-gradient(rgba(31, 27, 23, 0), rgba(31, 27, 23, .74)); color: #FFFFFF; display: grid; gap: 2px; }
.dinfo b { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.05; }
.dinfo span { font-size: 12px; }
.stamp {
  position: absolute; top: 54px; padding: 4px 10px; border: 2.5px solid currentColor; border-radius: 8px;
  font-weight: 800; font-size: 15px; letter-spacing: .1em; background: rgba(255, 255, 255, .9); opacity: 0; pointer-events: none;
}
.stamp.save { left: 14px; color: #4F6B46; transform: rotate(-12deg); }
.stamp.pass { right: 14px; color: #5A5550; transform: rotate(12deg); }
.actions { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 16px 12px 12px; }
.round {
  flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); cursor: pointer; box-shadow: 0 2px 6px rgba(44, 44, 44, .08);
}
.round.save { color: var(--gold-ink); }
.interest {
  flex: none; height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--adopt); color: var(--ink);
  font: 700 13px/1 var(--font-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.interest svg { width: 16px; height: 16px; }
.round:hover, .interest:hover { filter: brightness(.97); }
.toast {
  position: absolute; left: 14px; right: 14px; bottom: 132px; z-index: 4; margin: 0; text-align: center;
  background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 600; padding: 9px 12px; border-radius: 12px;
}

/* Grid view */
.fchips { display: flex; gap: 6px; padding: 0 12px 10px; overflow: hidden; }
.fchips span { flex: none; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.fchips .on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gridview { flex: 1; min-height: 0; overflow: hidden; padding: 0 12px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; gap: 10px; align-content: start; }
.gcard { border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.gcard .ph { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(165deg, var(--c1), var(--c2)); color: rgba(255, 255, 255, .82); }
.gcard .ph svg { position: absolute; inset: 18% 25% 32%; width: 50%; height: 50%; stroke-width: 1.2; }
.gcard .fit { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 700; background: var(--white); color: var(--ink); border-radius: 999px; padding: 2px 7px; }
.gcard .wait { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: 9.5px; font-weight: 700; background: var(--adopt-tint); color: #8F3A27; border-radius: 999px; padding: 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.gcard .meta { padding: 7px 9px 9px; display: grid; gap: 1px; }
.gcard .meta b { font-size: 13px; }
.gcard .meta span { font-size: 11px; color: var(--grey); }

/* Tab bar */
.tabbar { display: flex; justify-content: space-around; padding: 8px 6px 16px; border-top: 1px solid var(--line); background: var(--white); font-size: 10px; color: var(--grey); }
.tabbar span { display: grid; justify-items: center; gap: 3px; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .on { color: var(--gold-ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .dcard { transition: none; } }
