/* Redacto marketing site — shared design system (mirrors the app) */

html, body {
    overflow-x: clip;
    max-width: 100vw;
}

.page-width { max-width: 80rem; }

/* ── Glass surface ───────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.04), 0 1px 2px -1px rgba(0,0,0,0.04);
}
.dark .glass {
    background: rgba(24,24,27,0.55);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3), 0 1px 2px -1px rgba(0,0,0,0.2);
}

/* ── Card ────────────────────────────────────────────────── */
.card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.dark .card {
    background: rgba(24,24,27,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.4);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -12px rgba(0,0,0,0.12), 0 4px 12px -4px rgba(0,0,0,0.06);
}
.dark .card-hover:hover {
    box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6), 0 4px 12px -4px rgba(0,0,0,0.4);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 150ms ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
    background: #f97316;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(249,115,22,0.25), 0 4px 12px -4px rgba(249,115,22,0.3);
}
.btn-primary:hover:not(:disabled) {
    background: #ea580c;
    box-shadow: 0 2px 8px 0 rgba(249,115,22,0.35), 0 8px 20px -6px rgba(249,115,22,0.4);
    transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.1);
}
.dark .btn-ghost { border-color: rgba(255,255,255,0.1); }
.btn-ghost:hover:not(:disabled) { background: rgba(0,0,0,0.04); }
.dark .btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.06); }

.btn-soft {
    background: rgba(0,0,0,0.04);
    color: inherit;
}
.dark .btn-soft { background: rgba(255,255,255,0.08); }
.btn-soft:hover:not(:disabled) { background: rgba(0,0,0,0.08); }
.dark .btn-soft:hover:not(:disabled) { background: rgba(255,255,255,0.12); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; line-height: 1rem; border-radius: 0.5rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: 0.875rem; }

/* ── Section label ───────────────────────────────────────── */
.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(156 163 175);
}
.dark .section-label { color: rgb(107 114 128); }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.badge-brand {
    background: rgba(249,115,22,0.1);
    color: #ea580c;
    border: 1px solid rgba(249,115,22,0.2);
}
.dark .badge-brand {
    background: rgba(249,115,22,0.15);
    color: #fdba74;
    border-color: rgba(249,115,22,0.25);
}

/* ── Mesh background ─────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 55% at 15% -5%, rgba(249,115,22,0.09), transparent 60%),
        radial-gradient(ellipse 60% 45% at 85% 100%, rgba(249,115,22,0.06), transparent 60%);
}
.dark body::before {
    background:
        radial-gradient(ellipse 80% 55% at 15% -5%, rgba(249,115,22,0.06), transparent 60%),
        radial-gradient(ellipse 60% 45% at 85% 100%, rgba(249,115,22,0.03), transparent 60%);
}

/* ── Gradient text ───────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dark .text-gradient {
    background: linear-gradient(135deg, #fdba74 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── FAQ details ─────────────────────────────────────────── */
details.faq summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chevron { transition: transform 0.2s ease; }
details.faq[open] summary .chevron { transform: rotate(90deg); }

/* ── Prose / legal page readability ──────────────────────── */
.prose-legal h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.prose-legal h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
.prose-legal p,
.prose-legal li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgb(75 85 99);
}
.dark .prose-legal p,
.dark .prose-legal li { color: rgb(161 161 170); }
.prose-legal ul { margin: 0.75rem 0 0.75rem 1.25rem; list-style: disc; }
.prose-legal li { margin-bottom: 0.4rem; }
.prose-legal a { color: #ea580c; text-decoration: underline; text-underline-offset: 2px; }
.dark .prose-legal a { color: #fdba74; }
.prose-legal strong { color: rgb(17 24 39); }
.dark .prose-legal strong { color: rgb(244 244 245); }

/* ── Animations ──────────────────────────────────────────── */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ── Mobile polish ───────────────────────────────────────── */
@media (max-width: 640px) {
    input[type="text"], input[type="email"], input[type="password"],
    textarea, select { font-size: 16px !important; }
    .btn { min-height: 2.5rem; }
    .btn-sm { min-height: 2rem; }
}
.overflow-y-auto { -webkit-overflow-scrolling: touch; }

/* ── Scroll-margin so anchor links don't hide under sticky nav ── */
section[id] { scroll-margin-top: 5rem; }

/* ── Prominent GDPR hero badge ───────────────────────────── */
.badge-brand-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(249,115,22,0.08);
    color: #c2410c;
    border: 1px solid rgba(249,115,22,0.3);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.05), 0 2px 10px -2px rgba(249,115,22,0.2);
}
.dark .badge-brand-lg {
    background: rgba(249,115,22,0.1);
    color: #fdba74;
    border-color: rgba(249,115,22,0.35);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.04), 0 2px 14px -2px rgba(249,115,22,0.25);
}

/* ── Muted (non-interactive) icon tint ───────────────────── */
.icon-muted { color: #9ca3af; }
.dark .icon-muted { color: #71717a; }

/* ── Section divider ─────────────────────────────────────── */
.section-divider {
    height: 1px;
    max-width: 80rem;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}
.dark .section-divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* ── Greyscale placeholder logos ─────────────────────────── */
.logo-grey {
    color: #9ca3af;
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease;
}
.logo-grey:hover { opacity: 1; }
.dark .logo-grey { color: #71717a; }

/* ── Before/After hero visual ───────────────────────────── */
.doc-mock {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #374151;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
}
.dark .doc-mock {
    background: #fafafa;
    color: #1f2937;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}
.doc-mock .doc-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; color: #111827; }
.entity-hl {
    background: rgba(249,115,22,0.25);
    border-bottom: 2px solid #f97316;
    padding: 0 2px;
    border-radius: 2px;
}
.entity-blk {
    display: inline-block;
    background: #111;
    color: transparent;
    border-radius: 2px;
    user-select: none;
}

/* ── Step connector (How it works) ───────────────────────── */
@media (min-width: 768px) {
    .step-connector {
        position: relative;
    }
    .step-connector::after {
        content: '';
        position: absolute;
        top: 2.75rem;
        right: -0.75rem;
        width: 1.5rem;
        height: 2px;
        background: linear-gradient(90deg, rgba(249,115,22,0.5), rgba(249,115,22,0.15));
        z-index: 1;
    }
    .step-connector:last-child::after { display: none; }
}

/* ── Pipeline diagram ────────────────────────────────────── */
.pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    flex-wrap: nowrap;
}
.pipeline-node {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.pipeline-node p { font-size: 0.7rem; }
.pipeline-node .node-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    background: rgba(249,115,22,0.1);
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    border: 1px solid rgba(249,115,22,0.2);
}
.dark .pipeline-node .node-icon { color: #fdba74; background: rgba(249,115,22,0.12); }
.pipeline-arrow {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 1rem;
    padding-bottom: 1.25rem;
}
.dark .pipeline-arrow { color: #52525b; }
@media (max-width: 640px) {
    .pipeline { flex-direction: column; gap: 0.25rem; }
    .pipeline-arrow { transform: rotate(90deg); padding: 0.25rem 0; }
    .pipeline-node { min-width: 0; }
}

/* ── Cert badges ─────────────────────────────────────────── */
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
}
.dark .cert-badge {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #a1a1aa;
}
.cert-badge svg { color: #9ca3af; }
.dark .cert-badge svg { color: #71717a; }

/* ── Comparison table ────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.dark .compare-table th, .dark .compare-table td { border-bottom-color: rgba(255,255,255,0.06); }
.compare-table th { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.dark .compare-table th { color: #a1a1aa; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 500; color: #374151; }
.dark .compare-table th:first-child, .dark .compare-table td:first-child { color: #e5e7eb; }
.compare-table .col-redacto {
    background: linear-gradient(180deg, rgba(249,115,22,0.07), rgba(249,115,22,0.03));
    border-left: 1px solid rgba(249,115,22,0.2);
    border-right: 1px solid rgba(249,115,22,0.2);
    color: #c2410c;
    font-weight: 600;
}
.dark .compare-table .col-redacto {
    background: linear-gradient(180deg, rgba(249,115,22,0.1), rgba(249,115,22,0.04));
    color: #fdba74;
}
.compare-check { color: #16a34a; font-weight: 700; }
.compare-cross { color: #9ca3af; font-weight: 600; }
.dark .compare-cross { color: #52525b; }

/* ── Interactive demo ────────────────────────────────────── */
.demo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.6);
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dark .demo-toggle {
    border-color: rgba(255,255,255,0.1);
    background: rgba(24,24,27,0.6);
    color: #d4d4d8;
}
.demo-toggle:hover { border-color: rgba(249,115,22,0.4); }
.demo-toggle.active {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
    box-shadow: 0 2px 8px -2px rgba(249,115,22,0.4);
}
.demo-toggle .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: currentColor;
    opacity: 0.6;
}

/* ── Billing toggle ──────────────────────────────────────── */
.billing-toggle {
    display: inline-flex;
    padding: 0.25rem;
    background: rgba(0,0,0,0.05);
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.06);
}
.dark .billing-toggle {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}
.billing-toggle button {
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.dark .billing-toggle button { color: #a1a1aa; }
.billing-toggle button.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.dark .billing-toggle button.active {
    background: #27272a;
    color: #fff;
}
