/* Árajánlat-készítés AI-val (/arajanlat-keszito-ai, 2026-11-04) — a site.css és a probald-ki.css tokenjeire és elemeire épül.
   Saját elemek: a hero mintája (beérkező kérés → ajánlattervezet), az összehasonlító táblázat, az ár- és „kinek éri meg” blokk. */

/* ---- hero: a minta (beérkező kérés → ajánlattervezet) ---- */
.ar-demo { grid-area: form; align-self: center; position: relative; margin: 0; }
.ar-demo-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: hsl(var(--silver)); }
.ar-demo-tag::before { content: ""; width: 18px; height: 1px; background: hsl(var(--silver)); }

.ar-mail { position: relative; z-index: 1; margin-right: 56px; padding: 18px 20px 20px; border-radius: 18px; background: hsla(222, 28%, 14%, .78);
  border: 1px solid hsla(195, 11%, 92%, .13); backdrop-filter: blur(10px); box-shadow: 18px 26px 50px -28px hsla(222, 40%, 2%, .8); }
.ar-mail-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid hsla(195, 11%, 92%, .1);
  font-size: 12.5px; color: hsl(var(--silver)); }
.ar-mail-head b { display: block; color: hsl(var(--silver-3)); font-size: 14px; font-weight: 600; }
.ar-mail-head span { white-space: nowrap; }
.ar-mail p { margin: 0; font-size: 15px; line-height: 1.7; color: hsl(var(--silver-2)); }
.ar-mail mark { color: hsl(var(--silver-3)); border-radius: 3px; padding: 0 2px;
  background: linear-gradient(transparent 58%, hsla(71, 100%, 51%, .32) 58%) no-repeat 0 0 / 100% 100%; }

/* a sorszám mutatja, melyik kiolvasott adatból melyik ajánlatsor lett */
.ar-n { display: inline-grid; place-items: center; width: 17px; height: 17px; margin: 0 1px 0 3px; border-radius: 50%; vertical-align: 2px;
  background: hsl(var(--lime)); color: hsl(var(--raisin)); font-size: 10.5px; font-weight: 700; line-height: 1; }

.ar-quote { position: relative; z-index: 2; margin: -26px 0 0 44px; padding: 20px 20px 16px; border-radius: 16px; background: #fff; color: hsl(var(--raisin));
  box-shadow: 0 2px 6px hsla(222, 40%, 3%, .22), 34px 46px 80px -34px hsla(222, 45%, 2%, .85); }
.ar-quote-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.ar-quote-head b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ar-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: hsl(var(--raisin));
  color: hsl(var(--lime)); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ar-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.ar-qt { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ar-qt th { padding: 0 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: hsl(222 8% 50%);
  text-align: left; border-bottom: 1px solid hsl(222 12% 86%); }
.ar-qt td { padding: 10px 0; border-bottom: 1px solid hsl(222 12% 92%); vertical-align: top; }
.ar-qt th + th, .ar-qt td + td { padding-left: 12px; }
.ar-qt .num { text-align: right; white-space: nowrap; }
.ar-qt td:first-child { line-height: 1.45; }
.ar-src { display: block; margin-top: 3px; font-size: 11.5px; color: hsl(222 8% 50%); }
.ar-qt tfoot td { padding: 6px 0; border-bottom: 0; color: hsl(222 8% 42%); }
.ar-qt tfoot tr:first-child td { padding-top: 12px; }
.ar-qt tfoot .ar-total td { padding-top: 10px; color: hsl(var(--raisin)); font-weight: 700; font-size: 15px; border-top: 1px solid hsl(var(--raisin)); }
.ar-quote-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed hsl(222 12% 84%); font-size: 13px; line-height: 1.5; color: hsl(222 10% 36%); }

.ar-demo figcaption { margin: 14px 0 0 44px; font-size: 13px; line-height: 1.55; color: hsl(var(--silver)); }

.ar-hero-price { margin: 22px 0 0; font-size: 15px; color: hsl(var(--silver)); }
.ar-hero-price b { color: hsl(var(--silver-3)); font-weight: 600; }
.ar-hero-price a { color: hsl(var(--lime)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ar-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* a minta beúszik: előbb a levél, aztán a kiemelések, végül az ajánlattervezet */
@keyframes ar-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ar-mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.ar-mail { animation: ar-in .7s cubic-bezier(.2, .7, .2, 1) .1s both; }
.ar-mail mark { animation: ar-mark .5s ease both; }
.ar-mail mark:nth-of-type(1) { animation-delay: .7s; } .ar-mail mark:nth-of-type(2) { animation-delay: .85s; }
.ar-mail mark:nth-of-type(3) { animation-delay: 1s; } .ar-mail mark:nth-of-type(4) { animation-delay: 1.15s; }
.ar-mail mark:nth-of-type(5) { animation-delay: 1.3s; }
.ar-quote { animation: ar-in .8s cubic-bezier(.2, .7, .2, 1) 1.45s both; }
html.static .ar-mail, html.static .ar-mail mark, html.static .ar-quote { animation: none; }

/* ---- hogyan működik: a „korlátok” lista világos háttéren (a probald-ki.css-ben csak sötét változata van) ---- */
.grid-light .pk-guards { border-top-color: hsl(222 12% 84%); }
.grid-light .pk-guards h3 { color: hsl(var(--raisin)); }
.grid-light .pk-guards li { color: var(--ink-soft); }
.grid-light .pk-guards li b { color: hsl(var(--raisin)); }
.grid-light .pk-guards li::before { background: hsl(var(--raisin)); box-shadow: none; }

/* ---- összehasonlítás: valódi táblázat (a robotok és a felolvasók is táblázatként kapják) ---- */
.ar-cmp { width: 100%; margin-top: 44px; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.ar-cmp thead th { padding: 0 20px 12px 0; border-bottom: 1px solid hsl(var(--raisin)); text-align: left; vertical-align: bottom;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: hsl(222 10% 50%); }
.ar-cmp tbody th, .ar-cmp td { padding: 18px 20px 18px 0; border-bottom: 1px solid hsl(222 12% 84%); text-align: left; vertical-align: top; }
.ar-cmp tbody th { width: 19%; font-weight: 600; }
.ar-cmp td { width: 25%; color: hsl(222 8% 46%); }
.ar-cmp .ar-us { width: 31%; color: hsl(var(--raisin)); }
.ar-cmp thead .ar-us { color: hsl(var(--raisin)); }
.ar-cmp td.ar-us { position: relative; padding-left: 26px; }
.ar-cmp td.ar-us::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 14px; border-radius: 50%; background: hsl(var(--lime));
  box-shadow: inset 0 0 0 1px hsla(222, 25%, 8%, .18); }
.ar-cmp thead .ar-us { padding-left: 26px; }
.ar-cmp-note { margin: 18px 0 0; max-width: 60em; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.ar-cmp-note a { color: hsl(var(--raisin)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- ár ---- */
.ar-price { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: 44px; align-items: start; }
.ar-price-num { margin: 0; font-size: clamp(52px, 6.4vw, 92px); font-weight: 600; letter-spacing: -.04em; line-height: .95; }
.ar-price-num span { background: linear-gradient(transparent 66%, hsla(71, 100%, 51%, .75) 66%, hsla(71, 100%, 51%, .75) 90%, transparent 90%); padding: 0 4px; }
.ar-price-num small { font-size: .32em; letter-spacing: -.01em; font-weight: 600; margin-left: 6px; }
.ar-price-lead { margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: hsl(222 15% 22%); max-width: 32em; }
.ar-price-side h3 { margin: 0 0 14px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ar-price-side p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.ar-price-side p b { color: hsl(var(--raisin)); }
.ar-dash { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ar-dash li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.55; color: hsl(222 15% 22%); }
.ar-dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; border-radius: 2px; background: hsl(var(--raisin)); }
.ar-price-side .pk-fine { margin-top: 18px; }

/* ---- kinek éri meg ---- */
.ar-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 44px; }
.ar-fit h3 { margin: 0 0 16px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ar-fit .ar-dash { margin: 0; }
.ar-fit-yes li::before { top: .38em; left: 1px; width: 12px; height: 7px; border: solid hsl(var(--raisin)); border-width: 0 0 2px 2px; border-radius: 0;
  background: none; transform: rotate(-45deg); }
.ar-fit-ex { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid hsl(222 12% 84%); font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); max-width: 62em; }
.ar-fit-ex b { color: hsl(var(--raisin)); }

.ar-hero-ctas a:focus-visible, .ar-hero-price a:focus-visible, .ar-price a:focus-visible, .ar-cmp-note a:focus-visible {
  outline: 3px solid hsl(var(--lime)); outline-offset: 3px; border-radius: 10px; }
#hogyan, #osszevetes, #ar, #kinek, #felmeres, #gyik { scroll-margin-top: calc(var(--nav-h) + 16px); }

@media (max-width: 1000px) {
  .ar-demo { margin-top: 8px; }
  .ar-price, .ar-fit { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .ar-mail { margin-right: 18px; }
  .ar-quote { margin: -18px 0 0 14px; padding: 16px 14px 12px; }
  .ar-demo figcaption { margin-left: 14px; }
  .ar-qt { font-size: 12.5px; }
  .ar-qt th + th, .ar-qt td + td { padding-left: 8px; }
  .ar-cmp tbody th, .ar-cmp td, .ar-cmp .ar-us { width: auto; }
  /* a táblázat telefonon kártyasorokká bomlik; a cella elé a fejléc kerül */
  .ar-cmp, .ar-cmp tbody, .ar-cmp tr, .ar-cmp th, .ar-cmp td { display: block; width: auto; }
  .ar-cmp thead { display: none; }
  .ar-cmp tr { padding: 18px 0; border-bottom: 1px solid hsl(222 12% 84%); }
  .ar-cmp tbody th, .ar-cmp td { padding: 0; border: 0; }
  .ar-cmp tbody th { margin-bottom: 8px; font-size: 16px; }
  .ar-cmp td { margin-top: 6px; }
  .ar-cmp td::before { content: attr(data-label) ": "; font-weight: 600; color: hsl(222 15% 30%); }
  .ar-cmp td.ar-us { padding-left: 24px; }
  .ar-cmp td.ar-us::before { content: ""; top: 4px; }
  .ar-cmp td.ar-us .ar-us-label { font-weight: 600; }
}
.ar-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 721px) { .ar-us-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) {
  .ar-mail, .ar-mail mark, .ar-quote { animation: none; }
}
