/* ===========================================================================
   Tanpont – publikus oldal stílusa.
   Világos, letisztult, megbízható SaaS-arculat magyar iskolai szoftverhez.
   =========================================================================== */

:root {
    /* Hűvös, enyhén kékes, lágy paletta. */
    --ink: #23303f;          /* lágy hideg sötét (slate) */
    --muted: #647389;        /* hűvös szürke */
    --brand: #2563eb;        /* márkakék */
    --brand-dark: #1d4ed8;
    --brand-tint: #eef4ff;
    --line: #e5eaf1;         /* hűvös világos szegély */
    --bg: #f2f6fc;           /* enyhén kékes háttérsáv */
    --white: #ffffff;
    --ok: #15a34a;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(30, 41, 59, .06);
    --shadow: 0 12px 34px rgba(30, 41, 59, .09);
    --shadow-lg: 0 24px 55px rgba(37, 99, 235, .15);
    --max: 1120px;
    --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Gombok ---- */
.btn {
    display: inline-block; font-weight: 600; font-size: 1rem;
    padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* ---- Fejléc ---- */
header.site {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand .dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), #0ea5e9); display: inline-block; }
header.site nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
header.site nav a:hover { color: var(--ink); background: var(--bg); }
header.site nav a.btn-primary { color: #fff; margin-left: 6px; }
header.site nav a.btn-primary:hover { color: #fff; }

/* ---- Hero ---- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #eef4fd, var(--bg));
    padding: 88px 0 68px; text-align: center;
}
/* Mozgó, lágy gradiens „blobok" – enyhén kékes, visszafogott. */
.hero .blob { position: absolute; border-radius: 50%; filter: blur(75px); opacity: .42; z-index: 0; will-change: transform; }
.hero .blob.b1 { width: 460px; height: 460px; background: #93b4fb; top: -160px; left: -80px; animation: drift1 19s ease-in-out infinite; }
.hero .blob.b2 { width: 400px; height: 400px; background: #7dd3fc; top: -120px; right: -60px; animation: drift2 23s ease-in-out infinite; }
.hero .blob.b3 { width: 380px; height: 380px; background: #bfdbfe; bottom: -180px; left: 40%; animation: drift1 27s ease-in-out infinite reverse; }
.hero .wrap { position: relative; z-index: 1; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,40px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-45px,30px) scale(.9); } }

/* Lebegő termék-mockup: központi „eszköz" + két lebegő infókártya. */
.mockup { position: relative; margin: 44px auto 0; max-width: 760px; }
.mockup .device { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; animation: bob 7s ease-in-out infinite; }
.mockup .device .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mockup .device .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.mockup .screen { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.mockup .side { background: var(--bg); border-radius: 10px; height: 260px; }
.mockup .grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 30px; gap: 6px; }
.mockup .grid span { border-radius: 6px; background: var(--brand-tint); }
.mockup .grid span.a { background: #dbeafe; } .mockup .grid span.b { background: #dcfce7; }
.mockup .grid span.c { background: #fef3c7; } .mockup .grid span.d { background: #ede9fe; }
.mockup .chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); white-space: nowrap; }
.mockup .chip .ok { color: var(--ok); font-weight: 800; margin-right: 6px; }
.mockup .chip.c1 { top: 30px; left: -18px; animation: bob 6s ease-in-out infinite; }
.mockup .chip.c2 { bottom: 40px; right: -14px; animation: bob 5.5s ease-in-out infinite .6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Akadálymentesség: aki kéri, annál megáll a mozgás. */
@media (prefers-reduced-motion: reduce) {
    .hero .blob, .mockup .device, .mockup .chip { animation: none !important; }
}
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 44ch; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Szekciók ---- */
main section { padding: 56px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }

/* ---- Jellemző-kártyák ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }

/* Becsúszás balról, egyesével */
.features.reveal .feature { opacity: 0; transform: translateX(-40px); }
.features.reveal.in .feature { animation: featureSlideIn .55s cubic-bezier(.22,.61,.36,1) forwards; }
.features.reveal.in .feature:nth-child(1) { animation-delay: 0s; }
.features.reveal.in .feature:nth-child(2) { animation-delay: .12s; }
.features.reveal.in .feature:nth-child(3) { animation-delay: .24s; }
.features.reveal.in .feature:nth-child(4) { animation-delay: .36s; }
.features.reveal.in .feature:nth-child(5) { animation-delay: .48s; }
.features.reveal.in .feature:nth-child(6) { animation-delay: .60s; }
@keyframes featureSlideIn { to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
    .features.reveal .feature { opacity: 1; transform: none; animation: none; }
}
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }

/* ---- Ártáblázat ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow-sm); }
.plan.is-highlighted { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.plan .price .per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .price-note { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.plan li { padding-left: 26px; position: relative; color: #334155; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btn { width: 100%; text-align: center; }
.footer-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }

/* ---- Blog ---- */
.post-list { display: grid; gap: 4px; max-width: 760px; margin: 0 auto; }
.post-card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.post-card .date { color: var(--muted); font-size: .88rem; }
.article { max-width: 720px; margin: 0 auto; }
.article .date { color: var(--muted); font-size: .9rem; }
.article img { border-radius: var(--radius); }

/* ---- Űrlap ---- */
.form-card { max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-sm); }
.form-card form { display: grid; gap: 16px; }
.form-card label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea {
    width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .helptext { color: var(--muted); font-size: .85rem; }
.form-card ul.errorlist { margin: 4px 0 0; padding-left: 18px; color: #b91c1c; font-size: .9rem; list-style: none; }
.form-card ul.errorlist li { margin-left: -18px; }

/* Széles, csoportosított űrlap */
.form-wide { max-width: 820px; }
.form-wide form { display: block; }
.fs { border: 0; padding: 0; margin: 0 0 28px; }
.fs legend { display: block; width: 100%; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
    color: var(--ink); padding: 0 0 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.fs .field { margin-bottom: 0; }
/* Egymás alá helyezett mezők, kicsit nagyobb térközzel */
.fs.stack { display: grid; gap: 15px; }
.sub-label { font-weight: 600; font-size: .9rem; color: var(--muted); margin: 4px 0 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.addr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; align-items: end; }
.addr .a-zip { grid-column: span 1; } .addr .a-city { grid-column: span 5; }
.addr .a-street { grid-column: span 3; } .addr .a-type { grid-column: span 2; } .addr .a-num { grid-column: span 1; }
.addr .a-floor { grid-column: span 3; } .addr .a-door { grid-column: span 3; }
@media (max-width: 640px) {
    .grid2 { grid-template-columns: 1fr; }
    .addr { grid-template-columns: 1fr 1fr; }
    .addr > * { grid-column: auto !important; }
}
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.notice-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---- Vélemények ---- */
.section-alt { background: var(--bg); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.05rem; color: #3f4a5a; margin: 0 0 16px; }
.quote .who { font-weight: 700; }
.quote .role { color: var(--muted); font-size: .9rem; }
.quote .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }

/* ---- CTA sáv ---- */
.cta-band { background: linear-gradient(135deg, var(--brand), #0ea5e9); color: #fff; border-radius: 22px; padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 46ch; margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: #f1f5f9; color: var(--brand-dark); }

/* ---- Lábléc ---- */
footer.site { border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .92rem; padding: 40px 0; margin-top: 72px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

/* ---- Reszponzív ---- */
@media (max-width: 640px) {
    header.site .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
    .hero { padding: 56px 0 44px; }
    main section { padding: 40px 0; }
    .cta-band { padding: 32px 22px; }
}
