/* ============================================================
   Entity Sport — API Page Shared Styles
   All classes prefixed "api-" — zero conflict with existing CSS
   ============================================================ */

/* ── Variables ── */
:root {
    --api-navy:      #10193A;
    --api-navy-deep: #0A1129;
    --api-coral-1:   #E8574A;
    --api-coral-2:   #E8447E;
    --api-cg:        linear-gradient(135deg, #E8574A 0%, #E8447E 100%);
    --api-ink:       #101832;
    --api-steel:     #5B6482;
    --api-steel-lt:  #8890AC;
    --api-line:      #E7E9F3;
    --api-panel:     #F6F7FC;
    --api-white:     #FFFFFF;
    --api-yes:       #2FBF71;
}

/* ── Layout ── */
.api-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.api-section       { padding: 88px 0; }
.api-bg-panel      { background: var(--api-panel); }
.api-section-head  { max-width: 640px; margin-bottom: 44px; }
.api-section-head p { font-size: 16px; color: var(--api-steel); margin-top: 12px; }
.api-center        { margin: 0 auto 48px; text-align: center; }
.api-center .api-eyebrow { justify-content: center; }

/* ── Typography ── */
.api-h2 {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.06;
    color: var(--api-ink);
    margin: 0 0 10px;
}
.api-h3 {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--api-navy);
    margin: 0 0 10px;
    line-height: 1.15;
    text-transform: none;
    letter-spacing: 0;
}
.api-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--api-coral-2);
    margin-bottom: 14px;
}
.api-eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    background: var(--api-cg);
    border-radius: 2px;
}
.api-hl {
    background: var(--api-cg);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Buttons ── */
.api-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}
.api-btn-primary            { background: var(--api-cg); color: var(--api-white); }
.api-btn-primary:hover      { filter: brightness(1.08); color: var(--api-white); }
.api-btn-ghost              { border-color: rgba(255,255,255,0.3); color: var(--api-white); }
.api-btn-ghost:hover        { border-color: var(--api-white); color: var(--api-white); }
.api-btn-dark               { border-color: var(--api-line); color: var(--api-navy); }
.api-btn-dark:hover         { border-color: var(--api-navy); color: var(--api-navy); }

/* ── HERO ── */
.api-hero {
    background: linear-gradient(160deg, #0A1129 0%, #182352 100%);
    padding: 80px 0 96px;
    overflow: hidden;
}
.api-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.api-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FF9E8F;
    margin-bottom: 18px;
}
.api-hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--api-cg);
}
.api-hero-h1 {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.06;
    color: var(--api-white);
    margin: 0 0 20px;
}
.api-hero-lead {
    font-size: 18px;
    color: #B7BEDB;
    max-width: 520px;
    margin-bottom: 30px;
    line-height: 1.6;
}
.api-hero-ctas   { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.api-stat-row    { display: flex; gap: 36px; flex-wrap: wrap; }
.api-stat-num    { font-family: 'Barlow Condensed', 'Poppins', sans-serif; font-size: 30px; font-weight: 800; color: var(--api-white); }
.api-stat-lab    { font-size: 12px; color: #8890AC; text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero question card */
.api-hero-card-wrap { display: flex; align-items: center; justify-content: center; }
.api-qcard {
    background: var(--api-navy-deep);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 420px;
}
.api-qcard-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #FF9E8F;
    margin-bottom: 16px;
}
/* Hero card votes + labels + dots + fade */
.api-qcard-votes {
    display: block;
    font-size: 11.5px;
    color: var(--api-steel-lt);
    margin-bottom: 10px;
}
.api-yn-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--api-steel-lt);
    margin-top: 8px;
}
.api-qcard-dots {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    justify-content: center;
}
.api-qcard-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background .3s;
    cursor: pointer;
}
.api-qcard-dots span.active { background: var(--api-coral-1); }
.api-qcard-q {
    transition: opacity .4s ease;
}
.api-qcard-q.api-fade { opacity: 0; }
.api-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--api-cg);
    animation: api-pulse 1.5s infinite;
}
@keyframes api-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}
.api-qcard-q {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--api-white);
    margin-bottom: 20px;
    line-height: 1.25;
}
.api-yn-bar { display: flex; height: 42px; border-radius: 10px; overflow: hidden; }
.api-yn-yes {
    display: flex; align-items: center; padding: 0 12px;
    font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(90deg, #2FBF71, #1F9E5C);
    transition: width .6s ease;
}
.api-yn-no {
    display: flex; align-items: center; justify-content: flex-end; padding: 0 12px;
    font-size: 13px; font-weight: 700; color: #fff;
    background: var(--api-cg);
    transition: width .6s ease;
}

/* ── CATEGORIES ── */
.api-cat-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--api-line);
}
.api-cat-row:last-child { border-bottom: none; }
.api-cat-row.api-flip   { grid-template-columns: 1.1fr 0.9fr; }
.api-cat-row.api-flip .api-cat-text   { order: 2; }
.api-cat-row.api-flip .api-cat-visual { order: 1; }
.api-cat-num {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
    color: var(--api-coral-2); margin-bottom: 10px; text-transform: uppercase;
}
.api-cat-text p { font-size: 15px; color: var(--api-steel); margin: 0 0 18px; max-width: 420px; }
.api-badges  { display: flex; gap: 8px; flex-wrap: wrap; }
.api-badge {
    font-size: 11.5px; font-weight: 700; padding: 6px 12px;
    border-radius: 20px; background: var(--api-panel);
    color: var(--api-navy); border: 1px solid var(--api-line);
}
.api-qmini {
    background: var(--api-white);
    border: 1px solid var(--api-line);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 28px -14px rgba(16,25,58,0.15);
}
.api-qmini-cat {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--api-coral-2); background: rgba(232,87,74,0.08);
    padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.api-qmini-q {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--api-navy); line-height: 1.28; margin-bottom: 8px;
}
.api-qmini-desc { font-size: 13.5px; color: var(--api-steel); margin: 0; }

/* ── FEATURES / WHY-US CAROUSEL ── */
.api-feat-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--api-white);
    border: 1px solid var(--api-line);
}
.api-feat-track {
    display: flex;
    transition: transform .7s cubic-bezier(.16,.84,.44,1);
}
.api-feat-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
}
.api-feat-visual {
    background: var(--api-panel);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 40px;*/
}
.api-feat-icon-big {
    width: 88px; height: 88px; border-radius: 22px;
    background: var(--api-cg);
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    box-shadow: 0 20px 40px -14px rgba(232,87,74,0.4);
}
.api-feat-text    { padding: 48px 52px; }
.api-feat-num {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--api-coral-2); text-transform: uppercase; margin-bottom: 12px;
}
.api-feat-text p  { font-size: 15px; color: var(--api-steel); margin: 0; max-width: 420px; }
.api-feat-progress {
    position: absolute; bottom: 0; left: 0;
    height: 3px; background: var(--api-cg); width: 0;
}
.api-feat-dots { display: flex; gap: 8px; justify-content: center; padding: 20px 0 26px; }
.api-feat-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--api-line); cursor: pointer;
    transition: background .3s, transform .3s;
}
.api-feat-dots span.active { background: var(--api-coral-1); transform: scale(1.3); }

/* ── PRICING ── */
.api-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.api-plan-card {
    background: var(--api-white);
    border: 1px solid var(--api-line);
    border-radius: 18px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.api-plan-featured { background: var(--api-navy); border-color: var(--api-navy); color: var(--api-white); }
.api-plan-popular {
    position: absolute; top: -13px; left: 24px;
    background: var(--api-cg); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
}
.api-plan-name    { font-size: 24px; font-weight: 700; margin-bottom: 6px; color: var(--api-navy); }
.api-plan-featured .api-plan-name  { color: var(--api-white); }
.api-plan-sub     { font-size: 13px; color: var(--api-steel); margin-bottom: 20px; }
.api-plan-featured .api-plan-sub   { color: #AEB4D4; }
.api-plan-price {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 42px; font-weight: 800; color: var(--api-navy); margin-bottom: 4px;
}
.api-plan-featured .api-plan-price { color: var(--api-white); }
.api-per { font-size: 13px; font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--api-steel); text-transform: none; }
.api-plan-featured .api-per        { color: #AEB4D4; }
.api-plan-meta {
    display: flex; gap: 16px; margin-bottom: 22px; padding-bottom: 22px;
    border-bottom: 1px solid var(--api-line);
}
.api-plan-featured .api-plan-meta  { border-bottom-color: rgba(255,255,255,0.12); }
.api-meta-n {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 22px; font-weight: 800; color: var(--api-coral-2);
}
.api-plan-featured .api-meta-n     { color: #FF9E8F; }
.api-meta-l { font-size: 10.5px; color: var(--api-steel-lt); text-transform: uppercase; letter-spacing: 0.05em; }
.api-plan-list  { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.api-plan-list li {
    display: flex; gap: 9px; padding: 8px 0; font-size: 13.5px;
    border-top: 1px solid var(--api-line);
}
.api-plan-featured .api-plan-list li { border-top-color: rgba(255,255,255,0.1); color: var(--api-white); }
.api-plan-list li:first-child { border-top: none; }
.api-tick { color: var(--api-coral-1); flex: none; font-weight: 800; }
.api-plan-featured .api-tick        { color: #FF9E8F; }
.api-plan-card .api-btn { width: 100%; text-align: center; margin-top: auto; }

/* ── ALTERNATING ROWS (Use Cases & Benefits) ── */
.api-alt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 64px 0;
    border-bottom: 1px solid var(--api-line);
}
.api-alt-row:last-child { border-bottom: none; }
.api-alt-row.api-flip .api-alt-text   { order: 2; }
.api-alt-row.api-flip .api-alt-visual { order: 1; }
.api-tag {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--api-coral-2); background: rgba(232,87,74,0.08);
    padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.api-alt-text p { font-size: 15px; color: var(--api-steel); margin: 0; max-width: 440px; }
.api-alt-visual {
    background: var(--api-panel);
    border-radius: 20px;
    /*padding: 32px;*/
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.api-alt-img {
    max-width: 100%;
    /*max-height: 216px;*/
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

/* ── STEPS ── */
.api-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.api-step-card {
    background: var(--api-white);
    border: 1px solid var(--api-line);
    border-radius: 16px;
    padding: 28px;
}
.api-step-num {
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 44px; font-weight: 800;
    background: var(--api-cg);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}
.api-step-card p { font-size: 13.5px; color: var(--api-steel); margin: 0; }

/* ── CTA BAND ── */
.api-cta-band {
    background: var(--api-navy);
    color: var(--api-white);
    border-radius: 24px;
    padding: 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.api-cta-band::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 600px 300px at 50% 0%, rgba(232,87,74,0.25), transparent 70%);
    pointer-events: none;
}
.api-cta-band .api-h2  { color: var(--api-white); position: relative; z-index: 1; margin-bottom: 14px; }
.api-cta-band p        { color: #AEB4D4; position: relative; z-index: 1; margin-bottom: 26px; font-size: 16px; }
.api-btn-row           { display: flex; gap: 14px; justify-content: center; position: relative; z-index: 1; flex-wrap: wrap; }

/* ── FAQ ── */
.api-faq-list { max-width: 800px; margin: 0 auto; }
.api-faq-item { border-bottom: 1px solid var(--api-line); padding: 22px 0; }
.api-faq-q {
    font-size: 16.5px; font-weight: 700; color: var(--api-navy);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
}
.api-plus { font-size: 22px; color: var(--api-coral-2); transition: transform .3s; flex: none; }
.api-faq-item.api-open .api-plus { transform: rotate(45deg); }
.api-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding-top .35s ease;
    font-size: 14.5px; color: var(--api-steel); line-height: 1.7;
}
.api-faq-item.api-open .api-faq-a { max-height: 300px; padding-top: 14px; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .api-hero-grid,
    .api-feat-slide,
    .api-cat-row, .api-cat-row.api-flip,
    .api-alt-row, .api-alt-row.api-flip,
    .api-plan-grid,
    .api-steps-row { grid-template-columns: 1fr; }

    .api-cat-row.api-flip .api-cat-text,
    .api-alt-row.api-flip .api-alt-text   { order: 1; }
    .api-cat-row.api-flip .api-cat-visual,
    .api-alt-row.api-flip .api-alt-visual { order: 2; }

    .api-feat-visual { min-height: 180px; }
    .api-feat-text   { padding: 32px; }
    .api-hero-h1     { font-size: 36px; }
    .api-h2          { font-size: 28px; }
    .api-cta-band    { padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .api-dot { animation: none; }
    .api-feat-track, .api-feat-progress,
    .api-yn-yes, .api-yn-no { transition: none; }
}


/* Category image */
.api-cat-img {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* Feature image */
.api-feat-img {
    /*max-width: 160px;*/
    /*max-height: 160px;*/
    border-radius: 20px;
    object-fit: cover;
}

/* ── Question Stack (categories visual) ── */
.api-qstack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.api-qstack-card {
    background: #fff;
    border: 1px solid var(--api-line);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px -8px rgba(16,25,58,0.1);
}
.api-qstack-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.api-qstack-q {
    font-size: 14px;
    font-weight: 700;
    color: var(--api-navy);
    line-height: 1.4;
}
.api-qstack-votes {
    font-size: 11px;
    color: var(--api-steel-lt);
    white-space: nowrap;
    flex-shrink: 0;
}
.api-qstack-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: var(--api-steel-lt);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.api-qstack-bar {
    display: flex;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
}
.api-qstack-yes {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #2FBF71, #1F9E5C);
    transition: width .6s ease;
}
.api-qstack-no {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--api-cg);
    transition: width .6s ease;
}

/* Category image */
.api-cat-img {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* Placeholder when nothing is set */
.api-cat-visual-placeholder {
    background: var(--api-panel);
    border-radius: 16px;
    min-height: 200px;
}