/* ==========================================================================
   Darklock — Public Site Design System
   One stylesheet for every public page (home, features, pricing, docs,
   support, legal, bug reports, sitemap, add-bot).
   Not used by the /dashboard app. Do not import dashboard CSS here.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* One main background. No grids, no orbs. */
    --bg: #0b0d12;
    --bg-raise: #10131a;          /* subtle raise for mockups / form fields */
    --bg-inset: #0e1117;

    --text: #e7eaf0;
    --text-dim: #9aa3b2;
    --text-faint: #6b7484;

    --accent: #5865f2;            /* Discord blurple — brand anchor */
    --accent-soft: rgba(88, 101, 242, 0.14);
    --accent-line: rgba(88, 101, 242, 0.35);

    --green: #3ba55d;
    --yellow: #f0b232;
    --red: #ed4245;

    --line: rgba(151, 163, 185, 0.13);
    --line-soft: rgba(151, 163, 185, 0.08);

    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Sora', var(--font-body);
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --radius: 10px;
    --radius-lg: 14px;
    --container: 1080px;
    --nav-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Single, quiet page glow — one background, no panels of texture */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 480px at 78% -8%, rgba(88, 101, 242, 0.10), transparent 62%),
        radial-gradient(700px 420px at 12% 112%, rgba(88, 101, 242, 0.05), transparent 60%);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.18;
    margin: 0 0 0.5em;
    color: var(--text);
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; }

code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: var(--bg-raise);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 0.12em 0.42em;
    color: #c6ccf5;
    white-space: nowrap;
}

::selection { background: rgba(88, 101, 242, 0.35); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 200;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(11, 13, 18, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 600;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.05rem;
    border-radius: var(--radius);
    font-weight: 700;
}
.nav-cta:hover { background: #4752c4; text-decoration: none; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4752c4; color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); }

.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }
.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-copy .eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-copy h1 { margin-bottom: 0.6em; }
.hero-copy .lede {
    color: var(--text-dim);
    font-size: 1.13rem;
    max-width: 34em;
    margin-bottom: 1.8em;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Trust strip — plain text on the background, no cards */
.trust {
    padding: 1.4rem 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    color: var(--text-faint);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}
.trust-row strong { color: var(--text-dim); font-weight: 700; }

/* ---------- Sections ---------- */
.section {
    padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* Feature row: copy + Discord mockup, alternating. Content sits on the page. */
.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2.4rem, 6vw, 4rem) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line-soft); }
.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-visual { order: 1; }

.feature-copy .kicker {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.feature-copy h2, .feature-copy h3 { margin-bottom: 0.55em; }
.feature-copy p { color: var(--text-dim); max-width: 32em; }

.feature-points {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.55rem;
    color: var(--text-dim);
    font-size: 0.97rem;
}
.feature-points li {
    padding-left: 1.5rem;
    position: relative;
}
.feature-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 0.85rem;
    height: 0.5rem;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg) scale(0.85);
}

/* ==========================================================================
   Discord mockups — the visual language of the whole site
   ========================================================================== */
.dc {
    background: #313338;
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
    font-size: 0.905rem;
    line-height: 1.45;
    color: #dbdee1;
    max-width: 560px;
    width: 100%;
}
.feature-visual .dc { margin-inline: auto; }

.dc-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 1rem;
    background: #2b2d31;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    font-weight: 700;
    font-size: 0.9rem;
    color: #f2f3f5;
}
.dc-head .dc-hash { color: #80848e; font-weight: 600; font-size: 1.05rem; }
.dc-head .dc-topic {
    margin-left: auto;
    color: #80848e;
    font-weight: 500;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

.dc-body {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.dc-msg {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.dc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: var(--accent);
    flex-shrink: 0;
    user-select: none;
}
.dc-avatar.user { background: #4e5058; }
.dc-avatar.alert { background: var(--red); }
.dc-avatar.staff { background: var(--green); }

.dc-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
}
.dc-name { font-weight: 700; color: #f2f3f5; font-size: 0.95rem; }
.dc-name.blurple { color: #949cf7; }
.dc-name.red { color: #f27f81; }
.dc-name.green { color: #7bc796; }

.dc-bot-tag {
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.08rem 0.32rem;
    border-radius: 4px;
    line-height: 1.3;
}
.dc-time { color: #80848e; font-size: 0.72rem; font-weight: 500; }

.dc-text { color: #dbdee1; }
.dc-text s { color: #80848e; }
.dc-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #c9cdfb;
    border-radius: 4px;
    padding: 0 0.22rem;
    font-weight: 600;
}

/* Embed */
.dc-embed {
    background: #2b2d31;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 0.72rem 0.9rem;
    margin-top: 0.3rem;
    max-width: 460px;
}
.dc-embed.red { border-left-color: var(--red); }
.dc-embed.green { border-left-color: var(--green); }
.dc-embed.yellow { border-left-color: var(--yellow); }

.dc-embed-title {
    font-weight: 700;
    color: #f2f3f5;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}
.dc-embed-desc { color: #b5bac1; font-size: 0.86rem; margin-bottom: 0.3rem; }

.dc-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.55rem 1rem;
    margin-top: 0.45rem;
}
.dc-field label {
    display: block;
    color: #80848e;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}
.dc-field b { color: #dbdee1; font-weight: 600; font-size: 0.85rem; }

.dc-foot {
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(151, 163, 185, 0.09);
    color: #80848e;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Buttons row under a bot message */
.dc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.dc-btn {
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: #4e5058;
    border: none;
    border-radius: 4px;
    padding: 0.42rem 0.95rem;
    cursor: default;
    pointer-events: none; /* decorative mockup, not interactive */
}
.dc-btn.primary { background: var(--accent); }
.dc-btn.success { background: var(--green); }
.dc-btn.danger { background: var(--red); }

.dc-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.12rem 0.6rem;
    vertical-align: middle;
}
.dc-pill.ok { background: rgba(59, 165, 93, 0.18); color: #7bc796; }
.dc-pill.bad { background: rgba(237, 66, 69, 0.18); color: #f27f81; }

/* ---------- Multi-server showcase ---------- */
.showcase {
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.05), transparent 65%);
}
.showcase .section-head { max-width: 720px; }
.showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.showcase-grid .dc { max-width: 620px; }

/* ---------- Plain content blocks (docs, legal) ---------- */
.prose {
    color: var(--text-dim);
    font-size: 1.02rem;
}
.prose h2 {
    color: var(--text);
    font-size: 1.42rem;
    margin: 2.2em 0 0.6em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--text-faint); }
.prose strong { color: var(--text); }
.prose .note {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 8px 8px 0;
    padding: 0.8rem 1.1rem;
    margin: 1.4em 0;
    color: var(--text-dim);
    font-size: 0.97rem;
}
.prose .note.warn { border-left-color: var(--yellow); background: rgba(240, 178, 50, 0.09); }
.prose .note strong { color: var(--text); }

.page-head {
    padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(1.6rem, 4vw, 2.4rem);
}
.page-head .kicker {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.page-head p { color: var(--text-dim); font-size: 1.08rem; max-width: 40em; }

/* ---------- FAQ (native details, no JS) ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0.2rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    color: var(--text-faint);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
    padding: 0 0.2rem 1.2rem;
    color: var(--text-dim);
    font-size: 0.98rem;
    max-width: 60em;
}

/* ---------- Pricing ---------- */
.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.plan {
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
}
.plan + .plan { border-left: 1px solid var(--line); }
.plan.featured { background: var(--accent-soft); }

.plan h3 { margin-bottom: 0.2rem; }
.plan .plan-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(88, 101, 242, 0.16);
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    margin-bottom: 0.8rem;
}
.plan-price {
    font-family: var(--font-head);
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0.2rem 0 0.1rem;
}
.plan-price small { font-size: 0.95rem; font-weight: 600; color: var(--text-faint); }
.plan-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.2rem; }

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    display: grid;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.94rem;
    flex: 1;
}
.plan-list li { padding-left: 1.4rem; position: relative; }
.plan-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.8rem;
    height: 0.45rem;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg) scale(0.85);
}

.notice-banner {
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 0.85rem 1.2rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.97rem;
    margin: 0 0 2rem;
}

/* ---------- Steps (add-bot) ---------- */
.steps {
    counter-reset: step;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 0.5rem;
}
.step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: start;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    color: var(--accent);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
}
.step h3 { margin-bottom: 0.25em; font-size: 1.06rem; }
.step p { color: var(--text-dim); font-size: 0.98rem; }

/* Two-column checklists on plain background */
.check-cols {
    columns: 2;
    column-gap: 3rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: var(--text-dim);
    font-size: 0.98rem;
}
.check-cols li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
    break-inside: avoid;
}
.check-cols li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.85rem;
    height: 0.5rem;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg) scale(0.85);
}

/* ---------- Link lists (sitemap, support) ---------- */
.link-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.2rem 3rem;
}
.link-group h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 0.9rem;
}
.link-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.link-group a { color: var(--text-dim); font-weight: 600; font-size: 0.98rem; }
.link-group a:hover { color: var(--text); text-decoration: none; }
.link-group .ext::after { content: ' ↗'; color: var(--text-faint); font-size: 0.85em; }

/* ---------- Forms (bug report) ---------- */
.form-grid { display: grid; gap: 1.2rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.field label {
    display: block;
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.field label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.96rem;
    color: var(--text);
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.68rem 0.9rem;
    transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; cursor: pointer; }
.field .hint { color: var(--text-faint); font-size: 0.82rem; margin-top: 0.35rem; }

.form-msg {
    display: none;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 0.96rem;
}
.form-msg.show { display: block; }
.form-msg.error {
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    color: #f27f81;
}
.form-msg.success {
    background: rgba(59, 165, 93, 0.1);
    border: 1px solid rgba(59, 165, 93, 0.3);
    color: #7bc796;
    text-align: center;
    padding: 2rem 1.5rem;
}
.form-msg.success h3 { color: var(--text); margin-bottom: 0.3rem; }
.form-msg.success p { color: var(--text-dim); font-weight: 500; }

/* ---------- Final CTA ---------- */
.cta {
    text-align: center;
    padding: clamp(3.5rem, 9vw, 6rem) 0;
    border-top: 1px solid var(--line-soft);
}
.cta h2 { margin-bottom: 0.4em; }
.cta p {
    color: var(--text-dim);
    font-size: 1.08rem;
    max-width: 36em;
    margin: 0 auto 2em;
}
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line-soft);
    padding: 3rem 0 2rem;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2.4rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-tagline { color: var(--text-faint); max-width: 26em; font-size: 0.9rem; }

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--text-dim); font-weight: 600; }
.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2rem;
    align-items: center;
    justify-content: space-between;
    color: var(--text-faint);
    font-size: 0.86rem;
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-dim); }

/* ---------- Reveal animation (subtle, motion-safe) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid,
    .feature-row,
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-row.flip .feature-copy { order: 1; }
    .feature-row.flip .feature-visual { order: 2; }
    .feature-visual .dc, .showcase-grid .dc { margin-inline: 0; }
    .plans { grid-template-columns: 1fr; }
    .plan + .plan { border-left: none; border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .check-cols { columns: 1; }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(11, 13, 18, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 0.6rem 24px 1rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.7rem 0; }
    .nav-links a.nav-cta {
        margin-top: 0.6rem;
        text-align: center;
        padding: 0.7rem 1rem;
    }
    .nav-toggle { display: block; }

    .form-row-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
