/* public/css/public-landing.css
   Stylesheet dedicat paginilor publice de marketing (sub-proiect 5): /incepe,
   /prezentare, /bootcamp, /evaluare (clasele bb-*). Independent de
   public/css/style.css (bundle-ul SPA-ului mare) - pagini "usoare",
   server-rendered, care nu au nevoie de restul temei aplicatiei. Paleta reia
   culorile de brand din style.css (--color-primary: #7c3aed) si tipografia
   deja aprobata pentru website-ul Companion (Fraunces + Inter, vezi
   docs/superpowers/specs/2026-07-30-public-landing-login-migration-design.md)
   ca sa fie coerenta vizual cu restul ecosistemului TFL. */

:root {
  --pl-primary: #7c3aed;
  --pl-primary-hover: #6d28d9;
  --pl-primary-light: rgba(124, 58, 237, 0.08);
  --pl-primary-ring: rgba(124, 58, 237, 0.16);
  --pl-ink: #16132b;
  --pl-body: #453f5c;
  --pl-muted: #706a86;
  --pl-border: rgba(22, 19, 43, 0.08);
  --pl-bg: #fefcfa;
  --pl-bg-alt: #f7f4fb;
  --pl-radius: 24px;
  --pl-radius-sm: 14px;
  --pl-max-width: 1040px;
  --pl-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --pl-shadow-soft: 0 1px 2px rgba(22, 19, 43, 0.04), 0 20px 40px -20px rgba(22, 19, 43, 0.16);
  --pl-shadow-lift: 0 1px 2px rgba(22, 19, 43, 0.05), 0 28px 56px -24px rgba(124, 58, 237, 0.28);
  --pl-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.pl-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pl-body);
  background: var(--pl-bg);
  line-height: 1.65;
  padding-top: 92px; /* offset for the fixed floating nav */
  -webkit-font-smoothing: antialiased;
}

.pl-container {
  max-width: var(--pl-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.01em;
}

/* Header — floating glass island, detached from the top edge (not an
   edge-to-edge bar), consistent with the rest of the TFL public site. */
.pl-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  z-index: 40;
  background: rgba(254, 252, 250, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(22, 19, 43, 0.06);
  border-radius: 999px;
  box-shadow: var(--pl-shadow-soft);
  transition: box-shadow 0.4s var(--pl-ease);
}
.pl-header-inner {
  margin: 0 auto;
  padding: 10px 10px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pl-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--pl-ink); text-decoration: none; font-size: 15px; }
.pl-logo img { height: 26px; width: auto; border-radius: 50%; }
.pl-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pl-nav a:not(.pl-btn) { color: var(--pl-body); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s var(--pl-ease); }
.pl-nav a:not(.pl-btn):hover, .pl-nav a:not(.pl-btn):focus-visible { color: var(--pl-primary); }
/* Scoped to .pl-nav so specificity beats the later .pl-btn { display:
   inline-flex } rule regardless of source order (both are otherwise
   single-class selectors and would tie, and .pl-btn comes later in this
   file - without the extra scope the button stayed visible on mobile,
   wrapped onto two lines next to the logo). */
.pl-nav .pl-nav-cta { display: none; }

@media (min-width: 720px) {
  .pl-nav .pl-nav-cta { display: inline-flex; }
}

@media (max-width: 719px) {
  .pl-nav a:not(.pl-btn) { display: none; }
}

/* Buttons — full pill, nested "button-in-button" trailing arrow via ::after,
   magnetic press feedback on click. */
.pl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.5s var(--pl-ease), box-shadow 0.5s var(--pl-ease), background 0.3s var(--pl-ease);
}
.pl-btn-primary {
  background: var(--pl-primary);
  color: #fff;
  box-shadow: var(--pl-shadow-lift);
  padding-right: 8px;
}
.pl-btn-primary::after {
  content: '\2197';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  transition: transform 0.5s var(--pl-ease);
}
.pl-btn-primary:hover, .pl-btn-primary:focus-visible { background: var(--pl-primary-hover); transform: translateY(-2px); }
.pl-btn-primary:hover::after { transform: translate(2px, -2px) scale(1.05); }
.pl-btn-primary:active { transform: translateY(0) scale(0.98); }
.pl-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.pl-btn-secondary { background: transparent; border-color: var(--pl-border); color: var(--pl-ink); padding-right: 22px; }
.pl-btn-secondary:hover, .pl-btn-secondary:focus-visible { border-color: var(--pl-primary); color: var(--pl-primary); }
.pl-btn:focus-visible { outline: 3px solid var(--pl-primary-ring); outline-offset: 2px; }

/* Hero */
.pl-hero {
  position: relative;
  padding: 108px 24px 64px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--pl-primary-light), transparent 70%);
}
.pl-hero h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.12; color: var(--pl-ink); margin: 0 0 22px; }
.pl-hero p.pl-subhead { font-size: 18px; color: var(--pl-muted); max-width: 640px; margin: 0 auto 36px; }

/* Sections — macro whitespace */
.pl-section { padding: 96px 0; }
.pl-section-alt { background: var(--pl-bg-alt); }
.pl-section h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--pl-ink); text-align: center; margin: 0 0 14px; }
.pl-section p.pl-lead { text-align: center; color: var(--pl-muted); max-width: 620px; margin: 0 auto 48px; }

.pl-grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .pl-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Cards — "double-bezel": soft outer shadow + inner highlight + generous
   squircle radius, so they read as machined surfaces rather than flat divs. */
.pl-card {
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  padding: 30px 28px;
  box-shadow: var(--pl-shadow-soft), var(--pl-inset-highlight);
  transition: transform 0.5s var(--pl-ease), box-shadow 0.5s var(--pl-ease);
}
.pl-card:hover { transform: translateY(-4px); box-shadow: var(--pl-shadow-lift), var(--pl-inset-highlight); }
.pl-card h3 { color: var(--pl-ink); margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.pl-card p { margin: 0; color: var(--pl-muted); font-size: 15px; }
.pl-card .pl-step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pl-primary-light); color: var(--pl-primary); font-weight: 800; margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

/* Eyebrow / placeholder badge */
.pl-placeholder-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pl-primary);
  background: var(--pl-primary-light);
  border: 1px solid var(--pl-primary-ring);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

/* VSL placeholder */
.pl-vsl-frame {
  max-width: 720px;
  margin: 0 auto 28px;
  aspect-ratio: 16 / 9;
  border-radius: var(--pl-radius);
  background: linear-gradient(135deg, #f3edfe, #fbf9ff);
  border: 1px solid var(--pl-primary-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--pl-primary);
  text-align: center;
  padding: 24px;
  box-shadow: var(--pl-shadow-soft), var(--pl-inset-highlight);
}
.pl-vsl-frame .pl-play-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--pl-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: var(--pl-shadow-lift);
}

/* Testimonials */
.pl-testimonial {
  background: #fff; border: 1px solid var(--pl-border); border-radius: var(--pl-radius);
  padding: 26px; box-shadow: var(--pl-shadow-soft), var(--pl-inset-highlight);
}
.pl-testimonial p { font-style: italic; color: var(--pl-body); margin: 0 0 14px; }
.pl-testimonial footer { font-size: 14px; font-weight: 700; color: var(--pl-ink); font-style: normal; }

/* Process steps */
.pl-process-list { list-style: none; counter-reset: pl-step; margin: 0 auto; max-width: 580px; padding: 0; }
.pl-process-list li { counter-increment: pl-step; display: flex; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--pl-border); }
.pl-process-list li:last-child { border-bottom: none; }
.pl-process-list li::before {
  content: counter(pl-step);
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pl-primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* FAQ */
.pl-faq { max-width: 700px; margin: 0 auto; }
.pl-faq details { border-bottom: 1px solid var(--pl-border); padding: 20px 4px; }
.pl-faq summary { cursor: pointer; font-weight: 700; color: var(--pl-ink); list-style: none; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: '+'; float: right; color: var(--pl-primary); font-weight: 800; transition: transform 0.3s var(--pl-ease); }
.pl-faq details[open] summary::after { content: '\2212'; }
.pl-faq p { margin: 12px 0 0; color: var(--pl-muted); }

/* Forms — nested "double-bezel" card with soft inner highlight */
.pl-form {
  max-width: 460px; margin: 0 auto; background: #fff;
  border: 1px solid var(--pl-border); border-radius: var(--pl-radius);
  padding: 34px; box-shadow: var(--pl-shadow-soft), var(--pl-inset-highlight);
}
.pl-form label { display: block; font-size: 14px; font-weight: 600; color: var(--pl-ink); margin-bottom: 16px; }
.pl-form input[type="text"],
.pl-form input[type="email"],
.pl-form select,
.pl-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 16px;
  border: 1px solid var(--pl-border); border-radius: var(--pl-radius-sm); font-size: 15px; font-family: inherit;
  background: var(--pl-bg-alt);
  transition: border-color 0.3s var(--pl-ease), box-shadow 0.3s var(--pl-ease), background 0.3s var(--pl-ease);
}
.pl-form input:focus-visible,
.pl-form select:focus-visible,
.pl-form textarea:focus-visible {
  outline: none; border-color: var(--pl-primary); box-shadow: 0 0 0 4px var(--pl-primary-ring); background: #fff;
}
.pl-form .pl-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; color: var(--pl-muted); }
.pl-form .pl-check input { margin-top: 3px; }
.pl-form button { width: 100%; margin-top: 8px; justify-content: center; }

.pl-error {
  background: #fdf2f2; border: 1px solid rgba(153, 27, 27, 0.18); color: #991b1b;
  padding: 14px 18px; border-radius: var(--pl-radius-sm); font-size: 14px; max-width: 460px; margin: 0 auto 18px;
}

.pl-success {
  text-align: center; max-width: 460px; margin: 0 auto;
  background: #f2faf4; border: 1px solid rgba(22, 101, 52, 0.18); color: #166534;
  padding: 28px; border-radius: var(--pl-radius); box-shadow: var(--pl-shadow-soft);
}

/* Footer */
.pl-footer { padding: 40px 0 56px; text-align: center; color: var(--pl-muted); font-size: 13px; }

/* Scroll-reveal (see public/js/utils/scroll-reveal.js). Elements start
   slightly displaced + blurred and settle into place once they enter the
   viewport. Respects prefers-reduced-motion via the JS guard, not just CSS,
   so the content is never truly stuck invisible if JS is slow/blocked -
   the class is only added by JS, elements are visible by default and this
   is purely a progressive enhancement (no [hidden]/display:none anywhere). */
.pl-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--pl-ease), transform 0.9s var(--pl-ease), filter 0.9s var(--pl-ease);
}
.pl-reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (max-width: 719px) {
  body.pl-body { padding-top: 80px; }
  .pl-header { top: 10px; width: calc(100% - 20px); }
  .pl-header-inner { padding: 8px 8px 8px 16px; }
  .pl-hero { padding: 56px 20px 40px; }
  .pl-section { padding: 64px 0; }
  .pl-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .pl-btn, .pl-card, .pl-header { transition: none; }
}

/* =========================================================================
   /evaluare - Business Builder qualification flow (public/js/views/
   business-builder-qualification.js). Reuses the pl- design tokens above so
   this page feels like the same product as /incepe, /prezentare, /bootcamp -
   it was the one page in this flow that had never received a stylesheet.
   ========================================================================= */

.bb-page { max-width: 640px; margin: 0 auto; padding: 48px 24px 80px; }

.bb-form {
  background: #fff; border: 1px solid var(--pl-border); border-radius: var(--pl-radius);
  padding: 36px; box-shadow: var(--pl-shadow-soft), var(--pl-inset-highlight);
}
.bb-form h1 { font-size: clamp(24px, 3.4vw, 30px); color: var(--pl-ink); margin: 0 0 12px; }
.bb-form h2 { font-size: 22px; color: var(--pl-ink); margin: 0 0 16px; }
.bb-form > p { color: var(--pl-muted); margin: 0 0 24px; }
.bb-form label { display: block; font-size: 14px; font-weight: 600; color: var(--pl-ink); margin-bottom: 16px; }
.bb-form input, .bb-form select, .bb-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 16px;
  border: 1px solid var(--pl-border); border-radius: var(--pl-radius-sm); font-size: 15px; font-family: inherit;
  background: var(--pl-bg-alt);
  transition: border-color 0.3s var(--pl-ease), box-shadow 0.3s var(--pl-ease), background 0.3s var(--pl-ease);
}
.bb-form input:focus-visible, .bb-form select:focus-visible, .bb-form textarea:focus-visible {
  outline: none; border-color: var(--pl-primary); box-shadow: 0 0 0 4px var(--pl-primary-ring); background: #fff;
}
.bb-primary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 22px 15px 26px; margin-top: 8px;
  border-radius: 999px; border: none; font-weight: 700; font-size: 15px; cursor: pointer;
  background: var(--pl-primary); color: #fff; box-shadow: var(--pl-shadow-lift);
  transition: transform 0.5s var(--pl-ease), box-shadow 0.5s var(--pl-ease), background 0.3s var(--pl-ease);
}
.bb-primary::after {
  content: '\2197'; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); font-size: 14px;
}
.bb-primary:hover { background: var(--pl-primary-hover); transform: translateY(-2px); }
.bb-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.bb-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 13px; color: var(--pl-muted); }
.bb-check input { margin-top: 3px; width: auto !important; }

.bb-error {
  background: #fdf2f2; border: 1px solid rgba(153, 27, 27, 0.18); color: #991b1b;
  padding: 14px 18px; border-radius: var(--pl-radius-sm); font-size: 14px; margin-bottom: 20px;
}

.bb-notice {
  background: #f2faf4; border: 1px solid rgba(22, 101, 52, 0.18); color: #166534;
  padding: 12px 18px; border-radius: var(--pl-radius-sm); font-size: 14px; margin-bottom: 20px;
}
.bb-notice a { color: #166534; font-weight: 600; }

.bb-confirmed {
  text-align: center; background: #f2faf4; border: 1px solid rgba(22, 101, 52, 0.18); color: #166534;
  padding: 22px; border-radius: var(--pl-radius); margin-top: 18px;
}

/* Chat with Alma */
.bb-chat {
  background: #fff; border: 1px solid var(--pl-border); border-radius: var(--pl-radius);
  box-shadow: var(--pl-shadow-soft), var(--pl-inset-highlight); overflow: hidden;
}
.bb-messages { max-height: 55vh; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bb-msg { display: flex; }
.bb-msg > div {
  max-width: 82%; padding: 13px 18px; border-radius: 18px; font-size: 15px; line-height: 1.55;
  white-space: pre-wrap;
}
.bb-msg-assistant { justify-content: flex-start; }
.bb-msg-assistant > div { background: var(--pl-bg-alt); color: var(--pl-body); border-bottom-left-radius: 6px; }
.bb-msg-user { justify-content: flex-end; }
.bb-msg-user > div { background: var(--pl-primary); color: #fff; border-bottom-right-radius: 6px; }
.bb-typing { display: flex; gap: 5px; align-items: center; padding: 13px 18px; }
.bb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-muted); animation: bbTyping 1s infinite; }
.bb-typing span:nth-child(2) { animation-delay: .15s; }
.bb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bbTyping { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bb-typing span { animation: none; opacity: .6; }
}

.bb-inchat-form, .bb-form-inline { padding: 20px 24px; border-top: 1px solid var(--pl-border); }
.bb-form-inline { display: flex; gap: 12px; align-items: flex-end; }
.bb-form-inline textarea {
  flex: 1; resize: none; min-height: 48px; padding: 13px 16px; border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-sm); font-size: 15px; font-family: inherit; background: var(--pl-bg-alt);
}
.bb-form-inline textarea:focus-visible { outline: none; border-color: var(--pl-primary); box-shadow: 0 0 0 4px var(--pl-primary-ring); background: #fff; }
.bb-form-inline .bb-primary { width: auto; margin-top: 0; padding: 13px 20px 13px 22px; }

@media (max-width: 719px) {
  .bb-page { padding: 32px 16px 56px; }
  .bb-form { padding: 24px; }
  .bb-messages { max-height: 60vh; }
}
