/* Landing-page section layout — hero, WhatsApp mockups, bento grids, comparison table,
   pricing, and FAQ. Dynamic layout properties, custom phone shell, and styling. */

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 120px;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(7, 13, 11, 0) 50%),
              linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wallpaper);
  opacity: 0.8;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.hero-copy .accent {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  font-size: 19px;
  max-width: 520px;
  margin-top: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-copy p {
    margin: 20px auto 0;
  }

  .hero-actions {
    justify-content: center;
  }
}

.hero-mockup {
  position: relative;
  animation: hero-float 6s ease-in-out infinite;
}

.hero-mockup::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* ── WhatsApp Phone Mockup (Modern glassmorphic chassis) ────────────────── */

.wa-phone {
  background: #0b141a; /* WhatsApp Web Dark background */
  border-radius: 36px;
  border: 12px solid #222e35;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(52, 211, 153, 0.15);
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-phone-header {
  background: #202c33;
  color: #e9edef;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-phone-header .wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}

.wa-phone-body {
  padding: 20px 16px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 0h80v80H0z' fill='none'/%3E%3Cpath d='M20 10l5 5-5 5-5-5zm40 20l5 5-5 5-5-5zM10 50l5 5-5 5-5-5zm50 20l5 5-5 5-5-5z' fill='%23222e35' fill-opacity='0.15'/%3E%3C/svg%3E");
  background-color: #0b141a;
}

.wa-bubble {
  background: #202c33; /* Dark mode message bubble */
  border-radius: 12px;
  border-top-left-radius: 0;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 88%;
  color: #e9edef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  white-space: pre-line;
  position: relative;
  transform-origin: left top;
  animation: wa-bubble-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wa-bubble strong {
  color: var(--brand-bright);
}

.wa-bubble .wa-figure {
  font-weight: 700;
  color: var(--brand-bright);
  font-size: 16px;
}

.wa-bubble.wa-risk {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.wa-bubble.wa-risk strong {
  color: #f87171;
}

.wa-bubble.wa-out {
  align-self: flex-end;
  border-radius: 12px;
  border-top-right-radius: 0;
  border-top-left-radius: 12px;
  background: #005c4b; /* WhatsApp Dark Outgoing bubble */
  color: #e9edef;
  transform-origin: right top;
}

@keyframes wa-bubble-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Who is this for badges ─────────────────────────────────────────────── */

.built-for-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.built-for-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--brand-bright);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.built-for-badge:hover {
  background: var(--brand-bright);
  color: #030712;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
  border-color: var(--brand-bright);
}

/* ── Bento Card Grid for Problems ───────────────────────────────────────── */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  text-align: center;
}

.problem-card .icon {
  font-size: 36px;
  margin-bottom: 18px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(52, 211, 153, 0.15));
  transition: transform 0.3s ease;
}

.problem-card:hover .icon {
  transform: scale(1.15) rotate(5deg);
}

.problem-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* ── Solution flow diagram ──────────────────────────────────────────────── */

.solution-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.solution-flow .flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 28px;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.solution-flow .flow-step:hover {
  border-color: var(--brand-bright);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
  transform: scale(1.02);
}

.solution-flow .flow-arrow {
  color: var(--brand-bright);
  font-size: 24px;
  animation: arrow-bounce 2s infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Recorded walkthrough video ─────────────────────────────────────────── */

/* Capped rather than full-bleed: the recording is a screen capture at a fixed
   resolution, so stretching it past its native width only softens the text
   inside it, which is the one thing a product walkthrough has to keep legible. */
.walkthrough {
  margin: 0 auto 48px;
  max-width: 860px;
}

.walkthrough__video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Black, not transparent: letterboxing shows through wherever the video's
     aspect ratio doesn't match the box, and the page background behind it is
     a patterned wallpaper. */
  background: #000;
  box-shadow: var(--shadow-lg);
}

.walkthrough__fallback {
  padding: 16px;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Interactive Demo Section ───────────────────────────────────────────── */

.demo-tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.demo-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.demo-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.demo-tab-btn.is-active {
  background: var(--brand-light);
  border-color: var(--brand-bright);
  color: var(--brand-bright);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.15);
}

.mockups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mockup-item {
  text-align: center;
  position: relative;
}

.mockup-item .wa-phone {
  max-width: 290px;
}

.mockup-item:hover .wa-phone {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.35);
}

.mockup-item .wa-phone-body {
  min-height: 280px;
}

.mockup-item h3 {
  font-size: 18px;
  margin-top: 24px;
  color: #ffffff;
}

@media (max-width: 900px) {
  .mockups-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ── Outcomes chain ─────────────────────────────────────────────────────── */

.outcomes-chain {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.outcome-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.outcome-row:hover {
  transform: translateX(8px);
  border-color: var(--brand-bright);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(52, 211, 153, 0.1);
}

.outcome-row .icon {
  font-size: 28px;
}

.outcome-arrow {
  color: var(--brand-bright);
  font-size: 24px;
  margin: 8px 0;
  animation: arrow-bounce 2s infinite;
}

/* ── How It Works ───────────────────────────────────────────────────────── */

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand-bright);
  border: 1.5px solid var(--brand-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}

.step-item:hover .step-num {
  background: var(--brand-bright);
  color: #030712;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.step-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

/* ── Comparison Table ───────────────────────────────────────────────────── */

.comparison-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: 15.5px;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border);
}

.comparison-table td:first-child,
.comparison-table th:first-child {
  color: var(--ink-soft);
  width: 50%;
}

.comparison-table td:last-child {
  color: var(--brand-bright);
  font-weight: 700;
  width: 50%;
}

.comparison-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr {
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Trust Card ─────────────────────────────────────────────────────────── */

.trust-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--brand-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 32px;
}

.trust-card p {
  font-size: 16px;
  margin-bottom: 12px;
}

.trust-card p:last-child {
  font-weight: 700;
  color: var(--brand-bright);
  margin: 0;
  font-size: 18px;
}

/* ── Pricing Card ───────────────────────────────────────────────────────── */

.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 26, 23, 0.65) 100%);
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card::after {
  content: "RECOMMENDED";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--brand-bright);
  color: #030712;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2);
}

.pricing-card .plan-name {
  font-weight: 800;
  color: var(--brand-bright);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.pricing-card .plan-price {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0;
}

.pricing-card .plan-price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
}

.pricing-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-list li {
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
}

.pricing-list li::before {
  content: "✓";
  color: var(--brand-bright);
  font-weight: 800;
  font-size: 16px;
}

/* ── FAQ Accordion ──────────────────────────────────────────────────────── */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0 24px;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--brand-bright);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--brand-bright);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  line-height: 1;
}

.faq-item.is-open {
  border-color: var(--brand);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer {
  max-height: 250px;
}

.faq-answer p {
  padding-bottom: 24px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */

.final-cta {
  text-align: center;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(7, 13, 11, 0) 70%),
              var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.final-cta h2 {
  font-size: clamp(32px, 5vw, 48px);
  background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
}

/* ── Small-phone refinements ──────────────────────────────────────────── */

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .wa-phone {
    border-width: 10px;
    border-radius: 28px;
  }

  .wa-phone-body {
    min-height: 280px;
  }

  .outcome-row {
    font-size: 15.5px;
    padding: 16px 20px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 14.5px;
  }
}

@media (hover: none) {
  .hero-mockup {
    animation: none;
  }

  .built-for-badge:hover,
  .outcome-row:hover,
  .mockup-item:hover .wa-phone,
  .pricing-card:hover {
    transform: none !important;
  }
}
