/* =========================================
   Features page
   Ported from src/pages/Features.tsx in the client's Lovable project. Tailwind
   classes are noted where a number would otherwise look arbitrary.

   Loaded automatically for every page (see Page::getCSS, which walks all pages
   because of partial navigation), so everything is scoped to body.Features -
   the class getBodyClass() emits from simpleName().
   ========================================= */

body.Features .app-page-content {
  padding: 0 !important;
}

/* usesWebFont() loads Montserrat and adds .modern-type, but moved.css pins the
   system stack on `body, button, input, select, textarea`; the family still has
   to be declared. Same pattern as body.About and body.lovable-page. */
body.Features,
body.Features button,
body.Features input,
body.Features select,
body.Features textarea {
  font-family: "Montserrat", sans-serif;
}

body.Features .features-page {
  color: #25153c;
}

/* --- Shared ------------------------------------------------------------ */

body.Features .features-gradient-text {
  background-image: linear-gradient(to right, #9333ea, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.Features .features-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em; /* tracking-[0.35em] */
  text-transform: uppercase;
  color: #9333ea;
}

/* The rounded icon square the design puts above every heading. */
body.Features .features-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px; /* w-10 */
  height: 40px;
  border-radius: 12px; /* rounded-xl */
  background-image: linear-gradient(to bottom right, #f3e8ff, #ffedd5);
}

body.Features .features-tile svg {
  width: 20px;
  height: 20px;
  color: #7e22ce; /* purple-700 */
}

body.Features .features-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

body.Features .features-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px; /* px-7 */
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.Features .features-btn svg {
  width: 16px;
  height: 16px;
}

body.Features .features-btn--primary {
  background-image: linear-gradient(to right, #9333ea, #f97316);
  color: #ffffff;
}

body.Features .features-btn--primary:hover {
  opacity: 0.9;
}

body.Features .features-btn--outline {
  border-color: #e9d5ff; /* purple-200 */
  background: #ffffff;
  color: #25153c;
}

body.Features .features-btn--outline:hover {
  border-color: #c084fc; /* purple-400 */
  background: rgba(250, 245, 255, 0.5);
}

body.Features .features-btn:focus-visible {
  outline: 2px solid #9333ea;
  outline-offset: 3px;
}

/* --- Hero -------------------------------------------------------------- */

body.Features .features-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e6dbf0;
  /* from-purple-50/60 via-background to-orange-50/30 */
  background-image: linear-gradient(
    to bottom right,
    rgba(250, 245, 255, 0.6),
    #ffffff,
    rgba(255, 247, 237, 0.3)
  );
}

body.Features .features-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.Features .features-glow {
  position: absolute;
  width: 384px; /* w-96 */
  height: 384px;
  border-radius: 9999px;
  filter: blur(64px); /* blur-3xl */
}

body.Features .features-glow--left {
  top: 33.333%;
  left: -128px;
  background: rgba(216, 180, 254, 0.2); /* purple-300/20 */
}

body.Features .features-glow--right {
  bottom: 0;
  right: -128px;
  background: rgba(253, 186, 116, 0.2); /* orange-300/20 */
}

body.Features .features-hero-inner {
  position: relative;
  max-width: 1024px; /* max-w-5xl */
  margin: 0 auto;
  padding: 80px 24px 72px;
  text-align: center;
}

body.Features .features-hero .features-eyebrow {
  margin-bottom: 40px;
  letter-spacing: 0.4em; /* tracking-[0.4em] */
}

body.Features .features-hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Features .features-quote {
  max-width: 768px; /* max-w-3xl */
  margin: 56px auto 0;
}

body.Features .features-rule {
  display: block;
  width: 64px; /* w-16 */
  height: 1px;
  margin: 0 auto 32px;
  background-image: linear-gradient(to right, #9333ea, #f97316);
}

body.Features .features-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.35;
  font-style: italic;
  letter-spacing: -0.02em;
  color: #25153c;
}

/* The highlighted half of the quote is set upright and lighter, as the design
   has it - the italic belongs to the quotation, not to the phrase. */
body.Features .features-quote .features-gradient-text {
  font-style: normal;
  font-weight: 500;
}

body.Features .features-hero .features-actions {
  margin-top: 56px;
}

/* --- Stats strip -------------------------------------------------------- */

/* Renders only when FeaturesPage::getStats() has something in it. */
body.Features .features-stats {
  border-bottom: 1px solid #e6dbf0;
  background: rgba(245, 240, 250, 0.2);
}

body.Features .features-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1152px; /* max-w-6xl */
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

body.Features .features-stat-value {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.Features .features-stat-label {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6c5393;
}

/* --- Categories --------------------------------------------------------- */

body.Features .features-categories {
  max-width: 1152px; /* max-w-6xl */
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

body.Features .features-category {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

body.Features .features-category-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

body.Features .features-category h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Features .features-category-copy > p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 26px;
  color: #6c5393;
}

body.Features .features-category-card {
  padding: 32px;
  border: 1px solid #e6dbf0;
  border-radius: 16px; /* rounded-2xl */
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.Features .features-category-card:hover {
  border-color: #d8b4fe; /* purple-300 */
  box-shadow: 0 10px 15px -3px rgba(126, 96, 246, 0.1);
}

body.Features .features-category-card ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.Features .features-category-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(230, 219, 240, 0.6);
  font-size: 15px;
  line-height: 24px;
  color: #25153c;
}

body.Features .features-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 9999px;
  background-image: linear-gradient(to right, #9333ea, #f97316);
}

/* --- Highlights --------------------------------------------------------- */

body.Features .features-highlights {
  border-top: 1px solid #e6dbf0;
  border-bottom: 1px solid #e6dbf0;
  background: rgba(245, 240, 250, 0.3);
}

body.Features .features-highlights-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 24px;
}

body.Features .features-section-head {
  margin-bottom: 48px;
  text-align: center;
}

body.Features .features-section-head .features-eyebrow {
  margin-bottom: 16px;
}

body.Features .features-section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Features .features-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

body.Features .features-highlight {
  padding: 28px; /* p-7 */
  border: 1px solid #e6dbf0;
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.Features .features-highlight:hover {
  border-color: #d8b4fe;
  box-shadow: 0 10px 15px -3px rgba(126, 96, 246, 0.1);
}

body.Features .features-highlight .features-tile {
  width: 44px; /* w-11 */
  height: 44px;
  margin-bottom: 20px;
}

body.Features .features-highlight h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: #25153c;
}

body.Features .features-highlight p {
  margin: 0;
  font-size: 14px;
  line-height: 22.75px;
  color: #6c5393;
}

/* --- Closing ------------------------------------------------------------ */

body.Features .features-closing-inner {
  max-width: 576px; /* max-w-xl */
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

body.Features .features-closing .features-eyebrow {
  margin-bottom: 12px;
}

body.Features .features-closing h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Features .features-closing-text {
  max-width: 448px; /* max-w-md */
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 26px;
  color: #6c5393;
}

/* --- Wider viewports ---------------------------------------------------- */

@media (min-width: 640px) {
  body.Features .features-category-card ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.Features .features-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  body.Features .features-hero-inner {
    padding: 128px 48px 112px;
  }

  body.Features .features-hero h1 {
    font-size: 72px;
  }

  body.Features .features-quote p {
    font-size: 36px;
  }

  body.Features .features-stats-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-left: 48px;
    padding-right: 48px;
  }

  body.Features .features-stat-value {
    font-size: 36px;
  }

  body.Features .features-categories {
    padding: 96px 48px;
    gap: 80px;
  }

  body.Features .features-category {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 40px;
  }

  body.Features .features-category-copy {
    grid-column: span 5 / span 5;
  }

  body.Features .features-category-card {
    grid-column: span 7 / span 7;
  }

  /* The design alternates sides by reordering the grid children. */
  body.Features .features-category--reversed .features-category-copy {
    order: 2;
  }

  body.Features .features-highlights-inner {
    padding: 80px 48px;
  }

  body.Features .features-section-head h2,
  body.Features .features-closing h2,
  body.Features .features-category h2 {
    font-size: 36px;
  }

  body.Features .features-closing-inner {
    padding: 96px 48px;
  }
}

@media (min-width: 1024px) {
  body.Features .features-highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.Features .features-section-head h2 {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.Features .features-btn,
  body.Features .features-category-card,
  body.Features .features-highlight {
    transition: none;
  }
}
