/* ==========================================================================
   SwiftHub3PL — front-end design system
   ========================================================================== */

:root {
    --brand: #2563eb;
    --brand-700: #1d4ed8;
    --brand-800: #1e40af;
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --accent: #0d9488;
    --accent-400: #2dd4bf;
    --accent-50: #f0fdfa;

    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --subtle: #94a3b8;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-tint: #f1f5f9;

    --success: #16a34a;
    --success-bg: #f0fdf4;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #b45309;
    --warning-bg: #fffbeb;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -6px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18);

    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; }
.brand-name span { color: var(--accent); }
.brand--white, .brand--white:hover { color: #fff; }
.brand--white .brand-name span { color: var(--accent-400); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: 10px;
    font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
    cursor: pointer; text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-tint); color: var(--ink); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-800); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: var(--bg-tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-menu {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: 12px 20px 20px;
    }
    .mobile-menu.is-open { display: block; }
    .mobile-menu a:not(.btn) { display: block; padding: 12px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--bg-tint); }
    .mobile-menu .btn { margin-top: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-line { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 16px; padding: 6px 12px;
    border-radius: 999px; background: var(--brand-50); color: var(--brand-700);
    font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-400); box-shadow: 0 0 0 3px rgba(45, 212, 191, .25); }

@media (max-width: 700px) {
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.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: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 88px 0 96px;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(45, 212, 191, .16), transparent 60%),
        radial-gradient(800px 520px at 0% 0%, rgba(37, 99, 235, .12), transparent 60%),
        var(--bg);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .55;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-50); color: var(--accent); flex-shrink: 0; }
.check-list .tick .icon { width: 14px; height: 14px; stroke-width: 3; }

.hero-visual { position: relative; }
.mock {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 24px;
}
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-title { font-size: .8rem; font-weight: 600; color: var(--muted); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.kpi-label { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kpi-delta { font-size: .75rem; font-weight: 700; color: var(--success); }
.mock-chart { height: 170px; border-radius: 12px; background: linear-gradient(180deg, var(--brand-50), #fff); border: 1px solid var(--line); padding: 12px; }
.mock-chart svg { width: 100%; height: 100%; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 12px 16px; font-size: .85rem;
}
.float-card strong { display: block; color: var(--ink); font-size: .95rem; }
.float-card .ic { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.float-card--a { left: -28px; bottom: -26px; }
.float-card--a .ic { background: var(--accent-50); color: var(--accent); }
.float-card--b { right: -18px; top: -22px; }
.float-card--b .ic { background: var(--brand-50); color: var(--brand); }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 64px; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
    .hero { padding: 56px 0 72px; }
    .mock-kpis { grid-template-columns: 1fr 1fr; }
    .mock-kpis .kpi:last-child { display: none; }
    .float-card--a { left: 8px; bottom: -30px; }
    .float-card--b { display: none; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 6px; }
@media (max-width: 800px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--teal { background: var(--accent-50); color: var(--accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 1024px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); position: relative; }
.price-card.is-featured { border: 2px solid var(--brand); box-shadow: 0 20px 40px -16px rgba(37, 99, 235, .35); }
.price-badge { position: absolute; top: -13px; left: 24px; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.price-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.price { display: flex; align-items: baseline; gap: 2px; color: var(--ink); margin-bottom: 4px; }
.price .cur { font-size: 1.4rem; font-weight: 700; }
.price .amt { font-size: 2.75rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price .per { color: var(--muted); font-size: .95rem; font-weight: 500; margin-left: 4px; }
.price-meta { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 24px; padding: 6px 10px; border-radius: 8px; background: var(--bg-tint); color: var(--text); font-size: .875rem; font-weight: 600; align-self: flex-start; }
.price-card .btn { margin-top: auto; }
.price-note { margin: 10px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: .9rem; position: sticky; top: 0; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--bg-soft); }
.compare .yes { color: var(--accent); }
.compare .no { color: var(--line-strong); }
.compare .yes .icon, .compare .no .icon { margin: 0 auto; }
.compare .txt { font-weight: 600; color: var(--ink); font-size: .875rem; }

/* ---------- Trust row ---------- */
.trust { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 32px; }
.trust .card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.trust .icon-badge { margin: 0; width: 42px; height: 42px; }
.trust h4 { margin-bottom: 4px; font-size: 1rem; }
.trust p { font-size: .9rem; color: var(--muted); }
.pay-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-icons img { height: 26px; width: auto; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden;
    border-radius: 24px; padding: 56px;
    background: radial-gradient(600px 300px at 100% 0%, rgba(45, 212, 191, .35), transparent 60%), linear-gradient(135deg, var(--brand-700), var(--brand));
    color: #dbeafe;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 1.1rem; }
@media (max-width: 800px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 72px 0 56px; background: radial-gradient(700px 300px at 50% -20%, rgba(37, 99, 235, .10), transparent 70%), var(--bg-soft); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* ---------- Prose (legal / about) ---------- */
.prose { color: var(--text); font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; margin: 2.2em 0 .6em; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { display: inline-block; margin-bottom: 32px; padding: 6px 12px; border-radius: 8px; background: var(--bg-tint); color: var(--muted); font-size: .875rem; font-weight: 600; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-control {
    display: block; width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
    color: var(--ink); font: inherit; font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
textarea.form-control { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
select.form-control { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-control::placeholder { color: var(--subtle); }
.form-control:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.form-control[disabled], .form-control[readonly] { background: var(--bg-tint); color: var(--muted); cursor: not-allowed; }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: .85rem; font-weight: 500; }
.form-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 46px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pass-toggle:hover { color: var(--ink); background: var(--bg-tint); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; border-radius: 12px; border: 1px solid; font-size: .95rem; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--success-bg); border-color: #bbf7d0; color: #166534; }
.alert-error { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-bg); border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.flash-bar { padding-top: 20px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-muted { background: var(--bg-tint); color: var(--muted); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .icon-badge { margin: 0; width: 42px; height: 42px; }
.contact-info h4 { margin-bottom: 2px; font-size: 1rem; }
.contact-info p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about p { margin: 18px 0 0; max-width: 320px; }
.site-footer h5 { color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, .18); font-size: .875rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-aside {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 48px;
    background: radial-gradient(700px 400px at 100% 0%, rgba(45, 212, 191, .35), transparent 60%), linear-gradient(160deg, var(--brand-800), var(--brand) 70%);
    color: #dbeafe;
}
.auth-aside::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.4rem); max-width: 440px; }
.auth-aside .check-list { margin-top: 28px; }
.auth-aside .check-list .tick { background: rgba(255, 255, 255, .15); color: #fff; }
.auth-quote { font-size: .9rem; color: #bfdbfe; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { margin-bottom: 36px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-card .lead { color: var(--muted); margin-bottom: 28px; }
.btn-google { width: 100%; background: #fff; color: var(--ink); border-color: var(--line-strong); height: 48px; }
.btn-google:hover { background: var(--bg-soft); border-color: var(--ink); color: var(--ink); }
.btn-google img { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--subtle); font-size: .85rem; font-weight: 500; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 20px; font-size: .9rem; }
.auth-foot { margin-top: 24px; text-align: center; color: var(--muted); font-size: .95rem; }
.auth-legal { margin-top: 16px; font-size: .8rem; color: var(--subtle); text-align: center; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}

/* ---------- Dashboard ---------- */
.dash { padding: 40px 0 96px; background: var(--bg-soft); min-height: calc(100vh - var(--header-h)); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: 1.9rem; margin-bottom: 4px; }
.dash-head p { margin: 0; color: var(--muted); }
.dash-shell { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.dash-side { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 12px 12px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; flex-shrink: 0; }
.dash-user strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.dash-user div span { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.dash-nav { list-style: none; display: grid; gap: 2px; }
.dash-nav button, .dash-nav a {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
    color: var(--text); font-weight: 500; font-size: .95rem; text-align: left; cursor: pointer;
}
.dash-nav button:hover, .dash-nav a:hover { background: var(--bg-tint); color: var(--ink); }
.dash-nav button.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.dash-nav .count { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--bg-tint); font-size: .75rem; font-weight: 700; color: var(--muted); }
.dash-nav .sep { height: 1px; background: var(--line); margin: 8px 4px; }
.dash-nav .logout { color: var(--danger); }
.dash-nav .logout:hover { background: var(--danger-bg); color: var(--danger); }
.dash-panel { display: none; }
.dash-panel.is-active { display: block; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel + .panel { margin-top: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.panel-body { padding: 24px; }
.panel-body.flush { padding: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-card .value { margin-top: 8px; font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat-card .value small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.plan-hero .name { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan-hero .meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.plan-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.list-row .file-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-row .title { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { color: var(--muted); font-size: .85rem; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .icon-badge { margin: 0 auto 16px; background: var(--bg-tint); color: var(--muted); }
.empty-state h3 { font-size: 1.05rem; margin-bottom: 4px; }
.empty-state p { margin: 0 auto 20px; max-width: 360px; }
.form-narrow { max-width: 520px; }
@media (max-width: 1000px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
    .dash-shell { grid-template-columns: 1fr; }
    .dash-side { position: static; }
    .dash-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .dash-nav .sep { display: none; }
}
@media (max-width: 560px) { .stat-cards { grid-template-columns: 1fr; } .list-row { padding: 14px 16px; } }

/* ---------- Checkout ---------- */
.checkout { padding: 56px 0 96px; background: var(--bg-soft); min-height: calc(100vh - var(--header-h)); }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; max-width: 980px; margin: 0 auto; }
.checkout-head { max-width: 980px; margin: 0 auto 28px; }
.checkout-head h1 { font-size: 1.9rem; margin-bottom: 4px; }
.checkout-head p { color: var(--muted); margin: 0; }
.stripe-field { padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.stripe-field.StripeElement--focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.stripe-field.StripeElement--invalid { border-color: var(--danger); }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.summary-line:last-of-type { border-bottom: 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.summary-total strong { font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; }
.secure-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: .85rem; }
.sku-list { display: grid; gap: 12px; }
.sku-item { display: flex; align-items: center; gap: 12px; }
.sku-item .n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: var(--bg-tint); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.is-visible { opacity: 1; transform: none; }
}
