:root {
  --ink: #16211d;
  --muted: #68736e;
  --paper: #f4f6f2;
  --card: #ffffff;
  --line: #dfe5df;
  --brand: #e9ff65;
  --brand-dark: #1d3329;
  --good: #137a4f;
  --bad: #b83a3a;
  --won: #4b42c2;
  --shadow: 0 14px 35px rgba(30, 55, 43, .09);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left));
  background: rgba(244, 246, 242, .92); border-bottom: 1px solid rgba(223, 229, 223, .8); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-dark); color: var(--brand); }
.company-name { color: var(--muted); font-size: .9rem; font-weight: 700; text-align: right; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 80px; }
.client-shell { width: min(680px, calc(100% - 28px)); }
.eyebrow { margin: 0 0 8px; color: var(--good); font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.7rem); line-height: .98; letter-spacing: -.06em; }
.lede { margin: 13px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 24px 0 14px; scrollbar-width: none; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; background: var(--card); color: var(--muted); font-weight: 750; cursor: pointer; white-space: nowrap; }
.filter.active { background: var(--brand-dark); color: white; border-color: var(--brand-dark); }

.lead-list { display: grid; gap: 14px; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.lead-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.lead-name { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.lead-time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.service { display: inline-flex; margin: 11px 0 14px; padding: 7px 10px; border-radius: 9px; background: #f0f3ee; color: #415049; font-size: .86rem; font-weight: 750; }
.contact { display: grid; gap: 5px; color: var(--muted); font-size: .93rem; }
.phone { color: var(--ink); font-weight: 800; text-decoration: none; }
.call-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 51px; margin: 17px 0 10px; border-radius: 14px; background: var(--brand-dark); color: white; font-weight: 850; text-decoration: none; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.action { min-height: 52px; border: 0; border-radius: 14px; padding: 9px; font-weight: 850; cursor: pointer; }
.action-good { background: #ddf6e9; color: var(--good); }
.action-bad { background: #fde6e4; color: var(--bad); }
.action-won { grid-column: 1 / -1; background: #e9e7ff; color: var(--won); }
.action:disabled { opacity: .55; cursor: wait; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .83rem; font-weight: 850; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9aa39f; }
.status-qualified::before { background: var(--good); }
.status-unqualified::before { background: var(--bad); }
.status-customer::before { background: var(--won); }

.empty, .error-card { padding: 30px; border: 1px dashed #cdd5cf; border-radius: 18px; text-align: center; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, 120px); opacity: 0; width: min(92%, 440px); padding: 14px 18px; border-radius: 13px; background: var(--ink); color: white; font-weight: 750; text-align: center; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.refresh { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 10px 14px; font-weight: 750; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: .82rem; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.panel-title { margin: 0; padding: 18px 19px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.company-list { display: grid; padding: 7px; }
.company-item { border: 0; border-radius: 12px; background: transparent; padding: 12px; text-align: left; cursor: pointer; }
.company-item.active { background: #eef3ec; }
.company-item strong, .company-item small { display: block; }
.company-item small { margin-top: 3px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: .87rem; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 3px; }
.status-select { border: 1px solid var(--line); border-radius: 9px; background: white; padding: 7px; }
.tracking { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; }
.upload-ok { color: var(--good); font-weight: 750; }
.login-layer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(22, 33, 29, .72); backdrop-filter: blur(8px); }
.login-layer[hidden] { display: none; }
.login-card { width: min(100%, 390px); padding: 25px; border-radius: 22px; background: white; box-shadow: 0 22px 60px rgba(0, 0, 0, .24); }
.login-card h2 { margin: 0 0 7px; font-size: 1.55rem; letter-spacing: -.04em; }
.login-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.field { display: grid; gap: 6px; margin-top: 13px; font-size: .84rem; font-weight: 750; }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; outline: none; }
.field input:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(29, 51, 41, .1); }
.login-submit { width: 100%; min-height: 50px; margin-top: 17px; border: 0; border-radius: 12px; background: var(--brand-dark); color: white; font-weight: 850; cursor: pointer; }
.login-error { min-height: 20px; margin-top: 11px !important; color: var(--bad) !important; font-size: .85rem; }

/* Nyilvános landing oldal */
.landing-page { background: #f5f7f2; }
.landing-topbar { position: relative; background: #f5f7f2; }
.brand-link { color: var(--ink); text-decoration: none; }
.topbar-demo { border-bottom: 2px solid var(--brand-dark); color: var(--brand-dark); font-size: .9rem; font-weight: 850; text-decoration: none; }
.landing-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.landing-hero { padding: clamp(65px, 9vw, 125px) 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: clamp(40px, 7vw, 90px); align-items: center; }
.hero-copy h1 { max-width: 760px; font-size: clamp(3.1rem, 6.5vw, 6.4rem); line-height: .9; }
.hero-lede { max-width: 720px; margin: 26px 0 0; color: #53605a; font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.landing-cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 58px; padding: 0 24px; border-radius: 15px; background: var(--brand-dark); color: white; font-weight: 850; text-decoration: none; box-shadow: 0 14px 28px rgba(29, 51, 41, .16); transition: transform .2s ease, box-shadow .2s ease; }
.landing-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(29, 51, 41, .2); }
.landing-cta span { font-size: 1.35rem; }
.cta-note { color: var(--muted); font-size: .85rem; font-weight: 700; }
.hero-preview { position: relative; padding: 18px; border: 1px solid #dfe7dc; border-radius: 29px; background: #fff; box-shadow: 0 30px 70px rgba(29, 51, 41, .15); transform: rotate(1.5deg); }
.hero-preview::before { content: ''; position: absolute; z-index: -1; inset: 15% -22% -18% 24%; border-radius: 50%; background: var(--brand); filter: blur(2px); opacity: .72; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 3px 4px 16px; color: var(--muted); font-size: .78rem; }
.preview-bar span { width: 8px; height: 8px; border-radius: 50%; background: #dbe1db; }
.preview-bar strong { margin-left: auto; }
.preview-card { padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: #fbfcfa; }
.preview-head { display: flex; justify-content: space-between; gap: 15px; }
.preview-head strong, .preview-head small { display: block; }
.preview-head strong { font-size: 1.15rem; }
.preview-head small, .preview-head > span { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.preview-phone { margin-top: 20px; font-size: .92rem; font-weight: 800; }
.preview-call { margin-top: 13px; padding: 14px; border-radius: 12px; background: var(--brand-dark); color: white; font-weight: 850; text-align: center; }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.preview-actions span { padding: 11px 6px; border-radius: 11px; background: #ddf6e9; color: var(--good); font-size: .76rem; font-weight: 850; text-align: center; }
.preview-actions span:last-child { background: #fde6e4; color: var(--bad); }
.preview-result { display: flex; align-items: center; gap: 12px; margin: 13px 5px 0; padding: 13px; border-radius: 15px; background: #f0f8c9; }
.preview-result > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-dark); color: var(--brand); font-weight: 900; }
.preview-result strong, .preview-result small { display: block; }
.preview-result strong { font-size: .85rem; }
.preview-result small { margin-top: 3px; color: #627052; font-size: .7rem; }
.landing-section { padding: 95px 0; background: white; }
.landing-section h2, .process-section h2, .demo-section h2 { margin: 0; max-width: 760px; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
.section-intro { max-width: 770px; margin: 22px 0 45px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card { min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #f8faf6; }
.benefit-card.featured { background: var(--brand-dark); color: white; }
.benefit-number { color: var(--good); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.benefit-card.featured .benefit-number { color: var(--brand); }
.benefit-card h3 { margin: 72px 0 12px; font-size: 1.45rem; letter-spacing: -.035em; }
.benefit-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.benefit-card.featured p { color: #c8d2cd; }
.process-section { padding: 105px 0; }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 105px); }
.process-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 0 0 30px; }
.process-list li + li { padding-top: 30px; border-top: 1px solid var(--line); }
.process-list li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--brand); font-weight: 900; }
.process-list strong { font-size: 1.14rem; }
.process-list p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.demo-section { padding: 0 0 90px; }
.demo-panel { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: clamp(35px, 6vw, 70px); border-radius: 30px; background: var(--brand-dark); color: white; }
.demo-panel .eyebrow { color: var(--brand); }
.demo-panel p:not(.eyebrow) { max-width: 650px; margin: 18px 0 0; color: #c6d1cc; line-height: 1.6; }
.landing-cta.light { flex: 0 0 auto; background: var(--brand); color: var(--brand-dark); box-shadow: none; }
.landing-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.landing-footer .landing-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.landing-footer p { color: var(--muted); font-size: .85rem; }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .company-list { display: flex; overflow-x: auto; }
  .company-item { min-width: 190px; }
  .hero-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3.1rem, 12vw, 5rem); }
  .hero-preview { width: min(100%, 520px); margin: 10px auto 0; transform: none; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 0; }
  .benefit-card h3 { margin-top: 35px; }
  .demo-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .shell { padding-top: 23px; }
  .lead-card { padding: 17px; border-radius: 18px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .landing-wrap { width: min(100% - 28px, 1160px); }
  .landing-hero { padding: 48px 0 68px; }
  .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .hero-lede { margin-top: 20px; font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .landing-cta { width: 100%; }
  .cta-note { text-align: center; }
  .hero-preview { padding: 12px; border-radius: 23px; }
  .preview-card { padding: 17px; }
  .landing-section, .process-section { padding: 72px 0; }
  .benefit-card { padding: 23px; }
  .demo-section { padding-bottom: 60px; }
  .demo-panel { padding: 31px 22px; border-radius: 23px; }
  .landing-footer .landing-wrap { align-items: flex-start; flex-direction: column; }
}
