/* Discipline ComplyApp — Marketing site
   Layered on top of base.css, which defines design tokens, the brand,
   buttons, forms, header and footer primitives shared with every other
   public page (/signup, /payment, /privacy-policy). */
@import url("/static/home/base.css");

:root {
    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    --space-7: 6rem;
}

/* ── Marketing-specific typography scale overrides ── */
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }

.lede { font-size: 1.125rem; color: var(--ink-500); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 6px 20px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover { background: var(--brand-700); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--ink-800);
    border-color: var(--ink-200);
}
.btn-ghost:hover { background: var(--ink-50); color: var(--ink-900); }

/* ── Header / Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ink-100);
}
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-block: .85rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink-900);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink-900); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-500), #6366f1);
    color: #fff;
}
.brand-text { font-size: 1.05rem; }
.brand-text strong { font-weight: 800; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}
.primary-nav ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 1.25rem;
}
.primary-nav a {
    color: var(--ink-700);
    font-weight: 500;
    font-size: .95rem;
}
.primary-nav a:hover { color: var(--ink-900); }
.nav-cta { display: flex; gap: .5rem; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px; height: 42px;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav-toggle span {
    width: 18px; height: 2px;
    background: var(--ink-800);
    border-radius: 2px;
    display: block;
}

/* ── Hero ── */
.hero {
    padding-block: clamp(3rem, 6vw, 5.5rem);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(37, 99, 235, .12), transparent 60%),
        radial-gradient(900px 400px at -10% 20%, rgba(99, 102, 241, .10), transparent 60%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-block: 1.5rem;
}
.hero-trust {
    list-style: none;
    padding: 0; margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--ink-500);
    font-size: .9rem;
}
.hero-trust li {
    position: relative;
    padding-left: 1.5rem;
}
.hero-trust li::before {
    content: "";
    position: absolute;
    left: 0; top: .45em;
    width: 14px; height: 14px;
    background: var(--brand-50);
    border: 2px solid var(--brand-500);
    border-radius: 50%;
}

/* Hero visual mock */
.hero-visual {
    position: relative;
    min-height: 360px;
}
.mock-card {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
}
.mock-card--chat {
    position: relative;
    transform: rotate(-2deg);
    z-index: 2;
    max-width: 360px;
}
.mock-card--doc {
    position: absolute;
    right: 0;
    bottom: -20px;
    width: 260px;
    transform: rotate(4deg);
    padding: 1rem;
}
.mock-bubble {
    display: block;
    padding: .75rem .9rem;
    border-radius: 14px;
    margin-bottom: .6rem;
    font-size: .92rem;
    line-height: 1.4;
}
.mock-bubble strong {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
    opacity: .7;
}
.mock-bubble--in {
    background: var(--ink-50);
    color: var(--ink-800);
    border-bottom-left-radius: 4px;
}
.mock-bubble--out {
    background: var(--brand-50);
    color: var(--brand-700);
    border-bottom-right-radius: 4px;
}
.doc-header {
    display: flex; gap: 6px; margin-bottom: .75rem;
}
.doc-header .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-200); }
.doc-header .dot:nth-child(2) { background: #fde68a; }
.doc-header .dot:nth-child(3) { background: #86efac; }
.mock-card--doc h4 { font-size: .95rem; letter-spacing: 0; text-transform: none; }
.doc-line {
    height: 8px;
    background: var(--ink-100);
    border-radius: 4px;
    margin: .35rem 0;
}
.doc-line.w-80 { width: 80%; }
.doc-line.w-60 { width: 60%; }
.doc-sign { margin-top: .9rem; }
.sig-line {
    height: 30px;
    background: linear-gradient(90deg, transparent 0, var(--ink-700) 20%, var(--ink-700) 70%, transparent 100%);
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'><path d='M2 20 C 20 2, 40 28, 60 14 S 100 4, 118 18' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'><path d='M2 20 C 20 2, 40 28, 60 14 S 100 4, 118 18' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat center / contain;
}
.doc-sign small { color: var(--ink-400); font-size: .7rem; }

/* ── Strip ── */
.strip {
    padding-block: 2rem;
    border-block: 1px solid var(--ink-100);
    background: #fff;
}
.strip-label {
    text-align: center;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-400);
    margin-bottom: 1rem;
}
.strip-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.25rem;
    color: var(--ink-500);
    font-weight: 600;
    font-size: 1rem;
}

/* ── Sections ── */
.section {
    padding-block: clamp(3.5rem, 6vw, 6rem);
}
.section-alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--ink-100);
}
.section-head {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}
.section-head p { font-size: 1.05rem; }

/* ── Grid ── */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Features ── */
.feature {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--ink-200);
}
.feature-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
    margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--ink-500); margin: 0; }

/* ── Steps ── */
.steps {
    list-style: none;
    padding: 0; margin: 0;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.steps li {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}
.step-num {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--ink-900);
    color: #fff;
    font-weight: 700;
    margin-bottom: .75rem;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--ink-500); }

/* ── Benefits ── */
.benefit-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.checks {
    list-style: none;
    padding: 0; margin: 1rem 0 0;
    display: grid;
    gap: .65rem;
}
.checks li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--ink-700);
}
.checks li::before {
    content: "";
    position: absolute;
    left: 0; top: .4em;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 12px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.stat {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: var(--shadow-sm);
}
.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.02em;
}
.stat span { color: var(--ink-500); font-size: .92rem; }

/* ── Pricing ── */
.pricing-grid { align-items: stretch; }
.plan {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-featured {
    border-color: var(--brand-500);
    box-shadow: 0 20px 40px -20px rgba(37, 99, 235, .35);
}
.plan .badge {
    position: absolute;
    top: -12px; right: 1.25rem;
    background: var(--brand-600);
    color: #fff;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-weight: 700;
}
.price { margin: .5rem 0 .25rem; }
.price span { font-size: 2.2rem; font-weight: 800; color: var(--ink-900); letter-spacing: -0.02em; }
.price small { color: var(--ink-400); margin-left: .25rem; }
.plan-desc { color: var(--ink-500); margin-bottom: 1rem; }
.plan ul {
    list-style: none;
    padding: 0; margin: 0 0 1.5rem;
    display: grid;
    gap: .5rem;
    flex: 1;
}
.plan ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--ink-700);
    font-size: .95rem;
}
.plan ul li::before {
    content: "";
    position: absolute;
    left: 0; top: .5em;
    width: 14px; height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}

/* Organisation-code callout under pricing */
.org-callout {
    margin-top: 2.5rem;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}
.org-callout-icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: 12px;
}
.org-callout-icon svg { width: 22px; height: 22px; }
.org-callout h3 { margin-bottom: .35rem; }
.org-callout p { margin: 0; color: var(--ink-500); }

/* ── FAQ ── */
.faq-container { max-width: 800px; }
.faq-list { display: grid; gap: .75rem; }
.faq-list details {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-list details[open] {
    border-color: var(--ink-200);
    box-shadow: var(--shadow-sm);
}
.faq-list summary {
    font-weight: 600;
    color: var(--ink-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink-400);
    transition: transform .15s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: .75rem 0 0; }

/* ── CTA ── */
.cta {
    padding-block: clamp(3rem, 5vw, 5rem);
    background:
        radial-gradient(800px 400px at 80% -10%, rgba(99, 102, 241, .35), transparent 60%),
        linear-gradient(135deg, var(--ink-900), var(--brand-700));
    color: #fff;
}
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cta .hero-cta { justify-content: center; }

/* ── Footer ── */
.site-footer {
    background: var(--ink-900);
    color: var(--ink-200);
    padding-top: 3rem;
}
.site-footer h4 {
    color: #fff;
    font-size: .8rem;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink-200); }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.brand--footer { color: #fff; }
.footer-tag { color: var(--ink-300); margin-top: .75rem; max-width: 26ch; }
.footer-base {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-block: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink-300);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; margin-top: 1rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .benefit-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--ink-100);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.25rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav ul { flex-direction: column; gap: .25rem; }
    .primary-nav ul a {
        display: block;
        padding: .65rem 0;
        border-bottom: 1px solid var(--ink-50);
    }
    .nav-cta { flex-direction: column; gap: .5rem; }
    .nav-cta .btn { width: 100%; }

    .site-header { position: relative; }
    .nav-wrap { position: relative; }

    .grid-3 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-base { flex-direction: column; gap: .5rem; text-align: center; }
    .mock-card--doc { position: relative; right: auto; bottom: auto; margin-top: 1rem; width: 100%; transform: none; }
    .mock-card--chat { transform: none; max-width: none; }
    .org-callout { flex-direction: column; gap: .75rem; padding: 1.25rem; }
}

/* ── Motion preferences ── */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Focus visibility ── */
:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
    border-radius: 6px;
}
