/* Public product site (landing, pricing, legal pages). Separate from the app's styles; light and dark themes. */
:root {
    /* Cool navy-grey neutrals (owner decision: navy base); teal stays the accent for buttons and links. */
    --bg: #F5F7FA; --card: #FFFFFF; --text: #0F1B2D; --muted: #4A5568; --line: #DDE3EC;
    --primary: #0F766E; --on-primary: #FFFFFF; --tint: #EAF0F7; --warn-bg: #FFF4E5; --warn: #A14A06;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B1220; --card: #111A2B; --text: #E6ECF5; --muted: #A3B1C6; --line: #22304A;
        --primary: #2DD4BF; --on-primary: #0B1F1E; --tint: #16233A; --warn-bg: #2E2416; --warn: #F0A43A;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
a { color: var(--primary); }
a:focus-visible, .button:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 46rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-header nav a:not(.button) { color: var(--text); text-decoration: none; }

.button { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 600; border: 1px solid var(--primary); }
.button.secondary { background: transparent; color: var(--primary); border-color: var(--line); }
.button.small { padding: 6px 14px; }

main { display: block; }
main > section:last-child:not(.cta-band) { padding-bottom: 48px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 32px 0 12px; }
h2 { font-size: 1.4rem; margin: 40px 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.hero { background: var(--tint); padding: 24px 0 40px; }
.hero h1 { margin-top: 24px; max-width: 46rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: step; }
.ladder li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 5rem 1fr; gap: 12px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.ladder li::before { content: counter(step); color: var(--muted); font-weight: 700; }
.ladder span { color: var(--muted); }
@media (max-width: 520px) { .ladder li { grid-template-columns: 1.6rem 1fr; } .ladder span { grid-column: 2; } }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; }
.card, .plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card p { margin: 0; color: var(--muted); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; margin-top: 24px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--primary); }
.plan h2 { margin: 0 0 8px; }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price span[data-price-usd] { font-size: inherit; font-weight: inherit; color: inherit; }
.alt { color: var(--muted); margin: 0 0 12px; }
.plan ul { padding-left: 20px; flex: 1; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

.legal h2 { font-size: 1.15rem; margin-top: 28px; }
.draft { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 10px 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.disclaimer { color: var(--muted); font-size: 0.82rem; margin: 6px 0; }

.eyebrow { color: var(--muted); font-weight: 600; margin: 24px 0 0; }
.domains { border-collapse: collapse; width: 100%; max-width: 40rem; background: var(--card); }
.domains th, .domains td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.domains td:last-child, .domains th:last-child { text-align: right; width: 6rem; }
.card.example { margin-bottom: 16px; }
.card.example p { color: var(--text); margin: 8px 0; }
.card.example pre { overflow-x: auto; background: var(--tint); padding: 12px; border-radius: 8px; }
.options li { margin: 4px 0; }
.ladder a { color: inherit; }

/* Currency switch on the pricing page (js/currency.js) */
.currency-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.currency-switch span {
    margin-right: 0.35rem;
    color: var(--muted);
}

.currency-switch button {
    font: inherit;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
}

.currency-switch button[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.currency-switch button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Without JavaScript the switch does nothing, so it is hidden and both prices are written out. */
html:not(.js) .currency-switch,
html.js .no-js-only {
    display: none;
}

/* ---- Brand colours used by the landing page (docs/brand.md): the same in light and dark ---- */
:root { --navy-900: #0B1B33; --navy-800: #10284A; --navy-700: #1B3A6B; --teal-900: #134E4A; --teal-800: #115E59; --teal-700: #0F766E; --teal-600: #0D9488; --teal-400: #2DD4BF; --amber: #F59E0B; --ink: #0B1F1E; --on-dark: #E7F2F0; --on-dark-muted: #D3DDEB; }

/* Announcement bar (Product:Announcement) */
.announcement { background: var(--navy-900); color: var(--on-dark); font-size: 0.9rem; text-align: center; padding: 8px 0; }
.announcement a { color: var(--teal-400); font-weight: 600; }

/* ---- Landing page: hero banner ---- */
.hero-banner { position: relative; overflow: hidden; color: #FFFFFF;
    /* Site base: navy (docs/brand.md), with teal and amber as accents. */
    /* A fine dot grid (like nodes in a cluster) over the brand teal; no stock waves. */
    background:
        radial-gradient(rgba(255, 255, 255, 0.10) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
        radial-gradient(ellipse at 85% 15%, rgba(45, 212, 191, 0.18), transparent 55%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    padding: 56px 0 32px; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero-badge { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    color: #FFFFFF; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); }
.hero-banner h1 { margin: 0 0 16px; color: #FFFFFF; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.01em; }
.hero-lead { font-size: 1.15rem; color: #FFFFFF; margin: 0; max-width: 36rem; }
.button.hero-primary { background: var(--teal-400); border-color: var(--teal-400); color: var(--ink); }
.button.hero-primary:hover { background: #5EEAD4; border-color: #5EEAD4; }
.button.hero-secondary { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.55); }
.button.hero-secondary:hover { border-color: #FFFFFF; }
.hero-banner a:focus-visible, .cta-band a:focus-visible { outline-color: var(--teal-400); }
.hero-note { margin: 16px 0 0; font-size: 0.9rem; color: #FFFFFF; }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; }

/* Trust strip */
.trust-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; padding: 14px 16px; margin: 0 auto; }
.trust-strip li { font-size: 0.92rem; color: var(--text); }
.trust-strip li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 8px; }

/* Sections */
.section { padding: 56px 0; }
.wrap.section { padding: 56px 16px; } /* keep the side gutter of .wrap (usability review 6) */
.section h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-lead { color: var(--muted); margin: -4px 0 24px; }
.tinted { background: var(--tint); }

/* Certification path: connected badges */
.cert-path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.cert-path li { position: relative; }
.cert-path li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -12px; width: 12px; height: 2px; background: var(--primary); }
.cert-path a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border-radius: 12px; background: var(--card);
    border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.cert-path a:hover { border-color: var(--primary); }
.cert-path strong { color: var(--primary); font-size: 1.15rem; }
.cert-path span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.step p { margin: 0; color: var(--muted); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 12px; }

/* Pricing teaser */
.price-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.price-teaser article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.price-teaser article.featured { border: 2px solid var(--primary); }
.price-teaser p { margin: 0; color: var(--muted); }
.teaser-price { font-size: 1.8rem; font-weight: 700; color: var(--text) !important; margin: 4px 0 8px !important; }
.teaser-price .per { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* Closing band */
.cta-band { color: #FFFFFF; text-align: center; padding: 56px 0;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0; color: #FFFFFF; }
.cta-band .actions { justify-content: center; }

/* Footer: dark, in columns, with contact */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.site-footer .brand { color: #FFFFFF; }
.footer-brand p { margin: 12px 0 0; font-size: 0.9rem; max-width: 20rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h2 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #FFFFFF; }
.site-footer nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.92rem; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--teal-400); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom p { font-size: 0.8rem; margin: 6px 0; color: var(--on-dark-muted); }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-art { max-width: 480px; margin: 0 auto; }
    .cert-path { grid-template-columns: repeat(3, 1fr); }
    .cert-path li:nth-child(3)::after { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hero-banner { padding-top: 36px; }
    .steps, .price-teaser { grid-template-columns: 1fr; }
    .cert-path { grid-template-columns: 1fr 1fr; }
    .cert-path li::after { display: none; }
}

/* "What you get" cards with an icon */
.cards-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { display: flex; flex-direction: column; gap: 4px; }
.feature-card h3 { margin-top: 8px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
    background: var(--tint); color: var(--primary); }
.card-icon svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 960px) { .cards-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-6 { grid-template-columns: 1fr; } }

/* Pricing: "Best value" on the yearly plan */
.plan .badge { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
    background: var(--amber); color: var(--ink); }

/* Language: the EN/DE switch in the header and the offer of the German page (js/site-language.js). */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.site-header nav .lang-switch a { padding: 2px 10px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.site-header nav .lang-switch a[aria-current="true"] { background: var(--primary); color: var(--on-primary); }
.lang-hint { background: var(--tint); border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.lang-hint[hidden] { display: none; }
.lang-hint .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; flex-wrap: wrap; }
.lang-hint a { color: var(--primary); font-weight: 600; }
.lang-hint button { background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.app-language-note { font-size: 0.9rem; opacity: 0.9; }

/* Cookie page: three text columns (the domain table right-aligns its last column for weights). */
.cookie-table { max-width: none; margin-bottom: 12px; }
.cookie-table td, .cookie-table th { vertical-align: top; }
.cookie-table td:last-child, .cookie-table th:last-child { text-align: left; width: auto; }
.cookie-table code { overflow-wrap: anywhere; }
