/* ==================================================================
   CurrencyBeacon — Halo theme
   Design system for the public site, auth, checkout and account pages.
   Sections: tokens · base · components · header · page layouts ·
   pricing · home page · app components · motion · responsive
   ================================================================== */

/* ------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */
/* Proxima Nova (self-hosted; Regular covers 300–500, Bold covers 600–800). Commercial typeface — licensed use only. */
@font-face { font-family: "Proxima Nova"; src: url("../fonts/proxima-nova/proxima_nova.woff2") format("woff2"), url("../fonts/proxima-nova/proxima_nova.woff") format("woff"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("../fonts/proxima-nova/proxima_nova_bold.woff2") format("woff2"), url("../fonts/proxima-nova/proxima_nova_bold.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --canvas: #ffffff;
  --ink: #1e283a;        /* navy ink (ipinfo-style) — headings, strong text */
  --body: #3d4756;       /* body copy */
  --muted: #6b7380;
  --body-soft: #5b6472;  /* sub-headlines and leads */
  --wash: #e8f2f9;       /* palest cyan-blue for gradient washes */
  --line: #e4e8ef;
  --grey: #f4f7fb;       /* cool wash for bands and soft surfaces */
  --cyan: #5bc3da;
  --cyan-soft: #cff0f7;
  --cyan-deep: #10657a;
  --black: #1e283a;      /* dark surfaces + pills share the ink navy */
  --black-hover: #151d2b;
  --green: #12945a;
  --green-soft: #e7f6ee;
  --red: #d64545;
  --red-soft: #fdeaea;
  --amber: #8a5a00;
  --amber-soft: #fff4e5;
  --font: "Proxima Nova", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 40, 58, .04);
  --shadow-md: 0 1px 2px rgba(30, 40, 58, .05), 0 12px 32px -18px rgba(30, 40, 58, .18);
  --head-h: 84px; /* sticky header clearance */
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.6 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Sticky footer: short pages pin the footer to the viewport bottom, tall pages push it down */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .site-head, body > .footer, body > .impersonating { flex: none; }
#main { flex: 1 0 auto; width: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1 .soft, h2 .soft { color: var(--body-soft); font-weight: 500; }
h1, h2 { text-wrap: balance; }
code, kbd, pre { font-family: var(--mono); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 3px; }
.wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 48px, 860px); margin-inline: auto; }
.section { padding: 104px 0; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The UA rule for [hidden] is display:none, but any class rule that sets a
   display value outranks it — so `el.hidden = true` silently fails to hide
   elements like .spinner. Make the attribute authoritative everywhere. */
[hidden] { display: none !important; }

/* ------------------------------------------------------------------
   Buttons, pills, chips, kicker, icons, cards
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: var(--black-hover); }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-white:hover { border-color: #d0d4db; }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: #4bb7cf; }
.btn-ghost { background: transparent; color: var(--ink); min-height: 40px; padding: 0 14px; }
.btn-ghost:hover { background: var(--grey); transform: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.pill-soft { background: var(--grey); border-color: transparent; color: var(--body); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18, 148, 90, .16); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--grey); color: var(--ink); font: 500 13px/1 var(--mono); white-space: nowrap;
}
.kicker {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--cyan-soft); color: var(--cyan-deep); font-size: 13px; font-weight: 600; line-height: 1;
  margin-bottom: 18px;
}
.ico {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--black); color: #fff; flex: none;
}
.ico svg { width: 18px; height: 18px; }
.ico-soft { background: var(--grey); color: var(--ink); }
.ico-cyan { background: var(--cyan-soft); color: var(--cyan-deep); }
.ico-lg { width: 40px; height: 40px; border-radius: 12px; }
.ico-lg svg { width: 20px; height: 20px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-pad { padding: 28px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 42px); max-width: 720px; letter-spacing: -.012em; line-height: 1.15; }
.sec-head p { max-width: 640px; font-size: 17.5px; line-height: 1.6; margin-top: 16px; color: var(--body-soft); }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.badges span {
  padding: 6px 9px; border-radius: 999px; background: var(--grey); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1;
}

/* ------------------------------------------------------------------
   Header — floating pill nav
   ------------------------------------------------------------------ */
/* Header — "Ink": navy bar with grouped panels (mirrors the Atlas footer) */
.site-head { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, #172238, #0f172a); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #c5cfdc; }
.navbar { position: relative; display: flex; align-items: center; gap: 8px; min-height: 68px; }
.brand img { height: 24px; width: auto; margin-right: 8px; }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 999px; background: transparent;
  font: 500 14.5px var(--font); color: #c5cfdc; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-group.is-open > button { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links > li > a[aria-current="page"], .nav-links > li > button[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); font-weight: 600; }
.nav-links > li > button svg { width: 12px; height: 12px; opacity: .6; transition: transform .15s ease; }
.nav-group.is-open > button svg { transform: rotate(180deg); }
.nav-panel { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(30, 40, 58, .05), 0 20px 48px -20px rgba(30, 40, 58, .28); color: var(--body); }
.nav-panel.is-wide { min-width: 560px; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-group.is-open > .nav-panel { display: block; }
.nav-group.is-open > .nav-panel.is-wide { display: grid; }
.nav-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--body); }
.nav-panel a:hover { background: var(--grey); }
.nav-panel .ico { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.nav-panel strong { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.nav-panel small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: 13px; color: #c5cfdc; }
.nav-status:hover { color: #fff; }
.site-head .btn-ghost { color: #fff; }
.site-head .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-head .btn-white { background: #fff; color: #0f172a; border-color: #fff; }
.site-head .btn-white:hover { background: #e8f2f9; border-color: #e8f2f9; }
.site-head .menu-btn { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.site-head .menu-btn:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.site-head.is-open .nav-toggle .i-close { display: block; }
.site-head.is-open .nav-toggle .i-menu { display: none; }

/* ------------------------------------------------------------------
   Inner-page hero, prose, layouts
   ------------------------------------------------------------------ */
.page-hero { position: relative; padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead, .page-hero.center .page-actions { margin-inline: auto; }
.page-hero.center .page-actions { justify-content: center; }
.page-hero.center .kicker, .page-hero.center .crumbs { justify-content: center; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.015em; line-height: 1.14; max-width: 860px; }
.page-hero .lead { max-width: 680px; font-size: 19px; line-height: 1.55; margin-top: 18px; color: var(--body-soft); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.page-hero.soft { background: radial-gradient(60% 70% at 0% 0%, rgba(91, 195, 218, .14), rgba(91, 195, 218, 0) 60%), linear-gradient(180deg, var(--wash) 0%, #ffffff 100%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }

.prose h2 { font-size: 28px; margin-top: 48px; scroll-margin-top: var(--head-h); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin-top: 32px; scroll-margin-top: var(--head-h); }
.prose p { margin-top: 14px; font-size: 16px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 22px; list-style: disc; display: grid; gap: 8px; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--cyan-deep); }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose blockquote { margin: 20px 0 0; padding: 14px 20px; border-left: 3px solid var(--cyan); background: var(--grey); border-radius: 0 12px 12px 0; }
.prose img { border-radius: 14px; }
.prose p code, .prose li code, .table code, .docs-body p code, .docs-body li code, .inline-code {
  font: 500 13px var(--mono); background: var(--grey); padding: 2px 6px; border-radius: 6px; color: var(--ink);
}

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sidebar { display: grid; gap: 20px; align-content: start; position: sticky; top: var(--head-h); }
.sidebar .card { padding: 24px; }
.sidebar h3 { font-size: 17px; }
.sidebar p { font-size: 14.5px; margin-top: 8px; }
.sidebar .btn { width: 100%; margin-top: 16px; }
.sidebar-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 500; }
.sidebar-list a:first-child { border-top: 0; }
.sidebar-list a:hover { color: var(--cyan-deep); }
.sidebar-list svg { width: 14px; height: 14px; opacity: .5; flex: none; }
.ad-slot {
  border: 1px dashed #d0d4db; border-radius: 12px; min-height: 110px; display: grid; place-items: center;
  color: var(--muted); font-size: 12.5px; font-weight: 500; background: repeating-linear-gradient(45deg, #fff 0 10px, #fafafb 10px 20px);
}

/* Docs layout: sticky in-page nav + body */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; padding: 48px 0 96px; }
.docs-nav { position: sticky; top: var(--head-h); align-self: start; max-height: calc(100vh - var(--head-h) - 24px); overflow: auto; padding-right: 8px; }
.docs-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 8px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--body); }
.docs-nav a:hover { background: var(--grey); color: var(--ink); }
.docs-nav a.is-active { background: var(--cyan-soft); color: var(--cyan-deep); font-weight: 600; }
.docs-nav a code { font-size: 12.5px; }
.docs-body { min-width: 0; }
.docs-body > section + section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.docs-body h2 { font-size: 30px; scroll-margin-top: var(--head-h); }
.docs-body h3 { font-size: 21px; margin-top: 44px; scroll-margin-top: var(--head-h); }
.docs-body h4 { font-size: 15px; margin-top: 26px; }
.docs-body p { margin-top: 12px; font-size: 15.5px; }
.docs-body ul, .docs-body ol { margin-top: 12px; padding-left: 22px; list-style: disc; display: grid; gap: 6px; font-size: 15px; }
.docs-body ol { list-style: decimal; }
.docs-body a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.endpoint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 12px 8px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font: 500 13.5px var(--mono); color: var(--ink); max-width: 100%; overflow-wrap: anywhere;
}
.endpoint .method { color: #fff; background: var(--green); padding: 4px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; flex: none; }

/* Code block — dark, optional language tabs, copy button */
.codeblock { margin-top: 18px; border-radius: 14px; background: var(--black); color: #e9edf3; overflow: hidden; border: 1px solid #2b3648; }
.codeblock-head {
  display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 4px 8px 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: rgba(255, 255, 255, .62);
}
.codeblock-head .label { font-weight: 600; }
.codeblock-head .tab { background: transparent; border: 0; color: rgba(255, 255, 255, .62); padding: 6px 10px; border-radius: 8px; font: 500 12.5px var(--font); cursor: pointer; }
.codeblock-head .tab:hover { color: #fff; }
.codeblock-head .tab.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
.codeblock-head .status { margin-left: auto; font: 500 12px var(--mono); color: #8be3a5; }
.codeblock-head .copy {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; font: 500 12px var(--font); cursor: pointer;
}
.codeblock-head .status + .copy { margin-left: 8px; }
.codeblock-head .copy:hover { background: rgba(255, 255, 255, .1); }
.codeblock-head .copy svg { width: 14px; height: 14px; }
.codeblock pre { margin: 0; padding: 16px 18px; overflow: auto; font: 400 13px/1.6 var(--mono); color: #e9edf3; tab-size: 2; }
.codeblock .k { color: var(--cyan); }            /* keys / keywords */
.codeblock .s { color: #b4f0a3; }                 /* strings */
.codeblock .n { color: #ffd479; }                 /* numbers */
.codeblock .c { color: rgba(255, 255, 255, .45); } /* comments */
.codeblock .m { color: #8be3a5; font-weight: 500; } /* HTTP method */
.codeblock .u { color: #fff; }                    /* url */
.codeblock-light { background: var(--grey); color: var(--ink); border-color: var(--line); }
.codeblock-light pre { color: var(--ink); }
.codeblock-light .codeblock-head { color: var(--muted); border-color: var(--line); }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--grey); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfbfc; }
.table th[scope="row"] { color: var(--ink); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .mono { font: 500 13.5px var(--mono); }
.table .up { color: var(--green); }
.table .down { color: var(--red); }
.table a { color: var(--ink); font-weight: 600; }
.table a:hover { color: var(--cyan-deep); }
.table .btn-black, .table .btn-black:hover { color: #fff; }
.table .btn-white:hover { color: var(--ink); }
.table-card { padding: 0; overflow: hidden; }
.table-card .table thead th:first-child { padding-left: 20px; }
.table-card .table td:first-child, .table-card .table th[scope="row"] { padding-left: 20px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-toolbar p { font-size: 14px; color: var(--muted); }
.asset { display: flex; align-items: center; gap: 12px; }
.asset .sym {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grey); color: var(--ink); font: 700 12px/1 var(--font);
}
.asset strong { display: block; color: var(--ink); font-weight: 600; }
.asset small { display: block; color: var(--muted); font-size: 12.5px; }
.spark { width: 96px; height: 28px; }

/* Search / filter input */
.search { position: relative; width: min(100%, 360px); }
.search input {
  width: 100%; min-height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: 500 14.5px var(--font); color: var(--ink);
}
.search input:focus { outline: 2px solid var(--cyan-deep); outline-offset: 2px; border-color: transparent; }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* Callouts, steps, accordion, stats, pagination */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 14.5px; margin-top: 18px; }
.callout strong { color: inherit; }
.callout.warn { background: var(--amber-soft); color: var(--amber); }
.callout.neutral { background: var(--grey); color: var(--body); }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; position: relative; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--black); color: #fff; font: 700 13px/1 var(--mono); margin-bottom: 18px; }
.step h3 { font-size: 18px; }
.step p { font-size: 14.5px; margin-top: 8px; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-weight: 600; color: var(--ink); font-size: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; color: var(--muted); font-weight: 400; line-height: 1; flex: none; }
.acc details[open] summary::after { content: "–"; }
.acc .acc-body { padding: 0 4px 22px; font-size: 15px; }
.acc .acc-body > *:first-child { margin-top: 0; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 44px; color: var(--ink); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font: 600 13px/1 var(--mono); }
.delta.up { background: var(--green-soft); color: var(--green); }
.delta.down { background: var(--red-soft); color: var(--red); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pagination .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.page-hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .two-col > *, .docs > * { min-width: 0; }
.feature { padding: 26px; }
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { font-size: 15px; }
.band { background: linear-gradient(180deg, var(--wash) 0%, #ffffff 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------
   Pricing (redesigned) — segmented billing control, quota meter,
   compare table, included row, enterprise card
   ------------------------------------------------------------------ */
.pricing .sec-head { align-items: center; }
.billing {
  display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); flex: none;
}
.billing-opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: transparent; color: var(--body); font: 600 14px/1 var(--font); cursor: pointer; transition: background .18s ease, color .18s ease;
}
.billing-opt em { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 7px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-deep); }
.billing-opt.is-active { background: var(--black); color: #fff; }
.billing-opt.is-active em { background: var(--cyan); color: var(--ink); }
.pricing-note { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--body); margin: -14px 0 30px; }
.pricing-note svg { width: 18px; height: 18px; color: var(--cyan-deep); flex: none; margin-top: 3px; }
.pricing-note strong { color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.plan-eyebrow { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.plan-name { font-size: 22px; margin-top: 4px; font-weight: 600; }
.plan-badge { font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 999px; background: var(--grey); color: var(--ink); line-height: 1; white-space: nowrap; }
.plan-summary { font-size: 14.5px; line-height: 1.5; margin-top: 12px; min-height: 66px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.plan-price strong { font-size: 42px; color: var(--ink); letter-spacing: -.02em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-save { min-height: 20px; font-size: 12.5px; color: var(--cyan-deep); font-weight: 600; margin-top: 6px; }
.quota { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--grey); }
.quota-row { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; font-size: 13px; color: var(--muted); }
.quota-row strong { font-size: 22px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.quota-bar { position: relative; height: 6px; margin: 10px 0 12px; border-radius: 999px; background: #e1e4e9; overflow: hidden; }
.quota-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 20%); border-radius: 999px; background: var(--cyan); }
.quota-meta { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--body); }
.quota-meta span { display: inline-flex; align-items: center; gap: 6px; }
.quota-meta svg { width: 14px; height: 14px; color: var(--cyan-deep); }
.plan-cta { margin-top: 18px; }
.plan .btn { width: 100%; }
.plan-features { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; color: var(--body); }
.plan-features svg { width: 16px; height: 16px; color: var(--cyan-deep); flex: none; margin-top: 3px; }
.plan-featured { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft), var(--shadow-md); }
.plan-featured .plan-badge { background: var(--black); color: #fff; }
.plan-featured .quota-bar i { background: var(--black); }

.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 26px; font-size: 14px; color: var(--body); }
.included li { display: inline-flex; align-items: center; gap: 8px; }
.included svg { width: 16px; height: 16px; color: var(--green); }

.compare { margin-top: 40px; overflow: hidden; }
.compare-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.compare-head h3 { font-size: 22px; }
.compare-head p { font-size: 14.5px; margin-top: 6px; max-width: 560px; }
.compare-table th, .compare-table td { padding: 14px 16px; }
.compare-table thead th { background: #fff; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; padding-top: 18px; padding-bottom: 14px; }
.compare-table thead th small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.compare-table th[scope="row"] { font-weight: 500; color: var(--body); width: 32%; }
.compare-table td { color: var(--ink); font-weight: 500; }
.compare-table td, .compare-table thead th:not(:first-child) { text-align: center; }
.compare-table th:first-child { padding-left: 28px; }
.compare-table .is-featured { background: #f2fbfd; }
.compare-table thead th.is-featured { box-shadow: inset 0 3px 0 var(--cyan); }
.compare-table .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.compare-table .yes svg { width: 14px; height: 14px; }
.compare-table .no { color: #c3c7cf; }
.compare-table tfoot td { padding: 18px 16px 22px; border-bottom: 0; }
.compare-table tfoot .btn { min-width: 132px; }
.ent-card { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; }
.ent-card h3 { font-size: 22px; }
.ent-card p { margin-top: 8px; font-size: 15px; max-width: 640px; }
.ent-card .btn { flex: none; }

/* ------------------------------------------------------------------
   Free CTA band, posts, footer
   ------------------------------------------------------------------ */
.cta { background: var(--black); color: #fff; padding: 64px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); max-width: 640px; font-weight: 600; }
.cta h2 em { font-style: normal; color: var(--cyan); }
.cta p { color: rgba(255, 255, 255, .72); margin-top: 8px; font-size: 15.5px; max-width: 560px; }
.cta .btn-cyan:hover { background: #7ad0e3; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { overflow: hidden; display: flex; flex-direction: column; }
.post figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.post img { width: 100%; height: 100%; object-fit: cover; }
.post figcaption { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; background: #fff; font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1; }
.post-body { padding: 20px 22px 24px; }
.post h3 { font-size: 18px; line-height: 1.3; }
.post p { font-size: 14.5px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* Footer — "Atlas": midnight gradient, cyan world map, enterprise link groups */
.footer { position: relative; overflow: hidden; padding: 64px 0 28px; background: linear-gradient(180deg, #172238 0%, #0f172a 100%); color: #9fb0c3; --foot-line: rgba(255, 255, 255, .12); }
.footer .wrap { position: relative; z-index: 1; }
.foot-glow { position: absolute; right: 8%; top: -30%; width: 40%; height: 80%; background: radial-gradient(closest-side, rgba(91, 195, 218, .18), transparent); pointer-events: none; }
.foot-map { position: absolute; right: -4%; top: -6%; width: 58%; aspect-ratio: 845.2 / 458; background: var(--cyan); opacity: .14; -webkit-mask: url(../images/world-map.svg) center / contain no-repeat; mask: url(../images/world-map.svg) center / contain no-repeat; pointer-events: none; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--foot-line); flex-wrap: wrap; }
.foot-brand img { height: 26px; width: auto; display: block; }
.foot-brand p { margin-top: 14px; max-width: 420px; font-size: 15px; line-height: 1.55; color: #9fb0c3; }
.foot-social { display: flex; gap: 8px; margin-top: 22px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--foot-line); display: grid; place-items: center; color: #fff; }
.foot-social a:hover { background: rgba(255, 255, 255, .08); }
.foot-social svg { width: 17px; height: 17px; }
.foot-code { display: block; margin-bottom: 10px; font: 500 12.5px var(--mono); letter-spacing: .04em; color: var(--cyan); }
.foot-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.footer .btn-white { background: #fff; color: #0f172a; border-color: #fff; }
.footer .btn-white:hover { background: #e8f2f9; border-color: #e8f2f9; }
.footer .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.footer .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 14px; color: #fff; }
.footer li { margin: 9px 0; }
.footer li a { font-size: 14.5px; color: #9fb0c3; }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--foot-line); }
.foot-bottom .disclaimer, .foot-bottom .copyright { font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .48); max-width: 980px; margin: 0; }
.foot-copy { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--foot-line); font-size: 12px; font-weight: 600; color: #fff; }
.foot-status:hover { background: rgba(255, 255, 255, .08); }
.foot-status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-map { width: 90%; right: -20%; top: 0; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } .foot-top { padding-bottom: 28px; margin-bottom: 28px; } .footer { padding-top: 48px; } }

/* ------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------ */
.reveal { opacity: 0; animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(91, 195, 218, .55); }
  70% { box-shadow: 0 0 0 16px rgba(91, 195, 218, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 195, 218, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; }
  .badge, .ping { animation: none; }
  .btn, .card, .lift { transition: none; }
  .btn:hover, .lift:hover { transform: none; }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .nav-toggle { display: grid; }
  .navbar { position: static; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 20px;
    background: #0f172a; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .55);
  }
  .site-head.is-open .nav-menu { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .nav-panel, .nav-panel.is-wide { position: static; min-width: 0; padding: 0 0 8px 8px; background: transparent; border: 0; box-shadow: none; grid-template-columns: 1fr; }
  .nav-group.is-open > .nav-panel, .nav-group.is-open > .nav-panel.is-wide { display: grid; }
  .nav-panel a:hover { background: rgba(255, 255, 255, .06); }
  .nav-panel strong { color: #fff; }
  .nav-panel small { color: #9fb0c3; }
  .nav-panel .ico { background: rgba(255, 255, 255, .1); color: #fff; }
  .nav-status { display: none; }
  .nav-actions { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 8px; }
  .nav-actions .btn { flex: 1; min-height: 46px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 88px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .docs-nav { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
  .docs-nav h4 { display: none; }
  .docs-nav a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps, .grid-3 { grid-template-columns: 1fr; }
  .compare-head { flex-direction: column; align-items: flex-start; }
  .compare-table th[scope="row"], .compare-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 172px; width: auto; box-shadow: 1px 0 0 var(--line); }
  .compare-table .is-featured { background: #f2fbfd; }
  .compare-table td, .compare-table thead th:not(:first-child) { min-width: 124px; }
}
@media (max-width: 860px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .sec-head, .ent-card { flex-direction: column; align-items: flex-start; }
  .sec-head.center { align-items: center; }
  .pricing .sec-head { align-items: flex-start; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow { width: min(100% - 32px, 1120px); }
  .section { padding: 64px 0; }
  .review-tag { display: none; }
  .plans, .posts, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .cta .btn, .ent-card .btn { width: 100%; }
  .billing { width: 100%; }
  .billing-opt { flex: 1; justify-content: center; padding: 0 10px; }
  .compare-head, .table-toolbar { padding: 20px; }
  .page-hero { padding: 32px 0 30px; }
  .page-actions .btn { flex: 1 1 200px; }
  .search { width: 100%; }
}

/* ==================================================================
   Home page
   ================================================================== */
/* ------------------------------------------------------------------
   Hero — arcs, orbiting currency badges, event stack
   ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; overflow: clip; padding: 64px 0 56px; text-align: center;
  background:
    radial-gradient(55% 60% at 8% 0%, rgba(91, 195, 218, .22), rgba(91, 195, 218, 0) 60%),
    radial-gradient(45% 55% at 92% 4%, rgba(30, 40, 58, .06), rgba(30, 40, 58, 0) 60%),
    linear-gradient(180deg, var(--wash) 0%, #ffffff 58%);
}
.halo {
  position: absolute; left: 50%; top: 0; width: 1600px; height: 1000px; transform: translateX(-50%);
  transform-origin: top center; pointer-events: none; z-index: 0;
}
.halo-rings {
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 88%);
}
.badge {
  position: absolute; left: var(--x); top: var(--y); width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  display: grid; place-items: center; animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.badge span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--t-bg); color: var(--t-fg); font: 700 12px/1 var(--font); letter-spacing: -.02em;
}
.t-usd { --t-bg: #e7f6ee; --t-fg: #1b7a4a; }
.t-eur { --t-bg: #e6eeff; --t-fg: #2450c7; }
.t-gbp { --t-bg: #f0e8ff; --t-fg: #6a3bd1; }
.t-jpy { --t-bg: #ffe9e9; --t-fg: #c23a3a; }
.t-chf { --t-bg: #ffe8ef; --t-fg: #c22b5a; }
.t-aud { --t-bg: #fff1dd; --t-fg: #b8650c; }
.t-cad { --t-bg: #ffe6e6; --t-fg: #c0392b; }
.t-inr { --t-bg: #ffeedf; --t-fg: #c25a00; }
.t-brl { --t-bg: #e4f7ef; --t-fg: #12805a; }
.t-zar { --t-bg: #e3f5f8; --t-fg: #10657a; }
.hero-fog {
  position: absolute; left: 50%; top: 30px; width: 1100px; height: 540px; transform: translateX(-50%);
  background: radial-gradient(closest-side, #fff 42%, rgba(255, 255, 255, 0)); pointer-events: none; z-index: 0;
}
.hero-glow {
  position: absolute; left: 50%; top: 430px; width: 760px; height: 380px; transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 50%, rgba(91, 195, 218, .26), rgba(91, 195, 218, 0) 70%);
  filter: blur(24px); pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.pill-status { color: var(--body); }
.pill-status:hover { color: var(--ink); border-color: #d0d4db; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.12; max-width: 900px; letter-spacing: -.015em; }
.lead { max-width: 640px; font-size: 19px; line-height: 1.55; margin: 22px 0 0; color: var(--body-soft); }
.hero .lead { margin-inline: auto; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hero .chips { justify-content: center; margin-top: 18px; }
.hero .chips li { background: #fff; border: 1px solid var(--line); color: var(--body); }
.hero .chips li.chip-alt { font-family: var(--font); font-weight: 600; }

.events { width: min(100%, 540px); margin-top: 44px; display: flex; flex-direction: column; align-items: center; }
.event {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); text-align: left;
}
.event:nth-child(1) { z-index: 3; }
.event:nth-child(2) { z-index: 2; width: 92%; margin-top: -8px; opacity: .94; }
.event:nth-child(3) { z-index: 1; width: 84%; margin-top: -8px; opacity: .82; }
.ev-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ev-ico svg { width: 16px; height: 16px; }
.ev-ok { background: #e7f6ee; color: var(--green); }
.ev-mcp { background: var(--cyan-soft); color: var(--cyan-deep); }
.ev-conv { background: var(--grey); color: var(--ink); }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-body strong { font-size: 14px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-body span { font: 400 12.5px/1.3 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ev-status { font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--grey); color: var(--ink); }
.ev-status.is-ok { color: var(--green); background: #e7f6ee; }
.ev-meta small { font-size: 12px; color: var(--muted); }

.console {
  width: min(100%, 760px); margin-top: 22px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-sm); text-align: left; overflow: hidden;
}
.console code { display: block; padding: 14px 18px; font-size: 13px; line-height: 1.55; color: var(--ink); word-break: break-all; }
.console .method { color: var(--cyan-deep); font-weight: 500; margin-right: 6px; }
.console-paths {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 11px 18px;
  border-top: 1px solid var(--line); background: var(--grey); font-size: 13.5px;
}
.console-paths span { color: var(--muted); margin-right: 2px; }
.console-paths a {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.console-paths a:hover { text-decoration-color: var(--ink); }

.logos { position: relative; z-index: 1; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.logos p { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.logos ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 46px; margin-top: 24px; }
.logos img { height: 30px; width: auto; max-width: 132px; filter: grayscale(1); opacity: .55; transition: filter .2s ease, opacity .2s ease; }
.logos li:hover img { filter: none; opacity: 1; }

/* ------------------------------------------------------------------
   Developer integration paths — hairline tiles
   ------------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile { padding: 36px 28px; border-left: 1px solid var(--line); }
.tile:first-child { border-left: 0; padding-left: 0; }
.tile:last-child { padding-right: 0; }
.tile h3 { font-size: 20px; margin: 22px 0 10px; }
.tile p { font-size: 15.5px; }
.tile code { font: 500 13px var(--mono); background: var(--grey); padding: 2px 6px; border-radius: 6px; color: var(--ink); white-space: nowrap; }
.workflow {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px; border-radius: var(--radius); background: var(--grey);
}
.workflow .kicker { margin-bottom: 8px; background: #fff; }
.workflow p { color: var(--ink); font-weight: 500; font-size: 17px; max-width: 620px; }
.workflow .chips li { background: #fff; border: 1px solid var(--line); }

/* ------------------------------------------------------------------
   Enterprise — light grey band, white cards
   ------------------------------------------------------------------ */
.enterprise { background: linear-gradient(180deg, var(--wash) 0%, #ffffff 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ent-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.ent-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.ent-head p { margin-top: 14px; font-size: 17px; color: var(--body-soft); max-width: 560px; }
.ent-links { display: flex; gap: 10px; flex-wrap: wrap; justify-self: end; }
.wf-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; }
.wf-card > *, .wf-panel > * { min-width: 0; }
.wf-tabs { padding: 16px; border-right: 1px solid var(--line); background: var(--grey); display: grid; gap: 4px; align-content: start; }
.wf-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: transparent; font: 600 14.5px var(--font); color: var(--body); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.wf-tabs button small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.wf-tabs button:hover { background: rgba(255, 255, 255, .7); }
.wf-tabs button.is-active { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.wf-panel { padding: 32px; }
.wf-panel h3 { font-size: 24px; }
.wf-panel > p { margin-top: 8px; font-size: 15.5px; }
.wf-panel .codeblock { margin-top: 18px; }
.wf-caps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.wf-caps li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 13px; font-weight: 600; }
.wf-caps svg { width: 13px; height: 13px; }
.ent-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ent-controls > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.ent-controls > div:first-child { border-left: 0; padding-left: 0; }
.ent-controls strong { display: block; margin-top: 12px; font-size: 15px; color: var(--ink); }
.ent-controls span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--body-soft); line-height: 1.5; }
.ent-controls .ico { margin-top: 0; }
@media (max-width: 1024px) {
  .ent-head { grid-template-columns: 1fr; gap: 20px; }
  .ent-links { justify-self: start; }
  .wf-card { grid-template-columns: 1fr; }
  .wf-tabs { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-controls > div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .ent-controls > div:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 640px) {
  .wf-tabs { grid-template-columns: 1fr; }
  .wf-panel { padding: 22px; }
  .ent-controls { grid-template-columns: 1fr; }
  .ent-controls > div:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------
   Real-time rates map
   ------------------------------------------------------------------ */
.map-stage { position: relative; width: min(100%, 1000px); margin: 0 auto; aspect-ratio: 845.2 / 458; }
.map-dots {
  position: absolute; inset: 0; background: #d8dbe0;
  -webkit-mask: url(../images/world-map.svg) center / contain no-repeat; mask: url(../images/world-map.svg) center / contain no-repeat;
}
.ping {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cyan);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; animation-delay: var(--d, 0s);
}
.ping::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.rate {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.rate code { font: 500 12.5px var(--mono); }
.rate.up code { color: var(--green); }
.rate.down code { color: var(--red); }
/* ------------------------------------------------------------------
   Conversions panel
   ------------------------------------------------------------------ */
.conversions .sec-head { margin-bottom: 28px; }
.conversions .sec-head p { font-size: 15.5px; max-width: 460px; }
.conv-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.conv-tiles > li { min-width: 0; }
.conv-tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--body); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.conv-tile:hover { border-color: #b9d9e3; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.conv-pair { display: flex; margin-bottom: 8px; }
.conv-pair i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: 600 14px var(--font); font-style: normal; color: var(--ink); }
.conv-pair i + i { margin-left: -8px; background: var(--cyan-soft); border-color: #a9e2ee; color: var(--cyan-deep); }
.conv-pair i.is-code { font: 600 9px var(--mono); letter-spacing: .02em; }
.conv-code { display: inline-flex; align-items: center; gap: 4px; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted); }
.conv-code svg { width: 11px; height: 11px; }
.conv-name { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.conv-rate { font-size: 13px; color: var(--body-soft); }
.conv-rate b { font: 500 13px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.conv-go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--cyan-deep); }
.conv-go svg { width: 12px; height: 12px; transition: transform .15s ease; }
.conv-tile:hover .conv-go svg { transform: translateX(3px); }
@media (max-width: 1100px) { .conv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .conv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .conv-tile { padding: 14px; } }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .b-l4, .b-r4 { display: none; }
}
@media (max-width: 1024px) {
}
@media (max-width: 1000px) {
  .b-l3, .b-r3, .b-l5, .b-r5 { display: none; }
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  .tile:first-child { border-top: 0; }
  .workflow { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .badge { display: none; }
  .halo { transform: translateX(-50%) scale(.6); }
  .hero-fog { width: 760px; height: 460px; }
  .hero-glow { width: 520px; }
  .hero { padding: 32px 0 48px; }
  .hero-cta .btn { flex: 1 1 220px; }
  .events { margin-top: 36px; }
  .ev-meta small { display: none; }
  .rate { padding: 6px 8px; font-size: 11.5px; gap: 5px; }
  .rate code { font-size: 11px; }
  .ping { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
}
@media (max-width: 600px) {
  .logos ul { gap: 18px 28px; }
  .logos img { height: 24px; }
}

/* ==================================================================
   App components — forms, alerts, toasts, account shell, menus,
   pagination, auth, prose pages, print
   ================================================================== */
.field { display: grid; gap: 6px; }
.field + .field, .form-row + .form-row, .form-row + .field, .field + .form-row { margin-top: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-row > .field + .field { margin-top: 0; }
.label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.label small, .help { font-size: 13px; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #d6dbe4; border-radius: 12px; background: #fff;
  font: 500 15px var(--font); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.select {
  appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7380' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan-deep); box-shadow: 0 0 0 4px var(--cyan-soft); }
.input[readonly], .input:disabled { background: var(--grey); color: var(--body); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.field-error, .invalid-feedback { font-size: 13px; color: var(--red); }
.input-group { display: flex; }
.input-group .input { border-radius: 12px 0 0 12px; min-width: 0; }
.input-group .btn { border-radius: 0 12px 12px 0; min-height: 46px; }
.input-group .btn + .btn { border-radius: 0; }
.input-group .btn:last-child { border-radius: 0 12px 12px 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--body); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cyan-deep); flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.form-card { padding: 28px; }
.form-card h2 { font-size: 20px; margin-bottom: 4px; }
.form-card > p { font-size: 14.5px; color: var(--body-soft); margin-bottom: 22px; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--grey); font-size: 14.5px; color: var(--body); margin-bottom: 20px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert h4 { font-size: 15px; margin-bottom: 4px; color: inherit; }
.alert ul { padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.alert-danger { background: var(--red-soft); border-color: #f4c7c7; color: #8d2b2b; }
.alert-success { background: var(--green-soft); border-color: #bfe7cf; color: #135f3c; }
.alert-warning { background: var(--amber-soft); border-color: #f2dfb3; color: var(--amber); }
.alert-info { background: var(--cyan-soft); border-color: #a9e2ee; color: var(--cyan-deep); }

.toast-stack { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; gap: 8px; width: min(100% - 32px, 380px); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow-md); animation: rise .3s ease; }
.toast i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--cyan); }
.toast.is-success i { background: #4ade80; }
.toast.is-danger i, .toast.is-error i { background: #f87171; }
.toast.is-warning i { background: #fbbf24; }
.toast button { margin-left: auto; background: none; border: 0; color: rgba(255, 255, 255, .6); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.toast button:hover { color: #fff; }

.impersonating { background: var(--ink); color: #fff; font-size: 14px; text-align: center; padding: 10px 16px; }
.impersonating a { color: var(--cyan); font-weight: 600; margin-left: 8px; }

/* Account shell */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding: 40px 0 96px; }
.app > * { min-width: 0; }
.app-nav { position: sticky; top: var(--head-h); align-self: start; }
.app-nav .who { display: flex; gap: 12px; align-items: center; padding: 0 12px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.app-nav .who strong { display: block; font-size: 14.5px; color: var(--ink); }
.app-nav .who small { display: block; font-size: 12.5px; color: var(--muted); }
.app-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 12px 8px; }
.app-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--body); }
.app-nav a:hover { background: var(--grey); color: var(--ink); }
.app-nav a.is-active { background: var(--cyan-soft); color: var(--cyan-deep); font-weight: 600; }
.app-nav a svg { width: 16px; height: 16px; opacity: .8; flex: none; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.app-head h1 { font-size: 30px; }
.app-head p { font-size: 15px; color: var(--body-soft); margin-top: 6px; }
.app-section + .app-section { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card { padding: 20px 22px; }
.stat-card .label-sm { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-card strong { display: block; font-size: 30px; margin-top: 6px; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-card small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: #e1e4e9; overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--w, 0%); background: var(--cyan); border-radius: 999px; }
.key-box { display: flex; gap: 8px; align-items: stretch; }
.key-box .input { font-family: var(--mono); font-size: 13.5px; }

/* Account: sub navigation (settings tabs) + helpers */
.app-shell { background: #fff; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.subnav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--body); }
.subnav a:hover { border-color: #c9ced8; color: var(--ink); }
.subnav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.app-main .card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 18px; }
.card-head p { font-size: 14px; color: var(--body-soft); margin-top: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { color: var(--ink); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--grey); color: var(--body); }
.pill.is-good { background: var(--green-soft); color: var(--green); }
.pill.is-warn { background: var(--amber-soft); color: var(--amber); }
.pill.is-bad { background: var(--red-soft); color: var(--red); }
.upload { display: flex; align-items: center; gap: 16px; }
.upload .avatar-lg { flex: none; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 4px 0; } .kv dt { margin-top: 10px; } }

/* Account: content cards get a default inset (the base .card is unpadded for marketing components) */
.app-main .card:not(.table-card):not(.stat-card):not(.form-card):not(.plan):not(.ent-card):not(.compare) { padding: 22px 24px; }
.app-main .card > .card-head:first-child { margin-bottom: 18px; }
.app-main .card:not(.table-card) > .table-scroll { margin: 0 -24px -22px; }
.label svg, .card-head h2 svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; opacity: .8; }
.label > span { display: inline-flex; align-items: center; gap: 6px; }

/* Dropdown menu (user menu) */
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.menu-btn svg { width: 14px; height: 14px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); display: none; z-index: 70; }
.menu.is-open .menu-panel { display: block; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font: 500 14.5px var(--font); color: var(--body); background: none; border: 0; text-align: left; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--grey); color: var(--ink); }
.menu-panel svg { width: 16px; height: 16px; opacity: .75; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grey) center / cover no-repeat; display: grid; place-items: center; font: 700 12px var(--font); color: var(--ink); flex: none; border: 1px solid var(--line); }
.avatar-lg { width: 48px; height: 48px; font-size: 15px; }

/* Pagination (Laravel markup) */
.pagination-wrap { display: flex; justify-content: center; margin-top: 24px; }
.pagination-wrap nav { width: 100%; }
ul.pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
ul.pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--body); background: #fff; }
ul.pagination .page-link:hover { border-color: #c9ced8; color: var(--ink); }
ul.pagination .active .page-link { background: var(--black); color: #fff; border-color: var(--black); }
ul.pagination .disabled .page-link { opacity: .4; pointer-events: none; }

/* Auth */
.auth { display: grid; justify-items: center; padding: 56px 0 96px; background: radial-gradient(60% 50% at 50% 0%, rgba(91, 195, 218, .14), rgba(91, 195, 218, 0) 60%), linear-gradient(180deg, var(--wash) 0%, #ffffff 50%); }
.auth .wrap { display: grid; justify-items: center; }
.auth-card { width: min(100%, 440px); padding: 32px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { font-size: 14.5px; color: var(--body-soft); margin-bottom: 22px; }
.auth-card .btn { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-alt { width: min(100%, 440px); text-align: center; font-size: 14.5px; margin-top: 20px; color: var(--body); }
.auth-alt a, .link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover, .auth-alt a:hover { text-decoration-color: var(--ink); }

/* Prose pages (terms, privacy, static pages) */
.prose-page { padding: 48px 0 96px; }
.prose-page .prose { max-width: 800px; }
.prose-page .prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.prose-page .prose > p:first-of-type { font-size: 17px; color: var(--body-soft); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--grey); }

/* Print */
@media print {
  .site-head, .footer, .cta, .app-nav, .toast-stack, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* Responsive additions */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .app-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
  .app-nav .who { display: none; }
  .app-nav h4 { display: none; }
  .app-nav a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .form-card { padding: 22px; }
  .app-head h1 { font-size: 26px; }
}

/* Compact pricing (account → subscription page) */
.plans.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plans.is-compact .plan { padding: 20px; }
.plans.is-compact .plan-summary { min-height: 0; }
.plans.is-compact .plan-price strong { font-size: 32px; }
.ent-card.is-compact { padding: 22px 24px; }
.pricing-switcher.is-compact { margin-bottom: 16px; }

/* Pricing as a page (the section heading is the page title) */
.pricing-page { padding-top: 48px; }
.pricing-page .sec-head h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.015em; line-height: 1.14; max-width: 760px; }
.pricing-page .sec-head p { font-size: 18px; }

/* Auth: social providers */
.providers { display: grid; gap: 8px; }
.providers .btn { width: 100%; }
.providers .btn svg { width: 18px; height: 18px; }
.auth-card .form-actions .btn { width: 100%; }
.auth-card .check { font-size: 14px; }
.auth-card .help { display: block; margin-top: 2px; }

/* Checkout */
.checkout { padding: 40px 0 96px; }
.checkout h1 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 18px; }
.checkout-lead { font-size: 16px; color: var(--body-soft); margin: 12px 0 26px; max-width: 620px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.summary { padding: 28px; position: sticky; top: var(--head-h); }
.summary h2 { font-size: 24px; }
.summary .plan-price { margin-top: 12px; }
.summary-label { font-size: 14px; color: var(--muted); margin-top: 20px; }
.summary .plan-features { margin-top: 12px; padding-top: 0; border-top: 0; }
.summary-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pay-options { display: grid; gap: 18px; }
.pay-card { padding: 26px 28px; }
.pay-card h2 { font-size: 18px; margin-bottom: 16px; }
.pay-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.pay-submit { margin-top: 18px; width: 100%; }
.pm-list { display: grid; gap: 10px; }
.pm-radio, .pm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; color: var(--ink); }
.pm-radio { cursor: pointer; }
.pm-radio:has(input:checked) { border-color: var(--cyan-deep); box-shadow: 0 0 0 3px var(--cyan-soft); }
.pm-radio input { width: 18px; height: 18px; accent-color: var(--cyan-deep); flex: none; margin: 0; }
.card-brand { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--grey); font: 700 11px/1 var(--mono); letter-spacing: .04em; color: var(--ink); flex: none; }
.pm-number { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; }
.pm-exp { margin-left: auto; font: 500 13px var(--mono); color: var(--muted); }
.pm-row .pm-delete { margin-left: 8px; color: var(--red); }
.pm-row .pm-exp { margin-left: auto; }
.pm-empty { font-size: 14.5px; color: var(--muted); }
.spinner { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 8px 0; }
.spinner i { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--cyan-deep); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#payment-element { margin-bottom: 6px; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 480px) {
  .pm-dots { display: none; }
  .pm-number::before { content: '\2022\2022\2022\2022 '; letter-spacing: .05em; }
}
@media (max-width: 600px) {
  .plans.is-compact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pm-row { flex-wrap: wrap; row-gap: 6px; }
  .pm-row .pm-delete { margin-left: auto; }
  .pm-radio { flex-wrap: wrap; row-gap: 4px; }
}
