/* ==========================================================================
   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: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 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; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.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, 1fr);
    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 h2,
.form-msg.success h3 { color: var(--text); margin-bottom: 0.3rem; }
.form-msg.success p { color: var(--text-dim); font-weight: 500; }

/* ---------- Support applications ---------- */
.support-application-section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.support-application-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.support-application-copy h2 { margin: 0.55rem 0 0.75rem; }
.support-application-copy > p { color: var(--text-dim); line-height: 1.7; }
.support-application-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.support-application-actions > span { color: var(--text-faint); font-size: 0.82rem; line-height: 1.5; }
.support-application-facts { display: grid; border-left: 1px solid var(--line); }
.support-application-facts > div { display: grid; gap: 0.3rem; padding: 0.9rem 0 0.9rem 1.25rem; }
.support-application-facts > div + div { border-top: 1px solid var(--line-soft); }
.support-application-facts strong { color: var(--text); font-size: 0.9rem; }
.support-application-facts span { color: var(--text-dim); font-size: 0.86rem; line-height: 1.5; }

.support-application-dialog {
    width: min(720px, calc(100% - 32px));
    max-height: min(840px, calc(100dvh - 40px));
    margin: auto;
    padding: 0;
    color: var(--text);
    background: #10131a;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}
.support-application-dialog::backdrop { background: rgba(3, 5, 9, 0.78); backdrop-filter: blur(6px); }
.application-form { max-height: inherit; padding: clamp(1.15rem, 3vw, 1.75rem); overflow-y: auto; }
.support-dialog-head { display: flex; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; }
.support-dialog-head h2 { margin: 0.35rem 0; font-size: clamp(1.35rem, 4vw, 1.8rem); }
.support-dialog-head p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.support-dialog-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-inset);
    color: var(--text-dim);
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.support-dialog-close:hover { color: var(--text); border-color: var(--text-faint); }
.support-application-dialog .field textarea { min-height: 112px; }
.support-dialog-actions { display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 1.25rem; }
.support-application-dialog .btn:disabled { opacity: 0.58; cursor: wait; }
.application-honeypot { position: fixed; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dedicated applications page ---------- */
.applications-head { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.applications-head .container { max-width: var(--container); }
.applications-head p { max-width: 650px; color: var(--text-dim); }
.applications-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.server-showcase-apply { background: #0d1118; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.server-showcase-apply .applications-guide p { margin-top: 0.75rem; color: var(--text-dim); font-size: 0.88rem; line-height: 1.65; }
.showcase-application-form {
  border-color: rgba(83, 214, 161, 0.28);
  scroll-margin-top: 88px;
}
.showcase-application-form .field small { display: block; margin-top: 0.42rem; color: var(--text-faint); font-size: 0.73rem; line-height: 1.45; }
.showcase-discord-gate { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 1rem; border: 1px solid rgba(88, 101, 242, 0.38); border-radius: 8px; background: rgba(88, 101, 242, 0.08); }
.showcase-discord-gate[hidden] { display: none; }
.showcase-discord-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: #5865f2; color: #fff; font-weight: 800; }
.showcase-discord-gate strong, .showcase-discord-gate span { display: block; }
.showcase-discord-gate span { margin-top: 0.2rem; color: var(--text-dim); font-size: 0.78rem; line-height: 1.45; }
.showcase-server-preview { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0a0e15; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28); }
.showcase-server-banner { height: 112px; background: linear-gradient(125deg, #182235, #17233a 48%, #18352e); background-position: center; background-size: cover; }
.showcase-server-identity { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; min-height: 82px; padding: 0 1rem 0.8rem; }
.showcase-server-icon { width: 58px; height: 58px; margin-top: -24px; border: 4px solid #0a0e15; border-radius: 14px; background: #151b26 center/cover no-repeat; box-shadow: 0 7px 20px rgba(0,0,0,.35); }
.showcase-server-identity strong, .showcase-server-identity span { display: block; min-width: 0; }
.showcase-server-identity strong { overflow: hidden; color: var(--text); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.showcase-server-identity div > span { margin-top: 0.2rem; color: var(--text-faint); font-size: 0.74rem; }
.showcase-protected-badge { padding: 0.42rem 0.62rem; border: 1px solid rgba(83, 214, 161, 0.32); border-radius: 999px; color: var(--accent) !important; font-size: 0.68rem !important; font-weight: 700; white-space: nowrap; }
.showcase-access-selector { min-width: 0; margin: 0; padding: 0; border: 0; }
.showcase-access-selector legend { margin-bottom: 0.65rem; color: var(--text); font-size: 0.84rem; font-weight: 700; }
.showcase-access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.showcase-access-options label { position: relative; min-width: 0; cursor: pointer; }
.showcase-access-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.showcase-access-options label > span { min-height: 88px; display: grid; align-content: center; gap: 0.35rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-inset); transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.showcase-access-options strong { color: var(--text); font-size: 0.9rem; }
.showcase-access-options small { color: var(--text-faint); font-size: 0.75rem; line-height: 1.45; }
.showcase-access-options label:hover > span { border-color: var(--text-faint); background: rgba(255, 255, 255, 0.035); }
.showcase-access-options input:checked + span { border-color: var(--accent); background: rgba(83, 214, 161, 0.08); box-shadow: inset 0 0 0 1px rgba(83, 214, 161, 0.14); }
.showcase-access-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.applications-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.applications-guide { position: sticky; top: calc(var(--nav-h) + 2rem); display: grid; gap: 1.5rem; }
.applications-guide h2 { margin-top: 0.55rem; }
.applications-paths { margin: 0; border-top: 1px solid var(--line); }
.applications-paths > div { display: grid; gap: 0.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
.applications-paths dt { color: var(--text); font-weight: 700; }
.applications-paths dd { margin: 0; color: var(--text-dim); font-size: 0.86rem; line-height: 1.55; }
.applications-privacy-note { display: grid; gap: 0.35rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.applications-privacy-note strong { font-size: 0.88rem; }
.applications-privacy-note span { color: var(--text-dim); font-size: 0.82rem; line-height: 1.55; }
.applications-form-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
.applications-form-head { margin-bottom: 1.5rem; }
.applications-form-head h2 { margin: 0.45rem 0; }
.applications-form-head p { color: var(--text-dim); font-size: 0.9rem; }
.applications-form-card .field textarea { min-height: 120px; }
.applications-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 1.35rem; }
.applications-submit-row > span { max-width: 430px; color: var(--text-faint); font-size: 0.78rem; line-height: 1.5; }
.applications-submit-row .btn { flex: 0 0 auto; }
.applications-process { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.applications-process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.applications-process-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0.9rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.applications-process-list li > span { color: var(--accent); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; }
.applications-process-list strong { display: block; margin-bottom: 0.25rem; }
.applications-process-list p { color: var(--text-dim); font-size: 0.86rem; line-height: 1.55; }

@media (max-width: 900px) {
    .applications-layout { grid-template-columns: 1fr; }
    .applications-guide { position: static; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); }
    .applications-privacy-note { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .support-application-layout { grid-template-columns: 1fr; }
    .support-application-facts { border-left: 0; border-top: 1px solid var(--line); }
    .support-application-facts > div { padding-left: 0; }
    .support-application-actions { align-items: flex-start; flex-direction: column; }
    .form-row-2 { grid-template-columns: 1fr; }
    .showcase-access-options { grid-template-columns: 1fr; }
    .showcase-discord-gate { grid-template-columns: 42px minmax(0, 1fr); }
    .showcase-discord-gate .btn { grid-column: 1 / -1; width: 100%; }
    .showcase-server-identity { grid-template-columns: 52px minmax(0, 1fr); }
    .showcase-server-icon { width: 52px; height: 52px; }
    .showcase-protected-badge { grid-column: 2; justify-self: start; }
    .support-dialog-actions .btn { flex: 1 1 0; padding-inline: 0.75rem; }
    .applications-guide { grid-template-columns: 1fr; }
    .applications-privacy-note { grid-column: auto; }
    .applications-form-card { padding: 1.1rem; }
    .applications-submit-row { align-items: stretch; flex-direction: column; }
    .applications-submit-row .btn { width: 100%; }
    .applications-process-list { grid-template-columns: 1fr; }
}

/* ---------- 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 h3,
.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)); }
}

/* ---------- 2026 public product page ---------- */
.public-home { background: #090a0d; overflow-x: hidden; }
.public-home .nav { background: rgba(9, 10, 13, 0.92); }
.public-home .nav-inner { max-width: 1180px; }
.public-home .container { max-width: 1180px; }
.public-home h1,
.public-home h2,
.public-home h3 { letter-spacing: 0; }
.public-home h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.18; }
.public-home h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.22; }
.public-home .public-hero { padding-top: clamp(4.75rem, 9vw, 7.5rem); }
.public-home .hero-grid { grid-template-columns: minmax(0, 1fr); }
.public-home .hero-copy { max-width: 780px; }
.public-home .hero-copy .lede { max-width: 39rem; }

.hero-notes,
.feature-points,
.trust-list { list-style: none; padding: 0; margin: 0; }
.hero-notes { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; color: var(--text-faint); font-size: .86rem; }
.hero-notes li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-notes li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.product-frame,
.protection-console,
.case-log,
.verification-preview,
.ticket-thread,
.appeal-review,
.network-map,
.settings-preview {
    background: #0f1117;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.product-frame { overflow: hidden; }
.frame-top { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: #0b0d12; }
.frame-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; }
.frame-brand img { width: 24px; height: 24px; border-radius: 6px; }
.status-label { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 700; color: var(--text-dim); }
.status-label i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-protected,
.status-resolved { color: #72d292; }
.incident-layout { display: grid; grid-template-columns: 145px minmax(0, 1fr); min-height: 390px; }
.mock-sidebar { padding: 18px 10px; border-right: 1px solid var(--line); background: #0c0e13; display: grid; align-content: start; gap: 6px; }
.mock-nav { padding: 8px 10px; color: var(--text-faint); font-size: .73rem; border-radius: 6px; }
.mock-nav.active { color: var(--text); background: rgba(88,101,242,.14); }
.incident-content { padding: clamp(1.2rem, 4vw, 2rem); }
.incident-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.incident-heading div { display: grid; gap: .35rem; }
.incident-heading small,
.appeal-review > small,
.network-event small,
.settings-head small { color: var(--text-faint); font-size: .68rem; font-weight: 750; letter-spacing: .08em; }
.incident-heading strong { font-size: 1.28rem; }
.severity { display: inline-flex; align-items: center; gap: .4rem; color: #ff9b9d; font-size: .72rem; font-weight: 700; }
.severity::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.incident-content > p { color: var(--text-dim); font-size: .86rem; line-height: 1.55; }
.incident-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; padding: 1rem 0; margin: 1.25rem 0; border-block: 1px solid var(--line); }
.incident-facts dt,
.case-details dt,
.appeal-review dt { color: var(--text-faint); font-size: .7rem; }
.incident-facts dd,
.case-details dd,
.appeal-review dd { margin: .18rem 0 0; color: var(--text); font-size: .82rem; font-weight: 700; }
.mock-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.mock-actions span { display: inline-flex; align-items: center; min-height: 34px; padding: .42rem .75rem; border-radius: 7px; border: 1px solid var(--line); color: var(--text-dim); font-size: .74rem; font-weight: 700; }
.mock-actions .mock-primary { color: #fff; background: var(--accent); border-color: var(--accent); }

.proof-strip { border-block: 1px solid var(--line-soft); background: #0b0d11; }
.proof-list { min-height: 76px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; gap: 1rem; }
.proof-list span { color: var(--text-dim); font-size: .86rem; font-weight: 650; text-align: center; }
.proof-list span + span { border-left: 1px solid var(--line); }

.product-section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-muted { background: #0b0d11; border-block: 1px solid var(--line-soft); }
.split-section { display: grid; grid-template-columns: minmax(0,.88fr) minmax(480px,1.12fr); align-items: center; gap: clamp(2.5rem, 7vw, 6.5rem); }
.split-reverse > :first-child { order: 2; }
.split-reverse > :last-child { order: 1; }
.section-copy { max-width: 38rem; }
.section-copy p { color: var(--text-dim); font-size: 1.02rem; }
.kicker { color: #9ea6ff; font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.section-copy h2 { margin-top: .75rem; }
.feature-points { display: grid; gap: .85rem; margin-top: 1.35rem; }
.feature-points li { position: relative; padding-left: 1.3rem; color: var(--text-dim); }
.feature-points li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.feature-points strong { color: var(--text); }
.feature-points.compact { gap: .55rem; }
.text-link { display: inline-flex; gap: .45rem; align-items: center; font-weight: 700; }

.protection-console { overflow: hidden; }
.console-head { min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.console-head span { color: var(--text-faint); font-size: .76rem; }
.protection-row { min-height: 76px; padding: 0 20px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.protection-row:last-child { border-bottom: 0; }
.protection-row > div { display: grid; }
.protection-row small { color: var(--text-faint); }
.protect-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #b4b9ff; font-weight: 800; }
.state-on,
.state-review { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 750; }
.state-on::before,
.state-review::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-on { color: #7bd59a; }
.state-review { color: #f0c45c; }

.case-log { padding: clamp(1.3rem,4vw,2rem); }
.case-head { display: flex; justify-content: space-between; margin-bottom: 1rem; color: var(--text-faint); font-size: .74rem; font-weight: 700; }
.case-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; padding: 1rem 0; margin: 1rem 0; border-block: 1px solid var(--line); }
.case-timeline { display: grid; gap: .75rem; }
.case-timeline span { position: relative; padding-left: 1.35rem; color: var(--text-dim); font-size: .8rem; }
.case-timeline span::before { content: ''; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.verification-preview { overflow: hidden; }
.discord-channel { min-height: 58px; padding: 0 18px; display: flex; align-items: center; gap: .7rem; border-bottom: 1px solid var(--line); background: #0b0d12; }
.discord-channel span { color: var(--text-faint); font-size: .72rem; }
.bot-message { padding: 24px 18px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
.bot-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-weight: 800; }
.bot-name { margin-bottom: .45rem; font-weight: 700; }
.bot-name small { background: var(--accent); padding: .12rem .32rem; border-radius: 3px; color: white; font-size: .55rem; }
.verify-panel { border-left: 3px solid var(--accent); background: #141720; border-radius: 4px 8px 8px 4px; padding: 1rem; }
.verify-panel p { color: var(--text-dim); font-size: .82rem; }

.section-head { max-width: 700px; }
.section-head h2 { margin-top: .75rem; }
.workflow-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.25rem; margin-top: 2.5rem; }
.ticket-thread,
.appeal-review { padding: 1.25rem; }
.thread-head { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.thread-head span { color: #78d497; font-size: .76rem; }
.thread-message { max-width: 80%; margin-top: 1rem; padding: .75rem .9rem; background: #171a22; border-radius: 8px; }
.thread-message.staff { margin-left: auto; background: rgba(88,101,242,.14); }
.thread-message b { font-size: .72rem; }
.thread-message p { margin: .18rem 0 0; color: var(--text-dim); font-size: .82rem; }
.composer-fake { margin-top: 1.2rem; min-height: 42px; border: 1px solid var(--line); background: #0b0d12; border-radius: 8px; padding: 0 .8rem; display: flex; align-items: center; justify-content: space-between; color: var(--text-faint); font-size: .8rem; }
.composer-fake span { color: #c8cbff; font-weight: 700; }
.appeal-review h3 { margin-top: .5rem; }
.appeal-review > p { color: var(--text-dim); font-size: .86rem; }
.appeal-review dl { display: grid; gap: .65rem; margin: 1.2rem 0; }
.appeal-review dl div { display: flex; justify-content: space-between; gap: 1rem; }

.network-map { position: relative; min-height: 390px; padding: 1.5rem; }
.network-owner { width: fit-content; margin: 0 auto; padding: .5rem 0; text-align: center; display: grid; }
.network-owner small { color: var(--text-faint); }
.network-line { width: 1px; height: 42px; margin: 0 auto; background: var(--line); }
.network-nodes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.network-nodes span { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: .5rem; border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: .8rem; }
.network-nodes i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.network-event { margin-top: 1.5rem; padding: 1rem; border-top: 1px solid var(--line); }
.network-event { display: grid; gap: .4rem; }
.network-event p { color: var(--text-faint); font-size: .78rem; }

.settings-preview { overflow: hidden; }
.settings-head { min-height: 76px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.settings-head > div { display: grid; gap: .25rem; }
.setting-row { min-height: 76px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-soft); }
.setting-row > span:first-child { display: grid; }
.setting-row small { color: var(--text-faint); }
.setting-value { color: var(--text-dim); font-size: .76rem; }
.toggle-on { width: 38px; height: 22px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.toggle-on::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; right: 3px; top: 3px; background: white; }
.settings-save { min-height: 62px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #0b0d12; }
.settings-save span { color: var(--text-faint); font-size: .72rem; }
.settings-save b { padding: .45rem .7rem; border-radius: 7px; background: var(--accent); color: white; font-size: .72rem; }

.trust-section { padding-block: clamp(4.5rem,9vw,7rem); border-top: 1px solid var(--line-soft); }
.trust-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem,7vw,6rem); }
.trust-list { display: grid; }
.trust-list li { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.trust-list li:first-child { border-top: 1px solid var(--line); }
.trust-list span { color: var(--text-dim); }

.language-slot { display: flex; align-items: center; }
.language-control { position: relative; }
.language-trigger { min-height: 38px; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-dim); font: inherit; font-size: .82rem; cursor: pointer; }
.language-trigger:hover { color: var(--text); border-color: var(--text-faint); }
.language-trigger .globe { font-size: 1rem; line-height: 1; }
.language-menu { position: absolute; z-index: 120; top: calc(100% + 8px); right: 0; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: #11131a; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.language-menu[hidden] { display: none; }
.language-option { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 6px; padding: 0 10px; color: var(--text-dim); background: transparent; font: inherit; font-size: .82rem; cursor: pointer; }
.language-option:hover,
.language-option[aria-checked="true"] { color: var(--text); background: rgba(255,255,255,.055); }

.nav-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px; background: var(--bg-raise); border-color: var(--line); transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.nav-toggle:hover { background: rgba(255,255,255,.055); border-color: rgba(151,163,185,.24); }
.nav-toggle span { display: block; width: 19px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
html.nav-open,
body.nav-open { overflow: hidden; }

html,
body {
    overflow-x: clip;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: flex;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        z-index: 1001;
        inset: var(--nav-h) 0 0 auto;
        width: min(88vw, 360px);
        height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1rem 18px 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #0d0f14;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.42);
        transform: translateX(100%);
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    }

    .nav-links.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        border-bottom: 1px solid var(--line-soft);
    }

    .nav-links a.nav-cta {
        justify-content: center;
        border-bottom: 0;
    }

    .language-slot { padding-block: 0.8rem; }
    .language-control,
    .language-trigger { width: 100%; }
    .language-trigger { justify-content: space-between; min-height: 46px; }
    .language-menu { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
}

@media (max-width: 1040px) {
    .public-home .hero-grid,
    .split-section { grid-template-columns: 1fr; }
    .public-home .hero-copy { max-width: 720px; }
    .split-reverse > :first-child,
    .split-reverse > :last-child { order: initial; }
    .section-copy { max-width: 720px; }
    .workflow-grid,
    .trust-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .public-home .container { padding-inline: 18px; }
    .public-home .nav-inner { padding-inline: 18px; }
    .public-home .nav-links {
        display: flex;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        position: fixed;
        inset: var(--nav-h) 0 0 auto;
        width: min(88vw, 360px);
        height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        padding: 1rem 18px 2rem;
        background: #0d0f14;
        border-left: 1px solid var(--line);
        box-shadow: -20px 0 60px rgba(0,0,0,.4);
        transition: transform .2s ease, opacity .2s ease, visibility .2s;
    }
    .public-home .nav-links.open { visibility: visible; opacity: 1; transform: translateX(0); }
    .public-home .nav-links a { min-height: 48px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line-soft); }
    .public-home .nav-links a.nav-cta { justify-content: center; border-bottom: 0; }
    .language-slot { padding-block: .8rem; }
    .language-control,
    .language-trigger { width: 100%; }
    .language-trigger { justify-content: space-between; min-height: 46px; }
    .language-menu { position: static; margin-top: 6px; width: 100%; box-shadow: none; }
    .nav-toggle { display: flex; }
    .proof-list { grid-template-columns: 1fr 1fr; padding-block: 1rem; }
    .proof-list span { text-align: left; }
    .proof-list span + span { border-left: 0; }
    .incident-layout { grid-template-columns: 1fr; }
    .mock-sidebar { display: none; }
    .workflow-grid { grid-template-columns: 1fr; }
    .thread-message { max-width: 92%; }
    .network-nodes { grid-template-columns: 1fr; }
    .trust-list li { grid-template-columns: 1fr; gap: .4rem; }
}

@media (max-width: 430px) {
    .public-home h1 { font-size: 1.9rem; }
    .public-home .hero-actions { display: grid; }
    .public-home .hero-actions .btn { width: 100%; }
    .incident-heading { display: grid; }
    .incident-facts,
    .case-details { grid-template-columns: 1fr; }
    .proof-list { grid-template-columns: 1fr; }
    .protection-row { grid-template-columns: 34px minmax(0,1fr); }
    .protection-row > :last-child { grid-column: 2; justify-self: start; }
    .settings-save { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
}

/* ---------- Verified pricing ---------- */
.pricing-page .pricing-plans-section { padding-top: 0.5rem; }
.pricing-status {
    width: min(680px, 100%);
    margin: 0 auto 1.25rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-inset);
    color: var(--text-dim);
    font-size: 0.86rem;
    text-align: center;
}
.pricing-status[data-state="ready"] {
    border-color: rgba(59, 165, 93, 0.28);
    color: #83dba2;
}
.pricing-status[data-state="warning"] {
    border-color: rgba(240, 178, 50, 0.34);
    color: #e8c66f;
}
.pricing-interval {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    padding: 4px;
    display: flex;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-inset);
}
.pricing-interval button {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
}
.pricing-interval button[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 7px 20px rgba(88, 101, 242, 0.25);
}
.pricing-interval button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    box-shadow: none;
}
.pricing-interval button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.pricing-page .plan-price {
    min-height: 3rem;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.pricing-plan-saving,
.pricing-plan-availability {
    min-height: 1.25rem;
    margin: 0.2rem 0 0;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 750;
}
.pricing-plan-availability { color: #e8c66f; }
.pricing-page [data-pricing-cta][aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.48;
}
.pricing-page .plans-note {
    margin: 1rem auto 0;
    color: var(--text-dim);
    font-size: 0.88rem;
    text-align: center;
}
.pricing-comparison {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.pricing-comparison table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.pricing-comparison th,
.pricing-comparison td {
    padding: 0.72rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
}
.pricing-comparison thead th {
    font-family: var(--font-head);
    font-size: 0.82rem;
}
.pricing-comparison tbody th[scope="row"],
.pricing-comparison thead th:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 700;
}
.pricing-comparison tbody tr:last-child th,
.pricing-comparison tbody tr:last-child td { border-bottom: 0; }
.pricing-comparison-group th {
    background: var(--bg-inset);
    color: var(--text-faint);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}
.pricing-comparison .yes { color: #83dba2; font-weight: 700; }
.pricing-comparison .no { color: var(--text-faint); }
.pricing-comparison .lim { color: var(--text-dim); font-weight: 700; }

@media (max-width: 520px) {
    .pricing-interval { width: 100%; }
    .pricing-interval button { min-width: 0; padding-inline: 10px; flex: 1; }
    .pricing-page .plan { padding-inline: 1.25rem; }
}

/* Shared bot website spacing, navigation, and readable resource links. */
.bot-public-page .nav-inner { width: 100%; max-width: 1180px; gap: 24px; }
.bot-public-page .nav-links { gap: clamp(12px, 1.5vw, 22px); }
.bot-public-page .nav-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--accent, #7289ff); }
.bot-public-page .page-head { padding-block: clamp(42px, 6vw, 76px); text-align: center; }
.bot-public-page .page-head h1 { text-wrap: balance; }
.bot-public-page .page-head p { margin-inline: auto; text-wrap: pretty; }
.bot-public-page :is(.container, .container-narrow, .nav-inner) { padding-inline: clamp(18px, 3vw, 32px); }
.bot-public-page .container-narrow { width: 100%; }
.bot-public-page .link-group > a { display: block; padding-block: 12px; border-bottom: 1px solid var(--line-soft); line-height: 1.5; }
.bot-public-page .link-group > a strong { display: block; color: var(--text); }
.bot-public-page .link-group > a span { display: block; margin-top: 4px; color: var(--text-dim); font-size: .9rem; font-weight: 400; }
.bot-public-page .link-group > a.ext::after { display: none; }
.bot-public-page .link-group > a.ext strong::after { content: ' ↗'; font-size: .85em; color: var(--text-faint); }
.bot-public-page .docs-on-page { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 20px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); }
.bot-public-page .docs-on-page strong { flex-basis: 100%; }
.bot-public-page .docs-on-page a { display: inline-flex; align-items: center; min-height: 44px; }
.bot-public-page .prose :is(h2,h3) { scroll-margin-top: 92px; }
.bot-public-page .prose code { white-space: normal; overflow-wrap: anywhere; }
.bot-public-page .footer-bottom { gap: 16px; }
.bot-public-page .footer-col a { display: inline-flex; align-items: center; min-height: 32px; }
html:not(.site-reveals-ready) .bot-public-page .reveal { opacity: 1; transform: none; }
@media (min-width: 901px) and (max-width: 1080px) {
    .bot-public-page .nav-inner { gap: 16px; }
    .bot-public-page .nav-links { gap: 12px; }
    .bot-public-page .nav-links a { font-size: .8rem; }
}
@media (max-width: 900px) {
    .bot-public-page .nav-links { gap: 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .bot-public-page .nav-links a[aria-current="page"] { background: rgba(114,137,255,.1); border-radius: 8px; text-decoration: none; }
}
@media (max-width: 560px) {
    .bot-public-page .page-head h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .bot-public-page .link-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .bot-public-page .field :is(input, select, textarea) { font-size: 16px; }
    .bot-public-page .footer-col a { min-height: 44px; }
}
