/* ============================================================
   ThinkPartners — Homepage Sections
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.tp-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0 3rem;
}

.tp-hero--large {
    min-height: 65vh;
    padding: 6rem 0 4rem;
}

.tp-hero__aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.tp-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tp-hero__canvas#tp-particle-canvas {
    pointer-events: auto;
}

.tp-hero__canvas#tp-svg-network {
    pointer-events: none;
}

.tp-hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(94, 225, 90, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.tp-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.tp-hero__content {
    position: relative;
}

.tp-hero__eyebrow {
    display: inline-flex;
    margin: 0 0 1rem;
}

.tp-hero__headline {
    /* Matches Vercel's text-4xl md:text-5xl: 2.25rem (36px) mobile → 3rem (48px) cap */
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.5rem;
    color: #fff;
}

.tp-hero__sub {
    font-size: 1.05rem;
    color: var(--tp-text-muted);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 560px;
}

.tp-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Match Vercel's text-sm (14px) so longer CTA pairs fit on one line
   in the 2-column hero grid without wrapping. */
.tp-hero__actions .tp-btn {
    font-size: 0.875rem;
}

/* Right column: SVG network visualization */
.tp-hero__visual {
    display: none;
}

.tp-hero__svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

/* Float animations for SVG nodes */
.tp-float-slow {
    animation: float 6s ease-in-out infinite;
}

.tp-float-medium {
    animation: float 4s ease-in-out infinite;
}

.tp-float-fast {
    animation: float 3s ease-in-out infinite;
}

/* Stats bar inside hero */
.tp-hero__stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .tp-hero__stats-bar { grid-template-columns: repeat(4, 1fr); }
}

/* Hero stagger animations */
.hero-stagger-1 {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-stagger-2 {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-stagger-3 {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-stagger-4 {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* ── Stats ────────────────────────────────────────────────── */
.tp-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tp-stat-card {
    padding: 2rem;
    text-align: center;
}

.tp-stat-card__value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--tp-gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp-stat-card__label {
    display: block;
    font-size: 0.875rem;
    color: var(--tp-text-muted);
    margin-top: 0.5rem;
}

/* ── Program Cards ────────────────────────────────────────── */
.tp-programs__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.tp-programs__card {
    padding: 1.5rem;
    color: var(--tp-text);
    display: block;
}

.tp-programs__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(94, 225, 90, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tp-programs__card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.tp-programs__card p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.tp-programs__link {
    color: var(--tp-green);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tp-programs__link:hover {
    color: var(--tp-amber);
}

/* ── Section Header (centered) ─────────────────────────────── */
.tp-section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.tp-section__header h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* ── Features Grid ────────────────────────────────────────── */
.tp-features__grid,
.tp-convert__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

/* 2-column variant: used when 4 or fewer items — keeps cards evenly distributed */
.tp-features__grid--2col {
    grid-template-columns: repeat(1, 1fr);
}

/* 4-column variant: all 4 cards in a single row */
.tp-features__grid--4col {
    grid-template-columns: repeat(1, 1fr);
}

.tp-features__card {
    padding: 1.5rem;
}

.tp-features__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(94, 225, 90, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tp-features__card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.tp-features__card p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Commission Section ───────────────────────────────────── */
.tp-commission__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.tp-commission__heading {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem;
}

.tp-commission__desc {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.tp-commission__diagram-card {
    padding: 2rem;
}

.tp-commission__tier-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--tp-glass-bg);
    border: 1px solid var(--tp-glass-border);
    border-radius: 12px;
}

.tp-commission__tier-item--master {
    border-color: rgba(94, 225, 90, 0.3);
}

.tp-commission__tier-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.tp-commission__tier-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.tp-commission__tier-avatar--green {
    width: 40px; height: 40px;
    background: rgba(94, 225, 90, 0.2);
    color: var(--tp-green);
    font-size: 0.875rem;
}

.tp-commission__tier-avatar--green-sm {
    width: 32px; height: 32px;
    background: rgba(94, 225, 90, 0.15);
    color: var(--tp-green);
    font-size: 0.75rem;
}

.tp-commission__tier-avatar--amber-sm {
    width: 32px; height: 32px;
    background: rgba(255, 185, 95, 0.15);
    color: var(--tp-amber);
    font-size: 0.75rem;
}

.tp-commission__tier-branch {
    margin-left: 1.5rem;
    border-left: 2px solid rgba(94, 225, 90, 0.2);
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tp-commission__tier-branch--amber {
    border-color: rgba(255, 185, 95, 0.2);
    margin-left: 1rem;
}

/* ── Testimonials ─────────────────────────────────────────── */
.tp-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.tp-testimonials__card {
    padding: 2rem;
}

.tp-testimonials__quote {
    margin-bottom: 1rem;
}

.tp-testimonials__card p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.tp-testimonials__author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.tp-testimonials__author strong {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
}

.tp-testimonials__author span {
    font-size: 0.75rem;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.tp-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tp-faq__item {
    padding: 1.5rem;
    border: none;
}

.tp-faq__question {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tp-faq__question svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tp-faq__item[open] .tp-faq__question svg {
    transform: rotate(180deg);
}

.tp-faq__question::-webkit-details-marker {
    display: none;
}

.tp-faq__answer {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ── CTA Section ──────────────────────────────────────────── */
/* Matches Vercel: bg-[#00110d] py-20 with max-w-4xl center container.
   Override the global .tp-section escalation (5→6→8rem) so spacing
   stays tight like Vercel's flat py-20. */
.tp-cta-section.tp-section {
    background: #00110d;
    position: relative;
    overflow: hidden;
    padding-block: 5rem;
}

.tp-cta-section__inner {
    max-width: 56rem;     /* tailwind max-w-4xl */
    text-align: center;
    position: relative;
    z-index: 2;
}

.tp-cta-section__heading {
    /* Vercel uses text-3xl md:text-4xl font-bold (30→36px) */
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.tp-cta-section__sub {
    color: #d0e8df;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 42rem;     /* matches Vercel max-w-2xl */
    margin: 0 auto 2.5rem;
}

.tp-cta-section__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 640px) {
    .tp-programs__grid { grid-template-columns: repeat(2, 1fr); }
    .tp-features__grid,
    .tp-convert__grid { grid-template-columns: repeat(2, 1fr); }
    .tp-features__grid--2col { grid-template-columns: repeat(2, 1fr); }
    .tp-features__grid--4col { grid-template-columns: repeat(2, 1fr); }
    .tp-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .tp-hero__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .tp-hero__visual { display: block; }
    .tp-commission__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .tp-stats__grid { grid-template-columns: repeat(4, 1fr); }
    .tp-programs__grid { grid-template-columns: repeat(3, 1fr); }
    .tp-features__grid,
    .tp-convert__grid { grid-template-columns: repeat(3, 1fr); }
    .tp-features__grid--2col { grid-template-columns: repeat(2, 1fr); }
    .tp-features__grid--4col { grid-template-columns: repeat(4, 1fr); }
    .tp-testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}
