/* Automating céges demó: fekete-fehér, tipográfia-vezérelt, sok levegő. Inter saját tárhelyen. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #0a0a0a; --white: #fff; --bg: #fafafa;
  --g100: #f4f4f4; --g200: #e8e8e8; --g300: #d8d8d8; --g500: #6e6e73; --g600: #5c5c61;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --wide: 980px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--black); font: 400 17px/1.55 var(--font); letter-spacing: -0.011em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid rgba(10, 10, 10, .35); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* sáv */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 250, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--g200); }
.bar-in { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--black); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--white); }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.bar-tag { font-size: 13px; color: var(--g500); font-weight: 500; }

/* hős */
.hero { padding-top: clamp(56px, 10vw, 112px); padding-bottom: clamp(40px, 6vw, 72px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--g600); margin-bottom: 18px; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; max-width: 14ch; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--g600); max-width: 40em; margin-top: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.stats div { background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-md); padding: 18px 20px; }
.stats dt { font-size: 13px; color: var(--g500); }
.stats dd { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* szakaszok */
.sec { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--g200); }
.num { font-size: 13px; font-weight: 600; color: var(--g500); font-variant-numeric: tabular-nums; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; margin-top: 8px; }
.sec-lede { font-size: 18px; color: var(--g600); margin-top: 14px; max-width: 42em; }
.h-small { font-size: 15px; font-weight: 600; margin-top: 36px; }
.fine { font-size: 13px; color: var(--g500); margin-top: 14px; }
.muted { color: var(--g600); }

/* chat */
.chat { margin-top: 30px; background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-lg); box-shadow: 0 40px 80px rgba(0, 0, 0, .04); overflow: hidden; }
.msgs { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; max-height: 460px; overflow-y: auto; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.45; animation: pop .35s var(--ease); }
.msg.bot { background: var(--g100); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--black); color: var(--white); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.wait { color: var(--g500); }
.msg .srcs { margin-top: 8px; font-size: 13px; color: var(--g500); display: flex; flex-wrap: wrap; gap: 6px; }
.msg .srcs a { text-decoration: none; border: 1px solid var(--g300); border-radius: 999px; padding: 2px 10px; background: var(--white); }
.msg .srcs a:hover { border-color: var(--black); color: var(--black); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 16px; }
.chip { border: 1px solid var(--g300); background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--black); transform: translateY(-1px); }
.ask { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--g200); background: var(--bg); }
.ask input { flex: 1; min-width: 0; border: 1px solid var(--g300); border-radius: 999px; padding: 12px 18px; background: var(--white); font-size: 16px; }
.ask input:focus { outline: none; border-color: var(--black); }
.ask button, .btn { border: 0; border-radius: 999px; background: var(--black); color: var(--white); font-weight: 600; font-size: 15px; padding: 12px 22px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: transform .2s var(--ease), opacity .2s; }
.ask button:hover, .btn:hover { transform: translateY(-1px); }
.ask button:disabled { opacity: .4; cursor: default; transform: none; }

/* folyamatok */
.procs { display: grid; gap: 16px; margin-top: 32px; }
.proc { background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.proc-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.proc-n { font-size: 13px; font-weight: 600; color: var(--g500); font-variant-numeric: tabular-nums; }
.proc h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.proc p { margin-top: 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--g200); border: 1px solid var(--g200); border-radius: var(--r-md); overflow: hidden; margin-top: 18px; }
.metrics div { background: var(--white); padding: 12px 14px; }
.metrics dt { font-size: 12px; color: var(--g500); }
.metrics dd { font-size: 17px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.basis, .src { font-size: 13px; color: var(--g500); margin-top: 12px; }
.src a { color: var(--g600); }

/* megtérülés */
.big { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; margin-top: 22px; max-width: 26em; }
.roi { width: 100%; border-collapse: collapse; margin-top: 28px; font-variant-numeric: tabular-nums; }
.roi th, .roi td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--g200); font-size: 15px; }
.roi thead th { font-size: 12px; font-weight: 600; color: var(--g500); text-transform: uppercase; letter-spacing: .08em; }
.roi td:not(:first-child), .roi th:not(:first-child) { text-align: right; white-space: nowrap; }
.roi tfoot th, .roi tfoot td { font-weight: 600; border-bottom: 0; }
.list, .steps, .policy { margin-top: 14px; padding-left: 1.2em; display: grid; gap: 8px; color: var(--g600); }
.steps, .policy { color: var(--black); }
.crit { margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); background: var(--g100); }

/* cta + lábléc */
.cta { text-align: left; }
.cta .btn { margin-top: 26px; padding: 15px 28px; font-size: 16px; }
.foot { padding-block: 40px 56px; border-top: 1px solid var(--g200); font-size: 13px; color: var(--g500); display: grid; gap: 8px; }

/* állapot-oldal */
.state { padding-block: clamp(80px, 14vw, 160px); }
.state .btn { margin-top: 28px; }
.dots { display: flex; gap: 8px; margin-top: 34px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--black); animation: blink 1.2s infinite var(--ease); }
.dots span:nth-child(2) { animation-delay: .15s; } .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* igénylő űrlap */
.form { margin-top: 36px; display: grid; gap: 18px; max-width: 640px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--g600); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--g300); border-radius: var(--r-sm); padding: 12px 14px; background: var(--white); font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field .err { color: #9b1c1c; font-size: 13px; margin-top: 4px; min-height: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--g600); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--black); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { margin-top: 28px; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--g200); max-width: 640px; }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msg { max-width: 92%; }
  .row2 { grid-template-columns: 1fr; }
  .roi th, .roi td { padding: 10px 4px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
