/* ingatlanOS homepage: page CSS only. Everything here sits inside a visual (the product's own windows,
   cards and boards drawn as live HTML) or sets one --p-h per card group, as the taste-skill system asks.
   The product UI keeps ingatlanOS's own look: white surfaces, navy ink (#1B2B4B), brass/gold state. */

:root {
  --io-navy: #1b2b4b; --io-navy-2: #24365c; --io-ink: #16202f; --io-muted: #5f6878; --io-line: rgb(18 27 46 / .09);
  --io-gold: #c9973a; --io-gold-ink: #6e4c12; --io-gold-tint: #f6ecd8; --io-sage: #e4efe7; --io-sage-ink: #24613f;
  --io-rose: #f8e6e1; --io-rose-ink: #8f3322; --io-sky: #e5ecf6; --io-sky-ink: #23457a;
}

/* ---------- the brand word in the h1 (the page's one coloured word) ---------- */
.h1-brand { color: var(--accent); display: block; }

/* ---------- hero: the lit frame holds the ingatlanOS window and one MobilSign card ---------- */
.hero__proof { font-size: var(--t-small); color: var(--ink); margin-top: var(--s-5); line-height: 1.6; }
.hero__proof b { font-weight: 500; color: var(--ink); }

.iw { background: #fff; color: var(--io-ink); border-radius: 12px; overflow: hidden; font: 400 13px/1.4 var(--font-text);
      box-shadow: 0 0 0 1px rgb(18 27 46 / .08), 0 30px 70px -32px rgb(18 27 46 / .55); }
.iw__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--io-line); color: var(--io-muted); }
.iw__dots { display: flex; gap: 6px; } .iw__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe2e7; }
.iw__crumb b { font-weight: 500; color: var(--io-ink); }
.iw__search { margin-left: auto; margin-right: var(--ly-cut-room, 48px); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; background: #f2f3f5; color: #7a818c; min-width: 150px; }
.iw__body { display: grid; grid-template-columns: 164px minmax(0, 1fr); min-height: 520px; }
.iw__side > span { white-space: nowrap; }
.iw__side { background: var(--io-navy); color: #c5cbd6; padding: 14px 10px; display: grid; align-content: start; gap: 2px; }
.iw__brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; font-size: 14px; padding: 2px 8px 14px; }
.iw__brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--io-gold); }
.iw__nav { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; }
.iw__nav svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.iw__nav em { margin-left: auto; font-style: normal; font-size: 12px; color: #8d97a8; }
.iw__nav.is-on { background: rgb(255 255 255 / .09); color: #fff; font-weight: 500; }
.iw__nav.is-on em { color: var(--io-gold); }
.iw__label { font-size: 12px; color: #8d97a8; padding: 14px 8px 4px; }
.iw__main { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; padding-right: var(--ly-cut-room, 48px); }
.iw__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iw__head h4 { margin: 0; font: 500 17px/1.2 var(--font-text); letter-spacing: -0.01em; color: var(--io-ink); }
.iw__btn { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 7px; background: var(--io-navy); color: #fff; font-weight: 500; }
.iw__tabs { display: flex; gap: 4px; flex-wrap: wrap; } .iw__tabs span { padding: 4px 10px; border-radius: 99px; color: #6b7280; }
.iw__tabs span.is-on { background: #eef0f4; color: var(--io-ink); font-weight: 500; }
.iw__rows { display: grid; border-top: 1px solid var(--io-line); }
.iw__row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--io-line); }
.iw__row small .iw__p { display: inline; font-weight: 500; color: var(--io-ink); font-size: 12px; }
.iw__row b { display: block; font-weight: 500; color: var(--io-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iw__row small { display: block; color: #7a818c; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iw__price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.iw__thumb { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--t, #e9edf3); color: var(--tc, #4a5568); }
.iw__thumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.iw-chip { justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap;
           background: var(--io-sage); color: var(--io-sage-ink); }
.iw-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.iw-chip--gold { background: var(--io-gold-tint); color: var(--io-gold-ink); }
.iw-chip--sky { background: var(--io-sky); color: var(--io-sky-ink); }
.iw-chip--rose { background: var(--io-rose); color: var(--io-rose-ink); }
.iw-chip--plain { background: #eef0f4; color: #4a5260; }

.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 316px; z-index: 2; }
.iw-card { background: #fff; color: var(--io-ink); border-radius: 12px; padding: 14px 16px; font: 400 13px/1.4 var(--font-text);
           box-shadow: 0 0 0 1px rgb(18 27 46 / .08), 0 18px 40px -20px rgb(18 27 46 / .5); }
.iw-card h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.iw-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.iw-card__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #3e4653; border-top: 1px solid var(--io-line); }
.iw-card__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--io-sage); color: var(--io-sage-ink); font-style: normal; font-size: 12px; font-weight: 600; }
.iw-card__line b { font-weight: 500; color: var(--io-ink); }
@media (max-width: 639px) { .iw__body { grid-template-columns: minmax(0, 1fr); } .iw__side { display: none; } .iw__search { display: none; } }

/* ---------- #helyett: the diagram across the wrap, then the five replaced tools set large ---------- */
.helyett-dg { margin-top: var(--s-7); min-height: 300px; position: relative; padding: 0; }
.helyett-dg > .dg { position: absolute; inset: 0; }
.gone { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.gone li { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25;
           letter-spacing: var(--display-tracking); color: var(--ink); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklab, var(--accent) 80%, transparent); }
@media (max-width: 1279px) { .gone li { font-size: var(--t-lead); padding: var(--s-4) 0; } }
@media (max-width: 1023px) { .helyett-dg { min-height: 340px; } }
@media (max-width: 639px) { .helyett-dg { min-height: 300px; } }

/* ---------- #modulok: the app frame (sections-library.md, app-frame) and the six modules ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.io-lead { padding: 18px 22px; display: grid; gap: 14px; font: 400 13px/1.5 var(--font-text); color: var(--io-ink); }
.io-lead__head { display: flex; align-items: center; gap: 12px; }
.io-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--io-sky); color: var(--io-sky-ink); font-weight: 500; font-size: 13px; flex: none; }
.io-lead__head b { display: block; font-size: 15px; font-weight: 500; }
.io-lead__head small { color: var(--io-muted); font-size: 12px; }
.io-lead__head .iw-chip { margin-left: auto; }
.io-box { border: 1px solid var(--io-line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; background: #fff; }
.io-box__top { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.io-box__top svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--io-navy); }
.io-box__top em { margin-left: auto; font-style: normal; color: var(--io-muted); font-size: 12px; font-weight: 400; }
.io-box ul { margin: 0; padding: 0 0 0 16px; color: #3e4653; display: grid; gap: 3px; }
.io-flow { display: flex; align-items: center; gap: 8px; color: var(--io-muted); flex-wrap: wrap; }
.io-flow .arrow { color: #a3a9b3; }
.io-match { display: grid; gap: 6px; }
.io-match div { display: grid; grid-template-columns: minmax(0, 1fr) 46px 64px; gap: 10px; align-items: center; }
.io-match span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.io-bar { height: 6px; border-radius: 99px; background: #eceef2; position: relative; overflow: hidden; }
.io-bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--io-navy); }
.io-match .is-best .io-bar i { background: var(--io-gold); }
.io-match b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.io-draft { color: #3e4653; }
.io-draft mark { background: none; color: inherit; box-shadow: inset 0 -2px 0 var(--io-gold); }

.modules { row-gap: var(--s-7); }
.hub-dg { margin-top: var(--s-2); min-height: 320px; position: relative; padding: 0; }
.hub-dg > .dg { position: absolute; inset: 0; }
.demo-mark { display: flex; align-items: center; gap: var(--s-3); }
.demo-mark img { width: 32px; height: 32px; padding: 6px; border-radius: 8px; background: var(--surface); box-sizing: border-box; }
.module { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.module h3 { font-size: var(--t-card); line-height: 1.3; }
.module p { color: var(--ink); }

/* ---------- #eszkozok: four feature cards, one ground group ---------- */
#eszkozok .panel { --p-h: 300px; }
@media (max-width: 639px) { #eszkozok .panel { --p-h: 200px; } }

/* ---------- #folyamat: the six steps over the kanban board they run on ---------- */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); }
.flow__step { display: grid; gap: var(--s-2); align-content: start; }
.flow__step h3 { font-size: var(--t-card); line-height: 1.25; }
.flow__step p { color: var(--ink); }
.board { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--s-5) 0; border-radius: var(--r-lg); position: relative;
         background: radial-gradient(70% 90% at 15% 0%, color-mix(in oklab, var(--ground-surface, #efe6d4) 75%, white), transparent 70%), var(--ground-bg, #e8dcc6); }
.board__col { display: grid; gap: 10px; align-content: start; padding: 0 12px; position: relative; }
.board__col + .board__col::before { content: ""; position: absolute; left: calc(var(--gutter) / -2); top: 4px; bottom: 4px; width: 1px; background: rgb(18 27 46 / .1); }
.kc { background: #fff; border-radius: 10px; padding: 10px 12px; font: 400 13px/1.4 var(--font-text); color: var(--io-ink); display: grid; gap: 6px;
      box-shadow: 0 0 0 1px rgb(18 27 46 / .07), 0 8px 20px -14px rgb(18 27 46 / .45); }
.kc b { font-weight: 500; }
.kc small { color: var(--io-muted); font-size: 12px; }
.kc .iw-chip { justify-self: start; }
.kc--live { box-shadow: 0 0 0 1.5px var(--io-gold), 0 10px 24px -14px rgb(18 27 46 / .5); }
@media (max-width: 1279px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-6); } .board { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } .board__col:nth-child(4)::before { display: none; } }
@media (max-width: 639px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-5); column-gap: 12px; } }

/* ---------- #bevezetes and #kapcsolat: numbered rows and the split's photograph ---------- */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.steps3 li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.steps3 .n { grid-row: 1 / span 2; font-family: var(--font-mono); font-size: var(--t-small); color: var(--muted); padding-top: 3px; }
.steps3 h3 { font-size: var(--t-card); line-height: 1.3; }
.split-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.split-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- facts: small exact figures under a text block ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); margin: 0; }
.facts > div { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-1); }
.facts dt { font-family: var(--font-display); font-size: var(--t-stat); line-height: 1.05; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); color: var(--ink); }
.facts dd { margin: 0; color: var(--ink); }
.facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts .facts__lead dt { font-family: var(--font-text); font-size: var(--t-label); letter-spacing: 0.01em; font-weight: 500; color: var(--muted); line-height: 1.4; }
@media (max-width: 1023px) { .facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-5); } }
@media (max-width: 639px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; } .facts dt { font-size: 24px; } .facts dd { font-size: 14px; line-height: 1.4; }
  .facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- #integralt and #franchise: the chapter frame ---------- */
.chapter-frame { margin-top: var(--s-7); border-radius: var(--r-lg); overflow: hidden; position: relative; }
#integralt .chapter-frame { height: 330px;
  background: radial-gradient(60% 80% at 80% 0%, color-mix(in oklab, var(--ground-surface, #efe6d4) 80%, white), transparent 70%), var(--ground-bg, #e8dcc6); }
#franchise .chapter-frame { height: 360px; }
#franchise .chapter-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.gen { position: absolute; left: var(--s-7); right: var(--s-7); top: var(--s-7); display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; border-radius: 12px; overflow: hidden;
       font: 400 13px/1.5 var(--font-text); color: var(--io-ink); box-shadow: 0 0 0 1px rgb(18 27 46 / .08), 0 30px 60px -30px rgb(18 27 46 / .5); }
.gen__in { padding: 16px 18px; border-right: 1px solid var(--io-line); display: grid; gap: 10px; align-content: start; background: #fbfaf7; }
.gen__in h5, .gen__out h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.gen__field { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; color: #3e4653; }
.gen__field span:first-child { color: var(--io-muted); }
.gen__langs { display: flex; gap: 6px; }
.gen__langs span { padding: 2px 9px; border-radius: 99px; background: #eef0f4; color: #4a5260; font-size: 12px; }
.gen__langs span.is-on { background: var(--io-navy); color: #fff; }
.gen__out { padding: 16px 20px; display: grid; gap: 10px; align-content: start; }
.gen__top { display: flex; align-items: center; gap: 10px; }
.gen__top .iw-chip { margin-left: auto; }
.gen__out p { margin: 0; color: #2f3744; }
@media (max-width: 1023px) { .gen { grid-template-columns: minmax(0, 1fr); left: var(--s-5); right: var(--s-5); top: var(--s-5); } .gen__in { display: none; } }

/* ---------- #pillerek: the three pictures of the pinned chapters ---------- */
.pc-lit { background: radial-gradient(70% 80% at 20% 10%, color-mix(in oklab, var(--ground-surface, #efe6d4) 80%, white), transparent 70%), var(--ground-bg, #e8dcc6); }
.device { width: 248px; height: 500px; border-radius: 34px; background: #11161f; padding: 9px; box-shadow: 0 30px 60px -30px rgb(18 27 46 / .6); flex: none; }
.device__screen { width: 100%; height: 100%; border-radius: 26px; background: #fff; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; font: 400 12px/1.45 var(--font-text); color: var(--io-ink); }
.device__top { padding: 18px 16px 10px; border-bottom: 1px solid var(--io-line); display: grid; gap: 2px; }
.device__top b { font-size: 14px; font-weight: 500; }
.device__top small { color: var(--io-muted); }
.device__doc { padding: 12px 16px; display: grid; gap: 7px; align-content: start; color: #3e4653; }
.device__doc .ln { height: 6px; border-radius: 3px; background: #eceef2; }
.device__doc .ln.s { width: 70%; }
.device__sig { border: 1px dashed #c8ccd4; border-radius: 10px; height: 72px; display: grid; place-items: center; position: relative; margin-top: 6px; }
.device__sig svg { width: 150px; height: 52px; fill: none; stroke: var(--io-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.device__foot { padding: 12px 16px 18px; display: grid; gap: 6px; }
.device__btn { height: 38px; border-radius: 10px; background: var(--io-navy); color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 13px; }
.pc-card { width: min(440px, 100%); background: #fff; border-radius: 12px; padding: 16px 18px; display: grid; gap: 10px; font: 400 13px/1.5 var(--font-text); color: var(--io-ink);
           box-shadow: 0 0 0 1px rgb(18 27 46 / .08), 0 30px 60px -30px rgb(18 27 46 / .5); }
.pc-card h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.pc-check { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--io-line); color: #3e4653; }
.pc-check i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--io-sage); color: var(--io-sage-ink); font-style: normal; font-size: 12px; font-weight: 600; }
.pc-check small { color: var(--io-muted); font-size: 12px; }
.pc-tabs { display: flex; gap: 6px; }
.pc-tabs span { padding: 3px 10px; border-radius: 99px; background: #eef0f4; color: #4a5260; font-size: 12px; }
.pc-tabs span.is-on { background: var(--io-navy); color: #fff; }
.pc-seo { border: 1px solid var(--io-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.pc-seo b { color: var(--io-sky-ink); font-weight: 500; font-size: 14px; }
.pc-seo small { color: var(--io-sage-ink); font-size: 12px; }
.pc-seo span { color: #4a5260; }

/* ---------- #aggregator: the street photograph with the feed of new private listings ---------- */
.feed-frame { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.feed-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feed { position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6); max-width: 420px; background: #fff; border-radius: 12px; padding: 14px 16px; font: 400 13px/1.45 var(--font-text); color: var(--io-ink);
        box-shadow: 0 0 0 1px rgb(18 27 46 / .08), 0 24px 50px -24px rgb(0 0 0 / .55); display: grid; gap: 2px; }
.feed__head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.feed__head h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.feed__head .iw-chip { margin-left: auto; }
.feed__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--io-line); }
.feed__row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__row small { color: var(--io-muted); font-size: 12px; }
.feed__row .p { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.feed__foot { color: var(--io-muted); font-size: 12px; padding-top: 8px; border-top: 1px solid var(--io-line); }
@media (max-width: 639px) { .feed { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); } .feed__row:nth-of-type(3) { display: none; } }

/* ---------- #valtson: the statement set very large (liquid-type moment) ---------- */
.statement-type { font-size: clamp(44px, 10.4vw, 156px); line-height: .96; letter-spacing: var(--display-tracking-xl); margin-top: var(--s-4); }
.statement-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-6); margin-top: var(--s-8); }
.statement-foot p { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; color: var(--ink); }

/* ---------- #halozat: three cards on the lit ground ---------- */
#halozat .panel { --p-h: 300px; }
@media (max-width: 639px) { #halozat .panel { --p-h: 220px; } }
.split-card { position: absolute; left: 28px; right: 28px; top: 40px; background: #fff; border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; font: 400 13px/1.45 var(--font-text); color: var(--io-ink);
              box-shadow: 0 0 0 1px rgb(18 27 46 / .08), 0 24px 50px -26px rgb(18 27 46 / .5); }
.split-card h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.split-card small { color: var(--io-muted); font-size: 12px; }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; }
.split-bar i { display: block; height: 100%; }
.split-bar i:first-child { width: 50%; background: var(--io-navy); }
.split-bar i:last-child { width: 50%; background: var(--io-gold); }
.split-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-top: 6px; border-top: 1px solid var(--io-line); }
.split-row .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--io-navy); }
.split-row .sw.g { background: var(--io-gold); }
.split-row b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- #demo: the form in a filled panel ---------- */
.form-card { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); }
.form textarea { min-height: 200px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .form-card { padding: var(--s-5); } }

/* ---------- screens per width: the copy is long, so some sections take two screens on smaller screens ---------- */
/* 1024 to 1279: the hero's words get six columns so the h1 keeps three lines; denser panels */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--collage .hero__text { grid-column: 1 / span 6; }
  .hero--collage .hero__art { grid-column: 7 / span 6; }
  .hero--collage h1 { font-size: 46px; }
  .hero--collage .hero__lead { font-size: 17px; line-height: 1.55; }
  #eszkozok .panel { --p-h: 200px; }
  #halozat { --h: 2; }
}
/* the tablet held upright: the six modules two-up, long sections on two screens */
@media (min-width: 640px) and (max-width: 1023px) {
  .modules > .module { grid-column: span 6; }
  #halozat { --h: 2; }
}
/* a phone: the hero is the words and the two buttons (the product window opens in the next sections);
   sections that stack past one screen take exactly two */
@media (max-width: 639px) {
  #eszkozok .panel { --p-h: 150px; }
  #halozat .panel { --p-h: 150px; }
  .app.ui { flex: none; height: 300px; }
  .modules { row-gap: 12px; }
  .group > .hub-dg.fill { flex: 0 0 350px; height: 350px; min-height: 0; }
  .module { gap: 4px; padding-top: 12px; }
  .group > .helyett-dg.fill { flex: 0 0 528px; height: 528px; min-height: 0; }
  .iw__row small { white-space: normal; }
  .flow { row-gap: 12px; }
  .kc { padding: 8px 10px; gap: 4px; }
  .board__col:nth-child(2) .kc + .kc { display: none; }
  .closing__links .footer__col { grid-column: 1 / -1; }
  .board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; padding: 12px 0; margin-top: var(--s-5); }
  .board__col:nth-child(n+3) { display: none; }
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__steps { gap: var(--s-4); }
  [data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit { aspect-ratio: 2.4 / 1 !important; }
  .board__col + .board__col::before { display: none; }
  [data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit { aspect-ratio: 16 / 9; padding: 12px; overflow: hidden; }
  [data-moment="pinned-chapters"] .device { transform: scale(.3); transform-origin: center; margin: -175px 0; }
  [data-moment="pinned-chapters"] .pc-card { transform: scale(.56); transform-origin: center; margin: -60px 0; }
}

/* the narrowest phones (320 to 379): the figures as rows, the label beside the number */
@media (max-width: 379px) {
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-2); }
  .facts > div { grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; column-gap: 12px; padding-top: var(--s-2); }
  .facts--4 > .facts__lead { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- footer contact lines ---------- */
.footer__col address { font-style: normal; display: grid; gap: var(--s-2); }

/* the narrowest phones: the logo and the menu button; the main action stays in the hero and the sheet */
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions { display: none; } .nav:not(.is-open) .nav__toggle { margin-left: auto; } }

/* the hero h1 a step smaller than the collage token, so even a longer h1 keeps three lines; on a phone the
   lead at body size and a shorter window so the whole hero, its picture included, fits the first screen */

@media (max-width: 639px) {
  .hero--collage h1 { font-size: 32px; }
  .hero.hero--collage .hero__lead { font-size: 16px; line-height: 1.45; max-width: none; }
  .hero--collage .hero__art { min-height: 0; flex: 0 0 124px; height: 124px; margin-top: var(--s-5); }
  .hero--collage .hero__proof { margin-top: var(--s-4); }
  .hero--collage .hero__text > .hero__kicker + h1 { margin-top: var(--s-3); }
}

/* a phone: the hero window as two of its rows, whole, on the frame */
@media (max-width: 639px) {
  .hero--collage .iw__bar, .hero--collage .iw__head, .hero--collage .iw__tabs, .hero--collage .iw__row:nth-child(n+3) { display: none; }
  .hero--collage .iw__main { padding: 6px var(--ly-cut-room, 48px) 6px 12px; gap: 0; }
  .hero--collage .iw__row small { display: none; }
  .hero--collage .iw__row b { white-space: normal; line-height: 1.3; }
  .hero--collage .iw__rows { border-top: 0; }
  .hero--collage .iw__row { padding: 6px 2px; }
  .hero--collage .iw__body { min-height: 0; }
  .hero--collage .hero__art > .ly-piece--main { top: 12px; }
}
