/* ============================================================
   WebtasticAI — wt-components.css
   Componente folosite pe MAI MULTE pagini: banda de încredere,
   cardurile de portofoliu, prețurile, pașii de lucru, fondatorul,
   FAQ-ul, panoul de CTA final, footerul și utilitarele de proză.
   Depinde de /assets/wt-system.css (tokens + tipografie + ritm).
   ============================================================ */

/* ---- TRUST BAND ---- */
.trust-band { border-block: 1px solid var(--border); background: var(--surface-2); }
.trust-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.4rem; padding-block: 1.4rem; }
.trust-band-item { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }
.trust-band-item svg { width: 20px; height: 20px; color: var(--purple); flex: none; }


/* ---- PRICING ---- */
.price-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-fluid-sm);
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: var(--space-fluid-sm);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-fluid-md);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}
.price-card.featured { border-color: rgba(123, 47, 255, 0.4); box-shadow: var(--glow-brand-soft); }
.price-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.35rem 0.95rem; border-radius: var(--r-pill);
  background: var(--purple); color: #fff;
  font-size: var(--fs-2xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: var(--ls-label);
  box-shadow: var(--glow-brand-soft);
}
.price-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: var(--ls-title); }
.price-sub { color: var(--text-dim); font-size: var(--fs-sm); margin-top: 0.2rem; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin: var(--space-md) 0 0.3rem; }
.price-amount b {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1;
}
.price-amount span { color: var(--text-dim); font-weight: 600; font-size: var(--fs-sm); }
/* Rezervă două rânduri: altfel butoanele celor două carduri
   ajung la înălțimi diferite când o notă e mai lungă. */
.price-note {
  font-size: var(--fs-sm); line-height: var(--lh-tight);
  color: var(--text-dim);
  margin-bottom: var(--space-md);
  min-height: 2.9em;
}
.price-note .save { color: var(--lime-text); font-weight: 800; }
.price-card .btn { margin-top: auto; }

.price-includes {
  max-width: 860px; margin-inline: auto;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--space-fluid-md);
}
.price-includes h3 { font-size: var(--fs-lg); margin-bottom: var(--space-md); }
.incl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xs) var(--space-md);
}
.incl-grid li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: var(--fs-sm); line-height: var(--lh-tight);
  color: var(--text-dim); font-weight: 500;
}
.incl-grid li svg { width: 19px; height: 19px; color: var(--lime); flex: none; margin-top: 0.18em; }

.guarantee {
  display: flex; gap: var(--space-sm); align-items: center;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(123, 47, 255, 0.10), rgba(132, 204, 22, 0.08));
  border: 1px solid var(--border);
}
.guarantee .gic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--purple); flex: none;
}
.guarantee .gic svg { width: 24px; height: 24px; }
.guarantee b { display: block; font-family: var(--font-display); font-size: var(--fs-base); }
.guarantee p { font-size: var(--fs-sm); line-height: var(--lh-tight); color: var(--text-dim); margin: 0; }
.price-tva { text-align: center; font-size: var(--fs-xs); color: var(--text-dimmer); margin-top: var(--space-md); }

@media (max-width: 620px) { .price-duo, .incl-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .price-note { min-height: 0; } }

/* ---- PROCESS ---- */
.process { background: var(--surface-2); border-block: 1px solid var(--border); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-fluid-md);
  position: relative;
}
/* Linia punctată leagă cei patru pași. Se ascunde imediat ce
   grila se rupe pe două rânduri, altfel taie prin conținut. */
.steps::before {
  content: "";
  position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--purple); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  box-shadow: var(--glow-brand-soft);
  margin-bottom: var(--space-sm);
  border: 4px solid var(--surface-2);
}
.step h3 { font-size: var(--fs-lg); max-width: 18ch; margin-bottom: var(--space-2xs); }
.step p { color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-tight); max-width: 34ch; }
.step .tag { display: inline-block; margin-top: var(--space-2xs); font-size: var(--fs-xs); font-weight: 700; color: var(--lime-text); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---- FOUNDER ---- */
.founder-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: var(--space-fluid-lg);
  align-items: center;
  padding: var(--space-fluid-md);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.founder-card::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  opacity: 0.12; pointer-events: none;
}
.founder-visual { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-sm); }
.founder-avatar {
  position: relative;
  width: clamp(120px, 30vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(150deg, var(--purple), var(--purple-deep));
  box-shadow: var(--glow-brand);
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.founder-avatar .badge-check {
  position: absolute; bottom: 6px; right: 6px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime-bright); color: #06280A;
  display: grid; place-items: center;
  border: 4px solid var(--surface);
}
.founder-avatar .badge-check svg { width: 18px; height: 18px; }
.founder-visual .name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.founder-visual .role { color: var(--text-dim); font-size: var(--fs-sm); }

.founder-body { position: relative; z-index: var(--z-base); }
.founder-body h2 { font-size: var(--fs-2xl); max-width: 24ch; margin-bottom: var(--space-md); }
.founder-body p { color: var(--text-dim); font-size: var(--fs-base); max-width: 58ch; }
.founder-body p + p { margin-top: var(--space-sm); }
.founder-body p strong { color: var(--text); }
.founder-points { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: var(--space-md); }
.founder-points .chip svg { color: var(--purple); }

@media (max-width: 860px) {
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-body h2 { margin-inline: auto; }
  .founder-body p { margin-inline: auto; }
  .founder-points { justify-content: center; }
}


/* ---- WORK: dovada (proiecte live) + domeniile deservite ---- */
.work-head { margin-bottom: var(--space-fluid-lg); }

/* Patru proiecte în 2×2, nu în patru coloane înguste.
   Un portofoliu se judecă după cât de bine se văd machetele. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: var(--space-fluid-sm);
}
.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease-out-quart),
              box-shadow var(--dur) var(--ease-out-quart),
              border-color var(--dur);
}
.work-card:hover, .work-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--glow-brand-soft);
  border-color: rgba(123, 47, 255, 0.3);
}
.work-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.work-dots { display: flex; gap: 5px; flex: none; }
.work-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.work-url {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs); font-weight: 700; color: var(--text-dim);
  padding: 0.25rem 0.75rem; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--border);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.work-url svg { width: 12px; height: 12px; flex: none; }

.work-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.work-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.work-card:hover .work-shot img { transform: scale(1.03); }

.work-meta { display: flex; flex-direction: column; gap: 0.35rem; padding: var(--space-sm) var(--space-md) var(--space-md); }
.work-kind { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-dimmer); }
.work-meta h3 { font-size: var(--fs-lg); }
.work-meta p { font-size: var(--fs-sm); line-height: var(--lh-tight); color: var(--text-dim); max-width: 46ch; }
.work-go {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.45rem; font-weight: 700; font-size: var(--fs-sm); color: var(--purple);
}
.work-go svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out-quart); }
.work-card:hover .work-go svg { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .work-card:hover .work-shot img { transform: none; } }

/* Banda de domenii, comasată în secțiunea de dovadă.
   Ca secțiune separată consuma un titlu întreg și un ecran de
   spațiu ca să livreze o listă de linkuri. */
.niche-band {
  margin-top: var(--space-fluid-lg);
  padding-top: var(--space-fluid-md);
  border-top: 1px solid var(--border);
}
.niche-head { text-align: center; margin-bottom: var(--space-md); }
.niche-head h3 {
  font-size: var(--fs-xl);
  max-width: 26ch;
  margin-inline: auto;
}
.niche-head p {
  margin-top: var(--space-2xs);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  max-width: 52ch;
  margin-inline: auto;
}
.niche-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem;
}
.niche-chip {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out-quart);
}
.niche-chip:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }


/* ---- FAQ ---- */
.faq-list { max-width: var(--container-narrow); margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.faq-item[open] { border-color: rgba(123, 47, 255, 0.3); box-shadow: var(--shadow-card); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-md); line-height: var(--lh-title); letter-spacing: var(--ls-title);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--purple); }
.faq-chevron {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-tint); color: var(--purple);
  display: grid; place-items: center; flex: none;
  transition: transform var(--dur) var(--ease-out-quart), background var(--dur), color var(--dur);
}
.faq-chevron svg { width: 18px; height: 18px; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--purple); color: #fff; }
.faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  max-width: 68ch;
}
.faq-answer strong { color: var(--text); }
.faq-more { text-align: center; margin-top: var(--space-lg); color: var(--text-dim); font-size: var(--fs-sm); }
.faq-more a { color: var(--purple); font-weight: 700; }

/* ---- FINAL CTA ---- */
.final-cta { padding-block: var(--section-y) var(--section-y); }
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(2.75rem, 2rem + 5vw, 5.5rem) var(--space-fluid-md);
  text-align: center;
  background: linear-gradient(150deg, #5415D4 0%, #7B2FFF 55%, #4A1FB0 100%);
  box-shadow: var(--glow-brand);
}
.cta-panel .blob { filter: blur(60px); }
.cta-blob-1 { width: 320px; height: 320px; top: -100px; right: -60px; background: radial-gradient(circle, var(--lime-bright) 0%, transparent 70%); opacity: 0.3; }
.cta-blob-2 { width: 300px; height: 300px; bottom: -120px; left: -40px; background: radial-gradient(circle, var(--orange) 0%, transparent 70%); opacity: 0.3; }
.cta-panel h2 {
  position: relative; z-index: var(--z-raised);
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  max-width: 18ch;
  margin-inline: auto;
}
.cta-panel p {
  position: relative; z-index: var(--z-raised);
  color: rgba(255, 255, 255, 0.86);
  max-width: 48ch;
  margin: var(--space-md) auto var(--space-lg);
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
}
.cta-actions { position: relative; z-index: var(--z-raised); display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; }
.cta-reassure {
  position: relative; z-index: var(--z-raised);
  margin-top: var(--space-md);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-sm); font-weight: 600;
}
.cta-reassure span { display: inline-flex; align-items: center; gap: 0.45rem; }
.cta-reassure svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 540px) {
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* ---- FOOTER ---- */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: var(--space-fluid-lg) var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-xl);
}
.footer-brand .brand { font-size: 1.3rem; margin-bottom: var(--space-sm); }
.footer-brand p { color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-tight); max-width: 34ch; }
.footer-col h3 { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--space-sm); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col .fc-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-dim); font-size: var(--fs-sm);
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--purple); }
.footer-col .fc-item svg { width: 16px; height: 16px; color: var(--purple); flex: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-dimmer);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-bottom .legal a { color: var(--text-dimmer); }
.footer-bottom .legal a:hover { color: var(--purple); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }


/* ---- Tabel compact (conținut migrat din articolele fuzionate) ----
   Paginile de serviciu nu aveau tabele; articolele de blog aveau. La
   fuziune aducem și stilul, într-un container care derulează pe mobil
   în loc să lățească pagina. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4rem 0; }
.table-scroll table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 0.95rem; }
.table-scroll th,
.table-scroll td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-scroll thead th { font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

/* ---- Liste numerotate / cu marcatori în proză ----
   Resetul de sus scoate marcatorii pe tot site-ul, ceea ce e corect
   pentru meniuri și carduri. Conținutul migrat din articole are însă
   liste reale, deci le redăm marcatorii explicit, doar aici. */
.prose-list { list-style: decimal; padding-left: 1.4rem; display: grid; gap: 0.6rem; margin: 1.1rem 0; max-width: 68ch; }
.prose-list.bullets { list-style: disc; }
.prose-list li { padding-left: 0.2rem; line-height: 1.65; }
.prose-list li::marker { color: var(--purple, #7B2FFF); font-weight: 700; }

/* ---- Paragraf de proză direct în secțiune ----
   Resetul global scoate marginile pe <p>, ceea ce e corect în carduri,
   dar lipește paragrafele scrise liber sub un tabel sau o listă. */
.prose-p { max-width: 68ch; line-height: 1.7; margin: 1.1rem 0 0; color: var(--text-dim, inherit); }
.prose-p + .prose-p { margin-top: 0.9rem; }
.prose-p a { color: var(--purple, #7B2FFF); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   COMPATIBILITATE — antete de secțiune din paginile generate
   Paginile construite de scripts/*.js emit `<div class="sec-head">`
   și se bazau pe reguli de tipul `.pricing .sec-head { text-align: center }`.
   În noul sistem centrarea se cere cu `.is-center`. Maparea de mai jos
   ține paginile generate corecte fără să le regenerăm pe toate.
   ============================================================ */
.sec-head.center,
.pricing .sec-head,
.proof .sec-head,
.faq .sec-head,
.order .sec-head,
.services .sec-head,
.resources .sec-head,
.process .sec-head,
.blog-strip .sec-head {
  align-items: center;
  text-align: center;
  margin-inline: auto;
  max-width: 62ch;
}
.sec-head.center > h2,
.pricing .sec-head > h2,
.proof .sec-head > h2,
.faq .sec-head > h2,
.order .sec-head > h2,
.services .sec-head > h2,
.resources .sec-head > h2,
.process .sec-head > h2,
.blog-strip .sec-head > h2 { max-width: 20ch; }

.sec-head.center > .lede,
.pricing .sec-head > .lede,
.proof .sec-head > .lede,
.faq .sec-head > .lede,
.order .sec-head > .lede,
.services .sec-head > .lede,
.resources .sec-head > .lede,
.process .sec-head > .lede,
.blog-strip .sec-head > .lede { max-width: 46ch; margin-inline: auto; }

/* Antetul „split" (titlu stânga / buton dreapta) nu se centrează,
   chiar dacă stă într-o secțiune din lista de mai sus. */
.sec-head.is-split { align-items: flex-end; text-align: left; max-width: none; }
.sec-head.is-split > .sec-head-text > h2 { max-width: 22ch; }
