/**
 * CogmemAi Teams Page Styles
 * Landing page — amber accent
 */

.hfb-teams-landing {
    --teams-bg: #0a0a0f;
    --teams-surface: #12121a;
    --teams-surface-hover: #1a1a25;
    --teams-border: #2a2a3a;
    --teams-text: #e4e4e7;
    --teams-text-dim: #a1a1aa;
    --teams-accent: #f59e0b;
    --teams-accent-light: #fbbf24;
    --teams-accent-dark: #d97706;
    --teams-success: #22c55e;
    --teams-danger: #ef4444;
    --teams-code-bg: #1e1e2e;
    --teams-radius: 12px;

    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--teams-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Launch bar */
.hfb-teams-launch {
    text-align: right;
    padding: 16px 0 0;
}
.hfb-teams-launch__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--teams-accent);
    color: #0a0a0f !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.hfb-teams-launch__link:hover {
    background: var(--teams-accent-light);
    transform: translateY(-1px);
}
.hfb-teams-launch__link svg {
    stroke: #0a0a0f;
    flex-shrink: 0;
}

/* Buttons */
body .hfb-teams-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    line-height: 1.4;
}
body .hfb-teams-btn--primary {
    background: var(--teams-accent);
    color: #0a0a0f !important;
}
body .hfb-teams-btn--primary:hover {
    background: var(--teams-accent-light);
    transform: translateY(-1px);
}
body .hfb-teams-btn--ghost {
    background: rgba(245, 158, 11, 0.08);
    color: var(--teams-text) !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
body .hfb-teams-btn--ghost:hover {
    background: rgba(245, 158, 11, 0.18);
    color: #fff !important;
    border-color: rgba(245, 158, 11, 0.4);
}
body .hfb-teams-btn--large {
    padding: 14px 32px;
    font-size: 16px;
}
body .hfb-teams-btn svg {
    fill: none !important;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Cards */
.hfb-teams-card {
    background: var(--teams-surface);
    border: 1px solid var(--teams-border);
    border-radius: var(--teams-radius);
    padding: 24px;
    transition: border-color 0.2s;
}
.hfb-teams-card:hover {
    border-color: var(--teams-accent);
}
.hfb-teams-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--teams-text);
}
.hfb-teams-card p {
    font-size: 14px;
    color: var(--teams-text-dim);
    margin: 0;
    line-height: 1.5;
}

/* Card icons */
.hfb-teams-card__icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--teams-accent-light);
    font-size: 20px;
}

/* Grids */
.hfb-teams-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.hfb-teams-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hfb-teams-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Sections */
.hfb-teams-section {
    padding: 60px 0;
}
.hfb-teams-section--dark {
    background: var(--teams-surface);
    border-radius: var(--teams-radius);
    padding: 60px 32px;
    margin: 0 -20px;
}
.hfb-teams-section--cta {
    text-align: center;
    padding: 80px 0;
}
.hfb-teams-section__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
    text-align: center;
}
.hfb-teams-section__sub {
    font-size: 16px;
    color: var(--teams-text-dim);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero */
.hfb-teams-hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}
.hfb-teams-hero__glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hfb-teams-hero__badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--teams-accent-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.hfb-teams-hero__title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
}
.hfb-teams-hero__sub {
    font-size: 18px;
    color: var(--teams-text-dim);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hfb-teams-hero__explainer {
    font-size: 14px;
    color: var(--teams-text-dim);
    margin: -16px auto 28px;
    opacity: 0.7;
    letter-spacing: 0.3px;
}
.hfb-teams-hero__explainer strong {
    color: var(--teams-accent);
}
.hfb-teams-hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pricing card */
.hfb-teams-card--pricing {
    text-align: center;
    padding: 40px 32px;
    position: relative;
    border-color: var(--teams-accent);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.12);
    max-width: 420px;
    margin: 24px auto 0;
}
.hfb-teams-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teams-accent);
    color: #0a0a0f;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.hfb-teams-card__price {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 8px 0 4px;
}
.hfb-teams-card__price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--teams-text-dim);
}
.hfb-teams-card--pricing ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    text-align: left;
}
.hfb-teams-card--pricing li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--teams-text-dim);
    border-bottom: 1px solid var(--teams-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hfb-teams-card--pricing li:last-child {
    border-bottom: none;
}
.hfb-teams-card--pricing li::before {
    content: "\2713";
    color: var(--teams-accent);
    font-weight: 700;
    flex-shrink: 0;
}
.hfb-teams-card--pricing .hfb-teams-btn {
    width: 100%;
    justify-content: center;
}

/* How-it-works steps */
.hfb-teams-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hfb-teams-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.hfb-teams-step__num {
    width: 40px;
    height: 40px;
    background: var(--teams-accent);
    color: #0a0a0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.hfb-teams-step__content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--teams-text);
    margin: 0 0 4px;
}
.hfb-teams-step__content p {
    font-size: 14px;
    color: var(--teams-text-dim);
    margin: 0;
    line-height: 1.5;
}

/* Memory demo block */
.hfb-teams-demo {
    background: var(--teams-code-bg);
    border: 1px solid var(--teams-border);
    border-radius: var(--teams-radius);
    padding: 24px;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hfb-teams-demo__label {
    color: var(--teams-accent);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.hfb-teams-demo__line {
    display: block;
    color: var(--teams-text-dim);
}
.hfb-teams-demo__line strong {
    color: var(--teams-accent-light);
    font-weight: 600;
}

/* 4-column grid */
.hfb-teams-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Linked cards (clickable) */
a.hfb-teams-card--linked {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: block;
    cursor: pointer;
}
a.hfb-teams-card--linked:hover {
    border-color: var(--teams-accent);
    transform: translateY(-2px);
    transition: all 0.2s;
}
a.hfb-teams-card--linked h3 {
    color: var(--teams-text);
}
a.hfb-teams-card--linked p {
    color: var(--teams-text-dim);
}
.hfb-teams-card__arrow {
    display: block;
    margin-top: 12px;
    color: var(--teams-accent);
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.2s;
}
a.hfb-teams-card--linked:hover .hfb-teams-card__arrow {
    transform: translateX(4px);
}

/* Back link */
.hfb-teams-back {
    display: inline-block;
    padding: 16px 0;
    color: var(--teams-accent-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.hfb-teams-back:hover {
    color: var(--teams-accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .hfb-teams-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hfb-teams-hero__title {
        font-size: 30px;
    }
    .hfb-teams-hero__sub {
        font-size: 16px;
    }
    .hfb-teams-hero {
        padding: 48px 0 40px;
    }
    .hfb-teams-grid--2,
    .hfb-teams-grid--3,
    .hfb-teams-grid--4 {
        grid-template-columns: 1fr;
    }
    .hfb-teams-section {
        padding: 40px 0;
    }
    .hfb-teams-section--dark {
        padding: 40px 20px;
        margin: 0 -20px;
    }
    .hfb-teams-step {
        flex-direction: column;
        gap: 12px;
    }
    .hfb-teams-card--pricing {
        padding: 32px 20px;
    }
}
