/*
 * Új főoldal (redesign 2. csomag) — a base.css-re épül, csak a főoldal szekciói.
 * Terv: #fooldal képernyő.
 */

.home-sec { padding-top: 88px; }
.home-sec-sm { padding-top: 64px; }
@media (max-width: 760px) {
    .home-sec { padding-top: 56px; }
    .home-sec-sm { padding-top: 44px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; gap: var(--gutter); padding-top: 72px; padding-bottom: 64px; }
.hero-text { display: flex; flex-direction: column; gap: 26px; }
.hero-title { margin: 0; text-wrap: pretty; }
.hero-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text); max-width: 520px; text-wrap: pretty; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--text-sm); color: var(--text); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--primary); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 32px; padding-top: 10px; }
.hero-stats .stat-value { font-size: 22px; }
.hero-media { position: relative; height: min(460px, 62vw); min-height: 280px; border-radius: 150px 28px 28px 28px; overflow: hidden; background: var(--surface-soft); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero-media img.is-active { opacity: 1; }
/* a terv fehér, kanyargós sávja a képek fölött; a pontok és a kártya fölötte maradnak (DOM-sorrend) */
.hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-dots { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; background: rgba(255, 255, 255, .85); border-radius: var(--radius-pill); padding: 8px 12px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--sky); cursor: pointer; transition: width var(--ease), background var(--ease); }
.hero-dots button.is-active { width: 22px; background: var(--primary); }
.hero-badge { position: absolute; left: 28px; bottom: 28px; background: #fff; border-radius: var(--radius-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 16px 40px rgba(var(--navy-rgb), .16); }
.hero-badge span { font-size: 13px; color: var(--muted); }
.hero-badge strong { font-size: 16px; color: var(--ink); }
@media (max-width: 760px) {
    /* a terv mobilon a hero-szakaszt 16 px-es margóval rajzolja (a többit 20-szal) */
    .hero { padding-top: 28px; padding-bottom: 36px; gap: 28px; margin-left: -4px; margin-right: -4px; }
    .hero-text { gap: 20px; }
    .hero-trust { flex-wrap: nowrap; overflow-x: auto; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
    /* a hero 4 px-szel szélesebb (16 px-es margó): a kifutó sorok ehhez igazodnak, különben túlcsordulnak */
    .hero .h-scroll, .hero .hero-trust { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
    .hero-trust span { white-space: nowrap; flex: none; }
    .hero-stats { flex-wrap: nowrap; overflow-x: auto; gap: 24px; }
    .hero-badge { left: 16px; bottom: 16px; padding: 12px 16px; }
    .hero-dots { right: 16px; bottom: auto; top: 16px; }
}

/* ── Fő kategóriák sáv ───────────────────────────────────────────────────────────────────── */
.catstrip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.catstrip::-webkit-scrollbar { display: none; }
.catstrip a { flex: none; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 22px 7px 7px; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; transition: border-color var(--ease), box-shadow var(--ease); }
.catstrip a:hover { color: var(--ink); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.catstrip-img { width: 44px; height: 44px; border-radius: var(--radius-pill); overflow: hidden; flex: none; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-weight: 700; }
.catstrip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .catstrip { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; } }

/* ── Hónap terméke ───────────────────────────────────────────────────────────────────────── */
.feature { border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.feature-media { position: relative; min-height: 320px; background: var(--surface-soft); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media .badge-lime { position: absolute; left: 24px; top: 24px; padding: 8px 18px; font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.feature-body { padding: clamp(28px, 3.5vw, 52px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.feature-body h2 { margin: 0; }
.feature-body p { margin: 0; font-size: var(--text-md); line-height: 1.6; color: var(--text); max-width: 440px; text-wrap: pretty; }
.feature-price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.feature-price.is-unit { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.feature-price.is-unit strong { font-size: 32px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }

/* ── Hogyan rendelsz ─────────────────────────────────────────────────────────────────────── */
.steps { background: var(--surface-soft); border-radius: var(--radius-xl); padding: 52px clamp(20px, 3vw, 48px); }
.steps h2 { margin-bottom: 8px; }
.steps > p { margin: 0 0 32px; font-size: var(--text-md); line-height: normal; color: var(--text); }
/* a terv alcímei (pl. TikTok-szakasz) 16 px, sormagasság nélkül */
.home-sec .sec-head p { font-size: 16px; line-height: normal; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-icon { width: 52px; height: 52px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; color: #fff; }
.step-icon.c1 { background: var(--primary); }
.step-icon.c2 { background: #6464dc; }
.step-icon.c3 { background: var(--lime); color: var(--ink); }
.step-icon.c4 { background: var(--navy); }
.step-num { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-top: 8px; }
.step-title { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: -4px; }
.step-text { font-size: 15px; line-height: 1.6; color: var(--text); }
@media (max-width: 760px) { .steps { padding: 32px 16px; border-radius: var(--radius-lg); } }

/* ── Grafika átadása ─────────────────────────────────────────────────────────────────────── */
.handover { position: relative; overflow: hidden; background: var(--navy); border-radius: clamp(48px, 10vw, 150px) 28px 28px 28px; padding: clamp(32px, 5vw, 56px) clamp(22px, 4vw, 48px); }
.handover-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 44px; align-items: start; }
.handover h2 { color: #fff; margin: 0; }
@media (max-width: 760px) { .handover h2 { font-size: 24px; } }
.handover-lead { margin: 0; font-size: var(--text-lg); line-height: 1.65; color: var(--sky); max-width: 460px; }
.handover-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 8px; }
.handover-tile { padding: 22px; display: flex; flex-direction: column; gap: 4px; transition: transform var(--ease); }
.handover-tile:hover { transform: translateY(-4px); }
.handover-tile strong { font-size: 16px; font-weight: 600; }
.handover-tile span { font-size: var(--text-sm); }
.handover-tile.t1 { background: var(--primary); color: #fff; border-radius: 70px 20px 20px 20px; }
.handover-tile.t2 { background: #6464dc; color: #fff; border-radius: 20px 70px 20px 20px; }
.handover-tile.t3 { background: #f8dbeb; color: #5f0f2b; border-radius: 20px 20px 20px 70px; }
.handover-tile.t4 { background: var(--lime); color: var(--ink); border-radius: 20px 20px 70px 20px; }
.handover-box { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.handover-box-title { font-size: 20px; font-weight: 600; color: #fff; }
.handover-label { font-size: 13px; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.handover-formats { display: flex; gap: 8px; flex-wrap: wrap; }
.handover-formats span { font-family: var(--font-mono); font-size: 13px; color: #fff; background: rgba(255, 255, 255, .12); border-radius: var(--radius-pill); padding: 6px 14px; }
.handover-formats span:first-child { background: var(--lime); color: var(--navy); }
.handover-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 16px; }
.handover-specs strong { display: block; font-size: 26px; font-weight: 700; color: var(--lime); }
.handover-specs span { font-size: 13px; color: var(--sky); }
.handover-box a { color: #fff; font-size: 15px; font-weight: 600; }
.handover-box a:hover { color: var(--lime); }
.handover-curve { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }

/* ── Bizalom ─────────────────────────────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 44px; align-items: center; }
.trust h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.03em; max-width: 520px; margin: 0; }
.trust-text { display: flex; flex-direction: column; gap: 22px; }
.trust-text p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 480px; }
.trust-numbers { display: flex; gap: 44px; flex-wrap: wrap; padding-top: 6px; }
.trust-numbers strong { display: block; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.trust-numbers span { display: block; font-size: 15px; color: var(--text); margin-top: 6px; }
.trust-media { height: min(440px, 60vw); min-height: 260px; border-radius: 150px 28px 28px 28px; overflow: hidden; }
.trust-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px 40px; margin-top: 36px; }
.trust-facts div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.trust-facts strong { font-size: 18px; font-weight: 700; color: var(--ink); }
.trust-facts span { font-size: 14px; color: var(--text); }
/* A terv két képsávja a tények alatt: 260 px magas, aszimmetrikus sarkok (terv-összevetés 2026-11-04). */
.trust-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 36px; }
.trust-gallery img { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: 24px 24px 24px 110px; background: var(--surface-soft); }
.trust-gallery img:nth-child(2) { border-radius: 24px 110px 24px 24px; }

/* ── Visszatérő vásárlók ─────────────────────────────────────────────────────────────────── */
.returning { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; }
.returning h2 { font-size: 30px; margin: 0; }
.returning-text { display: flex; flex-direction: column; gap: 16px; }
.returning-text p { margin: 0; font-size: var(--text-md); line-height: 1.6; color: var(--text); }
.track { background: var(--surface-soft); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.track-head strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.track-head span { font-size: 13px; color: var(--muted); }
.track-bar { display: flex; align-items: center; }
.track-bar i { width: 12px; height: 12px; border-radius: var(--radius-pill); background: var(--sky); flex: none; }
.track-bar b { flex: 1; height: 3px; background: var(--sky); }
.track-bar .on { background: var(--primary); }
.track-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--text); }
.track-steps span:nth-child(2) { text-align: center; }
.track-steps span:last-child { text-align: right; }
.track-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.track-foot strong { color: var(--primary-dark); font-weight: 600; }
@media (max-width: 760px) { .returning { padding: 28px 18px; gap: 28px; } }

/* ── Vélemények ──────────────────────────────────────────────────────────────────────────── */
.rating { display: flex; align-items: center; gap: 12px; color: inherit; }
.rating strong { font-size: 30px; font-weight: 700; color: var(--ink); }
.rating span { font-size: 14.5px; color: var(--text); line-height: 1.4; }
.rating small { display: block; color: var(--muted); font-size: 14.5px; }

/* ── Munkatársak, blog, TikTok ───────────────────────────────────────────────────────────── */
.team-lead { max-width: 640px; margin-bottom: 28px; }
.team-lead p { margin: 12px 0 0; font-size: var(--text-lg); line-height: 1.6; color: var(--text); }
/* Blog: 4 kártya egy sorban, középszélességen 2 × 2 (mobilon a `.grid-scroll` görgethető sora) */
@media (min-width: 761px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1101px) { .blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* TikTok: a profil beágyazott oldala belül legfeljebb 780 px széles (szélesebb iframe-ben is középen marad).
   Ezért ha a szürke doboz ennél szélesebb, a ui.js a 780 px-es beágyazást arányosan a doboz belső
   szélességére nagyítja (`is-scaled`: transform a keretre, a magasság a burkolóra). Szkript nélkül, és
   780 px alatt a beágyazás a saját méretében, középen. A magasság kezdetben a TikTok saját méretei szerint
   (asztalon 473, keskenyen 424 px), betöltés után a beágyazás üzenete szerint. */
.tiktok-box { display: flex; justify-content: center; padding: clamp(16px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface-soft); }
.tiktok-stage { width: 100%; max-width: 780px; overflow: hidden; border-radius: var(--radius); background: #fff; }
.tiktok-stage.is-scaled { max-width: none; }
.tiktok-frame { display: block; width: 100%; height: 476px; border: 0; background: #fff; }
.tiktok-stage.is-scaled .tiktok-frame { width: 780px; transform-origin: 0 0; }
@media (max-width: 560px) { .tiktok-frame { height: 428px; } }
/* TikTok-kártyák (adminból, redesign 41.; ha vannak, a beágyazás helyett): a terv sora — 210 px széles,
   9:16-os kártyák, a bal felső sarok 60 px-es ívvel, vízszintesen görgetve; ráhúzáskor 6 px-et emelkedik
   (a sor felső belső margója ezért 6 px, hogy az emelt kártya ne vágódjon le). Mobilon a sor a képernyő
   széléig ér, mint a többi görgethető sáv. */
.tiktok-row { display: flex; gap: 16px; overflow-x: auto; margin-top: -6px; padding: 6px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tiktok-card { flex: none; width: 210px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 60px 22px 22px 22px; background: var(--surface-soft); scroll-snap-align: start; transition: transform .25s ease; }
.tiktok-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.tiktok-card:hover { transform: translateY(-6px); }
a.tiktok-card:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (max-width: 760px) {
    .tiktok-row { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .tiktok-row::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tiktok-card { transition: none; } a.tiktok-card:hover { transform: none; } }

/* ── Hírlevél ────────────────────────────────────────────────────────────────────────────── */
.newsletter { background: var(--surface-soft); border-radius: 28px 28px 28px clamp(44px, 9vw, 120px); padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(32px, 5vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.newsletter h2 { font-size: 30px; margin: 0 0 10px; }
.newsletter-text p { margin: 0; font-size: var(--text-md); line-height: 1.6; color: var(--text); max-width: 420px; }
.newsletter .front-form { gap: 12px; }
.newsletter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.newsletter-row .field { flex: 1; min-width: 220px; }
/* Erősebb szelektor: a .front-form input[type=email] általános szabályát kell felülírni */
.newsletter .newsletter-row input.field-input { height: 56px; border-radius: var(--radius-pill); padding: 0 24px; }
.newsletter-row .btn { height: 56px; padding: 0 32px; font-size: 16px; }
.newsletter-done { font-size: var(--text-md); font-weight: 600; color: var(--ink); }
/* mobilon a terv szerint a 30 px-es cím és a természetes szélességű gomb marad */
