/* ============================================================
   AI за малък бизнес — Validation Landing Page Styles
   Mobile-first, no framework, no JS dependencies.
   ============================================================ */

/* --- Reset & Base --- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Typography --- */

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 0.75rem;
}

ul, ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* --- Sections --- */

.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: #f3f5f9;
}

/* --- Problem visual treatment --- */

.problem-text {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #2563eb;
  background: #f0f4ff;
  border-radius: 0 8px 8px 0;
}

.section--cta {
  background: #f0f4ff;
  padding: 3rem 0;
}

/* --- Hero --- */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 70%);
}

.hero .subheadline {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  text-decoration: none;
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* --- Before / After --- */

.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.before-after__col {
  padding: 1.25rem;
  border-radius: 8px;
}

.before-after__col--before {
  background: #fee2e2;
  border-left: 4px solid #dc2626;
}

.before-after__col--after {
  background: #dcfce7;
  border-left: 4px solid #16a34a;
}

.before-after__col ul {
  list-style-type: none;
  padding-left: 0;
}

.before-after__col li {
  padding-left: 1.25rem;
  position: relative;
}

.before-after__col--before li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: bold;
}

.before-after__col--after li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* --- Features --- */

/* --- Mid-page CTA --- */

.section--mid-cta {
  padding: 2rem 0;
}

/* --- Features --- */

.features {
  list-style-type: none;
  padding-left: 0;
}

.features li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}

.features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
  font-size: 1.1rem;
}

/* --- Audience (For whom / Not for whom) --- */

.audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.audience__col {
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.audience__col:first-child {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.audience__col:last-child {
  background: #fef9f0;
  border-color: #fed7aa;
}

.audience__col ul {
  list-style-type: none;
  padding-left: 0;
}

/* --- Price --- */

.price {
  text-align: center;
  margin: 1.5rem auto;
  max-width: 400px;
  padding: 1.5rem 2rem;
  background: #f0f4ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}

.price__amount {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.price__format {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  color: #6b7280;
}

.price__note {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 520px;
  margin: 1rem auto 0;
}

/* --- FAQ (CSS-only accordion via <details>) --- */

.faq {
  max-width: 600px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.faq__question {
  display: block;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  content: "+ ";
  color: #2563eb;
}

.faq__item[open] .faq__question::marker {
  content: "\2212 ";
}

.faq__answer {
  padding: 0 1.25rem 1rem;
  color: #4b5563;
}

/* --- Form --- */

.signup-form {
  max-width: 480px;
  margin: 1.5rem auto 0;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #374151;
}

.form-group .optional {
  font-weight: 400;
  color: #9ca3af;
}

.form-group .required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9fafb;
  color: #1a1a2e;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.form-group--consent {
  margin-bottom: 1.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #4b5563;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.link {
  color: #2563eb;
  text-decoration: underline;
}

/* --- CTA Steps --- */

.cta-steps {
  max-width: 480px;
  margin: 1.5rem auto 0;
}

.cta-steps h3 {
  margin-bottom: 0.5rem;
}

.cta-steps ol {
  padding-left: 1.5rem;
}

.cta-steps li {
  margin-bottom: 0.35rem;
  color: #4b5563;
  font-size: 0.95rem;
}

/* --- Footer --- */

.footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

.footer p {
  margin-bottom: 0.35rem;
}

/* --- Thank You Page --- */

.thankyou {
  padding: 5rem 0 3rem;
  text-align: center;
}

.thankyou h1 {
  color: #22c55e;
  font-size: 2rem;
}

.thankyou__lead {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.thankyou__steps {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.thankyou__steps h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.thankyou__steps li {
  margin-bottom: 0.75rem;
}

.thankyou__optional {
  max-width: 420px;
  margin: 0 auto 2rem;
  padding: 1.25rem;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.thankyou__optional h2 {
  font-size: 1.05rem;
}

.thankyou__optional p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.survey-form .btn {
  width: 100%;
}

.thankyou__back {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ============================================================
   Desktop (min-width: 768px)
   ============================================================ */

@media (min-width: 768px) {

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 5rem 0 3rem;
  }

  .before-after {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .audience {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section--cta {
    padding: 4rem 0;
  }

  .signup-form {
    padding: 2rem;
  }
}
