/*
 * Landing-page styles. Kept in a served stylesheet (never inline) so the strict CSP
 * (default-src 'self', no 'unsafe-inline') stays intact.
 */

:root {
    --fy-ink: #0b1437;
    --fy-indigo: #4f46e5;
    --fy-indigo-2: #7c3aed;
    --fy-muted: #5b6478;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    color: var(--fy-ink);
}

/* Sticky, translucent top bar */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid rgba(11, 20, 55, 0.08);
}

.landing-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fy-ink);
    font-size: 1.25rem;
}

.landing-brand-dot {
    color: var(--fy-indigo);
}

.nav-anchor {
    color: var(--fy-muted);
    text-decoration: none;
    font-weight: 500;
}

.nav-anchor:hover {
    color: var(--fy-ink);
}

/* Hero */
.hero {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
        linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--fy-indigo);
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.hero-lead {
    color: var(--fy-muted);
    font-size: 1.18rem;
    max-width: 38rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--fy-indigo), var(--fy-indigo-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-brand {
    background: linear-gradient(90deg, var(--fy-indigo), var(--fy-indigo-2));
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
    filter: brightness(1.07);
    color: #fff;
}

.hero-meta {
    color: var(--fy-muted);
    font-size: 0.92rem;
}

/* Mock invoice card in the hero */
.hero-card {
    border: 1px solid rgba(11, 20, 55, 0.08);
    border-radius: 1rem;
    box-shadow: 0 30px 60px -20px rgba(11, 20, 55, 0.25);
    background: #fff;
}

.hero-card .doc-line {
    height: 0.6rem;
    border-radius: 999px;
    background: #eef0f7;
}

.hero-card .doc-line.short {
    width: 40%;
}

.hero-card .doc-line.mid {
    width: 65%;
}

.valid-pill {
    background: #e9f9ef;
    color: #1a7f4b;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
}

/* Trust strip */
.trust-strip {
    border-block: 1px solid rgba(11, 20, 55, 0.08);
    background: #fbfbfe;
}

.trust-badge {
    color: var(--fy-muted);
    font-weight: 600;
    font-size: 0.92rem;
}

/* Sections */
.section {
    padding-block: 5rem;
}

.section-anchor {
    scroll-margin-top: 5rem;
}

.section-eyebrow {
    color: var(--fy-indigo);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.feature-card {
    height: 100%;
    border: 1px solid rgba(11, 20, 55, 0.08);
    border-radius: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -24px rgba(11, 20, 55, 0.35);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--fy-indigo);
}

/* How it works */
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fy-indigo), var(--fy-indigo-2));
    color: #fff;
    font-weight: 700;
}

/* Security highlight band */
.security-band {
    background: linear-gradient(135deg, var(--fy-ink) 0%, #1b2566 100%);
    color: #e8eaf6;
    border-radius: 1.5rem;
}

/*
 * Checkmark for light backgrounds. Deliberately darker than the mint used on the
 * dark band (.reassure-icon) so it keeps enough contrast on white.
 */
.check-ok {
    color: #1a7f4b;
    font-weight: 700;
}

/* Who it's for */
.persona-card {
    height: 100%;
    border: 1px solid rgba(11, 20, 55, 0.08);
    border-radius: 1rem;
    background: #fff;
}

.persona-emoji {
    font-size: 1.75rem;
    line-height: 1;
}

/* Reassurance list inside the trust section */
.reassure-item {
    display: flex;
    gap: 0.75rem;
}

.reassure-icon {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(142, 214, 168, 0.18);
    color: #8ed6a8;
    font-weight: 700;
    font-size: 0.9rem;
}

/*
 * FAQ built on native <details>/<summary> so it needs no JavaScript at all –
 * the strict CSP forbids inline scripts and no Bootstrap JS bundle is served.
 */
.faq-group + .faq-group {
    margin-top: 2.5rem;
}

.faq-group-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.faq-item {
    border: 1px solid rgba(11, 20, 55, 0.1);
    border-radius: 0.85rem;
    background: #fff;
    margin-bottom: 0.75rem;
}

.faq-item > summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Hide the native disclosure triangle in both WebKit and the standard property. */
.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::marker {
    content: "";
}

.faq-item > summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--fy-indigo);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

.faq-item[open] > summary::after {
    content: "–";
}

.faq-item > summary:hover {
    color: var(--fy-indigo);
}

.faq-item > summary:focus-visible {
    outline: 2px solid var(--fy-indigo);
    outline-offset: 2px;
    border-radius: 0.85rem;
}

.faq-answer {
    padding: 0 1.25rem 1.15rem;
    color: #3a4256;
    line-height: 1.7;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
    margin-bottom: 0;
}

/* Pricing */
.price-card {
    border: 1px solid rgba(11, 20, 55, 0.1);
    border-radius: 1rem;
}

.price-card.featured {
    border-color: var(--fy-indigo);
    box-shadow: 0 20px 50px -24px rgba(79, 70, 229, 0.5);
}

.price-amount {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Final CTA */
.cta-band {
    background: linear-gradient(90deg, var(--fy-indigo), var(--fy-indigo-2));
    color: #fff;
    border-radius: 1.5rem;
}

.btn-on-dark {
    background: #fff;
    color: var(--fy-indigo);
    font-weight: 600;
    border: none;
}

.btn-on-dark:hover {
    color: var(--fy-indigo);
    filter: brightness(0.96);
}

/* Legal pages (Impressum / Datenschutz) */
.legal-content {
    max-width: 46rem;
}

.legal-content h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.legal-content h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
    color: #3a4256;
    line-height: 1.7;
}

.legal-placeholder {
    background: #fff8e6;
    border: 1px solid #f3d98a;
    border-radius: 0.6rem;
    color: #7a5b00;
}

/* Footer */
.landing-footer {
    background: #0b1437;
    color: #aeb4cf;
}

.landing-footer a {
    color: #cdd2e6;
    text-decoration: none;
}

.landing-footer a:hover {
    color: #fff;
}
