/* JoinMyIn: built from the logo. Navy ink, teal people, one orange action (the cart). Rounded 16px everywhere, light theme. */
:root {
  --ink: #13294b;
  --ink-2: #2a4166;
  --muted: #55667d;
  --paper: #f3f8f7;
  --sheet: #fbfdfc;
  --rule: #d6e4e3;
  --rule-strong: #9db6b5;
  --teal: #2f9a9a;
  --teal-deep: #176a6b;
  --teal-night: #0f4f50;
  --teal-wash: #e2f1f0;
  --orange: #e97c2a;
  --orange-press: #d86c1c;
  --orange-wash: #fdf0e5;
  --on-field: #f1f9f8;
  --on-field-2: #d4ecea;
  --ok: #17704a;
  --warn: #a4430a;
  --bad: #a3242c;
  --r: 16px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 14px 32px -18px rgba(19, 41, 75, .35);
  --display: 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --wrap: min(1200px, 100% - 40px);
  /* Older names used by page templates and app.js, mapped onto the logo palette. */
  --cobalt: var(--teal-deep);
  --cobalt-deep: var(--teal-night);
  --cobalt-night: var(--ink);
  --on-cobalt: var(--on-field);
  --on-cobalt-2: var(--on-field-2);
  --yellow: var(--orange);
  --yellow-press: var(--orange-press);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--rule-strong) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 17px/1.6 var(--body); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--teal); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal-night); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .45em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.4rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 65ch; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink); padding: 8px 12px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Buttons & fields ── */
.btn {
  --bg: var(--orange); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--r);
  background: var(--bg); color: var(--fg); font: 800 16px/1 var(--body); letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  box-shadow: 0 2px 0 rgba(19,41,75,.18);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.btn:hover { background: var(--orange-press); color: var(--fg); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: progress; }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--sheet); }
.btn--cobalt { --bg: var(--teal-deep); --fg: var(--on-field); }
.btn--cobalt:hover { background: var(--teal-night); color: var(--on-field); }
.btn--ghost-light { --bg: transparent; --fg: var(--on-field); box-shadow: inset 0 0 0 2px var(--on-field-2); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn--danger { --bg: transparent; --fg: var(--bad); box-shadow: inset 0 0 0 2px currentColor; }
.btn--danger:hover { background: var(--bad); color: #fff; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 14px; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 16px; border-radius: 12px;
  border: 2px solid var(--rule); background: #fff; color: var(--ink);
  font: 500 16px/1.4 var(--body); transition: border-color 140ms, box-shadow 140ms;
}
.field textarea { min-height: 100px; resize: vertical; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--rule-strong); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,154,154,.18); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #7d8ea0; }
.field.is-error input, .field.is-error textarea { border-color: var(--bad); }
.hp { position: absolute; left: -5000px; }
.alert { padding: 12px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--rule); margin: 0 0 16px; }
.alert--bad { border-color: #e6b8bb; color: var(--bad); background: #fdf3f3; }
.alert--ok { border-color: #b4d8c4; color: var(--ok); background: #f1f8f4; }
.alert--warn { border-color: #f0c9a6; color: var(--warn); background: var(--orange-wash); }

/* ── Header ── */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251,253,252,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.site-head__row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
/* The logo file carries transparent side padding; the negative margin lines its artwork up with the page edge. */
.brand__logo { height: 80px; width: auto; margin-left: -28px; margin-right: -22px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; border-radius: 12px; transition: background-color 160ms var(--ease-out); }
.nav a:hover { background: var(--teal-wash); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--teal-wash); color: var(--teal-night); }
.head-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--ink); text-decoration: none; border: 0; background: transparent; cursor: pointer; transition: background-color 160ms var(--ease-out); }
.icon-btn:hover { background: var(--teal-wash); color: var(--ink); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: var(--ink); font-size: 11.5px; font-weight: 900; line-height: 19px; text-align: center; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav { position: fixed; inset: 84px 0 auto 0; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--sheet); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out); }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 18px; }
  .menu-btn { display: inline-grid; }
  .head-tools { margin-left: auto; }
}

/* ── Teal field (hero, page heads, bands) ── */
.container-panel { position: relative; background: var(--teal-deep); color: var(--on-field); overflow: hidden; isolation: isolate; }
/* Soft rings echo the logo's swoosh around the figure. */
.container-panel::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -260px; top: -340px; border-radius: 50%; border: 90px solid rgba(47,154,154,.35); }
.container-panel::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -200px; bottom: -260px; border-radius: 50%; border: 60px solid rgba(15,79,80,.45); }
.container-panel h1, .container-panel h2 { color: #fff; }
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffd2ad; }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--on-field); max-width: 36ch; margin-bottom: 28px; }
.linkbox { display: flex; gap: 6px; background: #fff; border-radius: calc(var(--r) + 4px); padding: 6px; box-shadow: 0 18px 40px -20px rgba(8,30,31,.7); max-width: 580px; }
.linkbox input { flex: 1; min-width: 0; border: 0; min-height: 52px; padding: 0 16px; font: 600 16px var(--body); color: var(--ink); background: transparent; border-radius: var(--r); }
.linkbox input::placeholder { color: #7d8ea0; }
.linkbox input:focus { outline: 0; }
.linkbox:focus-within { box-shadow: 0 0 0 4px rgba(233,124,42,.55), 0 18px 40px -20px rgba(8,30,31,.7); }
.hero__aside { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; color: var(--on-field-2); }
.hero__aside a { color: #fff; font-weight: 700; }
.hero__aside svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .linkbox { flex-direction: column; }
  .linkbox .btn { width: 100%; }
}

/* ── Group cart (signature): buyers join one cart until it reaches free shipping ── */
.manifest { background: var(--sheet); color: var(--ink); border-radius: calc(var(--r) + 8px); box-shadow: 0 40px 70px -36px rgba(8,30,31,.75), 0 2px 0 rgba(8,30,31,.12); overflow: hidden; }
.manifest__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 14px; }
.manifest__title { font: 900 21px/1.15 var(--display); letter-spacing: -.01em; }
.manifest__meta { font-size: 14px; color: var(--muted); }
.manifest__tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--teal-wash); color: var(--teal-night); }
.joiners { list-style: none; margin: 0; padding: 0 12px; }
.joiner { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.joiner + .joiner { border-top: 1px solid var(--rule); }
.joiner__face { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal-deep); }
.joiner__face svg { width: 26px; height: 26px; }
.joiner:nth-child(3n+2) .joiner__face { background: #e4e9f1; color: var(--ink); }
.joiner:nth-child(3n) .joiner__face { background: var(--orange-wash); color: #b2540f; }
.joiner__who { font-weight: 800; line-height: 1.2; }
.joiner__who small { display: block; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.joiner__amt { font-weight: 800; }
.joiner.is-new { animation: joinIn 520ms var(--ease-out) both; }
@keyframes joinIn { from { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.manifest__foot { padding: 12px 22px 22px; }

.fill { position: relative; height: 34px; border-radius: 999px; background: var(--teal-wash); }
.fill__bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--teal); transition: width 900ms var(--ease-out), background-color 300ms; }
.fill__line { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px dashed var(--ink); }
.fill__line span { position: absolute; top: -22px; right: 6px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.fill__cart { position: absolute; top: 50%; right: -4px; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(19,41,75,.6); }
.fill__cart svg { width: 21px; height: 21px; }
.fill-wrap { padding-top: 26px; }
.fill-legend { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; color: var(--muted); }
.fill-legend strong { font-size: 19px; color: var(--ink); }
.fill.is-full .fill__bar { background: var(--ok); }
.agent .fill, .item .fill, .sheet .fill { height: 14px; }
.agent .fill__line, .item .fill__line { display: none; }

/* ── Sections ── */
.section { padding: clamp(68px, 9vw, 116px) 0; }
.section--sheet { background: var(--sheet); }
.section--night { background: var(--ink); color: var(--on-field); }
.section--night h2 { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--night .section-head p { color: var(--on-field-2); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 6px; } }

/* Route: the path a cart travels */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.route::before { content: ""; position: absolute; left: 28px; right: 10%; top: 27px; border-top: 3px dotted var(--teal); }
.route li { position: relative; padding: 0 20px 0 0; }
.route__dot { position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: var(--sheet); color: var(--teal-deep); border: 3px solid var(--teal); border-radius: 50%; margin-bottom: 20px; }
.route__dot svg { width: 24px; height: 24px; }
.route li.is-money .route__dot { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.route h3 { font-weight: 900; font-size: 1.15rem; line-height: 1.25; margin-bottom: 6px; }
.route p { font-size: 15.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 27px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dotted var(--teal); }
  .route li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 0 0 28px; }
  .route__dot { margin: 0; }
}

/* Escrow ledger */
.escrow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.ledger { background: var(--sheet); color: var(--ink); border-radius: calc(var(--r) + 8px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); padding: 10px 0; }
.ledger__row { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--rule); }
.ledger__row:first-child { border-top: 0; }
.ledger__who { font-size: 14px; font-weight: 900; color: var(--teal-deep); }
.ledger__amt { font-weight: 900; font-size: 19px; }
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.stamp svg { width: 14px; height: 14px; }
.stamp--held { color: var(--teal-night); background: var(--teal-wash); box-shadow: inset 0 0 0 1.5px var(--teal); }
.stamp--ok { color: #fff; background: var(--ok); }
.stamp--wait { color: #8a3708; background: var(--orange-wash); box-shadow: inset 0 0 0 1.5px var(--orange); }
.stamp--bad { color: var(--bad); background: #fbeaea; box-shadow: inset 0 0 0 1.5px #e3a2a6; }
.stamp--plain { color: var(--ink-2); background: #e8edf3; }
@media (max-width: 900px) { .escrow { grid-template-columns: 1fr; } .ledger__row { grid-template-columns: 1fr auto; } .ledger__who { grid-column: 1 / -1; } }

/* Agents */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.agent { background: var(--sheet); border-radius: var(--r); border: 1px solid var(--rule); padding: 22px; display: grid; gap: 14px; transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out); }
.agent:hover { box-shadow: var(--shadow); }
.agent__top { display: flex; gap: 14px; align-items: center; }
.agent__badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font: 900 21px/1 var(--display); flex: none; }
.agent__name { font-weight: 900; font-size: 1.15rem; line-height: 1.2; }
.agent__meta { font-size: 14.5px; color: var(--muted); }
.agent__bio { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.stars { color: var(--orange); letter-spacing: 1px; font-size: 14px; }
.stars svg { width: 15px; height: 15px; vertical-align: -2px; }
.empty { border: 2px dashed var(--rule-strong); border-radius: var(--r); padding: 30px; display: grid; gap: 10px; justify-items: start; background: var(--sheet); }
.empty p { color: var(--muted); margin: 0; }

/* Market shelf */
.shelf { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.shelf .prod:first-child { grid-row: span 2; }
.prod { position: relative; background: var(--sheet); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); display: grid; grid-template-rows: 1fr auto; border: 1px solid var(--rule); transition: box-shadow 200ms var(--ease-out); }
.prod:hover { box-shadow: var(--shadow); color: var(--ink); }
.prod__img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--teal-wash); }
.shelf .prod:first-child .prod__img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.prod:hover .prod__img img { transform: scale(1.04); }
.prod__body { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.prod__name { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.prod__price { font-weight: 900; white-space: nowrap; }
@media (max-width: 800px) { .shelf { grid-template-columns: 1fr 1fr; } .shelf .prod:first-child { grid-column: span 2; grid-row: auto; } .shelf .prod:first-child .prod__img { min-height: 0; aspect-ratio: 4 / 3; } }

/* Band */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(48px, 7vw, 76px) 0; }
.band h2 { margin: 0 0 10px; }
.band p { color: var(--on-field); margin: 0; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ── Footer ── */
.site-foot { background: var(--teal-wash); color: var(--ink-2); padding: 60px 0 28px; font-size: 15.5px; }
.site-foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--teal-deep); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 15px; color: var(--teal-deep); font-weight: 900; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-brand .brand__logo { height: 96px; margin-left: -34px; }
.foot-brand p { margin-top: 10px; max-width: 36ch; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #c3dcda; margin-top: 44px; padding-top: 20px; font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── App pages (request / track / agent / account) ── */
.page-head { padding: clamp(40px, 5vw, 68px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: 10px; }
.page-head p { color: var(--on-field); font-size: 1.12rem; margin: 0; }
.page-body { padding: 40px 0 92px; }
.sheet { background: var(--sheet); border-radius: var(--r); border: 1px solid var(--rule); padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 2px rgba(19,41,75,.04); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.aside-note { font-size: 15.5px; color: var(--ink-2); }
.aside-note h3 { font-size: 1.1rem; margin-bottom: 8px; }
.aside-note ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.aside-note li::marker { color: var(--teal); }

/* Stepper (linear, gated) */
.steps { display: flex; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.steps li { flex: 1; position: relative; padding-top: 14px; font-size: 14px; font-weight: 800; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--rule); border-radius: 999px; transition: background-color 240ms var(--ease-out); }
.steps li.is-done::before { background: var(--teal); }
.steps li.is-on::before { background: var(--orange); }
.steps li.is-on { color: var(--ink); }
.step { display: none; }
.step.is-on { display: block; animation: stepIn 260ms var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.choice { display: grid; gap: 10px; }
.choice label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 15px 16px; border: 2px solid var(--rule); border-radius: 12px; background: #fff; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink); transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.choice label:hover { border-color: var(--rule-strong); }
.choice label:has(input:checked) { border-color: var(--teal); background: #f0f8f7; }
.choice input { margin-top: 3px; accent-color: var(--teal-deep); width: 18px; height: 18px; }
.choice strong { display: block; font-weight: 800; }
.choice small { color: var(--muted); font-size: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* Timeline for a request */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-bottom: 18px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; border-left: 2px dotted var(--rule-strong); }
.timeline li:last-child::before { display: none; }
.timeline .tick { width: 24px; height: 24px; border: 2.5px solid var(--rule-strong); border-radius: 50%; background: var(--sheet); position: relative; z-index: 1; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done .tick { background: var(--teal); border-color: var(--teal); }
.timeline li.is-done::before { border-left-style: solid; border-color: var(--teal); }
.timeline li.is-now { color: var(--ink); font-weight: 800; }
.timeline li.is-now .tick { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px var(--orange-wash); }

.req-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.req-code { font: 900 30px/1 var(--display); letter-spacing: .02em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; margin: 0; font-size: 15.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.callout { border: 2px solid var(--rule); border-radius: var(--r); padding: 20px; background: #fff; margin-bottom: 18px; }
.callout--pay { background: var(--orange-wash); border-color: var(--orange); }
.callout h3 { font-size: 1.2rem; margin-bottom: 6px; }
.callout p { margin: 0 0 12px; }
.log { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.log li { padding: 10px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.log time { color: var(--muted); font-size: 13.5px; white-space: nowrap; }

/* Agent board */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--teal-wash); border-radius: var(--r); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 11px 16px; font: 800 15px var(--body); color: var(--ink-2); cursor: pointer; border-radius: 12px; white-space: nowrap; transition: background-color 160ms var(--ease-out); }
.tabs button:hover { background: rgba(255,255,255,.6); }
.tabs button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(19,41,75,.14); }
.tabs .n { display: inline-block; min-width: 21px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 12px; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
.item__title { font-weight: 900; }
.item__meta { font-size: 14.5px; color: var(--muted); }
.item button.linky, .linky { background: none; border: 0; padding: 0; color: var(--teal-deep); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.money { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.money div { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; }
.money div:first-child { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--on-field); }
.money div:first-child span { color: var(--on-field-2); }
.money strong { display: block; font-size: 1.6rem; font-weight: 900; }
.money span { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .money { grid-template-columns: 1fr; } .item { grid-template-columns: 1fr; } }

dialog.sheet-dialog { border: 0; padding: 0; border-radius: calc(var(--r) + 4px); width: min(560px, 100% - 24px); max-height: 90vh; background: var(--sheet); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(19,41,75,.55); }
dialog.sheet-dialog::backdrop { background: rgba(19,41,75,.45); }
dialog.sheet-dialog[open] { animation: dlgIn 220ms var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg-body { padding: 26px; overflow: auto; max-height: 90vh; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dlg-head h3 { margin: 0; }

.spinner { width: 22px; height: 22px; border: 3px solid var(--teal-wash); border-top-color: var(--teal); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 24px 0; }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--teal); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r); font-weight: 700; z-index: 99; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Reveal: content visible by default; only enhanced when JS marks the page ready. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .head-cta { display: none; }
  .site-head__row { gap: 8px; min-height: 68px; }
  .brand__logo { height: 64px; margin-left: -22px; }
  .nav { inset: 68px 0 auto 0; }
}

/* Android app web view */
.in-app .site-head, .in-app .site-foot, .in-app .container-panel.page-head-band { display: none; }
.in-app .shop-body { padding-top: 16px; }

/* WooCommerce sets img height:auto on its pages; keep the logo at header size everywhere. */
.brand img.brand__logo { height: 80px !important; width: auto !important; max-width: none !important; }
.foot-brand .brand img.brand__logo { height: 96px !important; }
@media (max-width: 560px) { .brand img.brand__logo { height: 64px !important; } }
