/* Khora — másodlagos oldalak (irodák, iroda, kalkulátor, felmérés, jogi, 404) */

/* ---------- Irodák ---------- */
.ag-search { position: relative; max-width: 480px; margin: 8px 0 16px; }
.ag-search .icon { position: absolute; left: 13px; top: 13px; color: var(--bp-text-2); pointer-events: none; }
.ag-search .input { padding-left: 42px; background: var(--bp-surface); }
.ag-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--r-lg); text-decoration: none; min-width: 0; }
.ag-card:hover { border-color: var(--bp-border-strong); }
.ag-card > div { min-width: 0; }
.ag-card h2 { font: 400 24px/1.05 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ag-card p { font-size: 15px; color: var(--bp-text-2); }
.ag-card small { margin-top: 6px; }
.skel-agency { height: 98px; border-radius: var(--r-lg); }

/* ---------- Iroda (PortalAgencyView) ---------- */
.ag-page { display: grid; gap: 16px; }
.ag-head { margin-bottom: 0; }
.ag-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ag-id > div { display: grid; gap: 6px; min-width: 0; }
.ag-id .avatar { width: 72px; height: 72px; flex: none; }
.ag-id .kh-mono { width: 72px; height: 72px; font-size: 52px; }
.ag-id h1.kh-display { font-size: clamp(38px, 6vw, 64px); overflow-wrap: anywhere; }
.ag-sub { margin-top: 8px; }
.ag-desc { font-size: 16px; line-height: 23px; max-width: 760px; }
.ag-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 600 13px/18px var(--font); color: var(--bp-text-2); }
.ag-facts > * { display: inline-flex; align-items: center; gap: 5px; }
.ag-facts a { color: var(--bp-text); }

/* ---------- Hitelkalkulátor ---------- */
.calc-layout { display: grid; gap: 16px; margin-top: 8px; align-items: start; }
@media (min-width: 900px) { .calc-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 24px; } }
.calc-form { display: grid; gap: 20px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--kh-accent); height: 28px; min-width: 0; }
.range-row .input-suffix { width: 112px; flex: none; }
.calc-presets { margin-top: 8px; }
/* eredmény: tinta panel (régi tinta szekció), csont serif összeg, cinóber kamat */
.calc-result { position: sticky; top: calc(var(--header-h) + 16px); background: var(--kh-ink); color: var(--kh-bone); border: 0; --bp-border: var(--kh-line-ink); --kh-eyebrow: var(--kh-stone); }
.calc-result .kh-eyebrow { margin: 0; font: 400 12px/16px var(--font-mono); }
.calc-big { font: 400 clamp(46px, 6vw, 72px)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 10px 0 6px; overflow-wrap: anywhere; color: var(--kh-bone); }
.calc-big small { font: 600 17px var(--font); letter-spacing: 0; color: var(--kh-stone); }
.calc-result .muted { color: #B9B6AE; }
.calc-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: #2A2A2D; margin: 18px 0 10px; }
.calc-bar .p { background: var(--kh-bone); transition: width .3s var(--ease); }
.calc-bar .i { background: var(--kh-signal); transition: width .3s var(--ease); }
.calc-legend { display: flex; gap: 16px; font-size: 13px; color: #B9B6AE; }
.calc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.calc-result .kv { margin-top: 14px; }
.calc-result .kv dt { color: #B9B6AE; }
.calc-result .kv dd { color: var(--kh-bone); }
.calc-disclaimer { font-size: 13px; line-height: 18px; color: var(--kh-stone); margin-top: 14px; }
.calc-result .btn-primary { background: var(--kh-signal); color: var(--kh-ink); }
.calc-result .btn-primary:hover { background: var(--kh-bone); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; border: 0; background: none; padding: 0; }
@media (max-width: 1023px) { #back-wrap { display: none; } }

/* ---------- Felmérés (/app): tinta hős telefon-makettel + A/B/C sorok ---------- */
.app-hero-in { display: grid; gap: 40px; }
.app-phone { justify-self: center; order: 1; } /* telefonon a cím kerül előre, a makett utána */
.app-phone .kh-phone { width: min(240px, 64vw); }
@media (max-width: 899px) { .app-hero { padding-top: 36px; } }
.app-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.app-copy > p:not(.small) { font-size: 17px; line-height: 24px; max-width: 520px; }
.app-copy .small { font-size: 13px; color: var(--kh-stone); }
.app-index { justify-self: stretch; margin-top: 16px; }
@media (min-width: 900px) {
  .app-hero-in { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .app-phone { grid-column: 1 / span 5; order: 0; }
  .app-phone .kh-phone { width: min(300px, 26vw); }
  .app-copy { grid-column: 7 / span 6; }
}
.app-page { display: grid; gap: 16px; padding-top: 48px; max-width: 980px; }
.app-demo-head { display: grid; gap: 10px; margin-bottom: 4px; }
.demo3d { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-tour); overflow: hidden; background: var(--kh-ink); }
.demo3d img { width: 100%; height: 100%; object-fit: cover; }
.demo3d::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .7)); }
.demo-ui { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: grid; gap: 8px; justify-items: start; color: #fff; font-size: 13px; }

/* ---------- Jogi ---------- */
.legal-tabs { margin-bottom: 20px; }
.legal-doc { max-width: 760px; }
.legal-doc .updated { font-size: 13px; color: var(--bp-text-2); margin-bottom: 8px; }
.ph { background: var(--bp-warning-soft); color: var(--bp-warning); border-radius: 4px; padding: 0 4px; font-weight: 600; white-space: nowrap; }

/* ---------- 404: cinóber sáv pont-gömbbel, balra zárt ---------- */
.nf { min-height: min(78vh, 760px); display: grid; align-content: center; }
.nf .container { display: grid; gap: 18px; justify-items: start; }
.nf-code { font: italic 400 clamp(120px, 26vw, 280px)/.8 var(--font-display); letter-spacing: -.03em; display: flex; align-items: center; gap: .04em; }
.nf-code [data-mark] { display: inline-block; width: .62em; height: .62em; margin-top: .1em; }
.nf-code svg { width: 100%; height: 100%; }
.nf-code svg circle:last-child { fill: var(--kh-bone); }
.nf p { font-size: 17px; line-height: 24px; max-width: 460px; font-weight: 500; }
