/* ==========================================================================
   ait.hu design system — "coral & cream"
   From the design handoff (claude-design-handoff/): cream bg, ink borders,
   coral primary, amber accents, Bricolage Grotesque, hard offset shadows.
   Loads AFTER Bootstrap (which legacy account/legal pages still use) and
   overrides its base look; new marketing pages use only these classes.
   ========================================================================== */

:root {
    --cream: #fdf8f0;
    --ink: #2b2118;
    --coral: #e8603c;
    --coral-deep: #c14e2e;
    --amber: #f4a261;
    --muted: #6b5d4f;
    --faint: #a2937f;
    --coral-tint: #fbe9e2;
    --line: #e5dbc8;
    --divider: #f0e8d8;
    --green: #2e7d4f;
    /* dark sections */
    --dk-muted: #c9bba9;
    --dk-faint: #8a7a66;
    --dk-line: #453a2c;
    --dk-card: rgba(244, 162, 97, .12);
    /* chat widget reads these (chat/widget.html) */
    --signal: #e8603c;
    --signal-deep: #c14e2e;
    /* page rhythm */
    --gutter: clamp(20px, 5vw, 56px);
    --shell: 1280px;
}

/* --- Base (overrides Bootstrap reboot) ------------------------------------ */
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 15px;
}
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-deep); }
h1, h2, h3, h4, h5, h6 { font-weight: 800; }
.mono { font-family: ui-monospace, Menlo, monospace; }

/* Brand-align the Bootstrap components legacy pages still use */
.btn-primary {
    background: var(--coral); border-color: var(--coral);
    border-radius: 100px; font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus { background: var(--coral-deep); border-color: var(--coral-deep); }
.btn-outline-primary { color: var(--coral); border-color: var(--coral); border-radius: 100px; font-weight: 700; }
.btn-outline-primary:hover { background: var(--coral); border-color: var(--coral); }
.btn-outline-secondary, .btn-secondary, .btn-outline-danger { border-radius: 100px; font-weight: 700; }
.card { border-radius: 16px; }
.text-primary { color: var(--coral) !important; }

/* --- Layout ---------------------------------------------------------------- */
.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
.shell-narrow { max-width: 900px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--coral); margin-bottom: 10px; text-transform: uppercase; }
.dark-band .eyebrow { color: var(--amber); }

.h-display { font-size: clamp(34px, 4.5vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; margin: 0 0 16px; }
.h-section { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.lead-muted { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--muted); margin: 0; }

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

/* 5 plan cards: 3 on top (featured Small closes the row) + 2 wider below —
   avoids the orphaned 5th card the plain auto-fit wrap produces. */
.plans-grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
@media (min-width: 900px) {
    .plans-grid-5 { grid-template-columns: repeat(6, 1fr); }
    .plans-grid-5 > :nth-child(-n+3) { grid-column: span 2; }
    .plans-grid-5 > :nth-child(n+4) { grid-column: span 3; }
    /* wider bottom cards use the width: specs in two columns */
    .plans-grid-5 > :nth-child(n+4) .plan-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
}

/* --- Buttons ---------------------------------------------------------------- */
.btn-pill {
    display: inline-block; border-radius: 100px; font-weight: 800; font-size: 15px;
    padding: 13px 26px; text-align: center; cursor: pointer; border: none;
    font-family: inherit; transition: background .15s ease, color .15s ease;
}
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); color: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--coral); color: #fff; }
.btn-outline-ink { background: transparent; border: 3px solid var(--ink); color: var(--ink); padding: 10px 23px; }
.btn-outline-ink:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--ink); color: var(--cream); }

/* --- Nav --------------------------------------------------------------------- */
.nav-new {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; padding: 20px var(--gutter); max-width: var(--shell);
    margin: 0 auto; box-sizing: border-box;
}
.nav-logo { font-weight: 800; font-size: 24px; color: var(--ink); }
.nav-logo:hover { color: var(--ink); }
.nav-logo span { color: var(--coral); }
.nav-links { display: flex; gap: clamp(14px, 2.5vw, 30px); flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--coral); }
.nav-side { display: flex; gap: 12px; align-items: center; }
.nav-login { font-size: 15px; font-weight: 700; color: var(--ink); }
.nav-login:hover { color: var(--coral); }
.nav-cta { background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 700; padding: 12px 24px; border-radius: 100px; transition: background .15s ease, color .15s ease; }
.nav-cta:hover { background: var(--coral); color: #fff; }
.nav-back { font-size: 14px; font-weight: 700; color: var(--muted); }
.nav-back:hover { color: var(--ink); }
.nav-secure { font-size: 13.5px; font-weight: 700; color: var(--faint); }

/* Account dropdown (Bootstrap JS drives it; we restyle) */
.nav-side .dropdown-menu { border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); background: #fff; }
.nav-side .dropdown-item { font-weight: 600; color: var(--ink); }
.nav-side .dropdown-item:hover { background: var(--coral-tint); color: var(--coral-deep); }

/* --- Cards ------------------------------------------------------------------ */
.card-ink { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 30px 28px; }
.card-ink-sm { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 22px 26px; }
.card-title { font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.card-body-text { font-size: 15px; line-height: 1.6; color: var(--muted); }

.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--coral-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; margin-bottom: 16px; }

/* --- Search pill (hero + order) ---------------------------------------------- */
.search-pill { display: flex; background: #fff; border: 3px solid var(--ink); border-radius: 100px; overflow: hidden; }
.search-pill.shadowed { box-shadow: 6px 6px 0 var(--ink); max-width: 540px; }
.search-pill input {
    flex: 1; min-width: 0; padding: 18px 26px; font-size: 16px; border: none; outline: none;
    background: transparent; font-family: inherit; color: var(--ink);
}
.search-pill button { font-weight: 800; font-size: 16px; padding: 18px 30px; border: none; cursor: pointer; font-family: inherit; transition: background .15s ease; }
.search-pill .go-coral { background: var(--coral); color: #fff; }
.search-pill .go-coral:hover { background: var(--coral-deep); }
.search-pill .go-ink { background: var(--ink); color: var(--cream); }
.search-pill .go-ink:hover { background: var(--coral); }
.search-pill.compact input { padding: 14px 22px; font-size: 15.5px; }
.search-pill.compact button { padding: 14px 24px; font-size: 14.5px; }

.check-ok { color: var(--green); font-weight: 700; }
.check-bad { color: var(--coral-deep); font-weight: 700; }
.check-wait { color: var(--faint); font-weight: 700; }

/* --- Hero sticker (home) ------------------------------------------------------ */
.sticker {
    background: var(--coral); border-radius: 24px; padding: 32px; color: #fff;
    transform: rotate(2deg); box-shadow: 8px 8px 0 var(--ink);
    max-width: 360px; width: 100%; box-sizing: border-box;
}
.sticker-row { display: flex; justify-content: space-between; background: rgba(255,255,255,.16); border-radius: 12px; padding: 12px 16px; font-size: 14px; }

.badge-tint { display: inline-flex; font-size: 13px; font-weight: 700; color: var(--coral-deep); background: var(--coral-tint); padding: 6px 14px; border-radius: 100px; }
.badge-green { background: var(--green); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 100px; }

/* --- Dark sections ------------------------------------------------------------- */
.dark-band { background: var(--ink); color: var(--cream); }
.dk-card { background: var(--dk-card); border: 2px solid var(--dk-line); border-radius: 16px; padding: 26px; }
.dk-muted { color: var(--dk-muted); }

/* comparison table (home) */
.cmp { border: 2px solid var(--dk-line); border-radius: 20px; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; padding: 15px 24px; gap: 12px; font-size: 15px; border-top: 1px solid var(--dk-line); align-items: center; }
.cmp-head { font-weight: 800; font-size: 14px; background: var(--dk-card); border-top: none; padding: 16px 24px; }
.cmp .no { text-align: center; color: var(--dk-faint); }
.cmp .yes { text-align: center; color: var(--amber); font-weight: 800; }

/* --- CTA band -------------------------------------------------------------------- */
.cta-band {
    background: var(--coral); border-radius: 24px; padding: clamp(36px, 5vw, 56px); color: #fff;
    display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
    box-shadow: 8px 8px 0 var(--ink);
}
.cta-band .cta-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band .cta-sub { font-size: 16px; opacity: .9; margin-top: 6px; }
.cta-band a { white-space: nowrap; font-size: 16px; padding: 16px 32px; }

/* --- Plan cards -------------------------------------------------------------------- */
.plan-card { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; }
.plan-tagline { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.plan-name { font-weight: 800; font-size: 22px; margin-top: 4px; }
.plan-price { font-size: 34px; font-weight: 800; margin-top: 14px; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--faint); }
.plan-cycle-note { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.plan-specs { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--muted); }
.plan-card .btn-pill { margin-top: auto; font-size: 14.5px; padding: 12px; }
.plan-card.featured { background: var(--amber); box-shadow: 8px 8px 0 var(--ink); }
.plan-card.featured .plan-tagline { color: #6b4a26; }
.plan-card.featured .plan-price small { color: #8a6a3e; }
.plan-card.featured .plan-cycle-note { color: #8a6a3e; }
.plan-card.featured .plan-specs { color: #553c1e; }

/* --- Forms --------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
    border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 15px;
    font-family: inherit; color: var(--ink); background: #fff; outline-color: var(--coral);
}
.field textarea { resize: vertical; }

.form-card { background: #fff; border: 3px solid var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 36px); }
.form-card.shadowed { box-shadow: 8px 8px 0 var(--ink); }

.form-note { background: var(--coral-tint); border: 2px solid var(--coral); border-radius: 14px; padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--coral-deep); }
.info-tint { background: var(--coral-tint); border-radius: 14px; padding: 14px 18px; font-size: 13.5px; line-height: 1.6; color: #8a4a34; }

/* --- Option cards (order: radio/checkbox) ----------------------------------------------- */
.opt-card {
    display: flex; gap: 14px; align-items: flex-start; border: 3px solid var(--line); background: #fff;
    border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
    font-weight: 400; position: relative;
}
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card:has(input:checked) { border-color: var(--coral); background: var(--coral-tint); }
.opt-dot {
    width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; margin-top: 1px;
}
.opt-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.opt-card:has(input:checked) .opt-dot { border-color: var(--coral); }
.opt-card:has(input:checked) .opt-dot::after { background: var(--coral); }
.opt-box {
    width: 22px; height: 22px; border-radius: 7px; border: 3px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
    color: #fff; font-weight: 800; font-size: 13px; margin-top: 1px;
}
.opt-card:has(input:checked) .opt-box { border-color: var(--coral); background: var(--coral); }
.opt-card:has(input:checked) .opt-box::after { content: "✓"; }
.opt-main { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.opt-label { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.opt-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* --- Order summary (dark, sticky) ---------------------------------------------------------- */
.order-summary {
    background: var(--ink); color: var(--cream); border-radius: 24px; padding: clamp(24px, 3vw, 32px);
    box-shadow: 8px 8px 0 var(--amber); position: sticky; top: 24px; min-width: 0;
}
.order-summary .sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.order-summary .sum-divider { border-top: 1px solid var(--dk-line); margin: 6px 0 14px; }
.order-summary .sum-total {
    display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 800;
    background: var(--dk-card); border: 2px solid var(--dk-line); border-radius: 14px; padding: 14px 18px;
}
.order-summary .sum-total .gross { color: var(--amber); font-size: 24px; }
.chip { font-size: 12px; font-weight: 700; background: var(--dk-card); border: 1px solid var(--dk-line); color: var(--dk-muted); border-radius: 100px; padding: 5px 12px; }
.order-step { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.order-step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.order-step .t { font-weight: 800; font-size: 19px; }

/* --- Footer ------------------------------------------------------------------------------------ */
.footer-new { background: var(--ink); color: var(--dk-muted); padding: clamp(36px, 5vw, 56px) var(--gutter) 28px; }
.footer-new .cols { max-width: 1168px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--dk-line); }
.footer-new .col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-new .col-title { font-weight: 800; color: var(--cream); font-size: 13px; letter-spacing: .06em; }
.footer-new a { color: var(--dk-muted); transition: color .15s ease; }
.footer-new a:hover { color: var(--amber); }
.footer-new .brand { font-weight: 800; font-size: 22px; color: var(--cream); }
.footer-new .brand span { color: var(--amber); }
.footer-new .bottom { max-width: 1168px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--dk-faint); }
.footer-slim { background: var(--ink); color: var(--dk-faint); padding: 20px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.footer-slim .brand { font-weight: 800; color: var(--cream); }
.footer-slim .brand span { color: var(--amber); }
.footer-slim a { color: var(--dk-faint); }
.footer-slim a:hover { color: var(--amber); }

/* --- Cookie banner ------------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080;
    background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink);
    padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    max-width: 720px; margin: 0 auto; font-size: 14px;
}
.cookie-banner a { font-weight: 700; }

/* --- Chat launcher (overrides widget's inline styles — body prefix wins specificity) --------------- */
body .aitchat-bubble { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: #fff; }
body .aitchat-panel { border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); }

/* --- Scroll reveal (subtle, one pass; respects reduced motion) -------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
