/* Lite account. Minimal (Swiss) style: one brand blue, slate neutrals, a clear type scale, spacing on a 4 px grid.
   Colors are tokens with a light and a dark set; text meets WCAG AA (4.5:1, 3:1 for field borders). Everything is
   served by the site itself (the Content-Security-Policy allows nothing else): the font is Plus Jakarta Sans
   (SIL OFL, fonts/OFL.txt), the icons inline SVG. */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext.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: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.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 {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --muted: #475569;
    --faint: #64748b;
    --border: #e2e8f0;
    --input: #8190a5;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --on-primary: #ffffff;
    --primary-soft: #eff6ff;
    --primary-line: #bfdbfe;
    --link: #1d4ed8;
    --ok: #15803d;
    --ok-soft: #f0fdf4;
    --ok-line: #bbf7d0;
    --warn: #b45309;
    --warn-soft: #fffbeb;
    --warn-line: #fde68a;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --danger-line: #fecaca;
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
    --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 32px -12px rgb(15 23 42 / 0.14);
    --focus: 0 0 0 3px rgb(37 99 235 / 0.28);
    --radius: 12px;
    --radius-sm: 8px;
    --font: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --ease: 160ms ease;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1120;
        --surface: #111a2e;
        --surface-2: #18233a;
        --text: #e2e8f0;
        --muted: #a3b1c6;
        --faint: #8b9ab0;
        --border: #243049;
        --input: #5f7090;
        --primary: #60a5fa;
        --primary-hover: #93c5fd;
        --on-primary: #0b1120;
        --primary-soft: #13233f;
        --primary-line: #1e3a66;
        --link: #7cb4ff;
        --ok: #4ade80;
        --ok-soft: #0f2a1c;
        --ok-line: #1d4d31;
        --warn: #fbbf24;
        --warn-soft: #2a2110;
        --warn-line: #594517;
        --danger: #f87171;
        --danger-soft: #2c1417;
        --danger-line: #5c2429;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
        --focus: 0 0 0 3px rgb(96 165 250 / 0.35);
        color-scheme: dark;
    }
}

/* ---- Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text); line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 1.875rem; font-weight: 700; margin: 0 0 24px; letter-spacing: -0.025em; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 40px 0 16px; }
h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 12px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
code {
    font-family: var(--mono);
    font-size: 0.875em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
}
.icon { flex: none; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.danger-text { color: var(--danger); }
.nowrap { white-space: nowrap; }
.spaced { margin-top: 16px; }
.full { width: 100%; }
.inline { display: inline; }
.center { text-align: center; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 16px; top: 12px; z-index: 10;
    background: var(--surface); color: var(--text);
    padding: 8px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
    transform: translateY(-200%);
}
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Frame: header, page, footer */
.bar {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.top {
    position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}
.top .bar { min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 750; font-size: 1.0625rem; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--primary); }
.mark .mark-l { stroke: var(--on-primary); }
.brand-sub { color: var(--faint); font-weight: 500; margin-left: -4px; }
.footer-brand { font-size: 0.9375rem; gap: 8px; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a, nav .link {
    display: inline-flex; align-items: center;
    min-height: 36px; padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 550; font-size: 0.9375rem;
    transition: background-color var(--ease), color var(--ease);
}
nav a:hover, nav .link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
nav .button.small { margin-left: 8px; color: var(--on-primary); }
nav .button.small:hover { background: var(--primary-hover); color: var(--on-primary); }
.page { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }
.bottom { border-top: 1px solid var(--border); background: var(--surface); }
.bottom .bar { min-height: 64px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; font-size: 0.875rem; }

/* ---- Surfaces */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.card > h1:first-child, .card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.narrow { max-width: 440px; margin: 16px auto 0; }
.narrow > h1, .narrow > .lead { text-align: center; }
.narrow > h1:has(+ .lead) { margin-bottom: 8px; }
.narrow > .lead { margin-bottom: 24px; }
.narrow > p:not(.notice):not(.callout) { text-align: center; color: var(--muted); }
.narrow.card { margin-top: 16px; }
.narrow.card .button { margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 62ch; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 8px; }
.hint { color: var(--faint); font-size: 0.875rem; margin-top: 16px; }

/* Status line, callouts, errors: a tinted box with an icon drawn by a mask (inline SVG). */
.notice, .callout {
    position: relative;
    border: 1px solid var(--primary-line);
    background: var(--primary-soft);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 44px;
    margin: 0 0 20px;
}
.notice::before, .callout::before, .errors.validation-summary-errors::before {
    content: "";
    position: absolute; left: 14px; top: 13px;
    width: 20px; height: 20px;
    background: var(--primary);
    -webkit-mask: var(--glyph) center / contain no-repeat;
    mask: var(--glyph) center / contain no-repeat;
}
.notice, .callout.info {
    --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}
.callout.warn {
    --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
    border-color: var(--warn-line);
    background: var(--warn-soft);
}
.callout.warn::before { background: var(--warn); }
.errors { margin: 0; }
.errors ul { margin: 0; padding: 0; list-style: none; }
.validation-summary-valid { display: none; }
.errors.validation-summary-errors {
    position: relative;
    border: 1px solid var(--danger-line);
    background: var(--danger-soft);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 44px;
    font-weight: 550;
    --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
}
.errors.validation-summary-errors::before { background: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8125rem; font-weight: 550; display: block; margin-top: 6px; }
.field-error:empty { display: none; }

/* ---- Forms */
form.stack { display: flex; flex-direction: column; gap: 16px; }
label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input:not([type]), select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    transition: border-color var(--ease), box-shadow var(--ease);
}
input::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
input[aria-invalid="true"], .input-validation-error { border-color: var(--danger); }
input[aria-invalid="true"]:focus, .input-validation-error:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.9375rem; margin: 0; cursor: pointer; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.row > button, .row > .button { flex: 0 0 auto; }

/* ---- Buttons */
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--on-primary);
    font: inherit; font-weight: 650; font-size: 0.9375rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
button:hover, .button:hover { background: var(--primary-hover); border-color: var(--primary-hover); text-decoration: none; }
button:focus-visible, .button:focus-visible { outline: none; box-shadow: var(--focus); }
button:disabled, button:disabled:hover { opacity: 0.45; cursor: not-allowed; background: var(--primary); border-color: var(--primary); }
.secondary { background: var(--surface); color: var(--text); border-color: var(--input); }
.secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.ghost { background: transparent; color: var(--link); border-color: transparent; box-shadow: none; }
.ghost:hover { background: var(--primary-soft); border-color: transparent; }
.danger { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.small { min-height: 32px; padding: 0 12px; font-size: 0.875rem; }
.large { min-height: 48px; padding: 0 24px; font-size: 1rem; }
.link {
    background: none; border: none; box-shadow: none;
    color: var(--text); padding: 0; min-height: 0; font-weight: 500;
}
.link:hover { background: none; text-decoration: underline; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.actions.end { justify-content: flex-end; }
.stack > .actions { margin-top: 4px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.875rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* ---- Tables and badges */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th {
    background: var(--surface-2);
    color: var(--faint);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color var(--ease); }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td.end { text-align: right; }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.with-icon .icon { color: var(--faint); }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em;
    white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.on { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.badge.bad { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.badge.accent { color: var(--link); background: var(--primary-soft); border-color: var(--primary-line); }
.badge.accent::before { display: none; }

/* ---- Home */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px; align-items: center;
    padding: 24px 0 48px;
}
.eyebrow {
    display: inline-block;
    color: var(--link); background: var(--primary-soft); border: 1px solid var(--primary-line);
    border-radius: 999px; padding: 4px 12px;
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em;
    margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.125rem, 4.5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.028em; font-weight: 800; margin-bottom: 20px; }
.hero .lead { font-size: 1.1875rem; }
.hero .actions { margin-top: 32px; }
.preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.preview-head { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.preview-head .badge { margin-left: auto; }
.preview-app, .product-icon, .feature-icon, .empty-icon {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--primary); background: var(--primary-soft);
}
.preview-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.preview-facts div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.preview-facts dt { color: var(--faint); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.preview-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.0625rem; }
.preview-devices { list-style: none; margin: 0; padding: 0; }
.preview-devices li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); font-weight: 600; font-size: 0.9375rem; }
.preview-devices li .icon { color: var(--faint); }
.preview-devices li .muted { margin-left: auto; font-weight: 500; font-size: 0.8125rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature h2 { font-size: 1.0625rem; margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: 0.9375rem; }
.how { margin-top: 56px; }
.how h2 { margin-top: 0; }
.numbered { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.numbered li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; padding-left: 48px; position: relative; }
.numbered li::before {
    content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary); color: var(--on-primary);
    font-weight: 750; font-size: 0.9375rem;
}

/* ---- Pricing */
.product-title { display: flex; align-items: center; gap: 12px; }
.plans { margin-bottom: 8px; }
.plan { display: flex; flex-direction: column; margin-bottom: 0; }
.plan h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 1.125rem; }
.plan .price { color: var(--muted); font-weight: 600; margin: 4px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.plan.featured { border: 2px solid var(--primary); padding: 23px; box-shadow: var(--shadow); }
.plan .actions { margin-top: auto; padding-top: 20px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .icon { color: var(--ok); margin-top: 3px; }
.plan.suite { margin-bottom: 20px; }
.buy { margin-top: 40px; }

/* ---- Account */
.profile-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: var(--on-primary);
    font-weight: 750; font-size: 1.0625rem; letter-spacing: 0.02em;
}
.profile-name { margin: 0; display: flex; flex-direction: column; }
.profile-name strong { font-size: 1.0625rem; }
.profile-name .muted { overflow-wrap: anywhere; }
.settings { list-style: none; margin: 0; padding: 0; }
.settings li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.settings li:last-child { border-bottom: none; padding-bottom: 0; }
.setting-icon { color: var(--faint); display: inline-flex; }
.setting-text { flex: 1 1 200px; color: var(--muted); }
.settings a { font-weight: 600; }
.product { padding-top: 20px; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.product-head .product-title { margin: 0; }
.product-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.empty { text-align: center; padding: 40px 24px; }
.empty .empty-icon { width: 48px; height: 48px; border-radius: 12px; }
.empty h2 { margin: 16px 0 8px; }
.empty p { color: var(--muted); max-width: 60ch; margin: 0 auto; }

/* ---- Sign-in of an application */
.consent-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 24px; }
.consent-head h1 { margin: 0; text-align: center; }
.product-icon.large { width: 56px; height: 56px; border-radius: 14px; }

/* ---- Two-factor sign-in */
.steps { padding-left: 20px; margin: 16px 0; }
.steps li { margin-bottom: 16px; }
.steps li::marker { font-weight: 700; color: var(--faint); }
.qr { display: block; margin: 12px 0; background: #ffffff; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 24px; margin-top: 12px; }
.codes code { font-size: 1rem; letter-spacing: 0.05em; padding: 4px 8px; }
.steps code { display: inline-block; white-space: nowrap; margin-top: 6px; padding: 4px 8px; letter-spacing: 0.04em; }

/* The field only robots fill (the contact form). */
.trap { display: none; }
textarea { min-height: 120px; resize: vertical; }

/* ---- Admin */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 8px; }
/* Compact controls inside table rows: one line per change. */
td form.row { flex-wrap: nowrap; gap: 8px; margin: 4px 0; }
td .row > * { flex: 0 1 auto; }
td select, td input[type=text] { width: 148px; min-height: 32px; padding: 4px 8px; font-size: 0.875rem; }

/* ---- Small screens */
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
}
@media (max-width: 560px) {
    .bar { padding: 0 16px; }
    .page { padding: 24px 16px 48px; }
    .brand-sub { display: none; }
    nav a, nav .link { padding: 0 8px; }
    nav .button.small { margin-left: 4px; }
    .card, .feature, .preview { padding: 20px; }
    .plan.featured { padding: 19px; }
    h1 { font-size: 1.625rem; }
    .actions > .button, .actions > form, .actions > form > button { flex: 1 1 auto; }
    th, td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
