/* JoinVet public pages. Verdict colours carry meaning; nothing else is coloured. */
:root {
  --night: #0d1421; --panel: #172032; --line: #283449;
  --text: #ecf0f7; --muted: #8b97ad;
  --real: #34c77b; --mixed: #f4be3c; --bought: #ef5350;
  --measure: 64ch;
}
@font-face {
  font-family: "Archivo"; src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 100% 125%; font-display: swap;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: "wdth" 100; font-size: 17px; line-height: 1.55;
}
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--real); }
:focus-visible { outline: 3px solid var(--real); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
nav.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.mark { font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.01em; font-size: 20px; text-decoration: none; }
.mark span { color: var(--real); }
nav.top .links a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
nav.top .links a:hover { color: var(--text); }

h1, h2, h3 { font-variation-settings: "wdth" 125; letter-spacing: -.015em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 850; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 750; margin-bottom: 6px; }
p { max-width: var(--measure); margin: 0 0 14px; }
.lede { font-size: 20px; color: #c9d1de; max-width: 46ch; margin-top: 20px; }
.muted { color: var(--muted); }

.btn {
  display: inline-block; background: var(--real); color: var(--night); font-weight: 750;
  padding: 15px 24px; border-radius: 999px; text-decoration: none; font-size: 17px;
}
.btn:hover { color: var(--night); background: #4ad98d; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--muted); color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* hero: the doorway */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 40px 0 90px; }
.door { position: relative; display: grid; gap: 14px; }
.req {
  background: var(--panel); border-radius: 18px; padding: 16px 18px 16px 22px; position: relative;
  border-left: 6px solid var(--line); font-size: 15px;
}
.req .who { font-weight: 750; font-size: 17px; }
.req .facts { color: var(--muted); margin-top: 4px; }
.req .why { margin-top: 8px; font-size: 14px; }
.stamp {
  position: absolute; top: 14px; right: 16px; font-weight: 850; font-variation-settings: "wdth" 125;
  font-size: 13px; padding: 5px 11px; border-radius: 8px; color: var(--night); transform: rotate(-4deg);
}
.req.real { border-left-color: var(--real); } .req.real .stamp { background: var(--real); }
.req.mixed { border-left-color: var(--mixed); } .req.mixed .stamp { background: var(--mixed); }
.req.bought { border-left-color: var(--bought); } .req.bought .stamp { background: var(--bought); }
.req.bought .why { color: #ffb4b2; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
  .req:nth-child(1) .stamp { animation-delay: .35s; }
  .req:nth-child(2) .stamp { animation-delay: .75s; }
  .req:nth-child(3) .stamp { animation-delay: 1.15s; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(2.2); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
}

section { padding: 70px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* scorecard, drawn the way the bot draws it */
.board { background: var(--panel); border-radius: 22px; padding: 22px; }
.src { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.src:last-child { border-bottom: 0; }
.src b { font-size: 18px; font-variation-settings: "wdth" 115; }
.src .grade { font-size: 13px; font-weight: 800; align-self: center; }
.meter { grid-column: 1 / -1; height: 8px; background: #ffffff12; border-radius: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; }
.src small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
ol.steps li { counter-increment: s; }
ol.steps li::before {
  content: counter(s); display: block; font-size: 56px; font-weight: 850; font-variation-settings: "wdth" 125;
  color: var(--real); line-height: 1; margin-bottom: 10px;
}

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.plan { border-radius: 22px; padding: 26px; box-shadow: inset 0 0 0 2px var(--line); }
.plan.pro { background: var(--panel); box-shadow: inset 0 0 0 2px var(--real); }
.plan .price { font-size: 40px; font-weight: 850; font-variation-settings: "wdth" 125; margin: 8px 0 14px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 20px; margin: 0; } .plan li { margin: 6px 0; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { margin-top: 10px; color: #c9d1de; }

footer { border-top: 1px solid var(--line); padding: 34px 0 60px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); margin-right: 18px; }

/* long-form pages: help, privacy, terms */
.doc { max-width: 760px; padding: 20px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 18px; }
.doc h2 { font-size: 26px; margin: 42px 0 12px; }
.doc code { background: var(--panel); padding: 2px 7px; border-radius: 6px; font-size: 15px; }
.doc table { border-collapse: collapse; width: 100%; margin: 10px 0 18px; font-size: 16px; }
.doc td { border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; vertical-align: top; }
.doc td:first-child { white-space: nowrap; padding-right: 18px; }
.note { background: var(--panel); border-left: 5px solid var(--mixed); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }

@media (max-width: 860px) {
  .hero, .split, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 10px; gap: 36px; }
  ol.steps { grid-template-columns: 1fr; }
  nav.top .links a:not(.keep) { display: none; }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
}

/* setup guide: steps beside drawn phone screens */
.guide { max-width: 1040px; padding: 10px 0 80px; }
.guide h1 { font-size: clamp(38px, 6vw, 64px); margin: 10px 0 0; }
.guide .part { font-size: clamp(28px, 4vw, 38px); margin: 70px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: center; margin: 44px 0; }
.step .n { font-size: 54px; font-weight: 850; font-variation-settings: "wdth" 125; color: var(--real); line-height: 1; margin-bottom: 8px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.phone { background: #0a0f19; border-radius: 30px; padding: 12px; box-shadow: inset 0 0 0 2px var(--line); }
.phone .bar { background: var(--panel); border-radius: 18px 18px 6px 6px; padding: 12px 14px; font-weight: 750; font-size: 15px; }
.phone .bar small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.chat { padding: 12px 4px 4px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.msg { padding: 9px 12px; border-radius: 14px; max-width: 90%; }
.msg.in { background: var(--panel); justify-self: start; border-bottom-left-radius: 4px; }
.msg.out { background: #2b5a3f; justify-self: end; border-bottom-right-radius: 4px; }
.msg.card-red { border-left: 4px solid var(--bought); }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.keys span { background: #1d2a40; border-radius: 9px; padding: 8px 6px; text-align: center; font-size: 13px; }
.rights { padding: 8px 4px 4px; }
.right { display: flex; align-items: center; justify-content: space-between; padding: 11px 10px; font-size: 14px;
         border-bottom: 1px solid #1d2638; color: var(--muted); }
.right.on { color: var(--text); }
.tog { width: 36px; height: 21px; border-radius: 11px; background: #2a3448; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #6b778c; }
.right.on .tog { background: var(--real); }
.right.on .tog::after { left: 18px; background: #fff; }
.save { margin: 12px 6px 4px; background: #2f7de1; color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 700; font-size: 14px; }

ol.timeline { list-style: none; margin: 26px 0 0; padding: 0 0 0 34px; border-left: 3px solid var(--line); max-width: 760px; }
ol.timeline li { position: relative; margin: 0 0 30px; }
ol.timeline li::before { content: ""; position: absolute; left: -45px; top: 4px; width: 19px; height: 19px; border-radius: 50%;
                         background: var(--night); box-shadow: inset 0 0 0 4px var(--real); }
ol.timeline li:last-child::before { box-shadow: inset 0 0 0 4px var(--bought); }

@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 20px; }
  .phone { max-width: 320px; }
}
