/* endiline-signup — landing page styles
   Brand identity copied from endiline.hu's active theme (main.css + mods.css):
   slate/steel blue primary (#547d99 / #45677E / #245878), neutral greys,
   Arvo display font. Modern, responsive, no framework.
   (Errors stay red — that's a semantic state, not the brand color.) */

:root {
    --blue: #547d99;        /* primary */
    --blue-dark: #45677E;   /* hover / darker */
    --blue-deep: #245878;   /* deepest accent */
    --blue-light: #5f92b0;
    --ink: #2a2f33;
    --ink-soft: #4a4a4a;
    --muted: #787878;
    --line: #dadada;
    --bg: #f0f0f0;
    --card: #ffffff;
    --ok-bg: #e8f5e9;
    --ok-fg: #1e6b34;
    --err-bg: #fdeaea;
    --err-fg: #a01818;
    --radius: 14px;
    --shadow: 0 18px 50px rgba(20, 20, 20, .12);
    --font-display: "Arvo", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Cookie-disabled warning bar ---- */
.cookie-warning {
    background: #b3261e;
    color: #fff;
    padding: 16px 0;
    font-size: 1.02rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.cookie-warning[hidden] { display: none; }
.cookie-warning .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cookie-warning__icon { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.cookie-warning strong { font-weight: 700; }

/* ---- Header ---- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.brand img {
    height: 46px;
    width: auto;
    display: block;
}

/* ---- Hero ---- */
.hero {
    flex: 1;
    padding: 56px 0 72px;
    background:
        radial-gradient(1200px 480px at 100% -10%, rgba(84, 125, 153, .14), transparent 60%),
        var(--bg);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr .95fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--blue-deep);
    background: rgba(84, 125, 153, .12);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero__intro h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    line-height: 1.08;
    margin: 0 0 18px;
    color: var(--ink);
}
.lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 0 26px;
}
.perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.perks li {
    position: relative;
    padding-left: 32px;
    color: var(--ink-soft);
}
.perks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--blue);
}
.perks li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---- Card / form ---- */
.hero__card { width: 100%; }
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 34px 32px 30px;
}
.card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 4px;
}
.card__sub {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .9rem;
}
.req-mark { color: var(--blue-deep); }
.optional { color: var(--muted); font-weight: 400; font-size: .85em; }

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: #fcfcfc;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(84, 125, 153, .18);
}
.field input[aria-invalid="true"] {
    border-color: var(--err-fg);
    background: #fff;
}
.field__error {
    margin: 6px 0 0;
    font-size: .82rem;
    color: var(--err-fg);
    min-height: 0;
}
.field__error:empty { display: none; }

/* Honeypot: hidden from humans, present for bots. */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 1.02rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--blue);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .05s;
    margin-top: 6px;
}
.btn--primary:hover { background: var(--blue-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: not-allowed; }
.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__note {
    margin: 16px 0 0;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ---- Alerts ---- */
.alert {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: .95rem;
    border: 1px solid transparent;
}
.alert--success { background: var(--ok-bg); color: var(--ok-fg); border-color: #bfe3c6; }
.alert--error   { background: var(--err-bg); color: var(--err-fg); border-color: #f3c4c4; }
.alert--info    { background: #eaf1f6; color: var(--blue-deep); border-color: #cfe0ec; }

/* ---- Closed message ---- */
.closed-msg {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 22px 18px;
    margin-bottom: 0;
}

/* ---- Countdown ---- */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10px 0 6px;
}
.countdown__item {
    background: #eef3f7;
    border: 1px solid #d4e2ec;
    border-radius: 12px;
    padding: 16px 6px 10px;
    text-align: center;
    line-height: 1;
}
.countdown__item span {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--blue);
}
.countdown__item small {
    display: block;
    margin-top: 8px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}
.countdown__date {
    margin: 14px 0 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: .9rem;
}

/* ---- Footer ---- */
.site-footer {
    background: #243540;
    color: #cfd8de;
    padding: 28px 0;
    text-align: center;
}
.site-footer__logo { height: 34px; margin-bottom: 10px; opacity: .9; }
.site-footer p { margin: 0; font-size: .85rem; }
.site-footer__links { margin: 0 0 6px !important; }
.site-footer__links a { color: #fff; text-decoration: underline; }
.site-footer__links a:hover { color: var(--blue-light); }

/* ---- Legal / policy page ---- */
.legal {
    flex: 1;
    padding: 48px 0 64px;
    background: var(--bg);
}
.legal__wrap {
    max-width: 820px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 44px;
}
.legal h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin: 0 0 14px;
    color: var(--ink);
}
.legal__lead { color: var(--ink-soft); margin: 0 0 6px; }
.legal__updated { color: var(--muted); font-size: .85rem; margin: 0 0 24px; }
.legal h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--blue-deep);
    margin: 30px 0 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.legal p { color: var(--ink-soft); margin: 0 0 12px; }
.legal ul { color: var(--ink-soft); margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal a:hover { color: var(--blue-dark); }
.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px;
    font-size: .95rem;
}
.legal__table th,
.legal__table td {
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    border: 1px solid var(--line);
}
.legal__table th {
    width: 34%;
    background: #f5f8fa;
    color: var(--ink);
    font-weight: 600;
}
.legal__table td { color: var(--ink-soft); }
.legal__back { margin-top: 26px; }

@media (max-width: 560px) {
    .legal__wrap { padding: 28px 22px; }
    .legal__table th { width: 42%; }
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding: 36px 0 48px; }
}
@media (max-width: 480px) {
    .card { padding: 26px 20px 24px; }
}
