/* TunTun design system. Tokens first, then base, layout, components, pages. See BRAND.md. */
:root {
  --ink: #0f2a30;          /* night evergreen: header, footer, headings */
  --ink-2: #17393f;
  --ink-3: #224a51;
  --teal: #0b7a75;         /* clinical teal: primary actions, links */
  --teal-700: #08605c;
  --teal-50: #e3f3f1;
  --coral: #e8614a;        /* heartbeat coral: brand accent, graphics */
  --coral-700: #b93a25;    /* coral for text and filled buttons (AA on white) */
  --coral-50: #fdece8;
  --cream: #faf6f0;        /* page background */
  --sand: #f2eadf;
  --sand-2: #e7dccd;
  --paper: #ffffff;
  --text: #1b2a2e;
  --muted: #52646a;
  --line: #e4dccf;
  --ok: #1d7448; --ok-50: #e2f3e9;
  --watch: #94570a; --watch-50: #fdf0d9;
  --na: #5d6b70; --na-50: #eef1f1;
  --on-ink: #eef6f5;
  --on-ink-muted: #b7cccb;
  --radius: 14px; --radius-lg: 22px; --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(15, 42, 48, .06), 0 2px 8px rgba(15, 42, 48, .05);
  --shadow-2: 0 2px 6px rgba(15, 42, 48, .06), 0 14px 40px rgba(15, 42, 48, .10);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* language visibility: content carries lang="es" or lang="en" */
html[lang="es"] [lang="en"]:not(html), html[lang="en"] [lang="es"]:not(html) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 16px/1.6 var(--font-ui); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 600; font-variation-settings: "opsz" 96, "SOFT" 50; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 36; }
h4 { font-size: 1.05rem; font-family: var(--font-ui); letter-spacing: 0; font-weight: 650; }
p { margin: 0 0 1em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { top: 8px; }
.hidden { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section.tight { padding: 40px 0; }
.section.sand { background: var(--sand); }
.section.ink { background: var(--ink); color: var(--on-ink); }
.section.ink h2, .section.ink h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 650 .78rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-700); margin-bottom: 14px; }
.section.ink .eyebrow { color: #ffb4a6; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
@media (min-width: 900px) { .lead { font-size: 1.25rem; } }
.section.ink .lead { color: var(--on-ink-muted); }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 42, 48, .97); color: var(--on-ink); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.32rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand svg { width: 32px; height: 32px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links { display: none; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-ink-muted); text-decoration: none; font-weight: 500; font-size: .94rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
@media (min-width: 1080px) { .nav-links { display: flex; } }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px; margin-left: 6px; }
.lang-toggle button { background: none; border: 0; color: var(--on-ink-muted); font: 600 .78rem/1 var(--font-ui); padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 36px; min-height: 30px; }
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; border-radius: 12px; cursor: pointer; }
.menu-btn:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 1080px) { .menu-btn { display: none; } }
.btn.header-cta { display: none; }
@media (min-width: 600px) { .btn.header-cta { display: inline-flex; } }
.mobile-nav { display: none; border-top: 1px solid rgba(255, 255, 255, .08); padding: 8px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: var(--on-ink); text-decoration: none; padding: 12px var(--gutter); font-weight: 500; }
.mobile-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
@media (min-width: 1080px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* buttons */
.btn { --b: var(--teal); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--font-ui); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--coral-700); color: #fff; box-shadow: 0 6px 18px rgba(185, 58, 37, .25); }
.btn-primary:hover { background: #a3311e; color: #fff; box-shadow: 0 8px 24px rgba(185, 58, 37, .32); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sand-2); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--teal-50); color: var(--ink); }
.btn-on-ink { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-on-ink:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.btn.recording .dot { animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* cards, pills */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.hover { transition: transform .18s ease, box-shadow .18s ease; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: .35em; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); margin-bottom: 16px; }
.icon-tile.coral { background: var(--coral-50); color: var(--coral-700); }
.icon-tile svg { width: 26px; height: 26px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--font-ui); padding: 6px 10px; border-radius: 999px; background: var(--na-50); color: var(--na); white-space: nowrap; }
.pill.ok { background: var(--ok-50); color: var(--ok); }
.pill.watch { background: var(--watch-50); color: var(--watch); }
.pill.teal { background: var(--teal-50); color: var(--teal-700); }
.pill.coral { background: var(--coral-50); color: var(--coral-700); }
.pill.dark { background: rgba(255, 255, 255, .12); color: #fff; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--watch-50); color: #5c3a06; border: 1px solid #f1d9ab; font-size: .95rem; }
.banner svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.banner.info { background: var(--teal-50); color: var(--ink); border-color: #c4e3df; }
.badge-demo { display: inline-flex; align-items: center; gap: 6px; background: #ffd9a8; color: #5c3a06; font: 700 .72rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }

/* forms */
label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field .hint { font-size: .84rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="number"], select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--sand-2); background: var(--paper); color: var(--text); font: 400 1rem/1.4 var(--font-ui); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 122, 117, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 600 .9rem/1 var(--font-ui); color: var(--muted); cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.form-msg { margin-top: 12px; font-weight: 500; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--coral-700); }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow-2); font-weight: 500; display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; }
.toast.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6fe0a6; flex: none; }
.toast.err::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff8a73; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* empty states */
.empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--sand-2); border-radius: var(--radius-lg); color: var(--muted); background: rgba(255, 255, 255, .5); }
.empty svg { width: 96px; height: 96px; margin: 0 auto 12px; }
.empty h3 { color: var(--ink); }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(232, 97, 74, .16), transparent 60%), radial-gradient(900px 600px at 0% 110%, rgba(11, 122, 117, .18), transparent 60%), var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.hero .wrap { padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero .wrap { padding-top: 88px; padding-bottom: 96px; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #ffb4a6; font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero .lead { color: var(--on-ink-muted); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--on-ink-muted); font-size: .9rem; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { width: 18px; height: 18px; color: #7fd6cc; }
.beat-line { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; opacity: .25; pointer-events: none; }
.page-hero { background: var(--ink); color: var(--on-ink); padding: 56px 0 48px; }
@media (min-width: 900px) { .page-hero { padding: 88px 0 72px; } }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); }
.page-hero .lead { color: var(--on-ink-muted); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 600 .85rem/1 var(--font-ui); color: var(--coral-700); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.step .art { height: 120px; margin: -6px -6px 14px; border-radius: 16px; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.step .art svg { height: 100%; width: auto; }

/* stat band */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }

.stat { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.stat b { display: block; font: 600 2rem/1.1 var(--font-display); color: #fff; }
.stat span { color: var(--on-ink-muted); font-size: .9rem; }

/* detection lists */
.detect-card { display: grid; gap: 16px; }
.detect-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.detect-card li { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detect-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.detect-card .confirm { font-size: .9rem; color: var(--muted); }
.detect-card .confirm b { color: var(--teal-700); font-weight: 600; }

/* quote */
.quote { font: 500 clamp(1.3rem, 2.6vw, 1.85rem)/1.35 var(--font-display); color: var(--ink); max-width: 820px; margin: 0 auto; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 32px; font-size: .92rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* analysis UI shared by demo, app and vet */
.wave-box { background: var(--ink); border-radius: var(--radius); padding: 14px; position: relative; }
.wave-box canvas { width: 100%; height: 120px; }
.wave-box .wave-meta { display: flex; justify-content: space-between; color: var(--on-ink-muted); font-size: .78rem; margin-top: 6px; }
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vital { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.vital .k { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.vital .v { font: 600 2rem/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.vital .v small { font: 500 .85rem var(--font-ui); color: var(--muted); margin-left: 4px; }
.vital .r { font-size: .8rem; color: var(--muted); }
.flag-groups { display: grid; gap: 12px; }
@media (min-width: 900px) { .flag-groups.cols { grid-template-columns: repeat(3, 1fr); } }
.flag-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.flag-group h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.flag-group h4 .gi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral-700); }
.flag-group h4 .gi svg { width: 16px; height: 16px; }
.flag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.flag:first-of-type { border-top: 0; }
.flag .fv { color: var(--muted); font-size: .8rem; display: block; }
.disclaimer { font-size: .85rem; color: var(--muted); }
.drop { border: 2px dashed var(--sand-2); border-radius: var(--radius-lg); padding: 24px; text-align: center; background: rgba(255, 255, 255, .6); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--teal); background: var(--teal-50); }
.meter { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--coral)); transition: width .1s linear; }
.progress-ring { font-variant-numeric: tabular-nums; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* app shell */
.app-body { background: #f6f2ec; }
.app-header { background: var(--ink); color: var(--on-ink); }
.app-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.app-header .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--on-ink-muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.app-main { padding: 28px 0 80px; }
.app-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.app-tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.app-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--coral); }
.list { display: grid; gap: 12px; }
.list-item { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; cursor: pointer; width: 100%; text-align: left; font: inherit; }
.list-item:hover { border-color: var(--teal); box-shadow: var(--shadow-1); color: var(--text); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 650; color: var(--ink); }
.list-item .sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item.unread { border-left: 4px solid var(--coral); }
.pet-dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); flex: none; color: var(--ink); }
.pet-dot svg { width: 26px; height: 26px; }
.thread { display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--sand); }
.msg.vet { background: var(--teal-50); border: 1px solid #c4e3df; }
.msg.me { margin-left: auto; background: var(--ink); color: #fff; }
.msg .meta { font-size: .75rem; opacity: .75; margin-bottom: 2px; font-weight: 600; }
.code-card { background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #fff; border-radius: var(--radius-lg); padding: 22px; }
.code-card .code { font: 600 2rem/1.1 var(--font-display); letter-spacing: .08em; margin: 6px 0 10px; }
.layout-2 { display: grid; gap: 24px; }
@media (min-width: 980px) { .layout-2 { grid-template-columns: 360px 1fr; align-items: start; } .layout-2.wide-left { grid-template-columns: 1fr 340px; } }
.signin { max-width: 440px; margin: 40px auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; scroll-behavior: auto !important; } }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal { max-width: 760px; }
@media (max-width: 599px) { .hide-sm { display: none; } .app-header .pill.dark { display: none; } }
.list-item { min-width: 0; } .list, .list > *, .layout-2 > * { min-width: 0; }
.flag-groups.cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.badge-demo { white-space: nowrap; }
.btn.quick { white-space: normal; text-align: left; line-height: 1.3; min-height: 36px; padding: 8px 12px; font-weight: 500; }
@media (max-width: 599px) {
  .list-item { flex-wrap: wrap; }
  .list-item .grow { flex: 1 1 calc(100% - 60px); }
  .list-item > .row { width: 100%; justify-content: flex-start !important; padding-left: 56px; }
  .app-header .brand span { display: none; }
}

/* ---------- accounts (/entrar/, /registro/), 15-oct-2026 ---------- */
input[type="password"] { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--sand-2); background: var(--paper); color: var(--text); font: 400 1rem/1.3 var(--font-ui); }
.label-like { font-weight: 600; }
.auth-body { background: var(--cream); }
.auth { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(380px, 1fr) minmax(480px, 1.1fr); } }
.auth-side { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 0% 0%, #1f5058 0%, var(--ink) 55%), var(--ink); color: var(--on-ink); padding: 22px var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.auth-side .brand svg { width: 34px; height: 34px; }
.auth-side .auth-pitch { display: none; }
.auth-side .lang-toggle { margin-left: auto; }
.auth-top { display: flex; align-items: center; gap: 12px; }
@media (min-width: 960px) {
  .auth-side { padding: 40px 48px; justify-content: space-between; }
  .auth-side .auth-pitch { display: block; max-width: 460px; }
}
.auth-pitch h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 18px; }
.auth-pitch h2 em { color: #ff9b86; font-style: italic; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--on-ink-muted); }
.auth-pitch li { display: flex; gap: 12px; align-items: flex-start; }
.auth-pitch li svg { flex: none; width: 22px; height: 22px; color: #7fd6cc; margin-top: 1px; }
.auth-beat { display: none; position: absolute; left: 0; right: 0; bottom: 18%; opacity: .16; pointer-events: none; }
.auth-foot { font-size: .82rem; color: var(--on-ink-muted); display: none; }
@media (min-width: 960px) { .auth-foot, .auth-beat { display: block; } }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 28px var(--gutter) 56px; }
@media (min-width: 960px) { .auth-main { align-items: center; padding: 48px; } }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card { padding: 28px; }
@media (min-width: 600px) { .auth-card .card { padding: 36px; } }
.auth-title { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-bottom: 6px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: var(--sand); color: var(--ink); font: 600 .8rem/1 var(--font-ui); padding: 0 12px; border-radius: 9px; cursor: pointer; }
.code-input { font: 600 1.7rem/1 var(--font-ui) !important; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.role-seg { display: flex; width: 100%; }
.role-seg button { flex: 1; }
.btn.is-busy { opacity: .7; cursor: progress; }
.auth-note { margin-top: 18px; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- admin (/admin/) ---------- */
.admin-top { justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.admin-h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; }
.admin-qa { font-size: .88rem; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral-700); color: #fff; font-size: .72rem; margin-left: 4px; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-1); min-width: 0; }
.kpi span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font: 600 2rem/1.15 var(--font-display); color: var(--ink); margin: 6px 0 2px; white-space: nowrap; }
.kpi b em { font-style: normal; color: var(--sand-2); }
.kpi small { color: var(--muted); font-size: .82rem; }
.kpi.warn { border-color: #f1d9ab; background: var(--watch-50); }
.admin-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .admin-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.chart { width: 100%; height: auto; }
.chart .ax { font: 500 11px var(--font-ui); fill: var(--muted); }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fn-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sand); font-size: .92rem; }
.fn-row:last-child { border-bottom: 0; }
.fn-bar { height: 12px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--coral)); }
.fn-num { min-width: 64px; text-align: right; }
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ta { display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; color: var(--ink); font-size: .88rem; }
.ta:hover { border-color: var(--teal); }
.filters { display: grid; gap: 0 12px; grid-template-columns: 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 4px; margin-bottom: 16px; }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .filters-actions { grid-column: 1 / -1; } }
.filters-actions { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font-weight: 650; color: var(--muted); background: #fbf8f3; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fdfbf7; }
.tbl code { font-size: .8rem; background: var(--teal-50); color: var(--teal-700); padding: 2px 6px; border-radius: 6px; }
.tbl code.srv { background: var(--coral-50); color: var(--coral-700); }
.tbl .clip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .nowrap { white-space: nowrap; }
.tbl .pills { white-space: nowrap; }
.approvals, .codes { display: grid; gap: 14px; }
@media (min-width: 900px) { .approvals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.code-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.code-row .grow { flex: 1; min-width: 0; }
.code-row .title { font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.code-big { font: 700 1.6rem/1 var(--font-ui); letter-spacing: .18em; color: var(--ink); background: var(--sand); border: 0; border-radius: 12px; padding: 12px 14px; cursor: copy; }

/* admin feedback list */
.fb-item { padding: 16px 20px; }
.fb-item.fb-new { border-left: 4px solid var(--coral); }
.fb-item code { font-size: .8rem; }

/* =====================================================================================================================
   v2 (15-oct-2026): design review CRITICA-DISENO-2026-10-15 applied. Light header, hero C (demo first), consistent
   illustration set, price ladder, timeline, reservation, compact tool pages, touch targets, contrast fixes.
   ===================================================================================================================== */
:root { --mint: #7fd6cc; --header-h: 68px; }
h1 { text-wrap: balance; }
h2, h3 { text-wrap: balance; }
.h3 { font-size: 1.25rem; font-variation-settings: "opsz" 36; }
p, li { text-wrap: pretty; }

/* header: light, four links, one primary button, sign-in as text (G5); 44 px targets (G6) */
.site-header { background: rgba(250, 246, 240, .94); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(10px); }
.site-header .wrap { height: var(--header-h); }
.site-header .brand, .site-header .brand:hover { color: var(--ink); }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.nav-signin { display: none; color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none; padding: 12px 10px; }
.nav-signin:hover { color: var(--teal-700); text-decoration: underline; }
@media (min-width: 1080px) { .nav-signin { display: inline-block; } }
.lang-toggle { border-color: var(--sand-2); }
.lang-toggle button { color: var(--muted); min-width: 44px; min-height: 40px; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-btn { color: var(--ink); }
.menu-btn:hover { background: var(--sand); }
.header-cta { margin-left: 8px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--cream); }
.mobile-nav .wrap { padding-top: 6px; }
.mobile-nav a:not(.btn) { color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-nav a:not(.btn):hover { background: none; color: var(--teal-700); }
.mobile-nav a[aria-current="page"] { color: var(--coral-700); }
.mobile-ctas { display: grid; gap: 10px; margin-top: 16px; }
.mobile-ctas .btn { padding: 0 16px; }
.app-header .lang-toggle, .auth-side .lang-toggle { border-color: rgba(255, 255, 255, .22); }
.app-header .lang-toggle button, .auth-side .lang-toggle button { color: var(--on-ink-muted); }
.app-header .lang-toggle button[aria-pressed="true"], .auth-side .lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* eyebrows: coral-700 on cream is AA; on dark heroes use the light coral (G4: 8.8:1) */
.page-hero .eyebrow, .section.ink .eyebrow, .cta-band .eyebrow { color: #ffb4a6; }
.btn-ghost { border-color: #cdbfac; }

/* hero C */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fffdf9 100%); color: var(--text); }
.hero .wrap { padding-top: 32px; padding-bottom: 48px; }
@media (min-width: 900px) { .hero .wrap { padding-top: 64px; padding-bottom: 88px; } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: .95fr 1.05fr; gap: 56px; } }
.hero h1 { color: var(--ink); max-width: 13ch; margin: 12px 0 18px; font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
.hero h1 em { color: var(--coral-700); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero .lead { color: var(--muted); max-width: 34ch; }
.hero-ctas { margin-top: 26px; }
.hero-price { margin: 18px 0 0; color: var(--muted); font-size: .95rem; max-width: 46ch; }
.hero-price strong { color: var(--ink); font-size: 1.05rem; }
.hero-vet { margin: 10px 0 0; font-size: .95rem; }
.hero-vet a { display: inline-block; padding: 10px 0; font-weight: 600; }
.demo-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 6px rgba(15, 42, 48, .06), 0 24px 60px rgba(15, 42, 48, .12); overflow: hidden; min-width: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; min-height: 52px; border: 0; background: none; font: 600 .95rem/1.2 var(--font-ui); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; padding: 8px 10px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.tabs button:hover { color: var(--ink); }
.dc-body { padding: 18px; }
@media (min-width: 600px) { .dc-body { padding: 20px 22px; } }
.scope { position: relative; background: var(--ink); border-radius: 16px; height: 150px; overflow: hidden; }
.scope canvas { width: 100%; height: 100%; display: block; }
.scope-lbl { position: absolute; right: 10px; top: 8px; background: rgba(15, 42, 48, .85); padding: 3px 8px; border-radius: 6px; font-size: .74rem; color: var(--on-ink-muted); }
.dc-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.dc-row .pill { margin-left: auto; }
.play { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--coral-700); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(185, 58, 37, .3); flex: none; }
.play:hover { background: #a3311e; }
.play svg { width: 24px; height: 24px; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.play.sm { width: 44px; height: 44px; box-shadow: none; }
.play.sm svg { width: 18px; height: 18px; }
.bpm { font: 600 3rem/1 var(--font-display); color: var(--ink); }
.bpm small { font: 500 .9rem var(--font-ui); color: var(--muted); margin-left: 6px; }
.dc-disc { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.dc-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; margin: 16px 0 0; }
.dc-meta dt { color: var(--muted); }
.dc-meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.dc-reply { margin-top: 14px; background: var(--teal-50); color: var(--ink); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: .92rem; }
.dc-reply b { display: block; font-size: .75rem; color: var(--teal-700); margin-bottom: 2px; }
.dc-unit { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--sand); border-top: 1px solid var(--line); }
.dc-unit p { margin: 0; font-size: .86rem; color: var(--ink); }
.unit-art { width: 120px; height: auto; flex: none; }
[hidden] { display: none !important; }

/* facts strip (H6) */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.facts ul { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 10px 28px; }
@media (min-width: 900px) { .facts ul { grid-template-columns: 1.6fr 1fr 1.2fr; } }
.facts li { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: .95rem; }
.facts svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

/* section heads */
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.narrow { max-width: 720px; }

/* steps: one illustration set (H7, CF4) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step::before { content: none; }
.step { display: flex; flex-direction: column; }
.step .art { height: 200px; margin: 0 0 16px; border-radius: 16px; background: var(--sand); display: grid; place-items: center; overflow: hidden; padding: 10px; }
.step .art svg { height: 100%; width: auto; max-width: 100%; }
.step-n { font: 650 .8rem/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-700); margin-bottom: 10px; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }
.walk { margin-bottom: 72px; }
.walk:last-child { margin-bottom: 0; }
.walk-art { background: var(--sand); border-radius: var(--radius-lg); display: grid; place-items: center; padding: 24px; height: 360px; }
.walk-art svg { height: 100%; width: auto; max-width: 100%; }

/* warm section with the hero B dog */
.warm-art svg { width: 100%; max-width: 480px; margin: 0 auto; height: auto; }
.warm-h { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.warm-h em { color: var(--coral-700); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.box-h { font-size: 1.1rem; margin-top: 24px; }
.dog-scene .arcs path { animation: arc 1.6s ease-in-out infinite; transform-origin: 262px 312px; }
.dog-scene .arcs path:nth-child(2) { animation-delay: .2s; } .dog-scene .arcs path:nth-child(3) { animation-delay: .4s; }
@keyframes arc { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.ticks.big li { font-size: 1rem; }
.row-card { display: flex; gap: 16px; align-items: flex-start; }
.row-card .icon-tile { margin-bottom: 0; flex: none; }
.row-card p { margin: 0; }
.vet-mini svg { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }

/* price ladder */
.price-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1fr 1.12fr 1fr; align-items: stretch; } }
.price-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1); }
.price-card.featured { border: 2px solid var(--coral-700); box-shadow: var(--shadow-2); }
.price-card h3 { margin: 0; font-size: 1.2rem; }
.price-card .price { font: 600 2.6rem/1 var(--font-display); color: var(--ink); }
.price-card .price small { display: block; font: 500 .9rem/1.4 var(--font-ui); color: var(--muted); margin-top: 6px; }
.price-card .ticks { flex: 1; font-size: .95rem; }
.price-badge { position: absolute; top: -13px; left: 22px; background: var(--coral-700); color: #fff; }
.price-foot { text-align: center; color: var(--muted); max-width: 760px; margin: 24px auto 0; font-size: .95rem; }

/* timeline (honest calendar, replaces "Primeras unidades en 2026") */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.tl-item { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.tl-item h3 { font-size: 1.15rem; margin-bottom: .35em; }
.tl-item p { margin: 0; font-size: .95rem; }
.tl-when { display: inline-block; font: 650 .78rem/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 10px; }
.tl-now { border: 2px solid var(--teal); }
.tl-now .tl-when { color: #fff; background: var(--teal); padding: 5px 9px; border-radius: 999px; }

/* counter (shown only above its threshold) */
.counter { margin: 18px auto 0; font-weight: 600; color: inherit; }
.counter small { display: block; font-weight: 400; opacity: .8; }

/* page hero: compact on tool pages (G10) */
.page-hero.compact { padding: 36px 0 30px; }
@media (min-width: 900px) { .page-hero.compact { padding: 48px 0 40px; } }
.page-hero.compact h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: .3em; }
.page-hero.compact .lead { font-size: 1.05rem; margin: 0; }

/* FAQ, footer, back links: 44 px targets (G6) */
.faq { max-width: 860px; }
summary { min-height: 44px; align-items: center; padding: 6px 0; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.foot-brand p { margin-top: 14px; max-width: 340px; }
.foot-h { color: #fff; font: 650 .8rem/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.foot-grid ul { gap: 0; }
.foot-grid li a { display: inline-block; padding: 10px 0; }
.foot-legal { display: grid; gap: 10px; }
.foot-legal p { margin: 0; }
.foot-use { max-width: 820px; }
.back-link { display: inline-block; padding: 12px 0; }

/* detect cards (QD3) */
.detect-card { align-content: start; }
.emergency { background: var(--watch-50); color: #5c3a06; border: 1px solid #f1d9ab; border-radius: var(--radius); padding: 14px 16px; }

/* vets page */
.spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 20px 0 0; }
.spec dt { color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; color: var(--ink); }
.inbox-head { background: var(--ink); padding: 16px 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; }

/* demo */
.wave-box { overflow: hidden; }
.wave-empty { position: absolute; left: 14px; right: 14px; top: 14px; height: 120px; display: grid; place-items: center; color: var(--on-ink-muted); font-size: .95rem; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .04) 39px 40px); border-radius: 10px; }
.wave-empty::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed rgba(127, 214, 204, .45); }
.wave-empty span { position: relative; background: var(--ink); padding: 4px 10px; border-radius: 8px; }
.wave-lbl { color: var(--on-ink-muted); }
.player { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--on-ink); }
.prog { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), #ff9b87); }
.sample-row .btn { min-height: 44px; }
.sample-row .btn[aria-pressed="true"] { outline: 3px solid var(--coral); outline-offset: 2px; }
.rec-tag { font-size: .72rem; font-weight: 600; opacity: .9; margin-left: 6px; text-transform: lowercase; }
.result-sum { display: grid; gap: 10px; }
.result-sum .rs-line { font: 600 1.15rem/1.35 var(--font-ui); color: var(--ink); margin: 0; }
.result-sum .rs-rates { font: 600 2.2rem/1 var(--font-display); color: var(--ink); }
.result-sum .rs-rates small { font: 500 .9rem var(--font-ui); color: var(--muted); margin: 0 14px 0 4px; }
.more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 0 16px; margin-top: 12px; }
.more summary { font-size: .95rem; color: var(--teal-700); }
.more[open] { padding-bottom: 16px; }
.tech dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; margin: 8px 0 0; }
.tech dt { color: var(--muted); } .tech dd { margin: 0; color: var(--ink); }

/* reservation */
.reserve-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .reserve-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend.label-like { font-size: .92rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--sand-2); background: var(--paper); cursor: pointer; font-weight: 600; color: var(--ink); }
.chip-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-opt input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.plans { display: grid; gap: 8px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--sand-2); border-radius: 14px; background: var(--paper); cursor: pointer; font-weight: 500; min-height: 52px; }
.plan-opt:has(input:checked) { border-color: var(--coral-700); background: var(--coral-50); }
.plan-opt input { width: 20px; height: 20px; accent-color: var(--coral-700); flex: none; margin: 0; }
.plan-name { flex: 1; color: var(--ink); }
.plan-rec { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--coral-700); text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; }
.plan-price { font-weight: 700; color: var(--ink); }
.privacy-line { margin: 12px 0 0; }
.reserve-side .ticks { margin-bottom: 20px; }
.know { margin-top: 20px; background: var(--sand); border: 0; }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px 24px; box-shadow: var(--shadow-2); }
.ticket-n { font: 600 clamp(3rem, 12vw, 5.5rem)/1 var(--font-display); color: var(--coral-700); margin: 8px 0 10px; }
.thanks h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* team */
.team-card .tm-name { font: 600 1.4rem/1.1 var(--font-display); color: var(--ink); margin: 0 0 4px; }
.team-card .tm-where { font-size: .88rem; color: var(--teal-700); font-weight: 600; margin: 0 0 10px; }

/* legal line length (P1) */
.prose { max-width: 68ch; }

/* 404 */
.nf .nf-art svg { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.nf h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* app and vet shells */
.app-foot { padding: 20px 0 90px; font-size: .8rem; color: var(--muted); }
.app-foot p { max-width: 820px; margin: 0; }
.skeleton { display: grid; gap: 12px; }
.skeleton i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--sand) 0%, #f8f2ea 50%, var(--sand) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.skeleton i:nth-child(1) { width: 40%; height: 28px; } .skeleton i:nth-child(2) { width: 90%; } .skeleton i:nth-child(3) { width: 70%; }
@keyframes sk { to { background-position: -200% 0; } }
.badge-demo .bd-dot { width: 8px; height: 8px; border-radius: 50%; background: #94570a; }
@media (max-width: 599px) {
  .app-header .brand span { display: inline; }
  .badge-demo .bd-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .app-header .role-pill { display: none; }
}
.chip-filter { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--sand-2); background: var(--paper); font: 600 .88rem/1 var(--font-ui); color: var(--ink); cursor: pointer; }
.chip-filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.case-rows .list-item { padding: 10px 14px; min-height: 56px; }
.rate-btns { display: inline-flex; gap: 6px; }
.rate-btns button { min-height: 36px; min-width: 48px; border-radius: 999px; border: 1.5px solid var(--sand-2); background: var(--paper); font: 600 .85rem/1 var(--font-ui); cursor: pointer; }
.rate-btns button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.pets-empty svg { width: 120px; height: auto; margin: 0 auto 8px; }

/* small screens */
@media (max-width: 599px) {
  .hero .lead { font-size: 1.05rem; }
  .bpm { font-size: 2.5rem; }
  .dc-row .pill { margin-left: 0; }
  .walk-art { height: 280px; }
  .step .art { height: 180px; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) { .dog-scene .arcs path { animation: none; } }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (min-width: 1200px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.app-conn { display: inline-flex; align-items: center; gap: 6px; color: var(--on-ink); text-decoration: none; font-size: .88rem; font-weight: 600; padding: 10px 8px; border-radius: 10px; margin-left: 8px; }
.app-conn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.app-conn svg { width: 18px; height: 18px; color: var(--mint); }
@media (max-width: 599px) { .app-conn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.app-foot-links { margin: 0 0 8px !important; }
.app-foot-links a { display: inline-block; padding: 10px 0; }
a { color: var(--teal-700); } a:hover { color: var(--ink); } .section.ink a:not(.btn), .site-footer a { color: var(--on-ink); }
@media (max-width: 599px) {
  .app-header .wrap { gap: 6px; }
  .app-header .brand { font-size: 1.1rem; gap: 6px; }
  .app-header .brand svg { width: 26px; height: 26px; }
  .app-header .lang-toggle { margin-left: 0; }
  .app-header .lang-toggle button { min-width: 38px; padding: 6px 7px; }
  .app-header .who { gap: 6px; }
  .app-header .who .btn-sm { padding: 0 10px; }
  .kpi b { font-size: 1.7rem; }
}
