:root {
    --paper: #f1efe3;
    --paper-alt: #e8e4d2;
    --paper-card: #fbfaf5;
    --ink: #1c2331;
    --ink-soft: #4a5164;
    --line: #d8d3bf;

    /* besocial elsődleges márkaszín (narancs) — dekoratív/brand szerepkörben */
    --rust: #f7931e;
    --rust-tint: #fff5e9;
    --rust-deep: #db7e0f;

    /* "kötelező jelölni" szemantika — mindig piros, a projekt összes többi illusztrációjával konzisztensen */
    --must: #ec4647;
    --must-tint: #fdeaea;
    --must-deep: #a23021;

    --moss: #1e8e4a;
    --moss-tint: #e7f8ed;
    --moss-deep: #14602f;

    --indigo: #5b6472;
    --indigo-tint: #eef1f3;

    --gold: #c96a00;
    --gold-tint: #fff6dc;
    --gold-deep: #8c6a1e;

    --radius: 14px;
    --maxw: 760px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 0.5em 0;
    font-weight: 900;
}

a {
    color: var(--indigo);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}
a:hover {
    color: var(--rust-deep);
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}

strong {
    font-weight: 700;
}

.kicker {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rust-deep);
}

/* ---------- HERO ---------- */
header.hero {
    padding: 64px 0 40px 0;
    position: relative;
    overflow: visible;
}
.hero-inner {
    position: relative;
}
.hero .kicker {
    display: block;
    margin-bottom: 18px;
}

h1.title {
    font-size: clamp(48px, 10vw, 80px);
    letter-spacing: -0.01em;
    margin-bottom: 0.15em;
    position: relative;
    display: inline-block;
    width: 100%;
}

.hero-tag {
    position: absolute;
    top: -12%;
    right: 2%;
    width: 150px;
    height: 88px;
    transform: rotate(9deg);
    filter: drop-shadow(3px 5px 0 rgba(28, 35, 49, 0.18));
}
.hero-tag svg {
    width: 100%;
    height: 100%;
    display: block;
}
.hero-tag .tag-txt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(9deg);
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: #fff;
    text-align: center;
    line-height: 1.35;
    padding-left: 14px;
}

p.lede {
    font-size: 20px;
    color: var(--ink-soft);
    max-width: 56ch;
    margin: 0.4em 0 0 0;
}

.meta-row {
    margin-top: 26px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: var(--ink-soft);
}
.meta-chip {
    border: 1.5px solid var(--ink);
    border-radius: 20px;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- NAV ---------- */
nav.toc {
    margin: 34px 0 0 0;
    padding: 18px 20px;
    background: var(--paper-card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
}
nav.toc .kicker {
    margin-bottom: 10px;
}
nav.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 24px;
}
nav.toc li {
    break-inside: avoid;
    margin-bottom: 7px;
    font-size: 14.5px;
}
nav.toc a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px dotted var(--ink-soft);
}
nav.toc a:hover {
    color: var(--rust-deep);
    border-color: var(--rust-deep);
}
nav.toc .n {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    color: var(--rust-deep);
    font-weight: 700;
    margin-right: 6px;
}

@media (max-width: 520px) {
    nav.toc ol {
        columns: 1;
    }
}

/* ---------- MAIN LAYOUT ---------- */
main {
    padding-bottom: 40px;
}

section {
    padding: 52px 0 8px 0;
    scroll-margin-top: 18px;
}
section.callout-section {
    padding-top: 34px;
}

h2 {
    font-size: clamp(26px, 5vw, 34px);
    margin-bottom: 0.45em;
}
h2 .num {
    display: inline-block;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--rust-deep);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    margin-right: 10px;
    vertical-align: middle;
    transform: translateY(-3px);
}

h3 {
    font-size: 20px;
    margin-top: 1.4em;
}

p {
    margin: 0 0 1.05em 0;
}
ul,
ol {
    margin: 0 0 1.1em 0;
    padding-left: 1.3em;
}
li {
    margin-bottom: 0.4em;
}

/* ---------- CALLOUT / DISCLAIMER ---------- */
.callout {
    background: var(--indigo-tint);
    border-left: 4px solid var(--indigo);
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
    font-size: 15px;
    color: var(--ink);
}
.callout strong {
    color: var(--indigo);
}
.callout.warn {
    background: var(--gold-tint);
    border-color: var(--gold-deep);
}
.callout.warn strong {
    color: var(--gold-deep);
}

/* ---------- DIVIDER ---------- */
.divider {
    border: none;
    border-top: 2px dashed var(--line);
    margin: 52px 0 0 0;
}

/* ---------- RULE GRID (4 basic rules) ---------- */
.rule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}
@media (max-width: 600px) {
    .rule-grid {
        grid-template-columns: 1fr;
    }
}

.rule-card {
    background: var(--paper-card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
}
.rule-card .rn {
    font-family: "Fraunces", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--rust-tint);
    -webkit-text-stroke: 1.5px var(--rust-deep);
    position: absolute;
    top: 10px;
    right: 16px;
    line-height: 1;
}
.rule-card h3 {
    margin-top: 0;
    font-size: 18px;
    padding-right: 34px;
}
.rule-card p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin-bottom: 0.6em;
}
.who-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pill {
    display: inline-block;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 9px 4px 10px;
    border-radius: 4px 10px 10px 4px;
    position: relative;
}
.pill::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}
.pill--provider {
    background: var(--indigo);
    color: #fff;
}
.pill--deployer {
    background: var(--must-deep);
    color: #fff;
}
.pill--relevant {
    background: var(--moss-deep);
    color: #fff;
}
.pill--lowpri {
    background: var(--ink-soft);
    color: #fff;
}

/* ---------- COMPARE (provider vs deployer) ---------- */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 26px 0;
}
@media (max-width: 600px) {
    .compare {
        grid-template-columns: 1fr;
    }
}
.compare-card {
    border-radius: var(--radius);
    padding: 22px;
    border: 1.5px solid var(--line);
}
.compare-card.provider {
    background: var(--indigo-tint);
    border-color: var(--indigo);
}
.compare-card.deployer {
    background: var(--must-tint);
    border-color: var(--must);
}
.compare-card h3 {
    margin-top: 0;
    font-size: 19px;
}
.compare-card.provider h3 {
    color: var(--indigo);
}
.compare-card.deployer h3 {
    color: var(--must-deep);
}
.compare-card ul {
    padding-left: 1.1em;
    font-size: 14.5px;
}
.compare-card .ex {
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--ink-soft);
    font-style: italic;
}

/* ---------- EXAMPLE CARDS (mock social post) ---------- */
.example {
    display: flex;
    gap: 14px;
    background: var(--paper-card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin: 18px 0;
    align-items: flex-start;
}
.example .icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--paper-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--line);
}
.example .icon svg {
    width: 20px;
    height: 20px;
}
.example .body {
    flex: 1 1 auto;
    min-width: 0;
}
.example .body p {
    margin-bottom: 0.5em;
    font-size: 15.5px;
}
.example .body p:last-of-type {
    margin-bottom: 0;
}
.example .label {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink-soft);
    letter-spacing: 0.03em;
    margin-bottom: 4px;
    display: block;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 4px 11px 11px 4px;
    position: relative;
    color: #fff;
}
.tag--must {
    background: var(--must-deep);
}
.tag--free {
    background: var(--moss-deep);
}
.tag--check {
    background: var(--gold-deep);
}
.tag--info {
    background: var(--indigo);
}

/* ---------- STATS / FINES ---------- */
.fine-bars {
    margin: 30px 0;
}
.fine-row {
    margin-bottom: 20px;
}
.fine-row .flabel {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14.5px;
    margin-bottom: 6px;
}
.fine-row .fname {
    font-weight: 600;
}
.fine-row .famt {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 19px;
}
.bar-track {
    height: 16px;
    background: var(--paper-alt);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.bar-fill {
    height: 100%;
    border-radius: 8px 0 0 8px;
}
.fine-row.severe .bar-fill {
    background: var(--must-deep);
    width: 100%;
}
.fine-row.medium .bar-fill {
    background: var(--gold-deep);
    width: 43%;
}
.fine-row.light .bar-fill {
    background: var(--indigo);
    width: 21%;
}
.fine-row .fnote {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 4px;
}

.sme-box {
    background: var(--moss-tint);
    border: 1.5px solid var(--moss);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 15px;
    margin-top: 10px;
}
.sme-box strong {
    color: var(--moss-deep);
}

/* ---------- HOW-TO CARDS ---------- */
.howto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}
.howto-card {
    border: 1.5px solid var(--line);
    background: var(--paper-card);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.howto-card .icon2 {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--rust-deep);
}
.howto-card h3 {
    margin: 0 0 0.25em 0;
    font-size: 16.5px;
}
.howto-card p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- FLOWCHART / QUICK TEST ---------- */
.flow {
    margin: 30px 0 10px 0;
    position: relative;
    padding-left: 26px;
}
.flow::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}
.flow-step {
    position: relative;
    margin-bottom: 22px;
}
.flow-step::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--ink);
}
.flow-q {
    background: var(--paper-card);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15.5px;
}
.flow-outcomes {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.flow-outcome {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.flow-outcome.stop-must {
    background: var(--must-tint);
    color: var(--must-deep);
    border: 1.5px solid var(--must);
}
.flow-outcome.stop-free {
    background: var(--moss-tint);
    color: var(--moss-deep);
    border: 1.5px solid var(--moss);
}
.flow-outcome.stop-neutral {
    background: var(--indigo-tint);
    color: var(--indigo);
    border: 1.5px solid var(--indigo);
}
.flow-outcome.go {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px dashed var(--line);
}

/* ---------- CHECKLIST ---------- */
.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
}
.checklist li:last-child {
    border-bottom: none;
}
.checklist .box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid var(--ink);
    border-radius: 5px;
}

/* ---------- FOOTER ---------- */
footer {
    margin-top: 60px;
    padding: 34px 0 60px 0;
    border-top: 2px solid var(--ink);
}
footer h3 {
    font-size: 16px;
    margin-top: 0;
}
footer ul {
    font-size: 14px;
    padding-left: 1.2em;
}
footer .fine-print {
    margin-top: 26px;
    font-size: 13px;
    color: var(--ink-soft);
    border-top: 1px dashed var(--line);
    padding-top: 18px;
}

section#osszefoglalo .callout {
    font-size: 15.5px;
}

::selection {
    background: var(--rust-tint);
}

.flow-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 14px 0 26px 0;
}
.flow-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}
.flow-legend .dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}

.flow-branch {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 9px;
}
.flow-branch .yn {
    flex: 0 0 auto;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    padding: 5px 0;
    border-radius: 6px;
    background: var(--paper-alt);
    border: 1.5px solid var(--ink);
    min-width: 54px;
    text-align: center;
    margin-top: 1px;
}
.flow-branch .outcome {
    font-size: 14.5px;
    padding-top: 4px;
}
.flow-branch .outcome.cont {
    color: var(--ink-soft);
    font-style: italic;
}
.flow-branch .tag {
    margin-top: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
}
.brand-mark:hover {
    opacity: 0.8;
}
.brand-mark__logo {
    display: block;
    height: 28px;
    width: auto;
}
