/* invets.vet — every style for the site. Tokens mirror the product's Apricot theme
   (VetSoftware docs/design/tokens.css) so the site and the app read as one company.
   Rule carried over from the product: a mid-luminance color is a FILL, never behind text;
   text on a light ground uses the -deep member of its family. */

:root {
  --ink: #1C1A17;
  --ink-2: #332F27;
  --paper: #FFFFFF;
  --paper-warm: #F7F3EB;
  --ground: #EFE7DF;          /* between the product's canvas and soft grounds */
  --line: #D9CEC4;
  --muted: #5E574F;
  --accent: #FF8A4C;
  --accent-hi: #FFA372;
  --accent-deep: #A0451C;
  --accent-tint: #FFEDE1;
  --alt: #0E8F9B;
  --alt-deep: #08525A;
  --alt-tint: #DEF3F5;
  --ok: #2F7A4F;              /* connection status only, as in the product */
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--alt); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }

/* Buttons: accent fill carries ink text, per the product's --iv-btn-ink. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--ink); font: 800 16px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hi); color: var(--ink); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper-warm); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(239, 231, 223, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 24px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--sans); letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.mark__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.top__nav { display: flex; gap: 24px; margin-left: auto; }
.top__nav a { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.top__nav a:hover { color: var(--accent-deep); }
@media (max-width: 760px) { .top__nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1fr 1.02fr; gap: 64px; } .hero { padding: 88px 0 112px; } }
.hero h1 { font: 800 clamp(2.5rem, 5.6vw, 4.5rem)/1.02 var(--sans); letter-spacing: -.045em; max-width: 12ch; text-wrap: balance; }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* The board: a working miniature of the product's Today panel. */
.board { background: var(--paper); border-radius: 18px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -20px rgba(28, 26, 23, .35);
  overflow: hidden; border: 2px solid transparent; transition: border-color .3s; }
.board[data-online="false"] { border-color: var(--accent); }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--ink); color: var(--paper-warm); }
.board__title { font: 800 18px/1.1 var(--sans); letter-spacing: -.03em; }
.board__clinic { font-size: 13px; color: #BDB3A8; margin-top: 2px; }
.conn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  font: 600 13px/1 var(--mono); }
.conn__dot { width: 8px; height: 8px; border-radius: 50%; background: #5BC28A; }
.board[data-online="false"] .conn { background: var(--accent); color: var(--ink); }
.board[data-online="false"] .conn__dot { background: var(--ink); }

.board__rows { list-style: none; padding: 6px 0; }
.row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 20px; }
.row:nth-child(even) { background: #FBF7F4; }
.row__time { font: 600 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.row__pet { font-weight: 800; font-size: 15px; line-height: 1.2; }
.row__who { font-size: 13px; color: var(--muted); }
.row__act { display: flex; align-items: center; gap: 8px; }
.chip { font: 700 12px/1 var(--mono); padding: 5px 8px; border-radius: 5px; white-space: nowrap; }
.chip--booked { background: #EBE8E4; color: #4E4842; }
.chip--in { background: var(--alt-tint); color: var(--alt-deep); }
.chip--room { background: var(--accent-tint); color: var(--accent-deep); }
.chip--out { background: var(--ink); color: var(--paper-warm); }
.chip--done { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px currentColor; }
.adv { min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 700 13px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.adv:hover { border-color: var(--ink); }
.adv[hidden] { display: none; }
.pending { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 460px) { .row { grid-template-columns: 44px 1fr; } .row__act { grid-column: 2; } }

.board__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 20px; border-top: 1px solid #EBE8E4; }
.cut { min-height: 40px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--ink); color: var(--paper-warm); font: 800 14px/1 var(--sans); cursor: pointer; }
.cut:hover { background: var(--ink-2); }
.cut[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.queue { font-size: 14px; color: var(--ink-2); }
.queue b { font-family: var(--mono); }
.board__hint { padding: 0 20px 16px; font-size: 13px; color: var(--muted); }

/* Shared section rhythm */
section { padding: 88px 0; }
h2 { font: 800 clamp(1.9rem, 3.4vw, 2.75rem)/1.08 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
h3 { font: 800 19px/1.25 var(--sans); letter-spacing: -.02em; }
.section-head { display: grid; gap: 20px; margin-bottom: 48px; }
.section-head p { font-size: 18px; color: var(--ink-2); max-width: 38em; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: end; } }

.problem { background: var(--paper); }
.problem h2 { max-width: 22ch; }
.problem__grid { display: grid; gap: 32px; margin-top: 48px; }
.problem__grid p { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 820px) { .problem__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .problem__grid > div { padding: 0 32px; border-left: 1px solid var(--line); } .problem__grid > div:first-child { padding-left: 0; border-left: 0; } }

.features { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.features > div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.features dt { font-weight: 800; font-size: 18px; letter-spacing: -.015em; }
.features dd { color: var(--ink-2); max-width: 36em; }
@media (min-width: 820px) { .features { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .features > div { grid-template-columns: 11rem 1fr; gap: 20px; } }

.how { background: var(--alt-deep); color: #E3F1F2; }
.how h2 { color: #fff; }
.how__grid { display: grid; gap: 48px; }
.how__grid p { margin-top: 18px; max-width: 34em; }
@media (min-width: 900px) { .how__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; } }
.flow { list-style: none; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: rgba(255, 255, 255, .25); }
.flow li { position: relative; padding: 0 0 26px 40px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--alt-deep); box-shadow: inset 0 0 0 3px #7FD3DA; }
.flow strong { display: block; color: #fff; font-size: 20px; letter-spacing: -.02em; }
.flow span { color: #BFDDE0; }

/* The model is drawn as the thing it describes: an invoice with two lines. */
.model { background: var(--ink); color: #D8D0C6; }
.model h2, .model h3 { color: var(--paper-warm); }
.section-head--dark p { color: #D8D0C6; }
.model__grid { border-top: 2px solid var(--accent); }
.line { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px dashed rgba(247, 243, 235, .25); }
.line__name { font: 800 24px/1.2 var(--sans); letter-spacing: -.03em; color: var(--paper-warm); }
.line__what { max-width: 40em; }
@media (min-width: 820px) { .line { grid-template-columns: 16rem 1fr; gap: 32px; align-items: baseline; } }
.model__lists { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 820px) { .model__lists { grid-template-columns: 1fr 1fr; gap: 64px; } }
.model__lists ul { list-style: none; padding: 0; margin-top: 14px; }
.model__lists li { padding: 9px 0 9px 26px; border-bottom: 1px solid rgba(247, 243, 235, .12); position: relative; }
.model__lists div:first-child li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.model__lists div:last-child li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 2px; background: #8E857B; }
.model__note { margin-top: 20px; color: var(--paper-warm); }

.company__grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .company__grid { grid-template-columns: 1fr 1.15fr; gap: 80px; } }
.person { padding: 20px 0; border-bottom: 1px solid var(--line); }
.team h3 + .person { border-top: 2px solid var(--ink); margin-top: 14px; }
.person__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.person__role { color: var(--accent-deep); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.person p:last-child { color: var(--ink-2); }

.steps { list-style: none; padding: 0; margin-top: 14px; border-top: 2px solid var(--ink); }
.steps li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; top: 23px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); }
.steps li.is-done::before { background: var(--ink); box-shadow: none; }
.steps li.is-now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.steps strong { display: block; font-size: 18px; letter-spacing: -.015em; }
.steps span { color: var(--ink-2); }
.backers { margin-top: 20px; font-size: 15px; color: var(--muted); }

.access { background: var(--paper); }
.access__grid { display: grid; gap: 40px; }
.access__grid > div p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 28em; }
@media (min-width: 900px) { .access__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.form { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 100%; display: grid; gap: 6px; }
.field--half { flex: 1 1 200px; }
.field label { font-weight: 700; font-size: 15px; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #BFB4A9; border-radius: 9px;
  background: #FBF7F4; color: var(--ink); font: 500 16px/1.4 var(--sans); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--alt); outline-offset: 1px; border-color: var(--alt-deep); }
.field [aria-invalid="true"] { border-color: #D93B1C; }
.hp { position: absolute; left: -9999px; }
.form__status { flex: 1 1 100%; min-height: 1.6em; font-weight: 700; }
.form__status.is-error { color: #B12F14; }
.form__status.is-ok { color: var(--ok); }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--ink); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 16px 96px; }
.legal h1 { font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 var(--sans); letter-spacing: -.035em; margin: 24px 0 6px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; letter-spacing: -.02em; }
.legal p { margin-bottom: 12px; color: var(--ink-2); }
.legal .eff { color: var(--muted); font-size: 15px; }

/* Switching: a real sequence, so it is numbered. */
.switch__steps { list-style: none; padding: 0; display: grid; gap: 24px; counter-reset: s; }
.switch__steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); }
.switch__steps li::before { content: counter(s); display: block; font: 800 15px/1 var(--mono); color: var(--accent-deep); margin-bottom: 10px; }
.switch__steps strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.switch__steps span { color: var(--ink-2); }
@media (min-width: 820px) { .switch__steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.line__price { display: block; font: 800 clamp(2rem, 4vw, 2.75rem)/1.1 var(--sans); letter-spacing: -.04em; color: var(--accent); margin-bottom: 6px; }
