/* Carlito font faces */
@font-face {
  font-family: 'Carlito';
  src: url('./fonts/Carlito-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Carlito';
  src: url('./fonts/Carlito-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Carlito';
  src: url('./fonts/Carlito-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Carlito';
  src: url('./fonts/Carlito-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --tp-blue:        #0d6efd;
  --tp-blue-dark:   #851f5d;   /* not blue anymore */
  --tp-blue-light:  #cfe2ff;
  --tp-court:       #2e7d32;   /* tennis green for accents */

  /* Global heading scale for consistent hierarchy across admin + public pages */
  --tp-heading-line-height: 1.2;
  --tp-h1-size: 2.1rem;
  --tp-h2-size: 1.85rem;
  --tp-h3-size: 1.65rem;
  --tp-h4-size: 1.45rem;
  --tp-h5-size: 1.28rem;
  --tp-h6-size: 1.14rem;
  --tp-page-title-size: 1.95rem;
  --tp-form-font-size: 1rem;
  --tp-form-help-font-size: 1rem;
  --tp-form-control-min-height: 2.65rem;
  --tp-form-label-margin-bottom: 0.35rem;
  --tp-form-help-margin-top: 0.35rem;
  --tp-form-group-margin-bottom: 1rem;

  /* Bump Tabler's default 14px body font back toward Bootstrap's 16px */
  --tblr-body-font-size: 1.2rem;
  --tblr-font-size-base: 1.2rem;
  
  /* Override Tabler's font to use Carlito */
  --tblr-body-font-family: 'Carlito', sans-serif;
  --tblr-font-sans-serif: 'Carlito', sans-serif;
}

/* Global heading consistency */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  line-height: var(--tp-heading-line-height);
  font-weight: 700;
}
h1, .h1 { font-size: var(--tp-h1-size); }
h2, .h2 { font-size: var(--tp-h2-size); }
h3, .h3 { font-size: var(--tp-h3-size); }
h4, .h4 { font-size: var(--tp-h4-size); }
h5, .h5 { font-size: var(--tp-h5-size); }
h6, .h6 { font-size: var(--tp-h6-size); }

/* Navbar tweaks */
.navbar-admin {
  background-color: var(--tp-blue-dark);
}
.navbar-admin .nav-link:hover,
.navbar-admin .nav-link:focus,
.navbar-admin .nav-link.active {
  color: #dbe9ff;
}
.navbar-brand { letter-spacing: 0.03em; }
.nav-link { font-size: 0.9rem; }
.navbar .navbar-nav { font-size: 0.9rem; }

/* Cards */
.card { border-radius: .5rem; }
.card-header { border-radius: .5rem .5rem 0 0 !important; }
.category-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}
.category-page-accordion .accordion-item {
  overflow: hidden;
  border-radius: .5rem;
}
.category-page-accordion .accordion-button {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  background: var(--tp-blue);
  color: #fff;
}
.category-page-accordion .accordion-button:not(.collapsed) {
  background: var(--tp-blue-dark);
  color: #fff;
  box-shadow: none;
}
.category-page-accordion .accordion-button:focus {
  box-shadow: none;
}

/* Use one caret icon style for every accordion in the app. */
.accordion-button::after {
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  background-image: none !important;
  content: '\f229';
  font-family: 'bootstrap-icons';
  font-size: .95rem;
  line-height: 1;
  color: currentColor;
  transition: transform 0.2s ease;
}
.accordion-button.collapsed::after {
  transform: rotate(-90deg);
}
.accordion-button:not(.collapsed)::after {
  transform: rotate(0deg);
}

.faq-accordion {
  display: grid;
  gap: .75rem;
}
.faq-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid #dce2e8;
  border-radius: .5rem;
  background: #fff;
}
.faq-accordion .accordion-button {
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  background: #fff;
  color: #182433;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--tp-blue-dark);
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 #dce2e8;
}
.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2);
}
.faq-accordion .accordion-body {
  padding: 1.25rem;
  color: #364152;
}
.faq-accordion .accordion-body > :last-child {
  margin-bottom: 0;
}

.card .card-header h5,
.card .card-header .category-section-title {
  font-size: var(--tp-h5-size);
  line-height: var(--tp-heading-line-height);
}
.card .card-header h6 {
  font-size: var(--tp-h6-size);
  line-height: var(--tp-heading-line-height);
}
.category-page-title {
  font-size: var(--tp-page-title-size);
  line-height: var(--tp-heading-line-height);
}
.category-status-badge {
  font-size: 1.05rem !important;
  padding: .45rem .75rem;
}
.category-cta-btn {
  font-size: 1rem;
  padding: .45rem .8rem;
}

/* Four-player reduced-group format preview */
.tp-reduced-format-diagram {
  overflow-x: auto;
  padding: .75rem;
  border: 1px solid #d7e1ea;
  border-radius: .375rem;
  background: #fff;
}
.tp-reduced-format-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 1rem;
  min-width: 650px;
}
.tp-reduced-format-column {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: .5rem;
}
.tp-reduced-format-heading {
  color: var(--tblr-primary, #066fd1);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tp-reduced-format-match {
  min-height: 5rem;
  padding: .55rem .65rem;
  border: 1px solid #d7e1ea;
  border-radius: .375rem;
  background: #f1f3f5;
}
.tp-reduced-format-match-number {
  margin-bottom: .35rem;
  color: #5f6b78;
  font-size: .72rem;
}
.tp-reduced-format-player {
  min-height: 1.35rem;
  color: #687386;
  font-size: .82rem;
}
.tp-reduced-format-qualified {
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding: .55rem .65rem;
  border: 1px solid #c9dfd0;
  border-radius: .375rem;
  background: #eaf7ee;
  color: #687386;
  font-size: .82rem;
  font-style: italic;
}
@media (max-width: 575.98px) {
  .tp-reduced-format-matrix {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

.tp-collapse-toggle {
  background: transparent;
  border: 0;
}
.tp-collapse-toggle:hover,
.tp-collapse-toggle:focus,
.tp-collapse-toggle:active {
  background: transparent !important;
  color: inherit;
  box-shadow: none !important;
}
.tp-collapse-caret {
  transition: transform 0.2s ease;
}
.tp-collapse-toggle.collapsed .tp-collapse-caret {
  transform: rotate(-90deg);
}

/* Form typography consistency across admin + public pages */
form .form-label,
form .form-control,
form .form-select,
form .form-control-plaintext,
form .form-check-label,
form .form-check-input,
form .form-text,
form .invalid-feedback,
form .valid-feedback {
  font-size: var(--tp-form-font-size);
}
form .form-text,
form .invalid-feedback,
form .valid-feedback {
  font-size: var(--tp-form-help-font-size);
}
form .form-label {
  margin-bottom: var(--tp-form-label-margin-bottom);
}
form .form-control,
form .form-select {
  min-height: var(--tp-form-control-min-height);
}
form .form-check {
  margin-bottom: 0.4rem;
}
form .form-text,
form .invalid-feedback,
form .valid-feedback {
  margin-top: var(--tp-form-help-margin-top);
  line-height: 1.3;
}
form .mb-3,
form .mb-4 {
  margin-bottom: var(--tp-form-group-margin-bottom) !important;
}
form .row.g-3 {
  --tblr-gutter-y: 1rem;
}

/* Draw / bracket */
.tp-bracket-scroll {
  position: relative;
  scrollbar-color: #9fb4ca #eef3f7;
}
.bracket-round-container {
  width: 100%;
}
.bracket-round {
  display: flex;
  flex: 1 0 220px;
  flex-direction: column;
  min-width: 220px;
  padding-right: 42px;
}
.tp-bracket-round-title {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 34px;
  padding: .45rem .65rem;
  border-bottom: 2px solid #b9d2ee;
  background: #f5f9fd;
  letter-spacing: 0;
}
.bracket-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bracket-match {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #b8c5d3;
  border-radius: 5px;
  margin: .3rem 0;
  background: #fff;
  min-width: 178px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .06);
}
.tp-bracket-match-label {
  padding: .2rem .55rem;
  border-bottom: 1px solid #dfe6ed;
  background: #eef3f7;
  color: #60758a;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.bracket-match .player {
  min-height: 31px;
  padding: .35rem .55rem;
  overflow: hidden;
  border-top: 1px solid #edf1f5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bracket-match .tp-bracket-match-label + .player { border-top: 0; }
.bracket-match .player.winner { font-weight: bold; color: var(--tp-blue-dark); }
.bracket-match .player.loser  { color: #6c757d; text-decoration: line-through; }
.tp-bracket-source { color: #6c7f91; font-size: .75rem; font-style: italic; }
.tp-bracket-score {
  padding: .25rem .55rem;
  border-top: 1px dotted #c7d2dd;
  border-bottom: 1px dotted #c7d2dd;
  background: #fafcfe;
  color: #53677a;
  font-size: .72rem;
  font-weight: 600;
}
.tp-bracket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  min-height: 34px;
  padding: .2rem .4rem;
  border-top: 1px solid #edf1f5;
  background: #fafbfc;
}
.tp-bracket-meta {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .45rem;
  min-width: 0;
  padding: 0;
  color: #687b8d;
  font-size: .68rem;
}
.tp-bracket-actions {
  flex: 0 0 auto;
  padding: 0;
}
.tp-bracket-actions .btn {
  min-height: 28px !important;
  height: 28px;
  padding: .2rem .4rem;
}
.tp-bracket-bye {
  display: inline-flex;
  padding: .08rem .4rem;
  border-radius: 3px;
  background: #e8edf2;
  color: #647586;
  font-size: .68rem;
  font-weight: 700;
}
.bracket-match-bye { border-style: dashed; background: #fafbfc; }
.bracket-round:not(.bracket-round-last) .bracket-slot::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 42px;
  border-top: 1px solid #8ba1b5;
  content: '';
}
.bracket-round:not(.bracket-round-last) .bracket-slot::before {
  position: absolute;
  right: 0;
  width: 1px;
  background: #8ba1b5;
  content: '';
}
.bracket-round:not(.bracket-round-last) .bracket-slot:nth-child(even)::before {
  top: 50%;
  bottom: 0;
}
.bracket-round:not(.bracket-round-last) .bracket-slot:nth-child(odd)::before {
  top: 0;
  bottom: 50%;
}
.tp-bracket-incoming {
  position: absolute;
  top: 50%;
  left: -42px;
  width: 42px;
  border-top: 1px solid #8ba1b5;
}
.bracket-round-last .bracket-match {
  border-color: #5a91ce;
  box-shadow: 0 3px 8px rgba(13, 110, 253, .12);
}
.bracket-round-last .tp-bracket-match-label { background: #e6f0fb; color: #245f9d; }
.tp-bracket-third-place {
  width: 220px;
  padding-top: .75rem;
  border-top: 1px solid #d9e2eb;
}
.tp-bracket-third-place .bracket-match { min-width: 220px; }

@media (max-width: 575.98px) {
  .bracket-round { flex-basis: 190px; min-width: 190px; padding-right: 32px; }
  .bracket-round:not(.bracket-round-last) .bracket-slot::after,
  .tp-bracket-incoming { width: 32px; }
  .tp-bracket-incoming { left: -32px; }
}

/* Mobile KO bracket rounds (public view) */
/* Group standings table */
.standings-table th { background: var(--tp-blue-light); }

/* Markdown preview */
.markdown-body pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: .375rem;
  font-size: .85rem;
  white-space: pre-wrap;
}

/* Score input */
.score-input { width: 5rem; text-align: center; }

      .hero-section {
        padding: 4rem 0;
        background: #f8fafc;
      }
      .hero-features {
        list-style: none;
        margin: 0 0 1.5rem;
        padding-left: 0;
      }
      .hero-features li {
        position: relative;
        padding-left: 1.75rem;
      }
      .hero-features li::before {
        position: absolute;
        left: 0;
        color: var(--tblr-success, #2fb344);
        content: "\2713";
        font-weight: 700;
      }
      .hero-features li + li {
        margin-top: .25rem;
      }
      .hero-img {
        border-radius: 12px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        max-width: 100%;
        height: auto;
      }
      .quick-start-btn {
        transition: transform 0.2s;
      }
      .quick-start-btn:hover {
        transform: translateY(-3px);
      }
      .tutorial-format-card {
        color: inherit;
        transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
      }
      .tutorial-format-card:hover {
        border-color: var(--tblr-primary);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.12);
        transform: translateY(-3px);
      }
      .pricing-beta-card {
        background: linear-gradient(135deg, #ffffff 0%, #eef7ef 100%);
      }
      .help-index-card {
        background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
      }
      .help-index-steps {
        background: rgba(46, 125, 50, 0.08);
      }
      .tutorial-follow-up {
        border-top: 1px solid var(--tblr-border-color);
      }
      .help-index-follow-up {
        border-top: 1px solid var(--tblr-border-color);
      }
      .icon-box {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background-color: rgba(43, 90, 39, 0.1);
        color: var(--tblr-primary);
        font-size: 1.5rem;
        margin-bottom: 1rem;
      }

      /* Estilos para el separador fluido */
      .separator-section {
        width: 100%;
        height: 196px; /* Alto especificado */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
      }
      /* Ajuste para móviles para que no quede tan alto en pantallas angostas */
      @media (max-width: 768px) {
        .separator-section {
          height: 200px;
        }
      }
      .contact-card {
        transition: border-color 0.3s;
      }
      .contact-card:hover {
        border-color: var(--tblr-primary);
      }

/* Product landing */
.landing-main { margin: 0; }
.landing-main + footer { margin-top: 0 !important; }
.landing-page {
  --landing-ink: #17251d;
  --landing-green: #226b42;
  --landing-green-soft: #eaf4ed;
  --landing-red: #a33a35;
  --landing-yellow: #e6b94f;
  --landing-paper: #f7f8f3;
  color: var(--landing-ink);
  overflow: hidden;
}
.landing-page h1,
.landing-page h2,
.landing-page h3 { letter-spacing: 0; }
.landing-page h2 { max-width: 780px; margin: 0 0 1rem; font-size: 2.35rem; }
.landing-section { padding: 5.5rem 0; scroll-margin-top: 1rem; }
.landing-eyebrow {
  margin-bottom: .7rem;
  color: var(--landing-green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.landing-section-heading { max-width: 780px; margin-bottom: 2.75rem; }
.landing-section-heading.mx-auto { max-width: 720px; }
.landing-section-heading p,
.landing-feature-lead { margin: 0; color: #5b6860; font-size: 1.18rem; line-height: 1.6; }

.landing-hero {
  position: relative;
  padding: 5.5rem 0 6rem;
  background-color: #f4f7f1;
  background-image: linear-gradient(rgba(45, 85, 58, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 85, 58, .055) 1px, transparent 1px);
  background-size: 32px 32px;
}
.landing-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--landing-green) 0 45%, var(--landing-yellow) 45% 72%, var(--landing-red) 72%);
  content: '';
}
.landing-title { max-width: 680px; margin: 0 0 1.25rem; font-size: 3.45rem; line-height: 1.03; }
.landing-lead { max-width: 650px; margin-bottom: 1.5rem; color: #4b5a51; font-size: 1.3rem; line-height: 1.55; }
.hero-features { margin: 0 0 1.8rem; padding: 0; list-style: none; }
.hero-features li + li { margin-top: .38rem; }
.hero-features li::before { display: none; }
.hero-features a { display: inline-flex; align-items: center; color: #294a36; font-weight: 700; text-decoration: none; }
.hero-features a::before { margin-right: .65rem; color: #2f8a56; content: '\2713'; }
.hero-features a i { margin-left: .25rem; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.hero-features a:hover i { opacity: 1; transform: translateY(0); }
.landing-beta-link { color: #7e332f; font-weight: 700; text-decoration: none; }
.landing-beta-link:hover { color: #a33a35; text-decoration: underline; }

.landing-product-stage { display: flex; min-height: 0; flex-direction: column; gap: .75rem; }
.landing-product-photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  filter: saturate(.9) contrast(.96);
}
.landing-schedule-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 .75rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid #d8e0d8;
  border-radius: 6px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 30px rgba(21, 49, 31, .14);
}
.landing-schedule-preview > .d-flex,
.landing-preview-note { grid-column: 1 / -1; }
.landing-schedule-row { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .5rem 0; border-top: 1px solid #e5e9e4; font-size: .82rem; }
.landing-schedule-row span { color: #66736a; font-size: .9rem; }
.landing-preview-note { margin-top: .55rem; padding: .55rem .65rem; background: var(--landing-green-soft); color: #24603c; font-size: .75rem; font-weight: 700; }
.landing-public-chip { position: relative; z-index: 2; align-self: flex-end; padding: .7rem .85rem; border-radius: 4px; background: #17251d; color: #fff; box-shadow: 0 10px 25px rgba(0, 0, 0, .14); font-size: .8rem; font-weight: 700; }

.landing-memory-separator {
  width: 100%;
  height: 196px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.landing-memory-separator-one { background-image: url('../separator1.jpg'); }
.landing-memory-separator-two { background-image: url('../separator2.jpg'); }

.landing-real-section { background: #fff; }
.landing-heading-icon { color: #bac8bd; font-size: 3rem; }
.landing-real-card { border-radius: 6px; border-color: #dbe3dc; box-shadow: none; transition: border-color .15s, transform .15s; }
.landing-real-card:hover { border-color: #69a47e; transform: translateY(-2px); }
.landing-real-card h3 { font-size: 1.2rem; }
.landing-category-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding-top: .8rem; border-top: 1px solid #e8ece8; font-size: .82rem; }
.landing-category-links > span { color: #6b756e; font-weight: 700; }

.landing-journey { background: var(--landing-ink); color: #fff; }
.landing-journey .landing-eyebrow { color: #8ed1a6; }
.landing-journey .landing-section-heading p { color: #b8c6bd; }
.landing-journey-list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.landing-journey-list li { position: relative; min-width: 0; padding: 1.5rem 1.2rem 0; border-top: 1px solid #526158; }
.landing-journey-list li::after { position: absolute; top: -1px; right: 0; left: 0; border-top: 3px solid var(--landing-yellow); content: ''; transform: scaleX(.3); transform-origin: left; }
.landing-step-number { position: absolute; top: -1rem; right: 1rem; color: #516057; font-size: 3.2rem; font-weight: 700; line-height: 1; }
.landing-journey-list .bi { color: #8ed1a6; font-size: 1.75rem; }
.landing-journey-list h3 { margin: 1.1rem 0 .55rem; font-size: 1.15rem; }
.landing-journey-list p { margin: 0; color: #b8c6bd; font-size: .9rem; line-height: 1.45; }

.landing-formats-section { background: var(--landing-paper); }
.landing-format-card { overflow: hidden; border: 1px solid #d5ddd5; border-radius: 6px; background: #fff; }
.landing-format-copy { padding: 1.4rem 1.5rem 1.5rem; }
.landing-format-copy h3 { margin: 0 0 .45rem; font-size: 1.35rem; }
.landing-format-copy p { margin: 0; color: #647068; line-height: 1.5; }
.tp-format-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
  border-bottom: 1px solid #d9e2dc;
  background-color: #f5f8f5;
  background-image: linear-gradient(#e3e9e4 1px, transparent 1px), linear-gradient(90deg, #e3e9e4 1px, transparent 1px);
  background-size: 24px 24px;
  color: #1f2937;
}
.tp-mini-bracket { display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); align-items: center; width: min(100% - 32px, 390px); gap: 30px; }
.tp-mini-round { display: grid; gap: 8px; }
.tp-mini-round span,
.tp-mini-ko-finish span,
.tp-mini-ko-finish strong { position: relative; display: flex; align-items: center; min-height: 26px; padding: 3px 8px; border: 1px solid #94a3b8; border-radius: 3px; background: #fff; font-size: .72rem; font-weight: 700; }
.tp-mini-round-semis { gap: 38px; }
.tp-mini-round-first span::after,
.tp-mini-round-semis span::after { position: absolute; top: 50%; left: 100%; width: 31px; border-top: 1px solid #64748b; content: ''; }
.tp-mini-round-final span,
.tp-mini-ko-finish strong { border-color: #28744a; background: #e8f4ec; color: #1f623d; }
.tp-mini-round-final i,
.tp-mini-ko-finish i { margin-right: 5px; color: #c18a00; }
.tp-mini-standings { width: min(100% - 32px, 430px); overflow: hidden; border: 1px solid #b8c5bd; border-radius: 4px; background: #fff; box-shadow: 0 4px 10px rgba(15, 23, 42, .06); }
.tp-mini-standings > div { display: grid; grid-template-columns: 25px minmax(70px, 1fr) repeat(3, 34px); align-items: center; min-height: 25px; padding: 0 9px; border-top: 1px solid #e2e8e3; font-size: .7rem; }
.tp-mini-standings > div:first-child { border-top: 0; }
.tp-mini-standings span:not(:nth-child(2)), .tp-mini-standings strong { text-align: center; }
.tp-mini-standings-head { background: #dceee2; color: #245b38; font-weight: 700; }
.tp-mini-standings > div:nth-child(2) { border-left: 3px solid #2e7d4e; background: #f0f8f2; }
.tp-groups-to-ko, .tp-reduced-to-ko { display: flex; align-items: center; justify-content: center; width: 100%; gap: 16px; padding: 12px; }
.tp-mini-groups { display: flex; gap: 8px; }
.tp-mini-group { display: grid; grid-template-columns: 24px 1fr; width: 72px; overflow: hidden; border: 1px solid #9fb0a4; border-radius: 3px; background: #fff; font-size: .65rem; }
.tp-mini-group strong { grid-row: 1 / 4; display: flex; align-items: center; justify-content: center; background: #dceee2; color: #245b38; font-size: .78rem; }
.tp-mini-group span { display: flex; align-items: center; gap: 5px; min-height: 27px; padding: 2px 5px; border-bottom: 1px solid #e2e8e3; }
.tp-mini-group span:last-child { border-bottom: 0; }
.tp-mini-group span:first-of-type { background: #edf7ee; color: #246b32; }
.tp-mini-group i { display: block; width: 20px; border-top: 2px solid #aab7ac; }
.tp-format-arrow { flex: 0 0 auto; color: #2e7d4e; font-size: 1.35rem; }
.tp-mini-ko-finish { display: grid; grid-template-columns: 55px 65px; align-items: center; gap: 12px 20px; }
.tp-mini-ko-finish strong { grid-column: 2; grid-row: 1 / 3; }
.tp-mini-reduced-group { display: grid; grid-template-columns: 42px 78px 28px; align-items: center; gap: 12px; }
.tp-mini-reduced-players, .tp-mini-reduced-crosses, .tp-mini-reduced-qualified { display: grid; gap: 5px; }
.tp-mini-reduced-players span, .tp-mini-reduced-crosses span { display: flex; align-items: center; justify-content: center; min-height: 24px; border: 1px solid #9fb0a4; border-radius: 3px; background: #fff; font-size: .62rem; font-weight: 700; }
.tp-mini-reduced-crosses { gap: 14px; }
.tp-mini-reduced-qualified { gap: 18px; color: #2b7a3d; font-size: 1.25rem; }

.landing-feature-band { background: #fff; }
.landing-scheduler-band { background: #edf3f5; }
.landing-results-band { background: #f7eee9; }
.landing-publish-band { background: #fff; }
.landing-checklist { display: grid; gap: .65rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.landing-checklist li { display: flex; gap: .65rem; line-height: 1.35; }
.landing-checklist i { color: #2e8753; flex: 0 0 auto; }
.landing-fine-print { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 3px solid #d2b049; color: #6b6654; font-size: .85rem; line-height: 1.5; }
.landing-payment-demo, .landing-availability-demo { overflow: hidden; border: 1px solid #d4ddd6; border-radius: 6px; background: #fff; box-shadow: 0 18px 45px rgba(31, 59, 41, .1); }
.landing-payment-row { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid #e5eae6; }
.landing-payment-row:last-child { border-bottom: 0; }
.landing-payment-row strong, .landing-payment-row small { display: block; }
.landing-payment-row small { color: #7a857d; }
.landing-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: #e4eee7; color: #26633e; font-weight: 700; }
.landing-demo-toolbar { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: #20372a; color: #fff; font-size: .9rem; }
.landing-demo-toolbar span { color: #b9c8bf; }
.landing-availability-grid { display: grid; grid-template-columns: 75px repeat(4, 1fr); gap: 1px; padding: 1rem; background: #dce4df; }
.landing-availability-grid > * { display: grid; min-height: 42px; place-items: center; background: #fff; font-size: .75rem; font-style: normal; }
.landing-availability-grid strong { color: #59675e; }
.landing-availability-grid i::before { color: #3b8558; content: '\2713'; }
.landing-availability-grid i.blocked { background: #f7e4e1; }
.landing-availability-grid i.blocked::before { color: #a54a42; content: '\00d7'; }
.landing-solver-result { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-top: 1px solid #dce4df; }
.landing-solver-result > i { font-size: 1.5rem; }
.landing-solver-result span strong, .landing-solver-result span small { display: block; }
.landing-solver-result span small { color: #69766d; }
.landing-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d7c9c1; border-bottom: 1px solid #d7c9c1; }
.landing-stats div { padding: 1.6rem 1rem; text-align: center; }
.landing-stats div + div { border-left: 1px solid #d7c9c1; }
.landing-stats strong { display: block; color: #8f3832; font-size: 2rem; }
.landing-stats span { color: #74665e; font-size: .82rem; }
.landing-public-demo { position: relative; min-height: 430px; }
.landing-phone-demo { position: absolute; top: 0; left: 12%; width: 245px; min-height: 420px; padding: 1.5rem 1rem; border: 8px solid #263b2e; border-radius: 28px; background: #f7f8f5; box-shadow: 0 20px 45px rgba(25, 48, 32, .18); }
.landing-phone-top { width: 70px; height: 5px; margin: -7px auto 1.2rem; border-radius: 5px; background: #263b2e; }
.landing-phone-demo > strong { display: block; margin-bottom: .5rem; font-size: 1.1rem; }
.landing-phone-match { display: grid; grid-template-columns: 1fr auto; gap: .3rem; margin-top: 1rem; padding: .8rem; border-left: 3px solid #337d50; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.landing-phone-match small { grid-column: 1 / -1; color: #6d786f; }
.landing-pdf-demo, .landing-qr-demo { position: absolute; display: grid; gap: .25rem; width: 205px; padding: 1rem; border: 1px solid #d6ded7; border-radius: 5px; background: #fff; box-shadow: 0 14px 30px rgba(25, 48, 32, .13); }
.landing-pdf-demo { top: 55px; right: 5%; }
.landing-qr-demo { right: 0; bottom: 45px; }
.landing-pdf-demo i, .landing-qr-demo i { color: var(--landing-red); font-size: 2.4rem; }
.landing-qr-demo i { color: var(--landing-ink); }
.landing-pdf-demo span, .landing-qr-demo span { color: #6a766e; font-size: .8rem; }

.landing-features-section { background: var(--landing-paper); }
.landing-feature-grid { border-top: 1px solid #d9dfd9; border-left: 1px solid #d9dfd9; }
.landing-feature-item { display: flex; gap: 1rem; height: 100%; padding: 1.5rem; border-right: 1px solid #d9dfd9; border-bottom: 1px solid #d9dfd9; }
.landing-feature-item > i { color: var(--landing-green); font-size: 1.5rem; }
.landing-feature-item h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.landing-feature-item p { margin: 0; color: #68746c; font-size: .9rem; line-height: 1.45; }
.landing-comparison-section { background: #fff; }
.landing-comparison-scroll { overflow-x: auto; border: 1px solid #d7dfd8; border-radius: 6px; box-shadow: 0 18px 45px rgba(31, 59, 41, .08); }
.landing-comparison-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; }
.landing-comparison-table th,
.landing-comparison-table td { padding: 1rem 1.1rem; border-right: 1px solid #e0e6e1; border-bottom: 1px solid #e0e6e1; vertical-align: top; font-size: .9rem; line-height: 1.45; }
.landing-comparison-table tr:last-child > * { border-bottom: 0; }
.landing-comparison-table tr > *:last-child { border-right: 0; }
.landing-comparison-table thead th { padding-top: 1.15rem; padding-bottom: 1.15rem; background: #eef1ee; color: #435047; font-size: .92rem; }
.landing-comparison-table thead th:first-child { width: 18%; }
.landing-comparison-table thead th:not(:first-child) { width: 27.333%; }
.landing-comparison-table tbody th { background: #f8faf7; color: #263b2e; }
.landing-comparison-table tbody th i { display: block; margin-bottom: .45rem; color: var(--landing-green); font-size: 1.25rem; }
.landing-comparison-table tbody td { color: #667168; }
.landing-comparison-table .is-torneoplex { background: #edf6ef; color: #214f32; }
.landing-comparison-table thead .is-torneoplex { background: #285e3b; color: #fff; }
.landing-comparison-table tbody td.is-torneoplex { display: flex; gap: .6rem; }
.landing-comparison-table tbody td.is-torneoplex > i { flex: 0 0 auto; color: #2d8752; font-size: 1rem; }
.landing-tutorial-section { background: #fff; }
.landing-tutorial-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }
.landing-pricing-section { background: #eef5e9; }
.landing-pricing-content { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 2.5rem 0; border-top: 1px solid #b8cdb9; border-bottom: 1px solid #b8cdb9; }
.landing-pricing-content h2 { max-width: 850px; }
.landing-pricing-content p { max-width: 850px; margin: 0; color: #526157; font-size: 1.1rem; line-height: 1.6; }
.landing-faq-section { background: #fff; }
.landing-contact-section { background: #243b2d; color: #fff; }
.landing-contact-section h2 { margin-right: auto; margin-left: auto; }
.landing-contact-section p { max-width: 650px; margin: 0 auto 1.8rem; color: #c2cec6; font-size: 1.1rem; }

@keyframes landing-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.landing-hero .col-lg-6 { animation: landing-rise .55s ease-out both; }
.landing-hero .col-lg-6 + .col-lg-6 { animation-delay: .1s; }

@media (max-width: 991.98px) {
  .landing-title { font-size: 2.8rem; }
  .landing-product-stage { min-height: 0; }
  .landing-journey-list { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .landing-journey-list li:last-child { grid-column: 1 / -1; }
  .landing-pricing-content { align-items: flex-start; flex-direction: column; }
  .landing-tutorial-actions { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  .landing-section { padding: 4rem 0; }
  .landing-page h2 { font-size: 1.85rem; }
  .landing-hero { padding: 4rem 0 4.5rem; }
  .landing-title { font-size: 2.35rem; }
  .landing-lead { font-size: 1.12rem; }
  .landing-product-photo { height: auto; }
  .landing-schedule-preview { display: block; width: 100%; padding: 1rem; }
  .landing-schedule-row { grid-template-columns: 112px 1fr; gap: .6rem; }
  .landing-public-chip { font-size: .75rem; }
  .landing-memory-separator { height: 145px; background-size: auto 145px; }
  .landing-journey-list { grid-template-columns: 1fr; gap: 2rem; }
  .landing-journey-list li:last-child { grid-column: auto; }
  .tp-format-visual { min-height: 165px; padding: 8px; }
  .tp-mini-bracket { gap: 15px; }
  .tp-mini-round-first span::after, .tp-mini-round-semis span::after { width: 16px; }
  .tp-groups-to-ko, .tp-reduced-to-ko { gap: 8px; padding: 4px; }
  .tp-mini-group { width: 60px; grid-template-columns: 20px 1fr; }
  .tp-mini-groups .tp-mini-group:nth-child(3) { display: none; }
  .tp-mini-ko-finish { grid-template-columns: 38px 48px; gap: 8px; }
  .tp-mini-ko-finish span, .tp-mini-ko-finish strong { padding: 3px 5px; }
  .tp-mini-reduced-group { grid-template-columns: 34px 60px 20px; gap: 6px; }
  .landing-payment-row { align-items: flex-start; flex-wrap: wrap; }
  .landing-payment-row .badge { margin-left: 52px; }
  .landing-availability-grid { grid-template-columns: 58px repeat(4, 1fr); padding: .6rem; }
  .landing-stats strong { font-size: 1.45rem; }
  .landing-public-demo { min-height: 480px; }
  .landing-phone-demo { left: 0; }
  .landing-pdf-demo { top: 245px; right: 0; width: 155px; }
  .landing-qr-demo { right: 0; bottom: 5px; width: 155px; }
  .landing-tutorial-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .landing-comparison-scroll { margin-right: -8px; margin-left: -8px; border-radius: 0; }
  .landing-comparison-table { min-width: 860px; }
  .landing-comparison-table th, .landing-comparison-table td { padding: .85rem; font-size: .82rem; }
  .landing-comparison-table thead th:first-child,
  .landing-comparison-table tbody th { position: sticky; z-index: 1; left: 0; width: 145px; min-width: 145px; box-shadow: 5px 0 10px rgba(25, 48, 32, .08); }
  .landing-comparison-table thead th:first-child { z-index: 2; }
  .landing-tutorial-actions .dropdown, .landing-tutorial-actions .dropdown > button { width: 100%; }
  .landing-pricing-content { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero .col-lg-6 { animation: none; }
  .landing-real-card, .hero-features a i { transition: none; }
}
