/* Neutral primary button colour — replaces Collective's purple (#5C1761) everywhere.
   Scoped to the purple/default/primary buttons only; the black/green/red/orange/white
   button variants keep their own colours. Loaded after the captured CSS, so it wins. */
:root {
  --c-primary: #1e293b;        /* slate-800 */
  --c-primary-hover: #334155;  /* slate-700 */
}

/* Explicit purple variants -> recolour their button colour variables */
.button-primary,
.button-purple {
  --button-bg: var(--c-primary);
  --button-bg-hover: var(--c-primary-hover);
  --button-text: var(--c-primary);
  --button-text-hover: var(--c-primary-hover);
  --button-border: var(--c-primary);
  --button-border-hover: var(--c-primary-hover);
}

/* Default solid .button (no colour variant) falls back to the purple literal — recolour it,
   excluding the non-purple variants so they stay as designed. */
.button:not(.button-secondary):not(.button-black):not(.button-success):not(.button-green):not(.button-red):not(.button-orange):not(.button-white) {
  background-color: var(--c-primary);
}
.button:not(.button-secondary):not(.button-black):not(.button-success):not(.button-green):not(.button-red):not(.button-orange):not(.button-white):hover {
  background-color: var(--c-primary-hover);
}

/* Default outlined buttons (purple border/text) */
.button-outlined:not(.button-secondary):not(.button-black):not(.button-success):not(.button-green):not(.button-red):not(.button-orange):not(.button-white) {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* ---- Kép-alapú logó lockup (mérleg-embléma + "Okoskönyvelőm" felirat, arány 3.26:1) ---- */
.ko-logo-img, .ko-logo-img-header { display: block; height: 65px; width: auto; }
/* a 65px-es logóhoz magasabb fejléc kell, hogy legyen körülötte levegő (eredeti 68/72px) */
header { height: 92px !important; }
header nav > div { min-height: 92px !important; }
#mobile-menu-dialog { margin-top: 92px !important; max-height: calc(100vh - 92px) !important; }

/* ---- "Itt kezdődik a nyugalom" — statikus, 3 lépéses szekció (#how-it-works) ----
   A korábbi változat scroll-vezérelt React-komponens volt; a statikus klónban a jobb
   oldali kép rossz pozícióban ragadt. Ez a szekció JS nélkül is helyesen áll össze. */
.hiw {
  background-color: rgb(217 237 232);   /* green-100 */
  padding: 72px 0 88px;
}
.hiw-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hiw-head { max-width: 760px; margin-bottom: 64px; }
.hiw-title {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #0f1e19;
  margin-bottom: 20px;
}
.hiw-lead {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: #2f4640;
}
.hiw-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 72px; }
.hiw-step { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
/* cikkcakk: a kép mindig a szélesebb oszlopba kerül */
.hiw-step:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.hiw-step:nth-child(even) .hiw-shot { order: -1; }
.hiw-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgb(0 136 102); color: #fff;
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: 20px; line-height: 1; margin-bottom: 20px;
}
.hiw-h3 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.2; color: #0f1e19; margin-bottom: 14px;
}
.hiw-copy p {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; color: #2f4640; max-width: 46ch;
}
.hiw-copy .hiw-cta { margin-top: 28px; }
.hiw-shot { margin: 0; }
.hiw-shot img { display: block; width: 100%; height: auto; }
.hiw-foot { margin-top: 76px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hiw-foot p {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: #0f1e19; max-width: 34ch;
}
/* ---- "Mindent elintézünk helyetted" (#services) — statikus, saját app-képpel ----
   Az eredeti scroll-vezérelt tabos komponens volt hat, angol nyelvű termékképpel; JS nélkül
   csak az első kép ragadt be, jobbra levágva. */
.svc { background-color: rgb(250 249 246); padding: 76px 0 84px; }
.svc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.svc-head { max-width: 720px; margin-bottom: 52px; }
.svc-title {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.01em;
  color: #17150f; margin-bottom: 18px;
}
.svc-lead {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: #46443f;
}
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 44px; margin-bottom: 60px; }
.svc-item { display: flex; align-items: flex-start; gap: 16px; }
.svc-item > div:first-child { flex: 0 0 auto; }
.svc-item h3 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: 20px; line-height: 1.3; color: #17150f; margin-bottom: 2px;
}
.svc-item p {
  font-family: var(--font-mierb-regular), "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.45; color: #56534c;
}
.svc-shot { margin: 0 auto; max-width: 1160px; }
.svc-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }
}
@media (max-width: 640px) {
  .svc { padding: 56px 0 64px; }
  .svc-head { margin-bottom: 36px; }
  .svc-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
  .svc-item p { font-size: 16px; }
}

/* ---- Rólunk oldal: hero, történet, értékek (saját szekciók, idegen fotók nélkül) ---- */
.abt-hero { background: #fff; padding: 72px 0 64px; }
.abt-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.abt-wrap--wide { max-width: 1100px; }
.abt-eyebrow {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  color: rgb(0 136 102); margin-bottom: 16px; display: block;
}
.abt-h1 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.015em;
  color: #17150f; margin-bottom: 22px;
}
.abt-lead {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: #46443f;
}
.abt-story { background-color: rgb(250 249 246); padding: 72px 0 80px; }
.abt-h2 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.14; color: #17150f; margin-bottom: 28px;
}
.abt-story p {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.68; color: #46443f; margin-bottom: 22px;
}
.abt-story p:last-child { margin-bottom: 0; }
.abt-values { background: #fff; padding: 72px 0 80px; }
.abt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.abt-card { border: 1px solid #e6e3dd; border-radius: 14px; padding: 28px; background: #fff; }
.abt-card h3 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: 20px; line-height: 1.3; color: #17150f; margin-bottom: 10px;
}
.abt-card p {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; color: #46443f;
}
@media (max-width: 760px) {
  .abt-hero, .abt-story, .abt-values { padding: 52px 0 56px; }
  .abt-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .abt-story p { font-size: 17px; }
}

/* ---- GYIK: natív <details>, hogy JS nélkül is nyíljon és a válasz a HTML-ben legyen (SEO) ---- */
.faq-list { border-top: 1px solid #e6e3dd; }
.faq-item { border-bottom: 1px solid #e6e3dd; }
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font-family: var(--font-mierb-regular), "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.4; color: #000;
}
@media (min-width: 768px) { .faq-q { font-size: 20px; } }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2px solid #4a4a4a; border-bottom: 2px solid #4a4a4a;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-a { padding: 0 0 24px; max-width: 68ch; }
.faq-a p {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65; color: #46443f;
}
.faq-a a { text-decoration: underline; }

@media (max-width: 900px) {
  .hiw { padding: 56px 0 64px; }
  .hiw-head { margin-bottom: 44px; }
  .hiw-steps { gap: 56px; }
  .hiw-step, .hiw-step:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .hiw-step:nth-child(even) .hiw-shot { order: 0; }
  .hiw-copy p { max-width: none; }
}

/* ---- Jogi oldalak (Adatvédelmi tájékoztató, ÁSZF) — olvasható, egyoszlopos elrendezés ---- */
.legal { background: #fff; padding: 56px 0 88px; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.legal-eyebrow {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  color: rgb(0 136 102); margin-bottom: 14px; display: block;
}
.legal-h1 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.015em;
  color: #17150f; margin-bottom: 14px;
}
.legal-meta {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 15px; color: #7a756c; margin-bottom: 12px;
}
.legal-intro {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.6; color: #46443f;
  padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid #e6e3dd;
}
.legal-note {
  background: rgb(250 249 246); border: 1px solid #e6e3dd; border-radius: 12px;
  padding: 18px 20px; margin: 24px 0 8px;
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.6; color: #56534c;
}
.legal-toc { margin: 32px 0 8px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin: 6px 0; }
.legal-toc a {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 16px; color: #2f4640; text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }
.legal-toc a::before { content: counter(toc) ". "; color: #7a756c; }
.legal-sec { margin-top: 44px; scroll-margin-top: 88px; }
.legal-sec h2 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: #17150f;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #eee7dd;
}
.legal-sec h3 {
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.35; color: #17150f; margin: 26px 0 10px;
}
.legal-sec p, .legal-sec li {
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.7; color: #3c3a32;
}
.legal-sec p { margin: 0 0 14px; }
.legal-sec ul, .legal-sec ol { margin: 0 0 16px; padding-left: 22px; }
.legal-sec li { margin: 6px 0; }
.legal-sec a { color: rgb(0 120 90); text-decoration: underline; }
.legal-sec strong { font-family: var(--font-mierb-demi), "Segoe UI", sans-serif; color: #17150f; font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.legal-table th, .legal-table td {
  border: 1px solid #e6e3dd; padding: 10px 12px; text-align: left; vertical-align: top;
  font-family: var(--font-mierb-book), "Segoe UI", sans-serif; line-height: 1.5; color: #3c3a32;
}
.legal-table th {
  background: rgb(250 249 246);
  font-family: var(--font-mierb-demi), "Segoe UI", sans-serif; color: #17150f; font-weight: 600;
}
.legal-table-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  .legal { padding: 40px 0 64px; }
  .legal-sec { margin-top: 34px; }
}
