/* ══════════════════════════════════════════════════
   Integrations Page — integrations.css
   Prefix: .ig-
══════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────── */
.ig-hero {
    padding: 0 0 140px;
}

.ig-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f3ff;
    color: #7C3AED;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: .3px;
    margin-bottom: 28px;
}

.ig-hero-badge svg {
    flex-shrink: 0;
}

.ig-hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #0B0D0F;
    margin-bottom: 22px;
}

.ig-hero h1 span {
    background: linear-gradient(135deg, #FFBA12, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ig-hero-sub {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}

/* ── Hero visual: orbit layout ─────────────────── */

/*
   440×440 container, center at 220,220
   Ring radius 170px → 8 logos at 45° intervals
   Logo size 54px, offset 27px from center of each point
   Positions calculated with sin/cos from 12-o'clock
*/

.ig-hero-visual {
    position: relative;
    width: 440px;
    height: 440px;
    margin: 0 auto;
}

.ig-hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid #ebebeb;
    pointer-events: none;
    animation: ig-ring-spin 90s linear infinite;
}

@keyframes ig-ring-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ig-hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #FFBA12, #F59E0B);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 186, 18, .25);
    z-index: 2;
}

.ig-hero-center svg {
    width: 34px;
    height: 34px;
    color: #fff;
}

.ig-orbit-logo {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 16px rgba(0,0,0,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: ig-float 5s ease-in-out infinite;
}

.ig-orbit-logo img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

/*        angle   top       left                         */
/* 0°   top       23px      193px                        */
.ig-orbit-logo:nth-child(3) { top: 23px;  left: 193px; animation-delay: 0s; }
/* 45°  top-right 73px      313px   ← fills top-right!  */
.ig-orbit-logo:nth-child(4) { top: 73px;  left: 313px; animation-delay: .6s; }
/* 90°  right     193px     363px                        */
.ig-orbit-logo:nth-child(5) { top: 193px; left: 363px; animation-delay: 1.2s; }
/* 135° bot-right 313px     313px                        */
.ig-orbit-logo:nth-child(6) { top: 313px; left: 313px; animation-delay: 1.8s; }
/* 180° bottom    363px     193px                        */
.ig-orbit-logo:nth-child(7) { top: 363px; left: 193px; animation-delay: 2.4s; }
/* 225° bot-left  313px     73px                         */
.ig-orbit-logo:nth-child(8) { top: 313px; left: 73px;  animation-delay: 3s; }
/* 270° left      193px     23px                         */
.ig-orbit-logo:nth-child(9) { top: 193px; left: 23px;  animation-delay: 3.6s; }
/* 315° top-left  73px      73px                         */
.ig-orbit-logo:nth-child(10){ top: 73px;  left: 73px;  animation-delay: 4.2s; }

@keyframes ig-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}


/* ── Stats bar ─────────────────────────────────── */
.ig-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.ig-stat {
    text-align: center;
}

.ig-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #0B0D0F;
    line-height: 1;
    margin-bottom: 6px;
}

.ig-stat-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* ── Integration Grid ──────────────────────────── */
.ig-section {
    padding: 100px 0 60px;
}

.ig-section-title {
    text-align: center;
    margin-bottom: 16px;
}

.ig-section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0B0D0F;
}

.ig-section-sub {
    text-align: center;
    font-size: 17px;
    color: #666;
    max-width: 560px;
    margin: 0 auto 60px;
    line-height: 1.65;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Integration Card ──────────────────────────── */
.ig-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px 24px;
    transition: box-shadow .25s, transform .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ig-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.07);
    transform: translateY(-2px);
}

.ig-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ig-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ig-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #0B0D0F;
}

.ig-card-cat {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ig-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.ig-card-features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ig-card-features li {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ig-card-features li svg {
    flex-shrink: 0;
    color: #22c55e;
}

.ig-card-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: .2px;
    width: fit-content;
}

.ig-card-badge--live {
    background: #ecfdf5;
    color: #059669;
}

.ig-card-badge--soon {
    background: #fef3c7;
    color: #D97706;
}

.ig-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #FFBA12;
    text-decoration: none;
    margin-top: auto;
    padding-top: 4px;
    transition: gap .2s;
}

.ig-card-link:hover {
    gap: 10px;
    color: #e5a810;
    text-decoration: none;
}

/* ── Featured Integration (larger spotlight) ───── */
.ig-featured {
    padding: 80px 0;
    background: #fafafa;
    border-radius: 0;
}

.ig-featured-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ig-featured-content {
    flex: 1;
}

.ig-featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.ig-featured-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0B0D0F;
    margin-bottom: 16px;
    line-height: 1.25;
}

.ig-featured-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
}

.ig-featured-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.ig-featured-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.ig-featured-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.ig-featured-visual {
    flex: 0 0 420px;
}

.ig-featured-mockup {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    overflow: hidden;
}

/* ── Stripe mockup ─────────────────────────────── */
.ig-stripe-bar {
    background: #635BFF;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ig-stripe-bar img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.ig-stripe-body {
    padding: 20px;
}

.ig-stripe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.ig-stripe-row:last-child {
    border-bottom: none;
}

.ig-stripe-amount {
    font-weight: 700;
    color: #059669;
}

.ig-stripe-method {
    color: #888;
    font-size: 12px;
}

.ig-stripe-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: #ecfdf5;
    color: #059669;
}

/* ── Google Forms mockup ───────────────────────── */
.ig-gforms-bar {
    background: #7248B9;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ig-gforms-bar img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.ig-gforms-body {
    padding: 16px 20px;
}

.ig-gforms-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
}

.ig-gforms-field:last-child {
    border-bottom: none;
}

.ig-gforms-arrow {
    color: #22c55e;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.ig-gforms-mapped {
    color: #7C3AED;
    font-weight: 600;
}

/* ── Notion mockup ─────────────────────────────── */
.ig-notion-bar {
    background: #191919;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ig-notion-bar img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.ig-notion-body {
    padding: 16px 20px;
}

.ig-notion-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
}

.ig-notion-row:last-child {
    border-bottom: none;
}

.ig-notion-prop {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

/* ── How it works ──────────────────────────────── */
.ig-how {
    padding: 100px 0;
}

.ig-how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    counter-reset: step;
}

.ig-how-step {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.ig-how-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFBA12, #F59E0B);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.ig-how-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0B0D0F;
    margin-bottom: 10px;
}

.ig-how-step p {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    max-width: 280px;
    margin: 0 auto;
}

/* ── FAQ ───────────────────────────────────────── */
.ig-faq {
    padding: 80px 0 100px;
}

.ig-faq-item {
    border-bottom: 1px solid #eee;
    padding: 22px 0;
}

.ig-faq-item:first-child {
    border-top: 1px solid #eee;
}

.ig-faq-q {
    font-size: 17px;
    font-weight: 700;
    color: #0B0D0F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    -webkit-user-select: none;
    user-select: none;
}

.ig-faq-a {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    padding-top: 12px;
    display: none;
}

.ig-faq-item.open .ig-faq-a {
    display: block;
}

.ig-faq-arrow {
    transition: transform .25s;
    flex-shrink: 0;
}

.ig-faq-item.open .ig-faq-arrow {
    transform: rotate(180deg);
}

/* ── CTA ───────────────────────────────────────── */
.ig-cta {
    text-align: center;
    padding: 80px 0 120px;
}

.ig-cta h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0B0D0F;
    margin-bottom: 16px;
}

.ig-cta p {
    font-size: 17px;
    color: #666;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1199px) {
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .ig-hero h1 { font-size: 36px; }
    .ig-hero-visual { display: none; }
    .ig-hero { padding-bottom: 60px; }

    .ig-stats { gap: 30px; flex-wrap: wrap; }
    .ig-stat-num { font-size: 28px; }

    .ig-grid { grid-template-columns: repeat(2, 1fr); }

    .ig-featured-inner {
        flex-direction: column;
        gap: 40px;
    }
    .ig-featured-visual {
        flex: none;
        width: 100%;
        max-width: 420px;
    }

    .ig-how-steps {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .ig-section { padding: 70px 0 40px; }
    .ig-section-title h2 { font-size: 28px; }
}

@media (max-width: 575px) {
    .ig-grid { grid-template-columns: 1fr; }
    .ig-hero h1 { font-size: 30px; }
    .ig-stats { gap: 20px; }
    .ig-stat-num { font-size: 24px; }
    .ig-featured-content h2 { font-size: 26px; }
    .ig-cta h2 { font-size: 28px; }
}

/* ── RTL ───────────────────────────────────────── */
[dir="rtl"] .ig-card-link { flex-direction: row-reverse; }
[dir="rtl"] .ig-card-link svg { transform: rotate(180deg); }
[dir="rtl"] .ig-featured-list li { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .ig-hero-sub { margin-left: auto; margin-right: 0; }
