/* ===========================================================================
   SyncCube — stylesheet
   "Stripe × Linear": near-black neutral base, high contrast, crisp 1px borders,
   indigo accent, tight corner radii. Design tokens (dark default + light
   override) followed by a shared component library. New UI reuses these classes.
   =========================================================================== */

:root {
    --bg: #16181a;
    --bg-soft: #1a1d1f;
    --bg-elev: #1e2225;
    --surface: #202427;
    --surface-2: #282d31;
    --surface-3: #333a3f;
    --ink: #e7e9ea;
    --text-soft: #c6cacc;
    --muted: #8b9296;
    --line: rgba(231, 233, 234, .12);
    --line-strong: rgba(231, 233, 234, .22);
    --hover: rgba(231, 233, 234, .05);
    --brand: #2bb3a3;
    --brand-hover: #35ccba;
    --brand-ink: #06201d;
    --link: #35ccba;
    --accent: #35ccba;
    --danger: #e0644f;
    --warning: #d8a13f;
    --seal: #35ccba;
    --ring: rgba(43, 179, 163, .30);
    --focus: 0 0 0 3px rgba(43, 179, 163, .30);
    --brand-soft: rgba(43, 179, 163, .16);
    --leading-bg: rgba(43, 179, 163, .16);
    --leading-line: rgba(43, 179, 163, .42);
    --slot-bg-a: #202427;
    --slot-bg-b: #1a1d1f;
    --slot-border: rgba(231, 233, 234, .18);
    --slot-ink: #8b9296;
    --radius: 0;
    --radius-sm: 0;
    --shadow: none;
    --sidebar-w: 236px;
    --topbar-h: 54px;
    --font-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html[data-theme='light'] {
    --bg: #f5f7f7;
    --bg-soft: #eef1f1;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef1f1;
    --surface-3: #e0e5e5;
    --ink: #16302c;
    --text-soft: #3c4a47;
    --muted: #6b7a77;
    --line: rgba(6, 32, 29, .10);
    --line-strong: rgba(6, 32, 29, .20);
    --hover: rgba(6, 32, 29, .04);
    --brand: #159485;
    --brand-hover: #10897a;
    --brand-ink: #ffffff;
    --link: #128577;
    --accent: #159485;
    --danger: #cf4c39;
    --warning: #b5822a;
    --seal: #159485;
    --ring: rgba(21, 148, 133, .28);
    --focus: 0 0 0 3px rgba(21, 148, 133, .28);
    --brand-soft: rgba(21, 148, 133, .12);
    --leading-bg: rgba(21, 148, 133, .12);
    --leading-line: rgba(21, 148, 133, .4);
    --slot-bg-a: #eef1f1;
    --slot-bg-b: #e6eaea;
    --slot-border: rgba(6, 32, 29, .18);
    --slot-ink: #6b7a77;
    --shadow: none;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* Themed scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border: 3px solid var(--bg); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { border-color: var(--surface); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 650; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.011em; }
h1 { font-size: 1.55rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1rem; color: var(--text-soft); }
small { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: .08em .35em; border-radius: var(--radius-sm); font-size: .86em; }
::selection { background: rgba(43, 179, 163, .3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── App shell ───────────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 0 1rem;
    height: var(--topbar-h);
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: -.01em;
    color: var(--ink);
}
.sidebar-brand img { width: 24px; height: 24px; border-radius: var(--radius); }
.sidebar-nav { padding: .4rem 0 1rem; }

/* Collapsible section headers */
.nav-group { padding: 0; }
.nav-top { padding: .35rem .55rem; }
.nav-section { margin-top: .15rem; }
.nav-group-header {
    display: flex; align-items: center; width: 100%;
    background: none; border: 0; cursor: pointer; font-family: inherit;
    padding: .5rem 1rem .35rem; color: var(--muted);
    font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
    user-select: none;
}
.nav-group-header:hover { color: var(--text-soft); }
.nav-group-header .chev { margin-left: auto; font-size: 1rem; transition: transform .16s ease; opacity: .8; }
.nav-section.collapsed .chev { transform: rotate(-90deg); }
.nav-section.collapsed .nav-group-items { display: none; }
.nav-group-items { display: flex; flex-direction: column; }

.nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1px .55rem;
    padding: .42rem .55rem;
    color: var(--text-soft);
    font-size: .86rem;
    font-weight: 450;
    border-radius: var(--radius);
    position: relative;
}
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link.active {
    color: var(--ink);
    background: var(--brand-soft);
    font-weight: 550;
}
.nav-link.active::before {
    content: ''; position: absolute; left: -.55rem; top: 6px; bottom: 6px;
    width: 2px; background: var(--brand);
}
.nav-link i { font-size: 1.05rem; width: 1.15rem; text-align: center; color: var(--muted); }
.nav-link.active i { color: var(--brand-hover); }

/* ── Main column ─────────────────────────────────────────────────────── */
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar .spacer { flex: 1 1 auto; }
.topbar-search {
    flex: 0 1 360px;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .34rem .7rem;
    color: var(--muted);
}
.topbar-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.topbar-search input { border: 0; background: transparent; color: var(--ink); outline: none; width: 100%; font-size: .875rem; }

/* Full-bleed content — use the whole screen. */
.content { padding: 1.5rem 2rem 3rem; width: 100%; max-width: none; }
.page-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.35rem; }
.page-head .spacer { flex: 1 1 auto; }
.page-head h1 { margin: 0; }
.page-head .subtitle { color: var(--muted); margin: .2rem 0 0; font-size: .875rem; }

/* ── Icon button / user menu ─────────────────────────────────────────── */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius);
    background: transparent; border: 1px solid transparent; color: var(--text-soft);
    cursor: pointer; font-size: 1.05rem;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); border-color: var(--line); }
.user-chip { display: flex; align-items: center; gap: .5rem; padding: .25rem .5rem; border-radius: var(--radius); color: var(--text-soft); }
.user-chip:hover { background: var(--hover); color: var(--ink); }
.avatar {
    width: 28px; height: 28px; border-radius: 0;
    background: var(--brand); color: var(--brand-ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 600; flex: 0 0 auto;
}
.hamburger { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .48rem .85rem; border-radius: var(--radius);
    border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
    font-size: .875rem; font-weight: 550; cursor: pointer; font-family: inherit;
    white-space: nowrap;
    transition: background .12s, border-color .12s, filter .12s;
}
.btn:hover { background: var(--hover); border-color: var(--muted); color: var(--ink); }
.btn i { font-size: 1rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.06); background: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { border-color: var(--line); }
.btn-sm { padding: .3rem .58rem; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem; margin-bottom: 1.1rem;
}
a.card { color: inherit; display: block; }
a.card:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 92%, var(--brand)); }
.card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer { flex: 1 1 auto; }

/* Full width is the default. Content that shouldn't stretch (forms, single
   reading columns) carries an inline max-width — center it instead of letting
   it hug the left edge. */
.card[style*="max-width"], .table-wrap[style*="max-width"], form[style*="max-width"] { margin-left: auto; margin-right: auto; }

/* ── Grids — responsive, fill the screen ─────────────────────────────── */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat .label { color: var(--muted); font-size: .8rem; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 1.1rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th, table.data td { text-align: left; padding: .68rem .9rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--hover); }

/* ── Forms ───────────────────────────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 550; color: var(--text-soft); margin-bottom: .35rem; }
.field .hint { color: var(--muted); font-size: .77rem; margin-top: .3rem; }
.input, .select, .textarea {
    width: 100%; padding: .52rem .68rem; font-size: .88rem; font-family: inherit;
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
    color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.textarea { min-height: 110px; resize: vertical; }
.field-row { display: flex; gap: 1rem; }
.field-row > .field { flex: 1; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; accent-color: var(--brand); }
.form-actions { display: flex; gap: .6rem; margin-top: 1.25rem; }

/* ── Badges / status ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .12rem .5rem; border-radius: var(--radius-sm); font-size: .72rem; font-weight: 600;
    background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--line-strong);
    text-transform: capitalize; letter-spacing: .01em;
}
.badge-success { background: var(--leading-bg); color: var(--accent); border-color: var(--leading-line); }
.badge-danger { background: rgba(242, 106, 106, .13); color: var(--danger); border-color: rgba(242, 106, 106, .4); }
.badge-warning { background: rgba(224, 165, 58, .14); color: var(--warning); border-color: rgba(224, 165, 58, .4); }
.badge-brand { background: var(--brand-soft); color: var(--brand-hover); border-color: var(--leading-line); }
.badge-muted { opacity: .8; }

/* ── Flash / notifications ───────────────────────────────────────────── */
#notification-container { position: fixed; top: 14px; right: 14px; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; max-width: 360px; }
.toast {
    padding: .7rem .9rem; border-radius: var(--radius); box-shadow: var(--shadow);
    background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
    display: flex; align-items: center; gap: .5rem; font-size: .88rem;
    animation: toast-in .18s ease-out;
}
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--brand); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Verify-email banner ─────────────────────────────────────────────── */
.verify-banner {
    display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
    padding: .6rem .9rem; margin-bottom: 1.1rem;
    background: rgba(216, 161, 63, .12); border: 1px solid rgba(216, 161, 63, .4);
    color: var(--text-soft); font-size: .88rem;
}
.verify-banner i { color: var(--warning); font-size: 1.1rem; }
.verify-banner form { margin-left: auto; }

/* ── No-code field builder ───────────────────────────────────────────── */
.field-builder .fb-row {
    display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: .5rem; align-items: center;
    margin-bottom: .5rem;
}
.field-builder .fb-options { grid-column: 1 / -1; }
.field-builder .fb-req { display: flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .82rem; color: var(--text-soft); }
.field-builder .fb-req input { width: auto; accent-color: var(--brand); }
.field-builder .fb-empty { color: var(--muted); font-size: .85rem; padding: .3rem 0; }
@media (max-width: 720px) { .field-builder .fb-row { grid-template-columns: 1fr 1fr; } }

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty {
    text-align: center; padding: 2.75rem 1rem; color: var(--muted);
    border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .6; }
.empty h3 { color: var(--text-soft); }

/* ── Auth pages ──────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.9rem; }
.auth-card .brand { display: flex; align-items: center; gap: .55rem; justify-content: center; margin-bottom: 1.35rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.auth-card .brand img { width: 28px; height: 28px; border-radius: var(--radius); }

/* ── Utilities ───────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap { gap: .6rem; }
.mt { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }

/* ── Marketing / landing page ────────────────────────────────────────── */
.mkt { background: var(--bg); color: var(--ink); }
.mkt-container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.mkt-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(140%) blur(10px); }
.mkt-header .mkt-container { display: flex; align-items: center; gap: 1rem; height: 60px; }
.mkt-brand { display: flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); }
.mkt-brand img { width: 26px; height: 26px; }
.mkt-navlinks { display: flex; gap: 1.4rem; margin-left: 1.5rem; }
.mkt-navlinks a { color: var(--text-soft); font-size: .9rem; }
.mkt-navlinks a:hover { color: var(--ink); }
.mkt-header .spacer { flex: 1 1 auto; }
.btn-lg { padding: .7rem 1.2rem; font-size: .95rem; }

.mkt-hero { text-align: center; padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.mkt-eyebrow { display: inline-block; color: var(--brand-hover); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.mkt-title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin: 0 auto .9rem; max-width: 15ch; }
.mkt-title .hl { color: var(--brand-hover); }
.mkt-lead { color: var(--text-soft); font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 60ch; margin: 0 auto 1.8rem; line-height: 1.6; }
.mkt-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.mkt-note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }

/* Faux product window */
.mkt-shot { max-width: 960px; margin: 3rem auto 0; border: 1px solid var(--line-strong); background: var(--surface); }
.mkt-shot-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .75rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mkt-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: inline-block; }
.mkt-shot-body { display: flex; min-height: 300px; }
.mkt-shot-sb { width: 180px; border-right: 1px solid var(--line); padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.mkt-shot-sb .row { height: 9px; background: var(--surface-2); }
.mkt-shot-sb .row.on { background: var(--brand-soft); }
.mkt-shot-main { flex: 1; padding: 1.1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-content: start; }
.mkt-shot-card { border: 1px solid var(--line); background: var(--bg); height: 74px; }
.mkt-shot-wide { grid-column: 1 / -1; height: 130px; border: 1px solid var(--line); background: var(--bg); }

.mkt-section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.mkt-section .head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.mkt-h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.mkt-sub { color: var(--text-soft); font-size: 1.02rem; }

.mkt-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.mkt-feature { border: 1px solid var(--line); background: var(--surface); padding: 1.4rem; }
.mkt-feature .ic { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-hover); font-size: 1.3rem; margin-bottom: .9rem; }
.mkt-feature h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.mkt-feature p { margin: 0; color: var(--text-soft); font-size: .9rem; }

.mkt-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; align-items: start; }
.mkt-plan { border: 1px solid var(--line-strong); background: var(--surface); padding: 1.6rem; }
.mkt-plan.hot { border-color: var(--brand); }
.mkt-plan .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-hover); }
.mkt-plan .pname { font-size: 1.3rem; font-weight: 700; margin: .3rem 0 .1rem; }
.mkt-plan .pband { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.mkt-plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.mkt-plan li { display: flex; align-items: flex-start; gap: .5rem; color: var(--text-soft); font-size: .9rem; padding: .32rem 0; }
.mkt-plan li i { color: var(--brand-hover); margin-top: 2px; }

/* Problem checklist */
.mkt-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .7rem 1.6rem; max-width: 900px; margin: 0 auto; }
.mkt-checklist .item { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-soft); font-size: .96rem; line-height: 1.5; padding: .4rem 0; }
.mkt-checklist .item i { color: var(--danger); font-size: 1.2rem; margin-top: 1px; flex: 0 0 auto; }

/* Roles */
.mkt-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mkt-role { background: var(--surface); padding: 1.2rem 1.3rem; }
.mkt-role h4 { margin: 0 0 .3rem; font-size: .98rem; display: flex; align-items: center; gap: .5rem; }
.mkt-role h4 i { color: var(--brand-hover); }
.mkt-role p { margin: 0; color: var(--text-soft); font-size: .88rem; line-height: 1.5; }

/* Steps */
.mkt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; max-width: 960px; margin: 0 auto; }
.mkt-step .n { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: .7rem; }
.mkt-step h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.mkt-step p { margin: 0; color: var(--text-soft); font-size: .9rem; line-height: 1.5; }

/* FAQ */
.mkt-faq { max-width: 760px; margin: 0 auto; }
.mkt-faq .qa { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.mkt-faq .qa:last-child { border-bottom: 1px solid var(--line); }
.mkt-faq .q { font-weight: 600; font-size: 1rem; margin-bottom: .4rem; }
.mkt-faq .a { color: var(--text-soft); font-size: .92rem; line-height: 1.6; }

.mkt-price-amt { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; }
.mkt-price-amt .per { font-size: .95rem; font-weight: 400; color: var(--muted); }

.mkt-cta-band { text-align: center; padding: 4.5rem 0; background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.mkt-footer { padding: 2.5rem 0; color: var(--muted); font-size: .85rem; }
.mkt-footer .mkt-container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mkt-footer a { color: var(--text-soft); }

@media (max-width: 720px) {
    .mkt-navlinks { display: none; }
    .mkt-shot-sb { display: none; }
    .mkt-shot-main { grid-template-columns: 1fr 1fr; }
    .mkt-section { padding: 3rem 0; }
    .mkt-hero { padding: 3.5rem 0 2.5rem; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
.sidebar-backdrop { display: none; }
@media (max-width: 860px) {
    .sidebar {
        position: fixed; z-index: 60; left: 0; top: 0; height: 100vh;
        transform: translateX(-100%); transition: transform .2s ease;
    }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
    .hamburger { display: inline-flex; }
    .topbar-search { flex-basis: auto; }
    .content { padding: 1.1rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .field-row { flex-direction: column; gap: 0; }
}
