/*
 * A crypto exchanger.
 *
 * Someone arriving here has money in one place and wants it in another, usually
 * from a monitoring where they already compared rates. They are not browsing.
 * So the form is the page, and everything below it exists to make a stranger
 * trust it enough to send funds first.
 *
 * Restrained on purpose: a financial service that looks like a marketing site
 * reads as less trustworthy, not more.
 */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e3e8ef;
  --line-strong: #cfd7e3;

  --ink: #0e1726;
  --ink-2: #475569;
  --ink-3: #8a96a8;

  --brand: #1e4fd8;
  --brand-ink: #163ba6;
  --brand-wash: #eaf0ff;

  --good: #0f7b52;
  --good-wash: #e6f5ee;
  --warn: #9a6407;
  --warn-wash: #fdf3e0;
  --bad: #b3261e;
  --bad-wash: #fdecea;

  --r: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgb(14 23 38 / 6%);
  --shadow-2: 0 4px 12px -4px rgb(14 23 38 / 10%), 0 16px 40px -24px rgb(14 23 38 / 30%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --surface: #131926;
    --surface-2: #171e2d;
    --line: #232c3d;
    --line-strong: #313c52;

    --ink: #e8edf5;
    --ink-2: #a3b0c4;
    --ink-3: #6c7a91;

    --brand: #6a90ff;
    --brand-ink: #8aa8ff;
    --brand-wash: #17233f;

    --good: #46c08a;
    --good-wash: #10291f;
    --warn: #d6a44a;
    --warn-wash: #2a2213;
    --bad: #f0736a;
    --bad-wash: #2c1715;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-2: 0 4px 12px -4px rgb(0 0 0 / 50%), 0 16px 40px -24px rgb(0 0 0 / 80%);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }

.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(145deg, var(--brand), #4b7bff);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 7px 7px auto auto;
  width: 8px; height: 8px; border-radius: 2px; background: #fff; opacity: 0.9;
}
.logo-text { display: grid; line-height: 1.05; }
.logo-text b { font-size: 15px; letter-spacing: 0.1em; }
.logo-text i { font-style: normal; font-size: 10px; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; }

.top-nav { display: flex; gap: 22px; margin-right: auto; font-size: 14px; }
.top-nav a { color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }

.top-right { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a, .lang button {
  border: 0; background: none; color: var(--ink-3); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}
.lang a[aria-current="true"], .lang button[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.burger { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: filter .15s, background .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-block { width: 100%; padding: 14px; font-size: 15.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 11px 12px; width: 100%;
}
input::placeholder { color: var(--ink-3); }
input:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ------------------------------------------------------------------ notices */

.notice-bar { border-bottom: 1px solid var(--line); background: var(--brand-wash); }
.notice-inner { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 10px 0; font-size: 13.5px; color: var(--ink-2); }
.notice-inner b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------- hero */

/* The dot field sits behind the whole band and fades out under the headline,
   so the left column stays readable at any width without a second asset. */
.hero {
  padding: 56px 0 48px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% 38%, var(--brand-wash), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("/img/hero-dots.svg") no-repeat right -40px center / auto 118%;
  opacity: .85; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }

.hero-copy h1 { font-size: clamp(30px, 4vw, 44px); }
.hero-copy h1 span { color: var(--brand); display: block; }
.lede { color: var(--ink-2); font-size: 16px; margin: 16px 0 22px; max-width: 46ch; }

.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 26px; color: var(--ink-2); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 14px; height: 8px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- the form */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 22px;
}
.card + .card { margin-top: 18px; }

.exchange { position: relative; padding-bottom: 20px; }

.leg + .swap + .leg { margin-top: 6px; }
.leg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.leg-head > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.leg-hint { font-size: 12px; color: var(--ink-3); }

.leg-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 6px;
}
.leg-row:focus-within { border-color: var(--brand); }

.amount {
  border: 0; background: none; padding: 10px 8px;
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.amount:focus-visible { outline: none; }

.picker {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; font: inherit; color: var(--ink); min-width: 190px;
}
.picker:hover { border-color: var(--brand); }
.picker-text { display: grid; line-height: 1.15; text-align: left; margin-right: auto; }
.picker-text b { font-size: 14px; font-weight: 600; }
.picker-text i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.chev { width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); flex: none; }

.coin {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: -0.02em;
  background: var(--ink-3);
}

.swap {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin: -14px auto; position: relative; z-index: 2;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  cursor: pointer; box-shadow: var(--shadow-1);
}
.swap::before {
  content: ""; width: 12px; height: 12px;
  border-left: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(-45deg) translate(1px, -1px);
}
.swap:hover { border-color: var(--brand); }

.terms { display: grid; gap: 7px; margin: 18px 0 0; font-size: 13.5px; }
.terms div { display: flex; justify-content: space-between; gap: 16px; }
.terms dt { color: var(--ink-3); }
.terms dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; word-break: break-all; }

.field { margin-top: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field-hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.alert {
  margin: 16px 0 0; padding: 11px 13px; border-radius: 10px;
  background: var(--bad-wash); color: var(--bad); font-size: 13.5px;
}
.alert[data-kind="info"] { background: var(--warn-wash); color: var(--warn); }

#go { margin-top: 16px; }
.fineprint { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

/* -------------------------------------------------------------------- strip */

.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; gap: 48px; padding: 22px 0; flex-wrap: wrap; }
.strip-item { display: grid; }
.strip-item b { font-size: 24px; font-variant-numeric: tabular-nums; }
.strip-item span { font-size: 12.5px; color: var(--ink-3); }

/* ----------------------------------------------------------------- sections */

.section { padding: 48px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: 22px; margin-bottom: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.search { max-width: 260px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th {
  text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-3); padding: 13px 16px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.grid td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover { background: var(--surface-2); }
table.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tr.off td { color: var(--ink-3); }

.pair { display: flex; align-items: center; gap: 10px; }
.pair .coin { width: 24px; height: 24px; font-size: 9px; }
.pair-arrow { color: var(--ink-3); }

.go-small { font-size: 13px; padding: 7px 12px; border-radius: 8px; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; display: grid; gap: 4px; padding-top: 44px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand); font-weight: 700; font-size: 14px;
}
.steps b { font-size: 15px; }
.steps span { color: var(--ink-2); font-size: 14px; }

/* -------------------------------------------------------------------- order */

.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.order-top h1 { font-size: 28px; margin-top: 2px; }

.status {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2);
}
.status[data-s="waiting"] { background: var(--warn-wash); color: var(--warn); border-color: transparent; }
.status[data-s="active"] { background: var(--brand-wash); color: var(--brand); border-color: transparent; }
.status[data-s="done"] { background: var(--good-wash); color: var(--good); border-color: transparent; }
.status[data-s="bad"] { background: var(--bad-wash); color: var(--bad); border-color: transparent; }

.progress { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 6px; }
.progress li {
  flex: 1; font-size: 12px; color: var(--ink-3); padding-top: 12px;
  border-top: 3px solid var(--line); text-align: left;
}
.progress li[data-on="true"] { color: var(--ink); border-top-color: var(--brand); font-weight: 600; }
.progress li[data-on="done"] { color: var(--ink-2); border-top-color: var(--good); }

.order-legs {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
}
.order-legs strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.arrow { width: 22px; height: 10px; position: relative; }
.arrow::after {
  content: ""; position: absolute; inset: 0;
  border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3);
  width: 10px; height: 10px; transform: rotate(45deg); left: 6px; top: 0;
}

.pay { margin-top: 22px; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.pay-head h2 { font-size: 17px; margin: 0; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--warn); background: var(--warn-wash); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.hint { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; }

.copy { display: flex; gap: 8px; margin-bottom: 8px; }
.copy code {
  flex: 1; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; word-break: break-all;
}

.timeline { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.timeline li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.timeline li:first-child { border-top: 0; }

/* ----------------------------------------------------------- picker sheet */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgb(9 14 24 / 45%); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px;
}
.sheet {
  width: min(460px, 100%); max-height: min(640px, 86vh);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  display: grid; grid-template-rows: auto auto 1fr; overflow: hidden;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.sheet-head h2 { font-size: 17px; }
.sheet-close { width: 30px; height: 30px; border: 0; background: var(--surface-2); border-radius: 8px; cursor: pointer; position: relative; }
.sheet-close::before, .sheet-close::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 13px; height: 2px;
  background: var(--ink-2); transform: translate(-50%, -50%) rotate(45deg);
}
.sheet-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sheet .search { max-width: none; margin: 0 20px 12px; width: calc(100% - 40px); }
.sheet-list { overflow-y: auto; padding: 0 12px 16px; }

.sheet-group { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); padding: 12px 8px 6px; }
.sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 8px; border: 0; background: none; border-radius: 10px; cursor: pointer;
  font: inherit; color: var(--ink); text-align: left;
}
.sheet-item:hover { background: var(--surface-2); }
.sheet-item[aria-selected="true"] { background: var(--brand-wash); }
.sheet-item .t { display: grid; line-height: 1.2; margin-right: auto; }
.sheet-item .t b { font-weight: 600; font-size: 14px; }
.sheet-item .t i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.sheet-item .r { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.foot-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; padding: 32px 0; align-items: start; }
.foot-brand { display: grid; gap: 12px; }
.foot-brand p { margin: 0; color: var(--ink-3); font-size: 13.5px; max-width: 42ch; }
.foot-links { display: grid; gap: 8px; font-size: 14px; }
.foot-links a { color: var(--ink-2); }
.badge { display: inline-block; padding: 6px 11px; border-radius: 8px; background: var(--warn-wash); color: var(--warn); font-size: 12.5px; font-weight: 600; }

.notice { padding: 60px 20px; text-align: center; color: var(--ink-2); }

/* ------------------------------------------------------------------ account */

.account-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.auth { width: min(420px, 100%); margin: 40px auto; }
.auth .field + .field { margin-top: 14px; }
.auth-switch { text-align: center; margin: 14px 0 0; font-size: 13.5px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  /* Stacked, the dot field sits directly behind the copy instead of beside it. */
  .hero::before { display: none; }
  .foot-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .top-nav { display: none; }
  .top-nav.open {
    display: grid; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px;
  }
  .burger {
    display: grid; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
  }
  .burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
  .top-right { order: 3; }
  .order-legs { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .progress { flex-wrap: wrap; }
  .progress li { flex: 1 1 40%; }
}

/* The icon sits on top of the ticker. If the file is missing the image removes
   itself and the coloured disc with the ticker is what remains — which is why
   the fallback is underneath rather than a separate branch. */
.coin { position: relative; overflow: hidden; }
.coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.coin > span { position: relative; }
/* A real logo keeps its own shape and its own edges; only the ticker fallback
   wants the coloured disc it is printed on. */
.coin[data-loaded] { overflow: visible; border-radius: 0; }

.muted { color: var(--ink-3); }
.pair b { font-weight: 600; }
.pair .muted { font-size: 12.5px; }

/* Long pairs must not push the table into a horizontal scroll on a phone. */
@media (max-width: 720px) {
  .pair .muted { display: none; }
}

/* =========================================================== the shopfront

   Everything below this line is trust, not function: what we hold, who lists
   us, what other people said. A visitor arriving from a monitoring reads it
   in the two seconds before deciding whether to send money to strangers. */

.logo-img { height: 26px; width: auto; max-width: 180px; object-fit: contain; flex: none; }
/* The wordmark already says the name. The text block is the fallback, and it
   only appears when the image has removed itself. */
.logo-img + .logo-text { display: none; }
.foot-brand .logo-img { height: 24px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 24px; font-size: 15px; margin-top: 24px; }
.centred { text-align: center; }
.section-sub { margin: 4px 0 0; color: var(--ink-3); font-size: 13.5px; }

.hero-copy h1 em { font-style: normal; color: var(--ink); display: block; }
.hero-copy h1 span { color: var(--brand); display: block; }

.notice-inner span { position: relative; padding-left: 20px; }
.notice-inner span::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brand); opacity: .7;
}
.notice-inner span[data-kind="warning"]::before { background: var(--warn); }
.notice-inner span[data-kind="success"]::before { background: var(--good); }

/* ------------------------------------------------------------- advantages */

.advantages { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.adv { text-align: center; display: grid; gap: 8px; justify-items: center; }
.adv b { font-size: 15px; }
.adv p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 34ch; }

.adv-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand); margin-bottom: 6px;
}
.adv-icon svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- reserves */

.reserve-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.reserve {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px;
}
.reserve .coin { width: 26px; height: 26px; font-size: 9px; }
.reserve-name { display: grid; line-height: 1.2; margin-right: auto; }
.reserve-name b { font-size: 13.5px; font-weight: 600; }
.reserve-name i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.reserve-amount { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* --------------------------------------------------- direction table legs */

.leg-name { display: flex; align-items: center; gap: 8px; }
.leg-name > span { display: grid; line-height: 1.15; }
.leg-name b { font-size: 13.5px; font-weight: 600; }
.leg-name i { font-style: normal; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* -------------------------------------------------------- news and reviews */

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.news-card {
  display: grid; color: inherit; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.news-card:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.news-cover { display: block; aspect-ratio: 16 / 9; background: var(--brand-wash); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { display: grid; gap: 7px; padding: 16px 18px 18px; }
.news-body b { font-size: 15px; line-height: 1.35; }
.news-body i { font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.meta { font-size: 12px; color: var(--ink-3); }

.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; display: grid; gap: 12px; align-content: start;
}
.review p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.stars { color: #f0a92b; letter-spacing: 2px; font-size: 14px; }
.review-who { display: flex; align-items: baseline; gap: 10px; }
.review-who i { font-style: normal; font-weight: 600; font-size: 13.5px; }
.review-reply { border-left: 3px solid var(--brand); padding-left: 12px; font-size: 13px; }
.review-reply b { display: block; color: var(--brand); font-size: 12px; margin-bottom: 3px; }

.review-form { margin-top: 26px; max-width: 560px; }
.review-form h2 { font-size: 17px; margin-bottom: 4px; }
textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 11px 13px; resize: vertical;
}
#rv-send { margin-top: 16px; }

/* ------------------------------------------------------------ monitorings */

.monitorings { padding: 40px 0; border-top: 1px solid var(--line); }
.mon-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.mon {
  display: grid; place-items: center; min-width: 128px; height: 54px; padding: 8px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  opacity: .88; transition: opacity .15s, border-color .15s;
}
.mon:hover { opacity: 1; border-color: var(--brand); color: var(--ink); }
.mon img { max-height: 32px; max-width: 116px; object-fit: contain; }

/* ---------------------------------------------------------------- support */

.support { padding: 32px 0 8px; border-bottom: 1px solid var(--line); }
.support h2 { font-size: 18px; text-align: center; margin-bottom: 18px; }
.support-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding-bottom: 26px; }
.support-item {
  display: flex; align-items: center; gap: 12px; color: inherit;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 18px; min-width: 210px;
}
.support-item:hover { border-color: var(--brand); color: inherit; }
.support-item > span { display: grid; line-height: 1.25; }
.support-item i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.support-item b { font-size: 13.5px; font-weight: 600; }
.support-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--brand-wash); position: relative;
}
.support-icon { display: grid; place-items: center; color: var(--brand); }
.support-icon svg { width: 18px; height: 18px; }

/* ------------------------------------------------------- footer tag strip */

.foot-tags {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 12px;
}
.foot-tags > span {
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; margin-right: 6px;
}
.foot-tags a {
  padding: 5px 10px; border-radius: 7px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.foot-tags a:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------- operator-written prose */

.back { display: inline-block; margin-bottom: 18px; font-size: 13.5px; }
.prose { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.prose h1 { font-size: 30px; color: var(--ink); margin-bottom: 10px; line-height: 1.2; }
.prose h2 { font-size: 20px; color: var(--ink); margin: 30px 0 10px; }
.prose h3 { font-size: 16.5px; color: var(--ink); margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--r); margin-bottom: 18px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: 13.5px; }
.prose blockquote {
  margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--brand);
  background: var(--surface-2); border-radius: 0 8px 8px 0;
}

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .support-item { min-width: 0; flex: 1 1 100%; }
  .strip-inner { gap: 28px; }
}

/* ------------------------------------------- server-rendered direction page

   The same chrome as the app, so a visitor who lands from a search result does
   not think they are on a different website. Only the two places where the
   markup differs need their own rules. */

.lang a { display: grid; place-items: center; text-decoration: none; }
.order-legs .leg-name { margin-top: 6px; }
.order-legs .leg-name i { white-space: normal; }
.section > .wrap.narrow > h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; }
.section > .wrap.narrow > .lede { margin-bottom: 24px; }
.section .prose { margin-top: 26px; }

.copy-label { margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.copy-label:first-of-type { margin-top: 0; }
#memo-row .field-hint { margin-top: 2px; }

/* Operator copy shown inside a card: an aside, not an alert. Alerts are for
   things that went wrong, and these are usually instructions. */
.note {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); border-left: 3px solid var(--brand);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.note p { margin: 0 0 8px; }
.note p:last-child { margin-bottom: 0; }
.note ul, .note ol { margin: 0 0 8px; padding-left: 20px; }

/* ------------------------------------------------------- partner dashboard */

.partner-stats { padding: 0 0 24px; gap: 40px; }
.partner-stats .strip-item b { font-size: 22px; }

/* A credential belongs behind a click, not in whatever screenshot the partner
   sends support. */
code.masked { color: transparent; text-shadow: 0 0 7px var(--ink-2); user-select: none; }
.card .copy { margin-top: 6px; }
.card .terms { margin-top: 20px; }
