/* PriceAPI: a business look — white pages, slate ink, an emerald brand colour, soft cards.
   Kept apart from ShopAssist (blue, Inter) and from the old paper-and-vermilion look.
   Order: fonts, tokens (light, dark), base, header, controls, cabinet parts, support requests, landing, docs, footer.
   Plain css on purpose (no nesting, no color-mix): the cabinet is opened from old office browsers too. */

/* Onest and JetBrains Mono are served from here (wwwroot/fonts, SIL OFL 1.1): nothing is asked from other hosts */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* latin-ext is here for the ruble sign */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    /* the brand scale; 600 is the button, it holds white text at 4.9:1 */
    --brand-50: #edfaf5;
    --brand-100: #d5f4e8;
    --brand-200: #ade8d2;
    --brand-300: #76d4b4;
    --brand-400: #3fba93;
    --brand-500: #1a9f7a;
    --brand-600: #0b7f60;
    --brand-700: #0a6650;
    --brand-800: #0c5142;

    --bg: #ffffff;
    --bg-soft: #f6f8fa;
    --bg-tint: #f2faf7;
    --card: #ffffff;
    --text: #101828;
    --text-2: #344054;
    --muted: #5d6b82;
    --placeholder: #6a7689;
    --line: #e4e7ec;
    --line-strong: #cfd4dc;
    --row-hover: #f9fafb;

    --accent: var(--brand-600);
    --accent-hover: var(--brand-700);
    --accent-soft: var(--brand-50);
    --accent-line: #bfe9d9;
    --accent-ink: var(--brand-700);
    --on-accent: #ffffff;
    --link: var(--brand-700);
    --link-hover: var(--brand-800);

    --green: #067647;
    --green-soft: #ecfdf3;
    --green-line: #abefc6;
    --red: #b42318;
    --red-soft: #fef3f2;
    --red-line: #fecdca;
    --red-solid: #d92d20;
    --amber: #b54708;
    --amber-soft: #fffaeb;
    --amber-line: #fedf89;
    --amber-solid: #f79009;
    --blue: #175cd3;
    --blue-soft: #eff8ff;
    --blue-line: #b2ddff;

    /* code windows are dark in both themes */
    --code-bg: #0c1322;
    --code-head: #111a2d;
    --code-line: #1f2b44;
    --code-text: #e3e9f4;
    --code-muted: #8492ad;

    /* the footer and the closing banner */
    --ink-bg: #0b1220;
    --ink-text: #ffffff;
    --ink-muted: #9aa7bd;
    --ink-line: #1c2740;

    --head-bg: rgba(255, 255, 255, .88);
    --hero-glow: rgba(26, 159, 122, .16);
    --dot: rgba(16, 24, 40, .09);
    --logo-tile: #0c1322;
    --logo-edge: transparent;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 10px 24px -8px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .05);
    --shadow-lg: 0 28px 56px -16px rgba(16, 24, 40, .22), 0 4px 12px -4px rgba(16, 24, 40, .06);
    --ring: 0 0 0 4px rgba(11, 127, 96, .2);

    --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    color-scheme: light;
}

/* dark: the head script always sets data-theme (the saved choice, else the system setting) before the first paint */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1017;
    --bg-soft: #0f1620;
    --bg-tint: #0c1917;
    --card: #121a25;
    --text: #e8edf5;
    --text-2: #c3ccda;
    --muted: #8f9cb1;
    --placeholder: #7a879c;
    --line: #1f2a38;
    --line-strong: #2d3b4f;
    --row-hover: #151e2a;

    --accent: #1fae86;
    --accent-hover: #37c49b;
    --accent-soft: #0f2a25;
    --accent-line: #1d4a40;
    --accent-ink: #5fd9b3;
    --on-accent: #04130e;
    --link: #5fd9b3;
    --link-hover: #8be7cb;

    --green: #75e0a7;
    --green-soft: #0d2a1f;
    --green-line: #17503a;
    --red: #fda29b;
    --red-soft: #2d1414;
    --red-line: #5c1f1b;
    --red-solid: #f04438;
    --amber: #fec84b;
    --amber-soft: #2b1f0a;
    --amber-line: #5c3d0c;
    --amber-solid: #f79009;
    --blue: #84caff;
    --blue-soft: #0f2038;
    --blue-line: #1c3d66;

    --code-bg: #0a0f18;
    --code-head: #0e1522;
    --code-line: #1b2535;

    --ink-bg: #080c12;
    --ink-line: #18212e;

    --head-bg: rgba(11, 16, 23, .86);
    --hero-glow: rgba(31, 174, 134, .16);
    --dot: rgba(255, 255, 255, .07);
    --logo-tile: #182233;
    --logo-edge: rgba(255, 255, 255, .14);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 24px -8px rgba(0, 0, 0, .55);
    --shadow-lg: 0 28px 56px -16px rgba(0, 0, 0, .7);
    --ring: 0 0 0 4px rgba(31, 174, 134, .28);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--sans);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
main { flex: 1; }
::selection { background: var(--brand-200); color: #06281f; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--text); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2rem; letter-spacing: -.025em; }
h2 { font-size: 1.4rem; letter-spacing: -.02em; margin-top: 1.8em; }
h3 { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 600; margin-top: 1.4em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
svg { display: block; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code { font-size: .86em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; color: var(--text); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
pre {
    background: var(--code-bg);
    color: var(--code-text);
    border: 1px solid var(--code-line);
    border-radius: 12px;
    padding: 18px 20px;
    overflow-x: auto;
    font-size: .845rem;
    line-height: 1.7;
    margin: 0 0 1.2em;
    tab-size: 4;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* syntax colors of the hand written samples */
.tk-prompt { color: var(--code-muted); }
.tk-key { color: #7dd3fc; }
.tk-num { color: #fdba74; }
.tk-str { color: #86efac; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 40px; padding-bottom: 80px; }
.page > h1:first-child { margin-bottom: .35em; }
.prose { max-width: 820px; }
.prose h1 { font-size: 2.1rem; margin-bottom: .8em; }
.prose h3 { margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--on-accent); text-decoration: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--head-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled, .top.with-sub, .top.open { border-bottom-color: var(--line); }
.top.scrolled { box-shadow: var(--shadow-xs); }
.top a { text-decoration: none; }
.top-row { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.28rem/1 var(--sans); letter-spacing: -.03em; color: var(--text); text-decoration: none; flex: none; }
.logo:hover { color: var(--text); text-decoration: none; }
.logo b { font-weight: 700; color: var(--accent); }
.logo svg { width: 30px; height: 30px; flex: none; }
/* the mark: a terminal prompt on a tile of the code windows' colour; on dark surfaces the tile gets lighter and an edge */
.logo-tile { fill: var(--logo-tile); stroke: var(--logo-edge); }
.logo-prompt { fill: none; stroke: #35c99b; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-cursor { fill: #fff; }
.top-menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav a { padding: 8px 14px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: .95rem; white-space: nowrap; transition: background .15s, color .15s; }
.top-nav a:hover { background: var(--bg-soft); color: var(--text); }
.top-nav a.active { color: var(--accent-ink); background: var(--accent-soft); }
.top-tools { display: flex; align-items: center; gap: 10px; }
.top-link { padding: 8px 10px; font-weight: 600; font-size: .95rem; color: var(--text); white-space: nowrap; border-radius: 8px; }
.top-link:hover { color: var(--accent-ink); }
.top-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; padding: 3px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.lang-switch button { background: transparent; border: 0; color: var(--muted); font: 600 .75rem/1 var(--sans); letter-spacing: .02em; padding: 0 10px; height: 28px; border-radius: 7px; cursor: pointer; transition: color .15s; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.icon-btn:hover { background: var(--bg-soft); color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon, :root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle .close, .top.open .menu-toggle .bars { display: none; }
.top.open .menu-toggle .close { display: block; }

/* the cabinet sections: tabs under the header */
.sub-nav { display: flex; gap: 4px; align-items: stretch; height: 48px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav a { display: inline-flex; align-items: center; padding: 0 14px; color: var(--muted); font-weight: 500; font-size: .925rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.sub-nav a:first-child { margin-left: -14px; }
.sub-nav a:hover { color: var(--text); }
.sub-nav a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.sub-nav-user { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 16px; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.sub-nav-user a, .sub-nav-user a:first-child { padding: 0; margin: 0; border: 0; color: var(--link); font-weight: 500; font-size: inherit; }

@media (max-width: 940px) {
    .top-row { gap: 12px; justify-content: space-between; }
    .menu-toggle { display: inline-grid; }
    .top-menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
    .top.open .top-menu { display: flex; }
    .top-nav { flex-direction: column; align-items: stretch; gap: 2px; }
    .top-nav a { padding: 12px; font-size: 1rem; }
    .top-tools { justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
}

/* ---------- buttons and forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px;
    background: var(--accent); color: var(--on-accent); font: 600 .95rem/1 var(--sans);
    cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-xs);
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-small { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 9px; }
.btn-large { height: 52px; padding: 0 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-danger { background: var(--card); color: var(--red); border-color: var(--red-line); }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-white { background: #fff; color: #0b1220; }
.btn-white:hover { background: #e8edf4; color: #0b1220; }
.btn-on-dark { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .26); box-shadow: none; }
.btn-on-dark:hover { background: rgba(255, 255, 255, .14); color: #fff; }

label { display: block; font: 500 .875rem/1.4 var(--sans); margin-bottom: 6px; color: var(--text-2); }
label.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0; font-weight: 400; font-size: .925rem; color: var(--text); cursor: pointer; }
label.check.small { font-size: .875rem; }
input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
    width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
    background: var(--card); color: var(--text); font: inherit; font-size: .95rem; box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s;
}
textarea { display: block; height: auto; min-height: 120px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8799' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field { margin-bottom: 18px; }
.field-error { display: block; color: var(--red); font-size: .85rem; margin-top: 6px; }
.field-error:empty { display: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1; min-width: 180px; }

/* notices */
.notice { border: 1px solid; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .95rem; }
.notice a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.notice-ok { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.notice-error { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.notice-warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.notice-info { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); }

/* ---------- cards, grids, the cabinet ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-xs); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid > *, .hero-grid > *, .split > *, .docs > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.stat-label { color: var(--muted); font: 500 .8125rem/1.4 var(--sans); }
.stat-value { font: 700 1.7rem/1.25 var(--sans); letter-spacing: -.025em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value .muted { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.stat-note { color: var(--muted); font-size: .875rem; }
.meter { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; box-shadow: inset 0 0 0 1px var(--line); }
.meter > span { display: block; height: 100%; min-width: 4px; background: var(--accent); border-radius: 999px; }
.meter.warn > span { background: var(--amber-solid); }
.meter.full > span { background: var(--red-solid); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-xs); }
.card .table-wrap { box-shadow: none; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 500 .8rem/1.4 var(--sans); background: var(--bg-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--row-hover); }
tr.muted td { color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.url { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td code, th code { white-space: nowrap; }
td.url a { color: var(--text-2); }
td.url a:hover { color: var(--link); }
td form.inline-form { gap: 8px; }
td input[type=text], td input[type=number], td select { height: 36px; font-size: .875rem; border-radius: 8px; padding-left: 10px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 .75rem/1 var(--sans); background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.badge-ok { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.badge-error { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.badge-warn { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.pager { display: flex; gap: 8px; margin-top: 16px; }

/* the bar chart of the cabinet */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--accent); }
.chart .bar-free { fill: var(--line-strong); }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; color: var(--muted); font-size: .875rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--line-strong); }
.legend i.billed { background: var(--accent); }

/* a key shown once */
.key-box { display: flex; gap: 10px; align-items: center; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--code-line); border-radius: 12px; padding: 10px 10px 10px 16px; font-family: var(--mono); word-break: break-all; }
.key-box code { background: none; border: 0; padding: 0; flex: 1; font-size: .95rem; color: inherit; white-space: normal; }

/* ---------- support requests ---------- */
/* the public form and a request opened by the link of the letter: a column like .auth, wide enough for a message */
.form-page { width: 100%; max-width: 728px; margin: 56px auto 96px; padding: 0 24px; }
.form-page > h1 { margin-bottom: 8px; }
.form-page > p.muted { margin-bottom: 24px; }
.form-page .card { padding: 28px; border-radius: 18px; box-shadow: var(--shadow-md); }
.form-row { gap: 0 20px; }
.form-card { max-width: 780px; }
.form-note { margin: 14px 0 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: .35em; }
.page-head h1 { margin: 0; }
.back { margin: 0 0 14px; font-size: .9rem; }
.back a { color: var(--muted); }
.back a:hover { color: var(--link); }
/* a count next to a section of the cabinet: answers not read yet, requests waiting for the support */
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 .72rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.badge-new { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); margin-left: 6px; }
td.ticket-subject { min-width: 220px; overflow-wrap: anywhere; }
td.ticket-subject a { font-weight: 500; }
tr.muted td.ticket-subject a { color: inherit; font-weight: 400; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filters a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--text-2); font: 500 .875rem/1 var(--sans); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.filters a:hover { background: var(--bg-soft); color: var(--text); }
.filters a.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.filters a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.filters a.active span { color: inherit; }
.ticket-title { font-size: 1.6rem; margin: 0 0 10px; overflow-wrap: anywhere; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 22px; font-size: .9rem; }
.ticket-body { max-width: 860px; }
.ticket-from { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; max-width: 860px; margin-bottom: 20px; padding: 18px 24px; }
.ticket-from > div { min-width: 0; overflow-wrap: anywhere; }
.ticket-from .stat-label { display: block; margin-bottom: 4px; }
.thread { display: grid; gap: 12px; margin-bottom: 20px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-xs); }
.msg-staff { background: var(--accent-soft); border-color: var(--accent-line); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; font-size: .925rem; }
.msg-head strong { overflow-wrap: anywhere; }
.msg-head time { margin-left: auto; white-space: nowrap; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.msg-text a { text-decoration: underline; text-underline-offset: 3px; }
.reply .field { margin-bottom: 14px; }
.reply-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .ticket-from { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .form-page { margin: 36px auto 72px; padding: 0 20px; }
    .form-page .card { padding: 20px; }
    .ticket-from { grid-template-columns: 1fr; padding: 16px 20px; }
    .msg { padding: 14px 16px; }
    .msg-head time { margin-left: 0; }
}

/* sign in and the like */
.auth { width: 100%; max-width: 448px; margin: 64px auto 96px; padding: 0 24px; }
.auth h1 { font-size: 1.75rem; margin-bottom: 8px; }
.auth > p.muted { margin-bottom: 24px; }
.auth .card { padding: 28px; border-radius: 18px; box-shadow: var(--shadow-md); }
.auth .card > .btn { margin-top: 4px; }
/* the captcha (lib/altcha) follows color-scheme by itself, only the brand is set here */
altcha-widget { --altcha-border-radius: 10px; --altcha-border-color: var(--line-strong); --altcha-color-base: var(--card); --altcha-color-primary: var(--accent); }

/* ---------- code: windows, tabs, the copy button ---------- */
.code-window { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.code-head { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: var(--code-head); border-bottom: 1px solid var(--code-line); }
.code-dots { display: inline-flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3752; }
.code-title { font: 500 .75rem/1 var(--mono); color: var(--code-muted); }
.code-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(52, 211, 153, .12); color: #6ee7b7; font: 600 .7rem/1 var(--mono); }
.code-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.code-window pre, .tabs pre { margin: 0; border: 0; border-radius: 0; background: transparent; }

.tabs { border: 1px solid var(--code-line); border-radius: 14px; overflow: hidden; background: var(--code-bg); margin-bottom: 1.2em; box-shadow: var(--shadow-md); }
.tab-buttons { display: flex; align-items: center; gap: 2px; padding: 7px 8px; overflow-x: auto; background: var(--code-head); border-bottom: 1px solid var(--code-line); scrollbar-width: none; }
.tab-buttons::-webkit-scrollbar { display: none; }
.tab-buttons button { background: transparent; border: 0; border-radius: 7px; color: var(--code-muted); font: 500 .8125rem/1 var(--sans); padding: 8px 12px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tab-buttons button:hover { color: var(--code-text); }
.tab-buttons button.active { color: #fff; background: rgba(255, 255, 255, .1); }
.tab-buttons .copy-btn { margin-left: auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel pre { max-height: 440px; }

.code-block { position: relative; margin: 0 0 1.2em; }
.code-block pre { margin: 0; }
.code-block .copy-btn { position: absolute; top: 8px; right: 8px; opacity: 0; }
.code-block:hover .copy-btn, .code-block .copy-btn:focus-visible, .code-block .copy-btn.done { opacity: 1; }
@media (hover: none) { .code-block .copy-btn { opacity: 1; } }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--code-line); border-radius: 7px; background: var(--code-head); color: var(--code-muted); font: 500 .75rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: opacity .15s, color .15s, border-color .15s; }
.copy-btn:hover { color: #fff; border-color: #3a4a6b; }
.copy-btn.done { color: #6ee7b7; border-color: rgba(52, 211, 153, .4); }
.copy-btn svg { width: 14px; height: 14px; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 104px; background: radial-gradient(900px 480px at 88% -8%, var(--hero-glow), transparent 62%), linear-gradient(180deg, var(--bg-tint), var(--bg) 78%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%); mask-image: linear-gradient(180deg, #000, transparent 72%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 4px 13px 4px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); font: 600 .8125rem/1.3 var(--sans); margin-bottom: 22px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 3px rgba(26, 159, 122, .22); flex: none; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.45rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--text-2); margin: 0 0 32px; max-width: 35em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--brand-500); flex: none; }

/* the picture of the hero: a shop page, the request, the answer */
.hero-visual { display: flex; flex-direction: column; align-items: stretch; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.shot-dots { display: inline-flex; gap: 6px; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-url { display: inline-flex; align-items: center; gap: 7px; flex: 1; min-width: 0; height: 24px; padding: 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font: 400 .72rem/1 var(--mono); white-space: nowrap; overflow: hidden; }
.shot-url svg { width: 11px; height: 11px; flex: none; color: var(--brand-500); }
.shot-body { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; padding: 26px 22px 20px; align-items: center; }
.shot-pic { width: 92px; height: 92px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--placeholder); }
.shot-pic svg { width: 40px; height: 40px; }
.shot-info { min-width: 0; }
.shot-field { position: relative; display: inline-block; border-radius: 6px; outline: 1.5px dashed var(--brand-400); outline-offset: 5px; }
.shot-field::after { content: attr(data-field); position: absolute; left: -6px; top: -21px; padding: 3px 5px; border-radius: 4px; background: var(--brand-600); color: #fff; font: 600 .6rem/1 var(--mono); letter-spacing: .02em; white-space: nowrap; }
.shot-title { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.shot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 30px 26px; margin-top: 34px; }
.shot-price { font: 700 1.4rem/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.shot-stock { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 500; font-size: .875rem; line-height: 1.6; }
.shot-stock i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* the place of the shop's own button, to make the card read as a page */
.shot-buy { margin-left: auto; width: 108px; height: 38px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); }
.flow { display: flex; flex-direction: column; align-items: center; }
.flow::before, .flow::after { content: ""; width: 0; height: 16px; border-left: 2px dashed var(--brand-300); }
.flow-req { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font: 500 .76rem/1 var(--mono); color: var(--text-2); }
.flow-req b { flex: none; padding: 5px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .68rem; letter-spacing: .04em; }
.flow-req span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the numbers under the hero */
.facts { position: relative; z-index: 2; margin-top: -44px; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
.fact { padding: 22px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact-value { font: 700 1.6rem/1.2 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact-label { margin-top: 3px; color: var(--muted); font-size: .9rem; line-height: 1.4; }

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; margin-bottom: 14px; color: var(--accent-ink); font: 600 .8rem/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.section-title { font-size: clamp(1.7rem, 3.1vw, 2.35rem); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.section-sub { font-size: 1.06rem; color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { position: relative; }
.step-num { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); display: grid; place-items: center; margin-bottom: 22px; color: var(--accent-ink); font: 700 1rem/1 var(--sans); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 62px; right: -24px; border-top: 2px dashed var(--line-strong); }
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 20px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan-tag { position: absolute; top: -13px; left: 28px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 .75rem/26px var(--sans); }
.plan-name { font: 600 1.05rem/1.3 var(--sans); }
.plan-price { font: 700 2.4rem/1.1 var(--sans); letter-spacing: -.035em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.plan-price small { font: 500 .95rem/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan-per { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 22px 0 0; margin: 22px 0 26px; border-top: 1px solid var(--line); flex: 1; display: grid; gap: 12px; align-content: start; }
.plan li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--text-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan form { margin: 0; }
.plan form .check { margin-bottom: 14px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 22px 28px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.callout p { margin: 0; color: var(--text-2); }
.callout .btn { flex: none; }

.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
.split .section-head { margin-bottom: 0; }
.checklist { list-style: none; counter-reset: n; padding: 0; margin: 30px 0; display: grid; gap: 18px; }
.checklist li { counter-increment: n; position: relative; padding-left: 44px; color: var(--text-2); min-height: 28px; }
.checklist li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); font: 700 .82rem/26px var(--sans); text-align: center; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.more-link svg { width: 16px; height: 16px; transition: transform .15s; }
.more-link:hover { text-decoration: none; }
.more-link:hover svg { transform: translateX(3px); }

.faq { display: grid; gap: 12px; margin: 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font: 600 1.02rem/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 20px; height: 20px; flex: none; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:focus-visible { outline-offset: 6px; }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--muted); max-width: 66ch; }
.faq details p a { text-decoration: underline; text-underline-offset: 3px; }

.cta { padding: 0 0 96px; }
.cta-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border-radius: 24px; background: radial-gradient(520px 300px at 100% 0, rgba(31, 174, 134, .34), transparent 70%), radial-gradient(420px 260px at 0 100%, rgba(31, 174, 134, .16), transparent 70%), #0b1220; border: 1px solid var(--ink-line); color: #fff; }
.cta-box h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.55rem, 2.6vw, 2.05rem); letter-spacing: -.03em; }
.cta-box p { margin: 0; color: #b4c0d4; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-nav-title { padding: 0 12px 10px; color: var(--muted); font: 600 .75rem/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.docs-nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-size: .925rem; text-decoration: none; transition: background .15s, color .15s; }
.docs-nav a:hover { background: var(--bg-soft); color: var(--text); }
.docs-nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.docs article { max-width: 820px; }
.docs article h1 { font-size: 2.3rem; letter-spacing: -.03em; margin-bottom: .5em; }
.docs article h2 { font-size: 1.5rem; margin: 2.4em 0 .7em; }
.docs article p, .docs article li { color: var(--text-2); }
.docs article p.muted { color: var(--muted); font-size: 1.05rem; }
.docs article ol, .docs article ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.docs article li { margin: .4em 0; padding-left: .2em; }
.docs article a { text-decoration: underline; text-underline-offset: 3px; }
.docs article td { color: var(--text-2); }
.docs article td:first-child { white-space: nowrap; }
.endpoint { display: inline-flex; gap: 12px; align-items: center; margin-bottom: 16px; padding: 7px 16px 7px 7px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 500 .9rem/1 var(--mono); }
.method { padding: 6px 9px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 700 .72rem/1 var(--mono); letter-spacing: .05em; }
@media (max-width: 900px) {
    .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
    .docs-nav { position: static; flex-direction: row; flex-wrap: nowrap; gap: 8px; max-height: none; overflow-x: auto; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; }
    .docs-nav::-webkit-scrollbar { display: none; }
    .docs-nav-title { display: none; }
    .docs-nav a { flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-size: .875rem; }
    .docs-nav a.active { border-color: var(--accent-line); }
    .docs article td:first-child { white-space: normal; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink-bg); color: var(--ink-muted); padding: 64px 0 32px; margin-top: auto; font-size: .925rem; border-top: 1px solid var(--ink-line); }
.footer a { text-decoration: none; }
.footer .logo, .footer .logo:hover { color: #fff; }
.footer .logo b { color: var(--brand-400); }
.footer .logo { --logo-tile: #182233; --logo-edge: rgba(255, 255, 255, .14); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-about { margin: 18px 0 0; max-width: 32ch; line-height: 1.6; }
.footer h4 { margin: 4px 0 16px; color: #fff; font: 600 .875rem/1.2 var(--sans); letter-spacing: 0; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-muted); transition: color .15s; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: .85rem; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
    .hero-grid { gap: 40px; }
    .shot-buy { display: none; }
}
@media (max-width: 1020px) {
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .hero { padding-top: 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { width: 100%; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 860px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 36px; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .step:not(:last-child)::after { display: none; }
    .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 28px; }
    .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .callout, .cta-box { flex-direction: column; align-items: flex-start; }
    .cta-box { padding: 40px 28px; }
    .cta { padding-bottom: 72px; }
}
@media (max-width: 640px) {
    /* the sides only: .page and .docs are .wrap too and keep their own top and bottom */
    .wrap { padding-left: 20px; padding-right: 20px; }
    .top-menu { padding-left: 20px; padding-right: 20px; }
    .features { grid-template-columns: 1fr; }
    .feature { padding: 24px; }
    .fact { padding: 18px 20px; }
    .fact-value { font-size: 1.35rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .hero { padding-bottom: 88px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .shot-body { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 24px 16px 18px; }
    .shot-pic { width: 64px; height: 64px; }
    .shot-pic svg { width: 30px; height: 30px; }
    .shot-buy { display: none; }
    .card { padding: 20px; }
    .auth { margin: 40px auto 72px; padding: 0 20px; }
    .docs-nav { margin: 0 -20px; padding: 0 20px 4px; }
    pre { padding: 16px; font-size: .8rem; }
    th, td { padding: 10px 12px; }
}
@media (max-width: 400px) {
    .top-cta .btn { padding: 0 12px; }
    .logo { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
