/* Styles of the public website. Same colors as the app (app.css). System fonts only, so no font file and no CDN. */

:root {
    --text: #1d2125;
    --muted: #5c6670;
    --border: #dde2e7;
    --background: #f4f6f8;
    --surface: #ffffff;
    --accent: #1f5f99;
    --accent-hover: #174a78;
    --accent-soft: #e8f0f8;
    --accent-text: #ffffff;
    --radius: 8px;
    --content-width: 1080px;
    --text-width: 720px;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

a {
    color: var(--accent);
}

h1 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.2;
}

h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

p {
    margin: 0 0 16px;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
    padding: 12px max(16px, calc((100% - var(--content-width)) / 2));
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

/* Promo banner of an ad campaign (R3:M6), above the header. */
.promo-banner {
    margin: 0;
    padding: 8px 16px;
    color: var(--accent-text);
    background: var(--accent);
    font-weight: 600;
    text-align: center;
}

/* Consent bar of the campaign cookie (R3:M6): both buttons look the same (§ 25 TDDDG, no nudging). */
.consent-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    padding: 12px max(16px, calc((100% - var(--content-width)) / 2));
    border-bottom: 1px solid var(--border);
    background: var(--accent-soft);
}

.consent-bar p {
    flex: 1 1 320px;
    margin: 0;
}

.consent-buttons {
    display: flex;
    gap: 8px;
}

.consent-button {
    min-width: 96px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 600;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    background: var(--surface);
    cursor: pointer;
}

.logo {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.site-nav a,
.site-actions > a:not(.button) {
    color: var(--text);
    text-decoration: none;
}

.site-nav a:hover,
.site-actions > a:not(.button):hover {
    color: var(--accent);
}

.site-nav a[aria-current] {
    color: var(--accent);
    font-weight: 600;
}

.site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-left: auto;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.language-switcher a {
    text-decoration: none;
}

.language-switcher a[aria-current] {
    color: inherit;
    font-weight: 600;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-text);
    background: var(--accent);
}

.button:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.button-secondary {
    color: var(--accent);
    background: var(--surface);
}

.button-secondary:hover {
    color: var(--accent-hover);
    background: var(--accent-soft);
}

.button-small {
    padding: 6px 12px;
    font-size: 15px;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px 16px 56px;
}

.hero {
    max-width: 800px;
    margin-bottom: 48px;
}

.lead {
    font-size: 20px;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: center;
    max-width: none;
    margin-bottom: 40px;
    padding-top: 16px;
}

.hero-split h1 {
    font-size: 48px;
}

.hero-split img {
    justify-self: center;
}

.audience-line {
    margin-top: -4px;
    font-size: 18px;
    font-weight: 600;
}

.cta {
    display: inline-flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 24px;
}

.button-large {
    padding: 16px 32px;
    font-size: 20px;
}

.audience {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlights li {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.highlights li::before {
    content: "✓";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    color: #ffffff;
    background: #1e8449;
}

section {
    margin-bottom: 48px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

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

.date {
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--accent);
}

.price {
    margin-bottom: 4px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.note {
    font-size: 15px;
    color: var(--muted);
}

.prose {
    max-width: var(--text-width);
}

.prose section {
    margin-bottom: 32px;
}

ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.plan {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.plan-pro {
    border: 2px solid var(--accent);
    background: var(--accent-soft);
}

.plan h2 {
    margin: 0 0 4px;
}

.plan-sub {
    margin: 0 0 16px;
    color: var(--muted);
}

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
    color: var(--accent-text);
    background: var(--accent);
}

.checks {
    flex: 1;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 28px;
}

.checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--accent);
}

.plan .button {
    align-self: flex-start;
}

.feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: center;
}

figure {
    margin: 0;
}

figure img {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.comparison {
    width: 100%;
    border: 1px solid var(--border);
    border-collapse: collapse;
    font-size: 16px;
    background: var(--surface);
}

.comparison th,
.comparison td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.comparison .yes {
    font-size: 20px;
    font-weight: 700;
    color: #1a8a3c;
}

.comparison .no {
    color: var(--muted);
}

.comparison .buttons-row th,
.comparison .buttons-row td {
    border-bottom: 0;
}

.comparison thead th {
    background: var(--accent-soft);
}

.hint {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.hint-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    color: var(--accent);
    background: var(--accent-soft);
    cursor: help;
}

.hint-text {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    display: none;
    width: 260px;
    max-width: 70vw;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hint:hover .hint-text,
.hint:focus .hint-text {
    display: block;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px max(16px, calc((100% - var(--content-width)) / 2));
    font-size: 15px;
    color: var(--muted);
    background: var(--surface);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 30px;
    }

    .lead {
        font-size: 18px;
    }

    .hero-split h1 {
        font-size: 34px;
    }

    .site-actions {
        margin-left: 0;
    }

    main {
        padding-top: 24px;
    }

    .comparison {
        font-size: 14px;
    }

    .comparison th,
    .comparison td {
        padding: 8px 6px;
    }
}
