.teams-page {
    --teams-border: #e3d9f5;
}

.teams-page .header { border-bottom-color: var(--border); }
.teams-page [id] { scroll-margin-top: 12px; }

.teams-btn {
    background: #6d28d9;
    color: white;
    border: 1px solid transparent;
    line-height: 1.35;
    text-align: center;
}

.teams-btn:hover { background: #5b21b6; }

.teams-btn--compact {
    min-height: 40px;
    padding: 8px 15px;
    white-space: nowrap;
}

.teams-btn--outline {
    background: var(--surface);
    border-color: var(--teams-border);
    color: var(--brand-dark);
}

.teams-btn--outline:hover { background: var(--brand-light); }

.teams-hero { padding-top: clamp(14px, 3vw, 36px); }

.teams-hero__panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    min-height: 580px;
    overflow: hidden;
    border-radius: clamp(24px, 4vw, 44px);
    border: 1px solid var(--teams-border);
    background: var(--brand-subtle);
}

.teams-hero__copy {
    position: relative;
    z-index: 1;
    padding: clamp(30px, 5vw, 68px) 0 clamp(30px, 5vw, 68px) clamp(25px, 5vw, 68px);
}

.teams-kicker {
    color: var(--brand-dark);
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: 18px;
}

.teams-hero h1,
.teams-page h2 {
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
    text-wrap: balance;
}

.teams-hero h1 {
    font-size: clamp(2.6rem, 5.3vw, 4.75rem);
    max-width: 16ch;
    color: inherit;
}

.teams-hero h1 span { color: var(--brand-dark); }

.teams-hero__intro {
    max-width: 38ch;
    margin-top: 22px;
    color: var(--ink-2);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.teams-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.teams-hero__visual {
    display: grid;
    place-items: center;
    align-self: stretch;
    position: relative;
    isolation: isolate;
    padding: 42px 80px 42px 0;
}

.teams-hero__visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -20% 0 -20%;
    background: radial-gradient(ellipse at 55% 55%, #d7bdfb 0%, #e9dbfc 36%, transparent 70%);
}

.teams-phone {
    display: block;
    width: clamp(210px, 21vw, 260px);
    height: auto;
    border: 6px solid #fff;
    border-radius: 38px;
    box-shadow: 0 24px 64px -15px #4c287330;
    transform: rotate(-4deg);
}

.teams-example {
    position: absolute;
    bottom: 15%;
    right: 6%;
    width: min(220px, 55%);
    padding: 16px 18px;
    border: 1px solid var(--teams-border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 16px 38px #4c287326;
}

.teams-example__label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6123a6;
    font-size: var(--text-xs);
    font-weight: 700;
}

.teams-example__label span {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #7c3aed;
}

.teams-example__text {
    margin-top: 7px;
    color: inherit;
    font-weight: 700;
    line-height: 1.35;
}

.teams-example__translation {
    margin-top: 7px;
    color: #554667;
    font-size: var(--text-xs);
    line-height: 1.45;
}

.teams-page .teams-section {
    padding-block: clamp(48px, 8vw, 98px);
}

.teams-page h2 { font-size: clamp(1.85rem, 3.5vw, 3.1rem); }

.teams-section__intro > p {
    margin-top: 14px;
    max-width: 48ch;
    color: var(--ink-2);
}

.teams-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin-top: 32px;
}

.teams-steps li {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(20px, 2.5vw, 32px);
    background: var(--surface);
}

.teams-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--brand-dark);
    background: var(--brand-light);
    font-weight: 700;
    font-size: var(--text-sm);
}

.teams-steps h3 {
    font-size: var(--text-lg);
    margin-top: 14px;
    margin-bottom: 5px;
    line-height: 1.35;
}

.teams-steps p,
.teams-faq p { color: var(--ink-2); }

.teams-steps h3:first-child { margin-top: 0; }

.teams-dashboard-link { margin-top: 20px; }

.teams-metrics {
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--teams-border);
    border-radius: 20px;
    padding-inline: clamp(16px, 3vw, 28px);
}

.teams-metrics li {
    display: grid;
    gap: 4px;
    padding-block: 16px;
}

.teams-metrics li + li { border-top: 1px solid var(--teams-border); }
.teams-metrics span { color: var(--ink-2); }

.teams-pricing {
    background: var(--brand-subtle);
    border-block: 1px solid var(--brand-light);
}

.teams-split {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(24px, 5vw, 72px);
}

.teams-text-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 18px;
    color: var(--brand-dark);
    font-weight: 700;
    text-underline-offset: 4px;
}

.teams-price-table {
    border-radius: 20px;
    border: 1px solid var(--teams-border);
    background: var(--surface);
    overflow: hidden;
}

.teams-price-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.teams-price-table th,
.teams-price-table td { padding: 15px clamp(10px, 2vw, 22px); }

.teams-price-table thead {
    color: #4c345f;
    background: #f5edff;
    font-size: var(--text-sm);
    line-height: 1.3;
}

.teams-price-table thead span {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
}

.teams-price-table tbody tr { border-top: 1px solid #eee7f6; }

.teams-price-table th:last-child,
.teams-price-table td:last-child { text-align: right; }

.teams-price-table td:last-child {
    color: var(--brand-dark);
    font-weight: 700;
    white-space: nowrap;
}

.teams-faq { border-top: 1px solid var(--border); }
.teams-faq details { border-bottom: 1px solid var(--border); }

.teams-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 0;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
}

.teams-faq summary::-webkit-details-marker { display: none; }

.teams-faq summary::after {
    content: "+" / "";
    color: var(--brand-dark);
    font-size: 1.25rem;
    line-height: 1.2;
}

.teams-faq details[open] summary::after { content: "−" / ""; }

.teams-faq p { padding-bottom: 20px; }

.teams-page .teams-contact { padding-bottom: clamp(48px, 8vw, 98px); }

.teams-contact__panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    border-radius: clamp(24px, 4vw, 38px);
    padding: clamp(26px, 5vw, 60px);
    border: 1px solid var(--teams-border);
    background: var(--brand-subtle);
}

.teams-contact__panel p {
    margin-top: 14px;
    max-width: 53ch;
    color: var(--ink-2);
}

.teams-contact__links {
    display: grid;
    gap: 8px;
    text-align: center;
}

.teams-contact__links > a:not(.btn) {
    color: var(--brand-dark);
    font-size: var(--text-sm);
    text-underline-offset: 4px;
}

.teams-page .footer {
    background: var(--surface);
    border-color: var(--border);
}

.teams-page .footer__link,
.teams-page .footer__copyright { color: var(--ink-2); }

.teams-page .footer__link:hover,
.teams-page .footer__link:focus { color: var(--brand-dark); }

.teams-page .footer__links { flex-wrap: wrap; justify-content: center; }

@media (max-width: 850px) {
    .teams-hero__panel { min-height: 495px; }
    .teams-hero__visual { padding-right: 54px; }
}

@media (max-width: 700px) {
    .teams-page .header__content--audience { grid-template-columns: 1fr auto; height: auto; padding-block: 10px; gap: 10px; }
    .teams-page .audience-nav { grid-area: 2 / 1 / 3 / -1; justify-self: stretch; }
    .teams-page .audience-nav a { flex: 1; justify-content: center; min-height: 44px; padding-inline: 6px; font-size: 12px; }
    .teams-header-actions { grid-area: 1 / 2; }
    .teams-hero__panel, .teams-split, .teams-steps { grid-template-columns: 1fr; }
    .teams-hero__copy { padding: 32px 24px 0; }
    .teams-hero__visual { padding: 38px 70px 30px 0; }
    .teams-hero__visual::before { inset: -5% -15% 0; }
    .teams-phone { width: 220px; max-width: 100%; border-radius: 33px; }
    .teams-example { bottom: 12%; right: clamp(12px, 6vw, 45px); }
    .teams-steps { gap: 10px; margin-top: 24px; }
    .teams-contact__panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
    .teams-hero h1 { font-size: 2.3rem; }
    .teams-example { padding: 10px 12px; }
    .teams-example__text { font-size: var(--text-sm); }
    .teams-price-table table { font-size: var(--text-sm); }
    .teams-price-table thead { font-size: var(--text-xs); }
}

.teams-hero__visual--single { padding-inline: 0; }

/* Who does what */
.teams-page .teams-section--follow { padding-top: 0; }

.teams-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.teams-roles article {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(20px, 2.5vw, 32px);
    background: var(--surface);
}

.teams-roles__who {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: var(--text-sm);
    font-weight: 700;
}

.teams-roles ul {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    list-style: none;
}

.teams-roles li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-2);
}

.teams-roles li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

/* Dashboard preview */
.dash-preview {
    margin: 32px 0 0;
    overflow: hidden;
    border: 1px solid var(--teams-border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 24px 60px #4c287321;
}

.dash-preview__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--border-light);
}

.dash-preview__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9de;
}

.dash-preview__bar p {
    flex: 1;
    max-width: 280px;
    margin: 0 auto;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--ink-3);
    font-size: var(--text-xs);
    text-align: center;
}

.dash-preview__body { padding: clamp(16px, 3vw, 28px); }

.dash-preview__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dash-preview__org {
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: 600;
}

.dash-preview__name {
    margin-top: 2px;
    font-size: var(--text-lg);
    font-weight: 700;
}

.dash-preview__badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: #fef3c7;
    color: #92400e;
    font-size: var(--text-xs);
    font-weight: 700;
}

.dash-preview__tabs {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-3);
}

.dash-preview__tabs span {
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}

.dash-preview__tabs .is-active {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
}

.dash-preview__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    list-style: none;
}

.dash-preview__stats li {
    display: grid;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.dash-preview__stats strong {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.dash-preview__stats span {
    margin-top: 4px;
    color: var(--ink-2);
    font-size: var(--text-xs);
}

.dash-preview__stats em {
    margin-top: 2px;
    color: #047857;
    font-size: var(--text-xs);
    font-style: normal;
    font-weight: 700;
}

.dash-preview__table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    text-align: left;
}

.dash-preview__table th,
.dash-preview__table td { padding: 10px 8px; }

.dash-preview__table thead th {
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.dash-preview__table tbody tr + tr { border-top: 1px solid var(--border-light); }

.dash-preview__table tbody th {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.dash-preview__table .num { text-align: right; }

.dash-preview__table .is-idle td,
.dash-preview__table .is-idle th { color: #b45309; }

.dash-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: var(--text-xs);
    font-weight: 700;
}

.teams-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
    list-style: none;
}

.teams-features li { display: grid; gap: 4px; align-content: start; }
.teams-features span { color: var(--ink-2); font-size: var(--text-sm); }

@media (max-width: 900px) {
    .teams-roles { grid-template-columns: 1fr; }
    .teams-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .dash-hide-sm { display: none; }
    .dash-preview__stats { gap: 6px; }
    .dash-preview__stats li { padding: 10px; }
    .dash-preview__tabs span { padding: 8px 8px; }
    .teams-features { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .teams-page .audience-nav { justify-self: stretch; }
    .teams-header-actions { display: flex; }
}
