/* Pricing comparison — one page with personal, business and minute packages. */
@font-face {
    font-family: "Inter";
    src: url("../../assets/fonts/Inter/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.rates-page {
    /* The three blurred ellipses from the Figma BG layer. */
    --glow-right: ellipse 900px 890px at 98% 2016px;
    --glow-bottom: ellipse 880px 874px at 59% 3284px;
    --glow-left: ellipse 933px 782px at 13% 1577px;
    background:
        radial-gradient(var(--glow-right), #2b1c66 0%, #2b1c6600 100%),
        radial-gradient(var(--glow-bottom), #2c205a 0%, #2c205a00 100%),
        radial-gradient(var(--glow-left), #211850 0%, #21185000 100%),
        #171c20;
    background-repeat: no-repeat;
    color: #f8f8f8;
}

.pricing-page {
    --pricing-accent: #8471f6;
    --pricing-column: #6c58e5;
    --pricing-gap: 18px;
    --pricing-radius: 16px;
    width: calc(100% - 260px);
    max-width: 1660px;
    margin: 0 auto;
    padding: 127px 0 105px;
    font-family: "Inter", "San Francisco", sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.pricing-page [hidden] {
    display: none !important;
}

.pricing-page strong {
    font-weight: 600;
}

.pricing-page :is(button, a, [tabindex]):focus-visible {
    outline: 3px solid #ff97bf;
    outline-offset: 4px;
}

.pricing-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.pricing-hero {
    --hero-border-width: 6px;
    --hero-art-width: 81.75%;
    --hero-art-left: 10.2%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    min-height: 500px;
    overflow: clip;
    border: 0;
    border-radius: 32px;
    background: #171b1f;
}

.pricing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: var(--hero-border-width);
    border-radius: inherit;
    background: radial-gradient(ellipse 32% 65% at 0 0, #6c58e5, transparent 75%),
        radial-gradient(ellipse 32% 65% at 100% 100%, #6c58e5, transparent 75%),
        #ffffff0f;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse at 42% 110%, #513dcb 0, transparent 59%),
        radial-gradient(ellipse at 93% 100%, #aa256f80 0, transparent 45%);
}

.pricing-hero__art {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: var(--hero-art-left);
    width: var(--hero-art-width);
    max-width: none;
    height: auto;
    pointer-events: none;
}

.pricing-hero__content {
    position: relative;
    width: 100%;
    padding: 36px 20px;
    text-align: center;
}

.pricing-hero h1 {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #f8f8f8;
    background: linear-gradient(90deg, #f8f8f8 23%, #8471f6 57%, #f3287a 88%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-hero p {
    max-width: 492px;
    margin: 7px auto 32px;
    font-size: 14px;
    line-height: 1.3;
}

.pricing-tabs {
    display: inline-flex;
    max-width: 100%;
    gap: 2px;
    border-radius: 12px;
    background: #f8f8f8;
    font-family: "San Francisco", sans-serif;
}

.pricing-tabs button {
    padding: 12px 28px;
    min-height: 44px;
    border-radius: 10px;
    background: transparent;
    color: #171b1f;
    font-size: 14px;
    line-height: 20px;
    transition: background-color 150ms, color 150ms;
}

.pricing-tabs button[aria-selected="true"] {
    background: #f3287a;
    color: #f8f8f8;
}

.pricing-tabs button:hover:not([aria-selected="true"]) {
    background: #e9e5ff;
}

.pricing-panel {
    --plan-count: 3;
    margin-top: 35px;
}

.pricing-panel--minutes {
    --plan-count: 2;
}

.pricing-offer {
    display: contents;
}

.pricing-offer__prices {
    position: sticky;
    top: var(--pricing-header-height, 90px);
    z-index: 10;
    margin-top: 16px;
}

.pricing-periods {
    display: none;
}

.pricing-offer__prices,
.pricing-offer__descriptions {
    display: grid;
    grid-template-columns: 22% repeat(var(--plan-count), minmax(0, 1fr));
    gap: var(--pricing-gap);
    padding: 14px 16px;
    background: #ffffff0f;
    border-radius: 20px;
}

.pricing-offer__label {
    font-weight: 400;
    font-size: 14px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 204px;
    padding: 20px;
    background: #ffffff0f;
    border-radius: 16px;
}

.pricing-card:first-of-type {
    background: var(--pricing-accent);
}

.pricing-panel--business .pricing-offer__prices {
    top: calc(var(--pricing-header-height, 90px) + var(--pricing-labels-overhang, 4px) + 8px);
    margin-top: calc(16px + var(--pricing-labels-overhang, 4px));
    overflow: visible;
}

.pricing-card__labels {
    position: absolute;
    bottom: calc(100% - 10px);
    left: 20px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pricing-card__labels .rates__item__discount {
    position: static;
    transform: none;
    box-shadow: 0 0 29px 0 rgba(243, 40, 122, 0.81);
    background: #f3287a;
    border-radius: 45px;
    padding: 6px 10px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: #f8f8f8;
}

.pricing-card__labels .rates__item__label {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #272c30;
    background: #f8f8f8;
    border-radius: 500px;
    padding: 6px 10px;
}

@media (min-width: 701px) and (max-width: 1400px) {
    .pricing-card__labels .rates__item__discount,
    .pricing-card__labels .rates__item__label { font-size: 10px; padding: 6px; }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .pricing-card__labels { left: 6px; right: 6px; gap: 4px; }
    .pricing-card__labels .rates__item__discount,
    .pricing-card__labels .rates__item__label { font-size: 9px; padding: 4px 6px; }
}

.pricing-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 58px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.pricing-card__price span {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
}

.pricing-card__total {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.3;
}

.pricing-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    margin-top: 26px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #f8f8f8;
    color: #171b1f;
    font-family: "San Francisco", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 150ms;
}

.pricing-card__button:hover {
    background: #e8e3ff;
}

.pricing-panel--minutes .pricing-card {
    min-height: 175px;
}

.pricing-panel--minutes .pricing-card__button {
    margin-top: auto;
}

.pricing-offer__descriptions {
    margin-top: 1px;
    min-height: 117px;
}

.pricing-offer__descriptions > [data-plan] {
    max-width: 335px;
    margin: 0 auto;
    text-align: center;
}

.pricing-section {
    margin-top: 10px;
    padding: 20px 0 12px;
}

.pricing-section__title {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 69px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #8471f633;
    border-radius: 20px;
    background: #8471f64d;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

.pricing-table {
    isolation: isolate;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 1px;
    font-size: inherit;
}

.pricing-table__label-col {
    width: 23.4%;
}

.pricing-table th,
.pricing-table td {
    position: relative;
    padding: 14px 16px;
    background: #ffffff0f;
    color: #f8f8f8;
    font-size: inherit;
    line-height: 1.3;
    font-weight: 400;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.pricing-table th[scope="row"] {
    border-radius: var(--pricing-radius) 0 0 var(--pricing-radius);
    text-align: left;
}

.pricing-table td {
    text-align: center;
}

.pricing-table td:last-child {
    border-radius: 0 var(--pricing-radius) var(--pricing-radius) 0;
}

.pricing-table td[data-plan="0"] {
    background: var(--pricing-column);
}

.pricing-offer__prices.is-overlapping {
    background: #272b33;
}

.pricing-table td[data-plan="0"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #ffffff0f;
    pointer-events: none;
}

.pricing-table tbody tr:first-child td[data-plan="0"] {
    border-radius: 20px 20px 0 0;
}

.pricing-table tbody tr:last-child td[data-plan="0"] {
    border-radius: 0 0 20px 20px;
}

.pricing-table tbody tr:only-child td[data-plan="0"] {
    border-radius: 20px;
}

.pricing-table small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #c3c3c7;
}

.pricing-table td small {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
}

.pricing-table td[data-plan="0"] small {
    color: #f0edff;
}

.pricing-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #f8f8f8;
    border-radius: 50%;
    background: #f8f8f8;
    color: #6c58e5;
    vertical-align: middle;
}

.pricing-check--no {
    background: transparent;
    color: #f8f8f8;
}

.pricing-check svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pricing-help {
    display: inline-block;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}

.pricing-help button {
    display: inline-flex;
    padding: 0;
    width: 14px;
    height: 14px;
    background: transparent;
    cursor: pointer;
}

.pricing-help button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 4px;
}

.rates-tooltip-overlay-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483647;
}

.rates-tooltip-overlay {
  position: fixed;
  max-width: min(360px, calc(100vw - 16px));
  background-color: #272c30;
  color: #f8f8f8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.rates-tooltip-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rates-tooltip-overlay p {
  margin: 0;
}

@media (max-width: 1700px) {
    .rates-page {
        --glow-right: ellipse 620px 620px at 83% 1600px;
        --glow-bottom: ellipse 610px 605px at 51% 2385px;
        --glow-left: ellipse 645px 550px at 13% 1325px;
    }
    .pricing-page { width: calc(100% - 240px); padding-top: 116px; padding-bottom: 90px; }
    .pricing-hero { min-height: 447px; border-radius: 28px; --hero-art-width: 81%; --hero-art-left: 12%; }
    .pricing-card__price { font-size: 48px; }
    .pricing-card__price span { font-size: 16px; }
    .pricing-card__total { font-size: 14px; }
    .pricing-card { min-height: 185px; padding: 16px; }
    .pricing-table th, .pricing-table td { padding: 12px; }
}

@media (max-width: 1500px) {
    .pricing-page { --pricing-gap: 14px; width: calc(100% - 200px); padding-top: 114px; padding-bottom: 80px; font-size: 12px; }
    .pricing-hero { min-height: 405px; border-radius: 24px; --hero-border-width: 4px; --hero-art-width: 88.8%; --hero-art-left: 7%; }
    .pricing-hero h1 { font-size: 32px; }
    .pricing-panel { margin-top: 24px; }
    .pricing-card { min-height: 158px; padding: 14px; }
    .pricing-card__price { font-size: 40px; }
    .pricing-card__total { font-size: 12px; }
    .pricing-card__button { margin-top: 20px; min-height: 38px; font-size: 14px; }
    .pricing-offer__label { font-size: 12px; }
    .pricing-offer__descriptions { min-height: 95px; }
    .pricing-section { padding-top: 14px; }
    .pricing-section__title { min-height: 54px; margin-bottom: 12px; padding: 12px; font-size: 16px; border-radius: 16px; }
    .pricing-table small { font-size: 10px; margin-top: 6px; }
    .pricing-check { width: 24px; height: 24px; }
}

@media (max-width: 1300px) {
    .pricing-page { --pricing-gap: 12px; width: calc(100% - 160px); padding-top: 104px; padding-bottom: 70px; }
    .pricing-hero { min-height: 328px; border-radius: 20px; --hero-art-width: 90%; --hero-art-left: 6.4%; }
    .pricing-card__price { font-size: 36px; }
    .pricing-card__price span { font-size: 14px; }
    .pricing-offer__prices, .pricing-offer__descriptions { padding: 12px; }
    .pricing-card { padding: 12px; min-height: 148px; }
    .pricing-card__button { margin-top: 18px; }
    .pricing-table th, .pricing-table td { padding: 10px; }
    .pricing-section__title { min-height: 46px; font-size: 14px; }
}

@media (max-width: 1100px) {
    .pricing-page { width: calc(100% - 120px); padding-top: 98px; font-size: 10px; }
    .pricing-hero { min-height: 266px; border-radius: 16px; --hero-art-width: 91%; --hero-art-left: 5%; }
    .pricing-hero h1 { font-size: 24px; }
    .pricing-hero p { max-width: 410px; font-size: 12px; margin-bottom: 24px; }
    .pricing-panel { margin-top: 16px; }
    .pricing-card__price { font-size: 32px; }
    .pricing-card__price span { font-size: 12px; }
    .pricing-card__total { font-size: 10px; }
    .pricing-offer__label { font-size: 10px; }
    .pricing-offer__descriptions { min-height: 83px; }
    .pricing-table small { font-size: 9px; }
    .pricing-section__title { min-height: 40px; font-size: 12px; }
    .pricing-check { width: 20px; height: 20px; }
    .pricing-check svg { width: 12px; height: 12px; }
}

@media (max-width: 850px) {
    .rates-page {
        --glow-right: ellipse 500px 495px at 98% 1650px;
        --glow-bottom: ellipse 480px 475px at 50% 2250px;
        --glow-left: ellipse 510px 440px at 15% 1100px;
    }
    .pricing-page { --pricing-gap: 8px; --pricing-radius: 8px; width: calc(100% - 60px); padding-top: 80px; padding-bottom: 60px; }
    .pricing-hero { min-height: 210px; border-radius: 14px; --hero-border-width: 2px; --hero-art-width: 92.8%; --hero-art-left: 3.4%; }
    .pricing-hero h1 { font-size: 20px; }
    .pricing-hero p { max-width: 345px; margin-bottom: 20px; font-size: 10px; }
    .pricing-tabs button { min-height: 36px; padding: 8px 20px; font-size: 12px; }
    .pricing-panel { margin-top: 14px; }
    .pricing-card { padding: 10px; border-radius: 10px; }
    .pricing-card__price { font-size: 28px; gap: 4px; }
    .pricing-card__price span { font-size: 10px; }
    .pricing-card__button { padding: 8px; font-size: 12px; min-height: 34px; border-radius: 8px; }
    .pricing-offer__prices, .pricing-offer__descriptions { padding: 10px 8px; border-radius: 10px; }
    .pricing-section { padding-top: 10px; padding-bottom: 6px; }
    .pricing-section__title { border-radius: 10px; }
    .pricing-table th, .pricing-table td { padding: 10px 7px; }
    .pricing-table tbody tr:first-child td[data-plan="0"] { border-radius: 10px 10px 0 0; }
    .pricing-table tbody tr:last-child td[data-plan="0"] { border-radius: 0 0 10px 10px; }
}

@media (max-width: 700px) {
    .rates-page {
        --glow-right: ellipse 315px 312px at 100% 1940px;
        --glow-bottom: ellipse 307px 305px at 50% 2697px;
        --glow-left: ellipse 326px 270px at 24% 1097px;
    }
    .pricing-page { width: calc(100% - 32px); padding-top: 74px; padding-bottom: 32px; font-size: 10px; }
    .pricing-hero { min-height: 210px; --hero-art-width: 141.5%; --hero-art-left: -17%; }
    .pricing-hero__content { padding: 28px 14px; }
    .pricing-hero h1 { font-size: 18px; letter-spacing: -0.04em; }
    .pricing-hero p { max-width: 320px; font-size: 10px; margin-top: 7px; margin-bottom: 20px; }
    .pricing-tabs { width: 100%; max-width: 306px; gap: 0; border-radius: 10px; }
    .pricing-tabs button { flex: 1 0 auto; min-height: 34px; padding: 7px 10px; font-size: 10px; line-height: 20px; border-radius: 8px; }
    .pricing-panel { margin-top: 14px; }
    .pricing-panel [data-plan]:not(.is-selected) { display: none; }
    .pricing-periods { display: flex; margin-bottom: 0; padding: 12px 12px 10px; gap: 0; background: #ffffff0f; border-radius: 10px 10px 0 0; }
    .pricing-periods button { flex: 1; min-width: 0; padding: 10px 8px; border-radius: 10px; background: transparent; color: #f8f8f8; text-align: left; line-height: 1.3; }
    .pricing-periods button[aria-pressed="true"] { background: var(--pricing-accent); }
    .pricing-periods span { display: block; font-size: 14px; font-weight: 500; }
    .pricing-periods small { display: block; margin-top: 4px; font-size: 10px; }
    .pricing-offer__prices, .pricing-offer__descriptions { display: block; padding: 0; background: none; }
    .pricing-offer__prices { margin-top: 0; padding: 0 12px 12px; background: #ffffff0f; border-radius: 0; }
    .pricing-offer__label { display: none; }
    .pricing-card, .pricing-panel--minutes .pricing-card { min-height: 125px; padding: 12px; border-radius: 8px; background: var(--pricing-accent); }
    .pricing-card__price { font-size: 32px; gap: 6px; }
    .pricing-card__price span { font-size: 12px; }
    .pricing-card__total { font-size: 10px; margin-top: 2px; }
    .pricing-card__button { margin-top: 16px; min-height: 34px; font-size: 12px; }
    .pricing-offer__descriptions { min-height: 0; margin-top: 0; padding: 0 12px 12px; background: #ffffff0f; border-radius: 0 0 10px 10px; }
    .pricing-offer__descriptions > [data-plan] { max-width: 100%; text-align: left; font-size: 10px; line-height: 1.3; }
    .pricing-section { margin-top: 10px; padding: 0; }
    .pricing-section__title { min-height: 36px; margin-bottom: 8px; padding: 10px 8px; font-size: 11px; border-radius: 8px; }
    .pricing-table__label-col { width: 51%; }
    .pricing-table th, .pricing-table td { padding: 10px 8px; }
    .pricing-table small { font-size: 9px; margin-top: 6px; }
    .pricing-table td[data-plan="0"] { background: #ffffff0f; }
    .pricing-table td.is-selected { background: var(--pricing-column); border-radius: 0; }
    .pricing-table td.is-selected::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: #ffffff0f;
        pointer-events: none;
    }
    .pricing-table tbody tr:first-child td.is-selected { border-radius: 8px 8px 0 0; }
    .pricing-table tbody tr:last-child td.is-selected { border-radius: 0 0 8px 8px; }
    .pricing-table tbody tr:only-child td.is-selected { border-radius: 8px; }
    .pricing-table td.is-selected small { color: #f0edff; }
    .pricing-check { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
    .rates-page .footer__top__navigation { max-width: 100%; }
    .rates-page .footer__top__navigation__wrapper { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .pricing-hero h1 { font-size: 17px; }
    .pricing-periods span { font-size: 12px; }
    .pricing-periods button { padding: 10px 6px; }
}

.pricing-sticky-anchor {
    display: flow-root;
    height: 0;
}

.pricing-sticky-spacer {
    pointer-events: none;
    overflow-anchor: none;
}

.pricing-offer__prices .pricing-card {
    transition: min-height 220ms ease, padding 220ms ease;
}

.pricing-offer__prices .pricing-card__price,
.pricing-offer__prices .pricing-card__price span,
.pricing-offer__prices .pricing-card__total {
    transition: font-size 220ms ease, line-height 220ms ease;
}

.pricing-offer__prices .pricing-card__button {
    transition: margin-top 220ms ease, background-color 150ms;
}

.pricing-offer__prices.is-compact .pricing-card {
    min-height: 148px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.pricing-offer__prices.is-compact .pricing-card__price {
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
}

.pricing-offer__prices.is-compact .pricing-card__price span,
.pricing-offer__prices.is-compact .pricing-card__total {
    font-size: 14px;
    line-height: 18px;
}

.pricing-offer__prices.is-compact .pricing-card__button {
    margin-top: 14px;
}

.pricing-offer__prices.is-measuring {
    position: absolute;
    visibility: hidden;
    margin: 0;
    pointer-events: none;
}

.pricing-offer__prices.is-measuring,
.pricing-offer__prices.is-measuring * {
    transition: none !important;
}

@media (max-width: 1100px) {
    .pricing-offer__prices.is-compact .pricing-card { min-height: 112px; padding-top: 10px; padding-bottom: 10px; }
    .pricing-offer__prices.is-compact .pricing-card__price { font-size: 24px; line-height: 29px; }
    .pricing-offer__prices.is-compact .pricing-card__price span,
    .pricing-offer__prices.is-compact .pricing-card__total { font-size: 10px; line-height: 13px; }
    .pricing-offer__prices.is-compact .pricing-card__button { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-page * { transition: none !important; }
}
