/* ============================================================
   The site chrome: currency bar, sticky header, phone menu, footer,
   phone scan bar. Stamped into every page by build-chrome.mjs.
   Self-contained on purpose: it sets its own colours, type and
   buttons, so it looks the same on pages whose own CSS differs
   (the home page, Get started, the legal pages).
   ============================================================ */

.tc-top, .tc-head, .tc-foot, .tc-mob {
  --tc-ink: #0D0F12; --tc-ink-2: #545C67; --tc-ink-3: #858D99;
  --tc-line: #E6E8EB; --tc-line-2: #D5D9DE; --tc-soft: #F7F8F9; --tc-soft-2: #F1F3F5;
  --tc-green: #0B8A4B; --tc-green-hi: #0FA35A; --tc-green-2: #12B76A; --tc-mint: #5FE3A6;
  --tc-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --tc-gutter: clamp(20px, 5vw, 56px);
  font-family: var(--tc-sans);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.tc-top *, .tc-head *, .tc-foot *, .tc-mob * { box-sizing: border-box; }

/* ---------- skip link: the first thing a keyboard reaches ---------- */
.tc-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #0D0F12; color: #fff; font: 700 14px/1 "Manrope", -apple-system, "Segoe UI", sans-serif; text-decoration: none; transition: top .15s ease; }
.tc-skip:focus { top: 10px; outline: 2px solid #5FE3A6; outline-offset: 2px; }

/* ---------- currency bar ---------- */
.tc-top { background: var(--tc-ink); color: #C7CCD3; font-size: 13px; line-height: 1.4; }
.tc-top-in { max-width: 1200px; margin: 0 auto; padding: 6px var(--tc-gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-note b { color: #fff; font-weight: 700; }
@media (max-width: 560px) { .tc-note { display: none; } .tc-top-in { justify-content: flex-end; } }
.tc-top .cur { display: inline-flex; align-items: center; gap: 8px; }
.tc-top .cur-label { color: #9AA3AE; font-weight: 600; }
.tc-top .cur-wrap { position: relative; display: inline-flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(95,227,166,.55); box-shadow: 0 0 0 3px rgba(95,227,166,.12); border-radius: 999px; padding: 0 10px 0 12px; cursor: pointer; transition: background-color .15s ease; }
.tc-top .cur-wrap:hover { background: rgba(95,227,166,.16); }
.tc-top .cur-sym { color: var(--tc-mint); font-weight: 800; margin-right: 6px; }
.tc-top .cur select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: #fff; font: inherit; font-weight: 700; padding: 5px 16px 5px 0; cursor: pointer; max-width: 210px; }
.tc-top .cur select option { color: #0E1116; }
.tc-top .cur-wrap::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid #C7CCD3; border-bottom: 1.5px solid #C7CCD3; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tc-top .cur select:focus-visible { outline: 2px solid var(--tc-mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.tc-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--tc-line); }
.tc-in { max-width: 1200px; margin: 0 auto; padding: 12px var(--tc-gutter); display: flex; align-items: center; gap: 20px; min-height: 66px; }
.tc-mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; border-radius: 8px; }
.tc-mark img { display: block; }
.tc-mark img:first-child { width: 30px; height: 23px; }
.tc-mark img + img { width: auto; height: 19px; }
.tc-mark:focus-visible { outline: 2px solid var(--tc-green-2); outline-offset: 4px; }

.tc-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tc-nav a { position: relative; display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 700; letter-spacing: -.012em; color: var(--tc-ink-2); text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.tc-nav a:hover { color: var(--tc-ink); background: var(--tc-soft-2); }
.tc-nav a[aria-current="page"] { color: var(--tc-ink); font-weight: 800; }
.tc-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2.5px; border-radius: 2px; background: var(--tc-green-2); }
.tc-nav a:focus-visible, .tc-btn:focus-visible, .tc-burger:focus-visible, .tc-m:focus-visible { outline: 2px solid var(--tc-green-2); outline-offset: 3px; }

.tc-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--tc-sans); font-size: 14px; font-weight: 800; letter-spacing: -.012em; line-height: 1; padding: 11px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.tc-btn:hover { transform: translateY(-2px); }
.tc-btn:active { transform: translateY(0); }
.tc-book { color: var(--tc-ink); background: #fff; border: 1.5px solid var(--tc-ink); box-shadow: 0 1px 2px rgba(13,15,18,.08), 0 6px 16px -8px rgba(13,15,18,.3); }
.tc-book:hover { background: var(--tc-ink); color: #fff; box-shadow: 0 2px 4px rgba(13,15,18,.08), 0 14px 26px -12px rgba(13,15,18,.45); }
.tc-book[aria-current="page"] { background: var(--tc-ink); color: #fff; }
.tc-scan { color: #fff; background: #097A42; border: 1.5px solid #097A42; box-shadow: 0 1px 2px rgba(11,138,75,.25), 0 8px 22px -6px rgba(11,138,75,.5); }
.tc-scan:hover { background: #086B3A; border-color: #086B3A; box-shadow: 0 2px 4px rgba(11,138,75,.25), 0 16px 30px -8px rgba(11,138,75,.6); }
.tc-short { display: none; }

.tc-burger { display: none; flex: none; width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--tc-line-2); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tc-burger i { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--tc-ink); transition: transform .2s ease, opacity .2s ease; }
.tc-burger[aria-expanded="true"] { border-color: var(--tc-ink); }
.tc-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tc-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.tc-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) {
  .tc-in { gap: 14px; }
  .tc-nav a { padding: 9px 10px; }
  .tc-nav a[aria-current="page"]::after { left: 10px; right: 10px; }
  .tc-long { display: none; }
  .tc-short { display: inline; }
}
@media (max-width: 900px) {
  .tc-nav, .tc-cta .tc-book { display: none; }
  .tc-cta { margin-left: auto; }
  .tc-burger { display: inline-flex; }
  .tc-in { min-height: 62px; padding-block: 10px; }
}
@media (max-width: 374px) {
  .tc-mark img + img { height: 16px; }
  .tc-cta .tc-scan { padding: 10px 13px; font-size: 13.5px; }
}
@media (max-width: 339px) { .tc-in .tc-mark img + img { display: none; } }

/* ---------- phone menu ---------- */
.tc-menu { border-top: 1px solid var(--tc-line); background: #fff; padding: 4px var(--tc-gutter) 20px; max-height: calc(100vh - 110px); overflow-y: auto; }
.tc-menu[hidden] { display: none; }
.tc-m { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--tc-line); text-decoration: none; }
.tc-m b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--tc-ink); }
.tc-m span { font-size: 13px; font-weight: 600; color: var(--tc-ink-3); text-align: right; }
.tc-m[aria-current="page"] b { color: var(--tc-green); }
.tc-m[aria-current="page"] b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tc-green-2); margin: 0 8px 3px 0; }
.tc-m-cta { display: grid; gap: 10px; margin-top: 18px; }
.tc-m-cta .tc-btn { width: 100%; padding: 15px 18px; font-size: 15.5px; }
@media (min-width: 901px) { .tc-menu { display: none !important; } }

/* ---------- footer ---------- */
.tc-foot { border-top: 1px solid var(--tc-line); background: #fff; color: var(--tc-ink-2); font-size: 14px; line-height: 1.6; padding: 44px 0 52px; margin: 0; }
.tc-foot-in { max-width: 1200px; margin: 0 auto; padding-inline: var(--tc-gutter); }
.tc-foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); gap: 30px 40px; }
@media (max-width: 760px) { .tc-foot-top { grid-template-columns: 1fr 1fr; } .tc-foot-brand { grid-column: 1 / -1; } }
.tc-foot-brand p { margin: 14px 0 0; max-width: 40ch; font-size: 14.5px; line-height: 1.55; color: var(--tc-ink-2); }
.tc-foot-brand p + p { margin-top: 10px; }
.tc-mail { color: var(--tc-green); font-weight: 800; text-decoration: none; }
.tc-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.tc-foot-col { display: grid; align-content: start; gap: 9px; }
.tc-foot-col p { margin: 0 0 4px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tc-ink-3); }
.tc-foot-col a { color: var(--tc-ink); font-weight: 700; font-size: 14.5px; text-decoration: none; justify-self: start; }
.tc-foot-col a:hover { color: var(--tc-green); text-decoration: underline; text-underline-offset: 3px; }
.tc-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--tc-line); }
.tc-legal a { font-size: 13px; font-weight: 600; color: var(--tc-ink-2); text-decoration: none; }
.tc-legal a:hover { color: var(--tc-green); text-decoration: underline; text-underline-offset: 3px; }
.tc-fine { margin: 16px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--tc-ink-3); }
.tc-fine + .tc-fine { margin-top: 8px; }

/* ---------- phone scan bar: shows once the page's own first scan button has scrolled away ---------- */
.tc-mob { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--tc-line); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.tc-mob .tc-btn { width: 100%; padding: 15px 18px; font-size: 15.5px; }
.tc-mob.show { transform: none; visibility: visible; transition: transform .25s ease; }
/* hidden bar stays out of the tab order (visibility), so keyboard focus never lands on a button off screen */
@media (min-width: 901px) { .tc-mob { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .tc-btn, .tc-nav a, .tc-burger i, .tc-mob, .tc-mob.show { transition: none; }
  .tc-btn:hover { transform: none; }
}
