/* AIWEBVSTUP1 (owner 18. 11., mockup #259 „AI dizajnér na webe“) — nový vzhľad AI dizajnéra: krémová + tmavozelená, písmo a tlačidlá
 * webu (tokens.css, .gg-btn). Za vypínačom SITE_AIWEB (lib/aiweb.ts): štýly sa načítajú pri preview aj on, triedy .aiw-* sú len v novom
 * vzhľade. Domov: .aiw-home (lib/home/a-render.ts aiwebHome) · AI stránka: .aiw-intro, .aiw-under, .aiw-next (lib/landing/a-render.ts).
 * ⛔ jednotky okna (vh/vw) — mierka veľkých monitorov (webscale1.test.mjs); farby len tokeny + odtiene z mockupu. */

.aiw-ey { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 var(--s-4); font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--leaf); }
.aiw-ey::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.aiw-ey--sun { color: var(--sun); }
.aiw-ey h1 { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }

/* ---------- domov: tmavozelená karta „Začína to jednou fotkou.“ + 3 kroky ---------- */
.aiw-home { padding: var(--s-7) 0 var(--s-5); }
.aiw-home__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 45px; padding: 48px; border-radius: 34px; background: var(--soil); color: var(--on-dark); }
.aiw-home__t { display: flex; flex-direction: column; justify-content: center; }
.aiw-home h2 { margin: 0 0 var(--s-5); font-size: 56px; line-height: 1.02; letter-spacing: var(--track-head); font-weight: var(--w-head); color: var(--surface); }
.aiw-home__p { margin: 0; max-width: 340px; font-size: 16px; line-height: 1.5; color: var(--on-dark-muted); }
.aiw-home__act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; }
.aiw-home__act .gg-btn svg { flex: none; }
.aiw-tbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 15px; font-weight: 600; color: #d6e7dc; text-decoration: none; }
.aiw-tbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.aiw-home__ph { position: relative; min-height: 400px; border-radius: var(--r-card); overflow: hidden; background: var(--soil-2); }
/* AIWEBDOLADDVA: build balí <img> do <picture style="display:contents"> (lib/img/rewrite.ts) → potomok, nie `> img` (inak obrázok
   v plnej výške 1024×602 natiahol rámik na ~600 px na telefóne) */
.aiw-home__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aiw-glass { position: absolute; z-index: 1; top: 22px; left: 24px; padding: 7px 12px; border-radius: var(--r-pill); background: #0c3229a6; color: #fff; font-size: 12px; font-weight: 650; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.aiw-cap { position: absolute; z-index: 1; left: 15px; right: 15px; bottom: 15px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: #fffdf6f2; border: 1px solid #ffffff80; color: var(--ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.aiw-cap b { display: block; font-size: 15px; line-height: 1.3; color: var(--ink); }
.aiw-cap small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.aiw-cap__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--leaf-mist); color: var(--leaf); }
.aiw-paths { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 0; padding: 0; }
.aiw-paths li { display: flex; align-items: center; gap: 14px; padding-right: 16px; border-right: 1px solid var(--line); }
.aiw-paths li:last-child { border-right: 0; }
.aiw-paths__n { font-size: 28px; font-weight: 500; letter-spacing: -.05em; color: #8fa38c; }
.aiw-paths b { display: block; font-size: 15px; color: var(--ink); }
.aiw-paths p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- AI stránka: krémový úvod (page-intro) ---------- */
.aiw-intro { padding: calc(var(--hdr-h) + var(--s-5)) 0 var(--s-6); background: var(--paper); color: var(--ink); }
.aiw-intro .sp-crumbs ol { margin-bottom: var(--s-6); }
.aiw-intro__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.aiw-title { margin: 0; font-size: 72px; line-height: 1; letter-spacing: var(--track-display); font-weight: var(--w-display); color: var(--ink); }
.aiw-title span { color: var(--leaf); }
.aiw-intro__copy { max-width: 340px; padding-bottom: 6px; }
.aiw-intro__copy > p:first-child { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.aiw-points { display: flex; flex-wrap: wrap; gap: 6px 17px; margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--leaf); }
.aiw-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.aiw-meta b { font-weight: 600; color: var(--ink); }
.aiw-meta a { color: var(--leaf-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aiw-intro .ka-status { margin: 8px 0 0; font-size: 13px; }

/* ---------- AI stránka: riadok pod nástrojom (under-workspace) ---------- */
.aiw-under { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 19px; padding-bottom: 30px; font-size: 14px; color: var(--muted); }
.aiw-under p { margin: 0; }
.aiw-route { display: flex; align-items: center; gap: 14px; }
.aiw-route i { font-style: normal; color: #81927f; }
.aiw-under a { font-weight: 650; color: var(--leaf); text-decoration: none; }
.aiw-under a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- AI stránka: ďalší krok AI architekt + nástroje Studia ---------- */
.aiw-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: 44px; border-radius: 34px; background: var(--soil); color: var(--on-dark); }
.aiw-card__t { display: flex; flex-direction: column; align-items: flex-start; }
.aiw-card h2 { margin: 0 0 var(--s-4); font-size: 44px; line-height: 1.05; letter-spacing: var(--track-head); font-weight: var(--w-head); color: var(--surface); }
.aiw-card__t > p { margin: 0 0 var(--s-6); max-width: 380px; font-size: 16px; line-height: 1.5; color: var(--on-dark-muted); }
.aiw-card__t > .aiw-card__free { margin: 10px 0 0; font-size: 13px; color: #b9d4c5; }
.aiw-card__sh { margin: 0 0 var(--s-4); font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--on-dark-muted); }
/* AIWEBZJEDNOT1: na AI stránke je karta v .ka-svc, kde `.ka-svc p { color: var(--body) }` (0,1,1) prebíjal podnadpis a nadtitulok
   (--body na --soil = 1,5:1, nečitateľné) → silnejší selektor; --on-dark-muted na --soil = 8,0:1, --sun na --soil = 7,5:1 */
.aiw-card .aiw-card__sh { color: var(--on-dark-muted); }
.aiw-card .aiw-ey--sun { color: var(--sun); }
.aiw-feats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.aiw-feats li { display: flex; flex-direction: column; gap: 4px; }
.aiw-feats__im { position: relative; display: block; margin-bottom: 8px; border-radius: 14px; overflow: hidden; aspect-ratio: 8 / 5; background: var(--soil-2); }
.aiw-feats__im img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aiw-feats b { font-size: 15px; color: var(--surface); }
.aiw-feats li > span:last-child { font-size: 13px; line-height: 1.4; color: var(--on-dark-muted); }

@media (max-width: 1100px) {
  .aiw-home__card { padding: 35px; gap: 30px; }
  .aiw-home h2 { font-size: 46px; }
  .aiw-title { font-size: 60px; }
  .aiw-card { padding: 35px; gap: 30px; }
  .aiw-card h2 { font-size: 38px; }
}
@media (max-width: 850px) {
  .aiw-home__card { padding: 30px; gap: 25px; }
  .aiw-home h2 { font-size: 40px; }
  .aiw-home__p { font-size: 15px; }
  .aiw-home__ph { min-height: 390px; }
  .aiw-cap__ic { display: none; }
  .aiw-intro__copy { max-width: 260px; }
  .aiw-title { font-size: 50px; }
  .aiw-card { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .aiw-home { padding: var(--s-6) 0 var(--s-4); }
  .aiw-home__card { display: flex; flex-direction: column; padding: 27px 23px; gap: 25px; border-radius: 25px; }
  .aiw-home h2 { font-size: 40px; }
  .aiw-home__act { margin-top: 24px; gap: 9px; }
  .aiw-home__ph { min-height: 270px; }
  .aiw-glass { top: 15px; left: 15px; font-size: 11px; padding: 5px 10px; }
  .aiw-cap { left: 11px; right: 11px; bottom: 11px; padding: 13px; }
  .aiw-cap b { font-size: 14px; }
  .aiw-cap small { font-size: 12px; }
  .aiw-paths { grid-template-columns: 1fr; gap: 20px; margin: 25px 7px 0; }
  .aiw-paths li { border-right: 0; padding-right: 0; }
  .aiw-paths__n { min-width: 37px; font-size: 25px; }
  .aiw-intro { padding-bottom: var(--s-5); }
  .aiw-intro .sp-crumbs ol { margin-bottom: var(--s-5); }
  .aiw-intro__in { display: block; }
  .aiw-title { font-size: 42px; letter-spacing: -.05em; }
  .aiw-intro__copy { max-width: none; margin-top: 17px; padding: 0; }
  .aiw-intro__copy > p:first-child { font-size: 15px; }
  .aiw-under { display: block; text-align: center; line-height: 1.8; padding-top: 18px; padding-bottom: 23px; }
  .aiw-route { display: none; }
  .aiw-card { padding: 27px 23px; border-radius: 25px; }
  .aiw-card h2 { font-size: 32px; }
  .aiw-card .gg-btn { width: 100%; }
  .aiw-feats { grid-template-columns: 1fr; }
  .aiw-feats li { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
  .aiw-feats__im { grid-row: span 2; margin: 0; }
  /* AIWEBZJEDNOT1: štítok „Záber zo Studia“ na 112 px obrázku pretekal a orezal sa (nowrap) → menší, zalomí sa, nikdy nie širší než obrázok */
  .aiw-feats__im .gg-mtag--corner { left: 5px; bottom: 5px; max-width: calc(100% - 10px); min-height: 0; padding: 3px 7px; gap: 5px; font-size: 10.5px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  .aiw-feats__im .gg-mtag--corner::before { width: 5px; height: 5px; }
}
