/* ============================================================
   Extra / advanced components stylesheet.
   Shared theme-aware primitives (.tx-*) + per-component styles.
   Colors/radius/buttons pick up CSS vars from /theme.css, which
   loads AFTER this file — so var(--theme-primary, #37C2CC) style
   fallbacks below are just safety nets before that loads.
   ============================================================ */

/* ============================================================
   Generic Design-layer consumption (Sprint 6: Layout & Style Engine).

   Every placed component is wrapped in an unstyled `.component-shell`
   div carrying its resolved Layout/Style/Transform as CSS custom
   properties (see services/design_engine.py + templates/page.html +
   admin/templates/preview_wrapper.html). Up to Sprint 6 almost none of
   those variables had a consuming CSS rule anywhere, so most fields
   saved correctly but were never visually applied. This block is that
   single, generic, additive consumption layer: it applies to EVERY
   component-shell, for every one of the ~173 templates, with no
   per-component opt-in required (Sprint 6 report, sections 6 & 9).

   Neutral/default values (block, 1 column, 0px gap/padding/border,
   static position, etc.) are exactly what models/design.py already
   ships as defaults, so a component with no Design overrides renders
   byte-identical to before this block existed -- these rules only
   change output for components that actually have overrides saved.

   A few components (team-grid, gallery-grid, contact-form-grid,
   cta-split-grid, key_features.html, hero/paperless sections, etc.)
   already hand-author their own `var(--gap, ...)`-style rules on their
   *inner* elements (not `.component-shell` itself). Those are a
   different selector than `.component-shell`, so this generic layer
   does not double up with them -- see Sprint 6 report sections 3-4 and
   Phase 6 for the regression pass that confirms this.
   ============================================================ */
.component-shell {
  /* Layout: box model */
  display: var(--mode-as-display, block);
  grid-template-columns: var(--columns-track, none);
  flex-direction: var(--direction, row);
  flex-wrap: var(--wrap, wrap);
  align-items: var(--align-items, stretch);
  justify-content: var(--justify-content, start);
  gap: var(--gap, 0px);

  /* Layout: sizing. Both fallbacks are the true "no Design override
     saved" state: width defaults to 100% (a block element's own natural
     width -- a no-op) and max-width defaults to `none` (unconstrained --
     matches how .component-shell rendered before Sprint 6, when it had
     no CSS at all). --section-width/--container-width are only ever
     present in scope once a user explicitly sets Section/Container
     Width in the Design panel (see models/design.py LayoutConfig), so
     these fallbacks are what every untouched component actually uses. */
  width: var(--section-width, 100%);
  max-width: var(--container-width, none);
  margin-left: auto;
  margin-right: auto;

  /* Layout: spacing */
  padding-top: var(--padding-top, 0px);
  padding-bottom: var(--padding-bottom, 0px);
  padding-left: var(--padding-left, 0px);
  padding-right: var(--padding-right, 0px);

  /* Layout: element order (only takes effect if this shell itself is
     a flex/grid item inside another flex/grid container -- self-
     gating, same as `direction`/`justify-content` above). */
  order: var(--order, 0);

  /* Style: box appearance */
  background-color: var(--background-color, transparent);
  color: var(--text-color, inherit);
  border-width: var(--border-width, 0px);
  border-style: var(--border-style, none);
  border-color: var(--border-color, transparent);
  border-radius: var(--border-radius, 0px);
  box-shadow: var(--shadow, none);

  /* Style: typography (inherited properties -- a component's own,
     more specific selectors continue to win, exactly as before). */
  font-family: var(--font-family, inherit);
  font-size: var(--font-size, inherit);

  /* Transform: the 3 fields that previously had zero consumers.
     translate/scale/rotation are unaffected by this block -- those
     are already applied via the literal inline `transform:` value
     design_engine.resolve_for_render() builds (see templates/page.html
     and preview_wrapper.html), which this rule intentionally leaves
     alone rather than duplicating.
     `position` is applied as-is (default "static", i.e. no change
     from today). This deliberately does NOT force
     `position: relative` as a baseline on every shell -- doing so
     unconditionally could alter existing absolutely-positioned
     children across ~173 templates. A component instance that opts
     into position: relative/absolute/sticky/fixed via the Transform
     tab is responsible for the resulting containing-block behavior;
     see Sprint 6 report Phase 4. */
  z-index: var(--z-index, auto);
  visibility: var(--visibility, visible);
  position: var(--position, static);
}

/* Padding-top/bottom is intentionally NOT var(--padding-top/...)-driven
   here (Sprint 6.2, Blocker 2): .component-shell (above) already applies
   --padding-top/--padding-bottom universally, on every component,
   including ones using .tx-section -- since CSS custom properties
   inherit, this inner rule was independently reading the very same
   inherited variable and adding its own padding on top, so a saved
   Padding Top/Bottom override applied twice (shell + this rule). The
   fix is a single source of truth: the shell padding is now the only
   Design-Engine-driven padding, and this static 90px is simply this
   component's own fixed internal spacing (its pre-Sprint-6 look),
   exactly as if it were any other CSS a component template owns. */
.tx-section { padding: 90px 0; }
.tx-section-header { max-width: 640px; margin: 0 auto 50px; }
.tx-section-title { font-size: var(--font-size, 2rem); font-weight: var(--font-weight, 700); color: var(--text-color, #16181d); margin-bottom: 12px; }
.tx-section-subtitle { font-size: 1.05rem; color: #6b7280; }
.tx-accent { color: var(--theme-primary, #37C2CC); }
.tx-accent-bg { background-color: var(--theme-primary, #37C2CC); }
.tx-card {
  background: var(--background-color, #ffffff);
  border: 1px solid #eef0f3;
  border-radius: var(--theme-radius, 14px);
  box-shadow: var(--shadow, 0 2px 18px rgba(16, 24, 40, 0.05));
}
.tx-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.12);
  border-radius: var(--theme-radius, 14px);
  font-size: 1.4rem;
}
.tx-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px; font-weight: 600; font-size: 0.95rem;
  background: var(--theme-primary, #37C2CC);
  color: #fff;
  border: 2px solid var(--theme-primary, #37C2CC);
  border-radius: var(--theme-btn-radius, 14px);
  cursor: pointer; transition: all 0.25s ease;
  text-decoration: none;
}
.tx-btn-primary:hover { filter: brightness(0.9); color: #fff; }
.tx-carousel-nav {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid #e5e7eb; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease;
}
.tx-carousel-nav:hover { background: var(--theme-primary, #37C2CC); color: #fff; border-color: var(--theme-primary, #37C2CC); }

/* ── Testimonials ── */
.testimonials-track-wrap { display: flex; align-items: center; gap: 16px; }
.testimonials-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 8px 4px 16px;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 min(360px, 85vw); scroll-snap-align: start;
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.testimonial-rating { color: #f5b301; font-size: 0.9rem; }
.testimonial-quote { font-size: var(--font-size, 1.05rem); line-height: 1.6; color: var(--text-color, #374151); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; color: #16181d; }
.testimonial-role { font-size: 0.85rem; color: #9ca3af; }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap, 28px); }
.team-card { padding: 28px; text-align: center; }
.team-card-photo { width: 100px; height: 100px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; }
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-weight: 700; font-size: 1.05rem; color: #16181d; }
.team-card-role { color: var(--text-color, #6b7280); font-size: 0.9rem; margin-top: 4px; }
.team-card-social { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.team-card-social a { color: #9ca3af; font-size: 1.1rem; transition: color 0.2s ease; }
.team-card-social a:hover { color: var(--theme-primary, #37C2CC); }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap, 18px); }
.gallery-item {
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--theme-radius, 14px); aspect-ratio: 4 / 3; background: #f2f2f2;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.tx-lightbox-backdrop {
  position: fixed; inset: 0; background: rgba(10, 12, 16, 0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; padding: 32px;
}
.tx-lightbox-backdrop img { max-width: 90vw; max-height: 82vh; border-radius: 8px; }
.tx-lightbox-caption { color: #fff; text-align: center; margin-top: 12px; font-size: 0.9rem; }
.tx-lightbox-close {
  position: absolute; top: 24px; right: 32px; color: #fff; font-size: 2rem;
  background: none; border: 0; cursor: pointer; line-height: 1;
}

/* ── Timeline ── */
.timeline-list { position: relative; max-width: 720px; margin: 0 auto; padding-left: 32px; }
.timeline-list::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.25);
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -32px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb, 55, 194, 204), 0.3);
}
.timeline-content { padding: 20px 24px; }
.timeline-date { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.timeline-title { margin: 6px 0; font-size: 1.1rem; color: #16181d; }
.timeline-text { color: #6b7280; font-size: 0.95rem; }

/* ── Logos strip ── */
.logos-strip-section { padding: 50px 0; }
.logos-strip-heading { text-align: center; color: #9ca3af; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 28px; }
.logos-strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; }
.logos-strip-item img { height: 32px; width: auto; object-fit: contain; opacity: 0.55; filter: grayscale(100%); transition: opacity 0.2s ease, filter 0.2s ease; }
.logos-strip-item:hover img { opacity: 1; filter: grayscale(0%); }

/* ── Contact form ── */
.contact-form-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gap, 48px); align-items: var(--align-items, start); }
.contact-form-details { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-form-details li { display: flex; align-items: center; gap: 10px; color: #4b5563; }
.contact-form { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: var(--theme-radius-sm, 8px);
  font-family: inherit; font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--theme-primary, #37C2CC); }
.contact-form-submit { border: none; width: 100%; }
.contact-form-note { color: #16a34a; font-size: 0.85rem; text-align: center; }
.contact-form-note.is-error { color: #dc2626; }
@media (max-width: 860px) { .contact-form-grid { grid-template-columns: 1fr; } .contact-form-row { grid-template-columns: 1fr; } }

/* ── Pricing table ── */
.pricing-table-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: stretch; }
.pricing-plan-card { position: relative; padding: 36px 30px; display: flex; flex-direction: column; }
.pricing-plan-card.is-highlighted { border-color: var(--theme-primary, #37C2CC); box-shadow: 0 10px 40px rgba(var(--theme-primary-rgb, 55, 194, 204), 0.22); transform: translateY(-8px); }
.pricing-plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 16px; border-radius: 999px;
}
.pricing-plan-name { font-weight: 700; font-size: 1.1rem; color: #16181d; }
.pricing-plan-price { font-size: 2.2rem; font-weight: 800; margin: 10px 0; color: #16181d; }
.pricing-plan-price span { font-size: 2rem; font-weight: 700; color: #000000; }
.pricing-plan-desc { color: #6b7280; font-size: 0.9rem; margin-bottom: 18px; }
.pricing-plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-plan-features li { display: flex; align-items: center; gap: 10px; color: #374151; font-size: 0.92rem; }
.pricing-plan-cta { width: 100%; text-align: center; }

/* ── Pricing & comparison: shared "ledger" tokens ──────────
   Vyasaka sells document/invoicing software, so the pricing UI borrows
   its visual grammar from a ledger printout rather than a generic SaaS
   card: monospaced amounts, a letterhead-style plan name, a perforated
   ticket edge, and itemised statement rows. Colors still derive from
   the site's own theme system (var(--theme-primary), fonts, radius) —
   only the neutral ink/paper/line tones below are new.                */
.pricing-plans-section, .plan-comparison-section {
  --tx-ink: #14171c;
  --tx-ink-soft: #5b606b;
  --tx-paper: #ffffff;
  --tx-wash: #f6f7f7;
  --tx-line: #e2e4e2;
  --tx-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ── Billing cycle toggle: sliding switch, not two flat buttons ── */
.pricing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 44px; }
.pricing-toggle {
  position: relative; display: inline-flex; isolation: isolate;
  padding: 4px; gap: 2px; background: var(--tx-wash);
  border: 1px solid var(--tx-line); border-radius: 999px;
}
.pricing-toggle-thumb {
  position: absolute; z-index: 0; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: var(--theme-primary, #37C2CC); border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb, 55, 194, 204), 0.35);
}
.pricing-toggle.is-yearly .pricing-toggle-thumb { transform: translateX(100%); }
.pricing-toggle-btn {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 128px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; background: transparent; cursor: pointer;
  padding: 11px 22px; font-weight: 700; font-size: 0.9rem;
  color: var(--tx-ink-soft); border-radius: 999px; transition: color 0.25s ease;
}
.pricing-toggle-btn.is-active { color: #fff; }
.pricing-toggle-save {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.25); color: inherit;
}
.pricing-toggle-btn:not(.is-active) .pricing-toggle-save {
  background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.12); color: var(--theme-primary, #37C2CC);
}

/* ── Pricing section backdrop: soft radial wash so the cards sit in
   some depth instead of floating on flat white ── */
.pricing-plans-section {
  position: relative;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(var(--theme-primary-rgb, 55, 194, 204), 0.06), transparent 70%),
    radial-gradient(50% 45% at 100% 15%, rgba(var(--theme-primary-rgb, 55, 194, 204), 0.05), transparent 70%);
}

/* ── Pricing plan cards ── */
.pricing-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 24px; align-items: stretch; }
.pricing-plan-card {
  position: relative; text-align: center; background: var(--tx-paper);
  border: 1px solid var(--tx-line); border-radius: var(--theme-radius, 14px);
  padding: 38px 30px 34px; display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Colour-coded top accent bar — every card gets one, highlighted gets a
   brighter, thicker version so the eye lands there first. */
.pricing-plan-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--theme-primary, #37C2CC); opacity: 0.35;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.pricing-plan-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(20, 23, 28, 0.09); }
.pricing-plan-card:hover::before { opacity: 0.6; }
.pricing-plan-card.is-highlighted {
  border-color: var(--theme-primary, #37C2CC);
  box-shadow: 0 20px 48px rgba(var(--theme-primary-rgb, 55, 194, 204), 0.22);
}
.pricing-plan-card.is-highlighted::before { height: 6px; opacity: 1; }
.pricing-plan-card.is-highlighted:hover { transform: translateY(-10px); }

/* Icon badge above the plan code — small, but breaks up the wall of text */
.pricing-plan-icon {
  width: 46px; height: 46px; margin: 4px auto 2px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 1.25rem;
  background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.1);
  color: var(--theme-primary, #37C2CC);
}

/* ── Enterprise / custom-rate card: dark, so it reads as the "talk to
   us" tier instead of just another column that ran out of numbers ── */
.pricing-plan-card.is-dark {
  background: linear-gradient(160deg, #ffffff 0%, #ffffff 100%);
  border-color: #acabab;
}
.pricing-plan-card.is-dark::before { background: var(--theme-primary, #37C2CC); opacity: 0.9; }
.pricing-plan-card.is-dark .pricing-plan-code { color: #000000; opacity: 1; }
.pricing-plan-card.is-dark .pricing-plan-name { color: #000000; }
.pricing-plan-card.is-dark .pricing-plan-icon { background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.18); }
.pricing-plan-card.is-dark .pricing-plan-rule { border-color: #000000; }
.pricing-plan-card.is-dark .pricing-plan-note { color: #000000; }
.pricing-plan-card.is-dark .pricing-setup-badge { background: rgba(255, 255, 255, 0.05); border-color: #000000; color: #000000; }
.pricing-plan-card.is-dark .pricing-plan-features { border-top-color: #000000; }
.pricing-plan-card.is-dark .pricing-plan-features li { color: #000000; border-bottom-color: rgba(0, 0, 0, 0.05); }
.pricing-plan-card.is-dark .pricing-feature-tick { background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.22); }
.pricing-plan-card.is-dark .tx-btn-primary { box-shadow: 0 10px 26px rgba(var(--theme-primary-rgb, 55, 194, 204), 0.35); }

/* Perforated ticket edge: a row of "punched" notches along the top,
   colour-matched to the section background so they read as cut-outs. */
.pricing-plan-perforation {
  position: absolute; top: -1px; left: 0; right: 0; height: 12px;
  background-image: radial-gradient(circle at 50% 0, transparent 6px, var(--tx-paper) 6.5px);
  background-size: 24px 12px; background-repeat: repeat-x;
  border-top: 1px dashed var(--tx-line);
}

.pricing-plan-ribbon {
  position: absolute; top: 18px; right: -34px; width: 140px;
  transform: rotate(40deg); text-align: center;
  background: var(--theme-primary, #37C2CC); color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 0; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pricing-plan-head { margin-top: 14px; margin-bottom: 20px; }
.pricing-plan-code {
  display: block; font-family: var(--tx-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--tx-ink-soft); opacity: 0.7; margin-bottom: 6px;
}
.pricing-plan-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; color: var(--tx-ink); }

.pricing-plan-price { line-height: 1; }
.pricing-currency { font-family: var(--tx-mono); font-size: 0.8rem; font-weight: 600; color: var(--tx-ink-soft); vertical-align: super; margin-right: 3px; }
.pricing-amount { font-family: var(--tx-mono); font-size: 2.15rem; font-weight: 700; color: var(--tx-ink); font-variant-numeric: tabular-nums; }
.pricing-period { font-family: var(--tx-mono); font-size: 0.85rem; font-weight: 400; color: var(--tx-ink-soft); }
.pricing-plan-custom { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 700; color: var(--theme-primary, #37C2CC); padding: 6px 0; }
.pricing-plan-rule { height: 3px; width: 46px; margin: 14px auto 0; border-top: 2px solid var(--tx-line); border-bottom: 2px solid var(--tx-line); }
.pricing-plan-note { color: var(--tx-ink-soft); font-size: 0.8rem; font-weight: 600; margin: 10px 0 18px; }

.pricing-setup-badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 auto 24px;
  background: var(--tx-wash); border: 1px solid var(--tx-line); color: var(--tx-ink-soft);
  font-size: 0.78rem; font-weight: 600; padding: 6px 16px; border-radius: 999px;
}
.pricing-setup-original { font-family: var(--tx-mono); text-decoration: line-through; opacity: 0.6; }
.pricing-setup-free { font-weight: 800; color: var(--theme-primary, #37C2CC); }

.pricing-plan-cta { width: 100%; margin-bottom: 28px; }

.pricing-plan-features {
  list-style: none; margin: 0; padding-top: 22px; border-top: 1px dashed var(--tx-line);
  text-align: left; display: flex; flex-direction: column; flex: 1;
}
.pricing-plan-features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--tx-wash);
  color: var(--tx-ink); font-size: 0.9rem; line-height: 1.45;
}
/* Instead of leaving dead white space when a card has fewer features
   than its tallest sibling, the last row's divider fades out into the
   ledger's own dashed-line motif — reads as "end of statement", not
   "ran out of content". */
.pricing-plan-features li:last-child {
  border-bottom: none; flex: 1;
  background-image: repeating-linear-gradient(to bottom, var(--tx-wash) 0, var(--tx-wash) 1px, transparent 1px, transparent 34px);
  background-position: bottom; background-repeat: repeat-y; background-size: 1px 34px;
  align-items: flex-start;
}
.pricing-feature-tick {
  flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; position: relative;
  border-radius: 4px; background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.12);
}
.pricing-feature-tick::after {
  content: ""; position: absolute; left: 4px; top: 2px; width: 5px; height: 8px;
  border: solid var(--theme-primary, #37C2CC); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ── Comparison table: statement / ledger styling ── */
.comparison-table-wrap {
  overflow-x: auto; background: var(--tx-paper);
  border: 1px solid var(--tx-line); border-radius: var(--theme-radius, 14px);
}
.comparison-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.comparison-table th, .comparison-table td { padding: 16px 22px; text-align: center; border-bottom: 1px solid var(--tx-line); }
.comparison-table thead th {
  font-family: var(--tx-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--tx-ink-soft); background: var(--tx-wash);
}
.comparison-table thead th.is-plan-col { color: var(--tx-ink); }
.comparison-table thead th:first-child { text-align: left; }
.comparison-table .comparison-feature-cell { text-align: left; font-weight: 600; color: var(--tx-ink); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: var(--tx-wash); }
.comparison-price-row td { font-family: var(--tx-mono); font-weight: 650;font-size: 1.5rem; color: var(--tx-ink); border-top: 2px solid var(--tx-ink); border-bottom: 2px solid var(--tx-ink); }
.comparison-price-row .comparison-feature-cell { font-family: var(--theme-body-font, inherit); }
.comparison-tick, .comparison-cross { display: inline-block; width: 18px; height: 18px; position: relative; vertical-align: middle; }
.comparison-tick { background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.12); border-radius: 5px; }
.comparison-tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--theme-primary, #37C2CC); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.comparison-cross::before, .comparison-cross::after { content: ""; position: absolute; top: 8px; left: 2px; width: 14px; height: 2px; background: #c6c9cf; }
.comparison-cross::before { transform: rotate(45deg); }
.comparison-cross::after { transform: rotate(-45deg); }

/* ── Comparison table: controls row (billing toggle + spotlight dropdown) ── */
.comparison-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 28px;
}
.comparison-spotlight-picker { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.comparison-spotlight-picker label {
  display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--tx-ink-soft);
}
.comparison-select-wrap { position: relative; }
.comparison-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 12px 42px 12px 18px; min-width: 220px;
  border: 2px solid var(--tx-line); border-radius: var(--theme-btn-radius, 999px);
  background: var(--tx-paper); color: var(--tx-ink); font-weight: 650; font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comparison-select:hover, .comparison-select:focus {
  border-color: var(--theme-primary, #37C2CC); outline: none;
  box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb, 55, 194, 204), 0.15);
}
.comparison-select-caret {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--theme-primary, #37C2CC); font-size: 0.85rem;
}

/* ── Comparison table: sticky header + spotlight column glow ── */
.comparison-table-wrap { position: relative; box-shadow: var(--theme-shadow, 0 8px 24px rgba(0,0,0,0.10)); }
.comparison-table thead th { position: sticky; top: 0; z-index: 2; }
.comparison-table [data-col-index].is-spotlight {
  background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.07);
  position: relative;
}
.comparison-table th.is-spotlight {
  background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.14);
  color: var(--theme-primary, #37C2CC);
}
.comparison-table-wrap:has(.is-spotlight) th[data-col-index]:not(.is-spotlight):not([data-col-index="0"]) .comparison-col-name {
  opacity: 0.55;
}
td.is-spotlight, th.is-spotlight {
  box-shadow: inset 0 0 0 2px rgba(var(--theme-primary-rgb, 55, 194, 204), 0.35);
}
.comparison-recommended-badge {
  display: block; margin: 0 auto 6px; width: fit-content;
  padding: 3px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; color: #fff;
  background: var(--theme-primary, #37C2CC);
}
.comparison-col-name { display: block; }

.comparison-mobile-hint {
  display: none; text-align: center; font-size: 0.85rem; color: var(--tx-ink-soft);
  margin-top: 14px; align-items: center; justify-content: center; gap: 6px;
}

/* ── Comparison table: CTA row (per-plan "Enquire now" buttons) ── */
.comparison-cta-row th { padding-top: 4px; padding-bottom: 20px; background: transparent; }
.comparison-cta-btn {
  display: inline-block; padding: 9px 22px; border-radius: var(--theme-btn-radius, 999px);
  border: 2px solid var(--theme-primary, #37C2CC); color: var(--theme-primary, #37C2CC);
  font-weight: 700; font-size: 0.85rem; text-decoration: none; background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.comparison-cta-btn:hover { background: var(--theme-primary, #37C2CC); color: #fff; }

/* ── Comparison table: collapsible feature groups ── */
.comparison-group-header-row td { padding: 0; border-bottom: none; }
.comparison-group-toggle-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; margin: 6px 0; border: none; cursor: pointer; text-align: left;
  background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.10);
  border-radius: var(--theme-radius, 14px);
  font-size: 1rem; font-weight: 700; color: var(--tx-ink);
  transition: background-color 0.2s ease;
}
.comparison-group-toggle-btn:hover { background: rgba(var(--theme-primary-rgb, 55, 194, 204), 0.16); }
.comparison-group-chevron { color: var(--tx-ink); transition: transform 0.25s ease; flex-shrink: 0; }
.comparison-group[data-tx-comparison-group].is-collapsed .comparison-group-chevron { transform: rotate(-180deg); }
.comparison-group[data-tx-comparison-group].is-collapsed .comparison-group-row { display: none; }
.comparison-group-row td:first-child { padding-left: 22px; }

.comparison-dash { color: var(--tx-ink-soft, #9aa0a8); font-weight: 700; }

/* ── Profile Showcase carousel ── */
.profile-showcase-wrap { position: relative; }
.profile-showcase-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.profile-showcase-track::-webkit-scrollbar { display: none; }

.profile-card {
  flex: 0 0 auto; width: 240px; scroll-snap-align: start;
  border-radius: var(--theme-radius, 14px); overflow: hidden;
  background: var(--tx-paper); text-decoration: none; color: inherit;
  box-shadow: var(--theme-shadow, 0 8px 24px rgba(0,0,0,0.10));
  transition: transform 0.25s ease;
}
.profile-card:hover { transform: translateY(-6px); }

.profile-card-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.profile-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-card-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--theme-primary-rgb, 55,194,204), 0.35) 0%, rgba(var(--theme-primary-rgb, 55,194,204), 0.55) 100%);
  mix-blend-mode: multiply; opacity: 0.55; transition: opacity 0.25s ease;
}
.profile-card:hover .profile-card-tint { opacity: 0.15; }
.profile-card.is-featured .profile-card-tint { opacity: 0; }

.profile-card-body { padding: 18px 18px 20px; }
.profile-card-name-row { display: flex; align-items: center; gap: 6px; }
.profile-card-name { font-size: 1.15rem; font-weight: 600; color: var(--tx-ink-soft, #6b7280); }
.profile-card.is-featured .profile-card-name { font-size: 1.35rem; font-weight: 800; color: var(--tx-ink); }
.profile-card-verified { color: var(--theme-primary, #37C2CC); font-size: 1rem; display: inline-flex; }

.profile-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-card-tag {
  padding: 4px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.02em; background: rgba(var(--theme-primary-rgb, 55,194,204), 0.12);
  color: var(--theme-primary, #37C2CC);
}
.profile-card.is-featured .profile-card-tag { background: var(--theme-primary, #37C2CC); color: #fff; }

.profile-showcase-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.profile-showcase-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--tx-line, #d8dbe0); transition: background-color 0.2s ease, transform 0.2s ease;
}
.profile-showcase-dot.is-active { background: var(--theme-primary, #37C2CC); transform: scale(1.3); }
.profile-showcase-dot:hover { background: var(--theme-primary, #37C2CC); }

@media (max-width: 560px) {
  .profile-card { width: 200px; }
}

/* On small screens, collapse to Feature + spotlighted plan column only —
   purely CSS, driven by the same .is-spotlight class the dropdown JS sets. */
@media (max-width: 700px) {
  .comparison-table { min-width: 0; }
  .comparison-table [data-col-index]:not([data-col-index="0"]):not(.is-spotlight) { display: none; }
  .comparison-mobile-hint { display: flex; }
}

@media (max-width: 640px) {
  .pricing-plan-ribbon { right: -40px; }
  .pricing-toggle-btn { min-width: 104px; padding: 10px 14px; }
}

/* ── Integrations grid ── */
.integrations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.integration-card { padding: 26px; text-align: center; }
.integration-icon { margin: 0 auto 16px; }
.integration-name { font-weight: 700; color: #16181d; }
.integration-desc { color: #6b7280; font-size: 0.88rem; margin-top: 8px; }

/* ── Stats counter ── */
.stats-counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stats-counter-value { font-size: 2.6rem; font-weight: 800; }
.stats-counter-label { color: #6b7280; font-size: 0.95rem; margin-top: 6px; }

/* ── FAQ accordion (generic) ── */
.faq-accordion-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-accordion-item { overflow: hidden; }
.faq-accordion-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-weight: 600; font-size: 1rem; color: #16181d;
}
.faq-accordion-question i { transition: transform 0.25s ease; color: var(--theme-primary, #37C2CC); }
.faq-accordion-item.is-open .faq-accordion-question i { transform: rotate(45deg); }
.faq-accordion-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-accordion-answer p { padding: 0 24px 20px; color: var(--text-color, #6b7280); line-height: 1.6; }
.faq-accordion-item.is-open .faq-accordion-answer { max-height: 400px; }

/* ── CTA split ── */
.cta-split-section { background: var(--background-color, #fafbfc); }
.cta-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap, 48px); align-items: var(--align-items, center); }
.cta-split-grid.image-left { direction: rtl; }
.cta-split-grid.image-left > * { direction: ltr; }
.cta-split-eyebrow { display: block; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; margin-bottom: 12px; }
.cta-split-heading { font-size: 2.1rem; font-weight: 700; color: #16181d; margin-bottom: 16px; }
.cta-split-desc { color: var(--text-color, #6b7280); font-size: var(--font-size, 1.05rem); margin-bottom: 26px; }
.cta-split-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-split-secondary { color: #ffffff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cta-split-image img { width: 100%; border-radius: var(--theme-radius-lg, 20px); }
@media (max-width: 860px) { .cta-split-grid, .cta-split-grid.image-left { grid-template-columns: 1fr; direction: ltr; } }

/* ── Active Slider ── */
.active-slider-section { padding: 0; }
.active-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--theme-radius-lg, 20px);
  background: #f7f8fa;
}
.active-slider-track { position: relative; min-height: 440px; }
.active-slider-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 72px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}
.active-slider-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}
.active-slider-eyebrow {
  display: block; font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.active-slider-title { font-size: 2.15rem; font-weight: 700; color: #16181d; margin-bottom: 14px; line-height: 1.25; }
.active-slider-description { font-size: 1.02rem; color: #5b6472; margin-bottom: 22px; line-height: 1.6; }
.active-slider-media img { width: 100%; border-radius: var(--theme-radius, 14px); display: block; }
.active-slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #e5e7eb; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; transition: all 0.2s ease;
}
.active-slider-nav:hover { background: var(--theme-primary, #37C2CC); color: #fff; border-color: var(--theme-primary, #37C2CC); }
.active-slider-prev { left: 20px; }
.active-slider-next { right: 20px; }
.active-slider-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.active-slider-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  border: none; background: rgba(0, 0, 0, 0.2); cursor: pointer;
  transition: all 0.2s ease;
}
.active-slider-dot.is-active { background: var(--theme-primary, #37C2CC); width: 22px; border-radius: 5px; }

@media (max-width: 860px) {
  .active-slider-slide { grid-template-columns: 1fr; padding: 40px 24px 72px; }
  .active-slider-track { min-height: 600px; }
  .active-slider-media { order: -1; }
}

@media (max-width: 640px) {
  .tx-section { padding: 60px 0; }
  .pricing-plan-card.is-highlighted { transform: none; }
}

/* ---------- Podcast Episodes ---------- */
.podcast-episodes-section { background: #fff; }
.episodes-header { margin-bottom: 36px; }
.episodes-header-badge {
  display: inline-block; background: #eef1f8; color: #16181d;
  font-weight: 700; font-size: 1.1rem; padding: 12px 26px;
  border-radius: 999px;
}

.episode-card {
  position: relative;
  border: 1.5px solid var(--theme-secondary, #22D3C7);
  border-radius: 22px;
  padding: 28px 26px 24px;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.episode-card:hover { box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08); transform: translateY(-4px); }

.episode-card-actions {
  position: absolute; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 2;
}
.episode-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #16181d; color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.episode-icon-btn:hover { background: var(--theme-primary, #1E6FEB); }
.episode-icon-btn.is-active { background: var(--theme-primary, #1E6FEB); color: #fff; }

.episode-card-top { display: flex; gap: 20px; align-items: flex-start; }

.episode-cover {
  position: relative; width: 128px; height: 128px; flex: 0 0 128px;
  border-radius: 16px; overflow: hidden; background: #16181d;
}
.episode-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.episode-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--theme-secondary, #22D3C7); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.episode-meta-block { flex: 1; min-width: 0; padding-right: 48px; }
.episode-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: #6b7280; margin-bottom: 8px;
}
.episode-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.episode-number-badge {
  background: var(--theme-primary, #1E6FEB); color: #fff; font-size: 0.72rem;
  font-weight: 700; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.episode-title {
  font-size: 1.3rem; font-weight: 800; color: var(--theme-secondary, #22D3C7);
  margin-bottom: 12px; line-height: 1.25;
}
.episode-host { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.episode-host-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.episode-host-info { display: flex; flex-direction: column; line-height: 1.3; }
.episode-host-name-row { font-weight: 700; color: #16181d; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 5px; }
.episode-host-verified { color: var(--theme-primary, #1E6FEB); font-size: 0.85rem; }
.episode-host-role { font-size: 0.82rem; color: #9ca3af; }

.episode-subscribe-btn {
  display: inline-block; background: var(--theme-primary, #1E6FEB); color: #fff;
  font-weight: 600; font-size: 0.9rem; padding: 9px 22px; border-radius: 999px;
  transition: opacity 0.2s ease;
}
.episode-subscribe-btn:hover { opacity: 0.88; color: #fff; }

.episode-description { color: #9ca3af; font-size: 0.95rem; margin: 20px 0 16px; }

.episode-stats { display: flex; flex-wrap: wrap; gap: 26px; }
.episode-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.9rem; font-weight: 600; color: #374151;
}
.episode-stat .lni-headphone { color: var(--theme-secondary, #22D3C7); }
.episode-stat .lni-heart { color: #ef4444; }
.episode-stat .lni-comments { color: #f59e0b; }
.episode-stat .lni-download { color: var(--theme-primary, #1E6FEB); }

@media (max-width: 991px) {
  .episode-card { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .episode-card-top { flex-direction: column; }
  .episode-meta-block { padding-right: 0; }
  .episode-cover { width: 100%; flex-basis: auto; height: 180px; }
}
