/* ============================================
   TWL B2B Segment Landing Pages
   ============================================ */

:root {
  --seg-bg: #0a0a0a;
  --seg-card: #111;
  --seg-text: #f0f0f0;
  --seg-text-2: #999;
  --seg-gold: #d4af37;
  --seg-orange: #ff6a00;
  --seg-border: rgba(255,255,255,0.06);
  --seg-radius: 12px;
}

/* Full-width override — hide sidebar + page title */
body.twl-page-active .page_title_wrap { display: none !important; }
body.twl-page-active .top_panel_title { display: none !important; }
body.twl-page-active .page_content_wrap { padding: 0 !important; }
body.twl-page-active .page_content_wrap .content_wrap { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 auto !important; }
body.twl-page-active .page_content_wrap .content { width: 100% !important; max-width: none !important; padding: 0 !important; float: none !important; }
body.twl-page-active .sidebar { display: none !important; }

/* Layout */
.twl-seg {
  background: var(--seg-bg);
  color: var(--seg-text);
  font-family: inherit;
  line-height: 1.6;
}

.twl-seg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.twl-seg-container--narrow {
  max-width: 800px;
}

/* Section header */
.twl-seg-section-header {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.twl-seg-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--seg-text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.twl-seg-section-subtitle {
  font-size: 1.05rem;
  color: var(--seg-text-2);
  margin: 0;
}

/* ── Kicker (global) ── */
.twl-seg-kicker {
  font-size: 14px;
  color: var(--seg-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.twl-seg-kicker::before,
.twl-seg-kicker::after {
  content: '\2014';
  color: var(--seg-gold);
  font-size: 16px;
}

/* ── Mono ── */
.twl-seg-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ── Green-box (global) ── */
.twl-seg .first-letter-box {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.twl-seg .green-box {
  position: absolute;
  inset: -7px 2px -6px -8px;
  background: var(--seg-gold);
  transform: skewX(-15deg);
  border-radius: 2px;
  z-index: -1;
  overflow: hidden;
  width: 40px;
  height: 60px;
  top: -47px;
  left: 1px;
}

.twl-seg .green-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-25deg);
  animation: segShineBox 4s ease-in-out infinite;
  filter: blur(3px);
  pointer-events: none;
}

@keyframes segShineBox {
  0%, 100% { left: -100%; opacity: 0; }
  50% { left: 150%; opacity: 1; }
}

/* Light sections: kicker + title dark */
.twl-seg-services .twl-seg-kicker { color: var(--seg-gold); }
.twl-seg-services .twl-seg-kicker::before,
.twl-seg-services .twl-seg-kicker::after { color: var(--seg-gold); }

/* ── Breadcrumb ── */
.twl-seg-breadcrumb {
  padding: 16px 0 0;
  border-bottom: 1px solid var(--seg-border);
}

.twl-seg-breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 16px;
  font-size: 0.85rem;
  color: var(--seg-text-2);
}

.twl-seg-breadcrumb__list li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: rgba(255,255,255,0.2);
}

.twl-seg-breadcrumb__list a {
  color: var(--seg-text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.twl-seg-breadcrumb__list a:hover {
  color: var(--seg-gold);
}

.twl-seg-breadcrumb__list li[aria-current="page"] {
  color: var(--seg-gold);
}

/* ── Dot pattern on dark sections ── */
.twl-seg-hero,
.twl-seg-benefits,
.twl-seg-process,
.twl-seg-cta {
  position: relative;
}
.twl-seg-hero::before,
.twl-seg-benefits::before,
.twl-seg-process::before,
.twl-seg-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.twl-seg-hero > *,
.twl-seg-benefits > *,
.twl-seg-process > *,
.twl-seg-cta > * {
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.twl-seg-hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.06) 0%, transparent 70%);
}

.twl-seg-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seg-gold);
  margin-bottom: 24px;
  font-weight: 600;
}

.twl-seg-hero__h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--seg-text);
}

.twl-seg-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--seg-text-2);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ── Buttons ── */
.twl-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.twl-seg-btn--primary {
  background: var(--seg-gold);
  color: #0a0a0a;
}

.twl-seg-btn--primary:hover {
  background: #e5c342;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.25);
}

.twl-seg-btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.twl-seg-btn--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.25);
}

.twl-seg-btn--outline {
  background: transparent;
  color: var(--seg-text);
  border: 1px solid rgba(255,255,255,0.15);
}

.twl-seg-btn--outline:hover {
  border-color: var(--seg-gold);
  color: var(--seg-gold);
}

/* ── Benefits ── */
.twl-seg-benefits {
  padding: clamp(60px, 8vw, 100px) 0;
}

.twl-seg-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.twl-seg-benefits__card {
  background: var(--seg-card);
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.twl-seg-benefits__card:hover {
  border-color: rgba(212,175,55,0.2);
  transform: translateY(-4px);
}

.twl-seg-benefits__icon {
  color: var(--seg-gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(212,175,55,0.08);
  border-radius: 12px;
}

.twl-seg-benefits__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--seg-text);
}

.twl-seg-benefits__desc {
  font-size: 0.95rem;
  color: var(--seg-text-2);
  margin: 0;
  line-height: 1.6;
}

/* ── Services (light) ── */
.twl-seg-services {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #f5f5f5;
  color: #1a1a1a;
}

.twl-seg-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.twl-seg-services__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--seg-radius);
  padding: 22px 28px;
  text-decoration: none;
  color: #1a1a1a;
  transition: border-color 0.3s, background 0.3s;
}

.twl-seg-services__card:hover {
  border-color: var(--seg-gold);
  background: rgba(212,175,55,0.04);
}

.twl-seg-services__name {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
}

.twl-seg-services .twl-seg-section-title {
  color: #1a1a1a;
}
.twl-seg-services .twl-seg-section-subtitle {
  color: #555;
}

.twl-seg-services__arrow {
  font-size: 1.3rem;
  color: var(--seg-gold);
  transition: transform 0.3s;
}

.twl-seg-services__card:hover .twl-seg-services__arrow {
  transform: translateX(4px);
}

/* ── Process ── */
.twl-seg-process {
  padding: clamp(60px, 8vw, 100px) 0;
}

.twl-seg-process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  position: relative;
}

.twl-seg-process__step {
  text-align: center;
  position: relative;
}

.twl-seg-process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--seg-gold);
  color: var(--seg-gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.twl-seg-process__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--seg-text);
}

.twl-seg-process__desc {
  font-size: 0.95rem;
  color: var(--seg-text-2);
  margin: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ (light) ── */
.twl-seg-faq {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #f5f5f5;
}

.twl-seg-faq .twl-seg-section-title {
  color: #1a1a1a;
  display: inline-block;
}

.twl-seg-faq .twl-seg-section-subtitle {
  color: #555;
}

/* FAQ kicker uses global .twl-seg-kicker */

.twl-seg-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.twl-seg-faq__item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 0 !important;
  overflow: hidden;
  transition: border-color 0.3s;
  padding: 0 !important;
  margin: 0 !important;
}

.twl-seg-faq__item.is-open {
  border-color: rgba(212,175,55,0.3);
}

button.twl-seg-faq__header,
.twl-seg-faq__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  color: #1a1a1a !important;
  font-size: clamp(0.9rem, 1.4vw, 1rem) !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: color 0.3s;
  margin: 0 !important;
  line-height: 1.5 !important;
}

button.twl-seg-faq__header:hover,
button.twl-seg-faq__header:focus {
  color: var(--seg-gold) !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.twl-seg-faq__num {
  color: #999;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.twl-seg-faq__q {
  flex: 1;
  font-weight: 500;
  color: #1a1a1a;
}

.twl-seg-faq__toggle {
  color: var(--seg-gold);
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.twl-seg-faq__item.is-open .twl-seg-faq__toggle {
  transform: rotate(45deg);
}

.twl-seg-faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.twl-seg-faq__item.is-open .twl-seg-faq__body {
  grid-template-rows: 1fr;
}

.twl-seg-faq__body > p {
  overflow: hidden;
  padding: 0;
  margin: 0;
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
  background: none;
}

.twl-seg-faq__item.is-open .twl-seg-faq__body > p {
  padding-bottom: 1.25rem;
}

@media (min-width: 769px) {
  .twl-seg-faq__body > p {
    padding-left: 3.5rem;
  }
}

/* ── CTA ── */
.twl-seg-cta {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,175,55,0.06) 0%, transparent 70%);
}

.twl-seg-cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--seg-text);
  letter-spacing: -0.02em;
}

.twl-seg-cta__subtitle {
  font-size: 1.1rem;
  color: var(--seg-text-2);
  margin: 0 0 36px;
}

.twl-seg-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .twl-seg-container {
    padding: 0 16px;
  }

  .twl-seg-benefits__grid,
  .twl-seg-services__grid,
  .twl-seg-process__grid {
    grid-template-columns: 1fr;
  }

  .twl-seg-cta__actions {
    flex-direction: column;
  }

  .twl-seg-btn {
    width: 100%;
    justify-content: center;
  }

  .twl-seg-hero {
    padding: 60px 0 40px;
  }
}

/* ── B2B Hub: Segment Links Section ── */
.twl-seg-hub {
  padding: clamp(60px, 8vw, 100px) 0;
}

.twl-seg-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.twl-seg-hub__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: #f0f0f0;
  transition: border-color 0.3s, transform 0.3s;
}

.twl-seg-hub__card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-4px);
}

.twl-seg-hub__card-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.twl-seg-hub__card-sub {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 16px;
  line-height: 1.5;
}

.twl-seg-hub__card-link {
  font-size: 0.85rem;
  color: #d4af37;
  font-weight: 600;
  margin-top: auto;
}

/* ── Mobile FAQ overflow fix ── */
@media (max-width: 768px) {
  .twl-seg-faq__header { gap: 0.5rem; }
  .twl-seg-faq__q { word-break: break-word; min-width: 0; }
  .twl-seg-faq__toggle { flex-shrink: 0; }
  .twl-seg-faq__body > p { font-size: 0.9rem; }
}

/* ── Green-box responsive ── */
@media (max-width: 767px) {
  .twl-seg .green-box {
    width: 28px !important;
    height: 42px !important;
    inset: -6px -0.35em -30px -10px !important;
    top: unset !important;
    left: unset !important;
  }
}
