:root {
    --navy: #283749;
    --red: #eb0000;
    --red-dark: #c40000;
    --bg: #ffffff;
    --bg-light: #f3f4f7;
    --input-bg: #eff1f4;
    --muted: #5b6474;
    --border-muted: #c5c9d4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--navy);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: inherit;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */

.site-header {
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    text-decoration: none;
}

.brand-sub {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Decorative shapes — restrained, no emoji/iconography */

.blob {
    position: absolute;
    border-radius: 50%;
    background: var(--bg-light);
    z-index: -1;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 4rem;
}

.hero .blob-a {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -100px;
}

.hero .blob-b {
    width: 12px;
    height: 12px;
    background: var(--red);
    top: 60px;
    right: 220px;
    opacity: 0.7;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    color: var(--navy);
}

.hero .lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 46ch;
}

.video-frame {
    aspect-ratio: 4 / 5;
    background: var(--bg-light);
    border: 1px solid var(--border-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
}

.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
}

.video-caption {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* Buttons */

.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: none;
    padding: 1rem 2.25rem;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn:hover {
    background: var(--red-dark);
}

.btn:disabled {
    background: var(--bg-light);
    color: var(--border-muted);
    border: 1px solid var(--border-muted);
    cursor: not-allowed;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Sections */

.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 2rem;
}

/* Benefit list — numbered rows, not icon cards */

.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-list li {
    display: grid;
    grid-template-columns: 5rem 1fr;
    align-items: start;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-muted);
}

.benefit-list li:last-child {
    border-bottom: 1px solid var(--border-muted);
}

.benefit-list .num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--red);
    letter-spacing: -0.02em;
}

/* Testimonials — plain quotes, no star ratings or stock-photo cards */

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 640px;
    margin: 0 auto;
}

.testimonial {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--red);
}

.testimonial p {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0 0 0.5rem;
}

.testimonial cite {
    font-style: normal;
    color: var(--muted);
    font-size: 0.9rem;
}

.benefit-list h3 {
    margin: 0.15rem 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
}

.benefit-list p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted);
}

.cta-band {
    background: var(--navy);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
}

.cta-line {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-align: center;
    max-width: 46ch;
    margin: 0 auto;
}

/* Signup form */

.signup-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
}

.signup-blob-a {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: #fff;
    bottom: -160px;
    left: -100px;
    z-index: 0;
}

.signup {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 2.75rem 3rem;
    box-shadow: 0 24px 48px -16px rgba(40, 55, 73, 0.22);
    border-top: 3px solid var(--red);
}

.signup h2 {
    margin: 0 0 0.5rem;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--navy);
}

.signup .lead {
    color: var(--muted);
    margin: 0 0 2rem;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: none;
    background: var(--input-bg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--navy);
}

.field input::placeholder {
    color: var(--border-muted);
}

.field input:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.field-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.form-error-banner {
    background: var(--bg-light);
    border-left: 3px solid var(--red);
    color: var(--navy);
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.consent-field a {
    color: var(--navy);
    text-decoration: underline;
}

.consent-field input {
    margin-top: 0.25rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--bg-light);
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--muted);
    text-decoration: underline;
}

/* Thank-you page */

.thankyou-header {
    padding: 3rem 0 1rem;
}

.thankyou-header .eyebrow {
    margin-bottom: 0.5rem;
}

.thankyou-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.5rem;
}

.thankyou-header .lead {
    color: var(--muted);
    margin: 0;
}

.video-wrap {
    max-width: 720px;
    margin: 2rem auto 0;
    aspect-ratio: 16 / 9;
    background: var(--navy);
    border: 1px solid var(--border-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5c9d4;
    overflow: hidden;
}

.video-wrap video,
.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrap video {
    object-fit: contain;
    background: var(--navy);
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 720px;
    margin: 1.25rem auto 0;
    padding: 0.9rem 1.25rem;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.scroll-hint-arrow {
    font-size: 1.2rem;
    animation: scroll-hint-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint-arrow {
        animation: none;
    }
}

@media (max-width: 800px) {
    .scroll-hint {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}

/* Videó utáni elágazás */

.branch-section {
    background: var(--bg-light);
}

.branch-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.confirm-email-notice {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-left: 4px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(28, 35, 49, 0.1);
    padding: 2rem 1.75rem;
}

.confirm-email-notice h2 {
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.branch-hint-muted {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
}

.branch-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1.5rem;
}

.branch-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.branch-options[hidden] {
    display: none;
}

.branch-reframe {
    background: #fff;
    border-left: 4px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(28, 35, 49, 0.1);
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1.25rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
}

.branch-guess-input-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

.branch-guess-input {
    width: 100%;
    height: 48px;
    padding: 0 3rem 0 1rem;
    border: 2px solid var(--border-muted);
    border-radius: 10px;
    background: #fff;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--navy);
    text-align: left;
}

.branch-guess-suffix {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 700;
    font-size: 1.05rem;
    pointer-events: none;
}

.branch-guess-input:focus {
    outline: 2px solid var(--red);
    outline-offset: 1px;
    border-color: var(--red);
}

.branch-skip {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-top: 0.25rem;
    color: var(--muted);
    text-decoration: underline;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

.branch-skip:hover {
    color: var(--navy);
}

.branch-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.4rem;
    border: none;
    background: var(--red);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(28, 35, 49, 0.15);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.branch-btn::after {
    content: '\2192';
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    transition: transform 0.15s ease;
}

.branch-btn:hover {
    background: var(--red-dark);
    box-shadow: 0 6px 16px rgba(28, 35, 49, 0.2);
    transform: translateY(-2px);
}

.branch-btn:hover::after {
    transform: translateX(3px);
}

.branch-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(28, 35, 49, 0.15);
}

.branch-result {
    font-size: 1.1rem;
    color: var(--navy);
    padding: 1.5rem 0;
}

/* Simple content page (adatkezelés) */

.content-page h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.content-page ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.content-page p {
    color: var(--muted);
}

/* Süti-hozzájárulás sávja */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--navy);
    color: #ffffff;
    box-shadow: 0 -2px 16px rgba(40, 55, 73, 0.25);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* A két gomb szándékosan teljesen egyforma: a GDPR szerint az elutasítás
   nem lehet nehezebb vagy kevésbé feltűnő, mint az elfogadás. */
.cookie-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--bg-light);
}

.cookie-settings-link {
    color: var(--muted);
    text-decoration: underline;
}

@media (max-width: 800px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero .video-frame {
        aspect-ratio: 16 / 9;
    }

    .signup {
        padding: 2rem 1.5rem;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .cookie-banner-actions {
        gap: 0.6rem;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.7rem 0.5rem;
    }
}

/* A/B/C teszt — a landing oldalon megjelenő videó és a kérdőív-végi űrlap
   (l. includes/ab_test.php). Az "A" variánst nem érinti. */

.hero-grid-video {
    grid-template-columns: 1fr 1fr;
}

.hero-video-wrap {
    margin-top: 0;
    width: 100%;
}

.hero-video-hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
    max-width: 46ch;
}

.branch-signup-form {
    max-width: 420px;
    margin: 1.25rem auto 0;
    text-align: left;
}

.branch-signup-form .field label {
    text-align: left;
}

@media (max-width: 800px) {
    .hero-grid-video {
        grid-template-columns: 1fr;
    }
}
