@import url(https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap);
:host {
  --color-brand-950: #062e24;
  --color-brand-900: #0b4d3c;
  --color-brand-800: #0f6b57;
  --color-brand-700: #138a72;
  --color-brand-600: #16a085;
  --color-brand-500: #1abc9c;
  --color-brand-400: #33c3af;
  --color-brand-300: #66d2c3;
  --color-brand-200: #99e1d7;
  --color-brand-100: #ccf0eb;
  --color-brand-50: #e6f7f5;

  --color-neutral-950: #0a0c0d;
  --color-neutral-900: #141719;
  --color-neutral-800: #1f2326;
  --color-neutral-700: #2e3337;
  --color-neutral-600: #4a545b;
  --color-neutral-500: #6b7780;
  --color-neutral-400: #9ba7ae;
  --color-neutral-300: #d1d8dc;
  --color-neutral-200: #e8ecee;
  --color-neutral-100: #f2f3f4;
  --color-neutral-70: #f7f7f7;
  --color-neutral-50: #fafbfb;
  --color-surface-white: #ffffff;

  --color-surface-soft: var(--color-brand-50);
  --color-surface-soft-strong: var(--color-brand-100);
  --color-border-soft: var(--color-neutral-200);
  --color-border-brand: rgba(26, 188, 156, 0.18);

  --color-text-strong: var(--color-neutral-950);
  --color-text-default: var(--color-neutral-800);
  --color-text-muted: var(--color-neutral-600);
  --color-text-subtle: var(--color-neutral-500);
  --color-text-on-brand: var(--color-surface-white);

  --color-success: var(--color-brand-600);
  --color-danger: #d64545;

  --shadow-soft:
    0 10px 26px rgba(20, 23, 25, 0.06),
    0 4px 10px rgba(20, 23, 25, 0.04);
  --shadow-button:
    0 10px 20px rgba(26, 188, 156, 0.18),
    0 2px 6px rgba(20, 23, 25, 0.08);

  --radius-card-lg: 28px;
  --radius-card-md: 22px;
  --radius-card-sm: 18px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;

  --font-family-base: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-brand: "Be Vietnam Pro", var(--font-family-base);
  --font-size-display: clamp(2.4rem, 4vw, 4.5rem);
  --font-size-h1: clamp(2rem, 3.2vw, 3.25rem);
  --font-size-h2: clamp(1.75rem, 2.6vw, 2.5rem);
  --font-size-h3: 1.375rem;
  --font-size-body-lg: 1.125rem;
  --font-size-body: 1rem;
  --font-size-body-sm: 0.9375rem;
  --font-size-caption: 0.8125rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;
}

:host {
  color: var(--color-text-default);
  font-family: var(--font-family-base);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text-default);
  font-family: var(--font-family-base);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.sme-pricing-section {
  display: grid;
  gap: 40px;
  width: 100%;
  color: var(--color-text-strong);
  font-family: var(--font-family-brand);
  container-type: inline-size;
}

.sme-pricing-section__top-scroll,
.sme-pricing-section__matrix {
  width: 100%;
  min-width: 0;
}

.sme-pricing-section__top-shell,
.sme-pricing-section__matrix-shell {
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-surface-white);
}

.sme-pricing-section__top-shell {
  box-shadow:
    0 39px 79px rgba(0, 0, 0, 0.03),
    0 7px 10px rgba(0, 0, 0, 0.06);
}

.sme-pricing-section__top {
  display: grid;
  grid-template-columns: minmax(0, 355fr) minmax(0, 222.5fr) minmax(0, 222.5fr);
  width: 100%;
}

.sme-pricing-section__controls {
  display: grid;
  gap: 24px;
  align-content: center;
  padding: 24px;
  min-width: 0;
  background: var(--color-surface-white);
  border-right: 1px solid var(--color-border-soft);
}

.sme-pricing-section__field,
.sme-pricing-section__card-field {
  display: grid;
  min-width: 0;
}

.sme-pricing-section__field {
  gap: 5px;
}

.sme-pricing-section__field--responsive {
  display: none;
}

.sme-pricing-section__card-field {
  gap: 4px;
}

.sme-pricing-section__field-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

.sme-pricing-section__cards {
  display: contents;
}

.sme-pricing-section__card {
  display: grid;
  grid-template-rows: minmax(42px, auto) auto 1px minmax(54px, auto) minmax(54px, auto) auto;
  gap: 20px;
  min-width: 0;
  min-height: 100%;
  padding: 24px;
}

.sme-pricing-section__card--soft {
  background: rgba(204, 240, 235, 0.3);
  border-right: 1px solid var(--color-border-soft);
}

.sme-pricing-section__card--strong {
  background: rgba(204, 240, 235, 0.7);
}

.sme-pricing-section__card-field-spacer {
  min-height: 54px;
}

.sme-pricing-section__label,
.sme-pricing-section__card-field-label,
.sme-pricing-section__checkbox-label,
.sme-pricing-section__card-description,
.sme-pricing-section__card-price,
.sme-pricing-section__card-price-suffix,
.sme-pricing-section__card-title {
  margin: 0;
}

.sme-pricing-section__label {
  color: var(--color-text-strong);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

.sme-pricing-section__card-field-label {
  color: var(--color-text-strong);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}

.sme-pricing-section__select-wrap {
  position: relative;
}

.sme-pricing-section__select {
  width: 100%;
  min-height: 43px;
  padding: 9px 48px 9px 16px;
  border: 1px solid #cccccc;
  border-radius: 12px;
  background: var(--color-surface-white);
  color: var(--color-text-strong);
  font-family: inherit;
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  line-height: 1.2778;
  appearance: none;
  outline: none;
}

.sme-pricing-section__select:focus {
  border-color: var(--color-brand-700);
  box-shadow: 0 0 0 4px rgba(19, 138, 114, 0.12);
}

.sme-pricing-section__select-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 24px;
  height: 24px;
  color: var(--color-neutral-400);
  pointer-events: none;
  transform: translateY(-50%);
}

.sme-pricing-section__select--compact {
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 16px;
  line-height: 1.25;
}

.sme-pricing-section__checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.sme-pricing-section__checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sme-pricing-section__checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sme-pricing-section__checkbox-ui {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--color-neutral-500);
  border-radius: 4px;
  background: var(--color-surface-white);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sme-pricing-section__checkbox-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--color-surface-white);
  border-bottom: 2px solid var(--color-surface-white);
  transform: rotate(45deg);
  opacity: 0;
}

.sme-pricing-section__checkbox-input:checked + .sme-pricing-section__checkbox .sme-pricing-section__checkbox-ui,
.sme-pricing-section__checkbox-input:checked + .sme-pricing-section__checkbox-ui {
  border-color: var(--color-brand-700);
  background: var(--color-brand-700);
  box-shadow: 0 0 0 4px rgba(19, 138, 114, 0.12);
}

.sme-pricing-section__checkbox-input:checked + .sme-pricing-section__checkbox .sme-pricing-section__checkbox-ui::after,
.sme-pricing-section__checkbox-input:checked + .sme-pricing-section__checkbox-ui::after {
  opacity: 1;
}

.sme-pricing-section__checkbox-label {
  color: var(--color-text-strong);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: 1.25;
}

.sme-pricing-section__tooltip {
  position: relative;
  flex-shrink: 0;
}

.sme-pricing-section__tooltip-trigger {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-subtle);
  cursor: pointer;
}

.sme-pricing-section__tooltip-trigger:hover,
.sme-pricing-section__tooltip-trigger:focus-visible {
  color: var(--color-brand-700);
  outline: none;
}

.sme-pricing-section__tooltip-icon-svg {
  width: 18px;
  height: 18px;
}

.sme-pricing-section__tooltip-bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 3;
  width: min(280px, 70vw);
  padding: 12px 14px;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-surface-white);
  box-shadow: var(--shadow-soft);
  color: var(--color-text-default);
  font-size: 13px;
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.sme-pricing-section__tooltip:hover .sme-pricing-section__tooltip-bubble,
.sme-pricing-section__tooltip:focus-within .sme-pricing-section__tooltip-bubble,
.sme-pricing-section__tooltip.is-open .sme-pricing-section__tooltip-bubble {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sme-pricing-section__card-title {
  color: var(--color-text-strong);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

.sme-pricing-section__card-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.sme-pricing-section__card-price {
  color: var(--color-text-strong);
  font-size: 36px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.sme-pricing-section__card-price-suffix {
  color: rgba(0, 0, 0, 0.8);
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  line-height: 1.1667;
}

.sme-pricing-section__card-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.sme-pricing-section__card-description {
  color: var(--color-text-strong);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
}

.sme-pricing-section__card-cta {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  border-radius: 12px;
  background-image:
    linear-gradient(180deg, rgba(26, 188, 156, 0.99) 0%, rgba(26, 188, 156, 0) 100%),
    linear-gradient(90deg, rgb(19, 138, 114) 0%, rgb(19, 138, 114) 100%);
  box-shadow: var(--shadow-button);
  color: var(--color-text-on-brand);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.sme-pricing-section__card-cta:hover {
  filter: brightness(1.03);
}

.sme-pricing-section__card-cta--disabled {
  cursor: default;
}

.sme-pricing-section__matrix-shell--stacked {
  display: none;
}

.sme-pricing-section__matrix-grid {
  display: grid;
  grid-template-columns: minmax(0, 355fr) minmax(0, 222.5fr) minmax(0, 222.5fr);
  width: 100%;
}

.sme-pricing-section__matrix-label-cell,
.sme-pricing-section__matrix-value-cell {
  min-height: 56px;
  padding: 16px;
  border-right: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-surface-white);
  font-size: 14px;
  line-height: 1.2857;
}

.sme-pricing-section__matrix-label-cell {
  color: var(--color-text-strong);
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}

.sme-pricing-section__matrix-value-cell {
  display: flex;
  align-items: center;
}

.sme-pricing-section__matrix-value-cell--soft {
  background: rgba(230, 247, 245, 0.3);
}

.sme-pricing-section__matrix-value-cell--strong {
  background: rgba(204, 240, 235, 0.7);
}

.sme-pricing-section__matrix-grid > :nth-last-child(-n + 3) {
  border-bottom: 0;
}

.sme-pricing-section__matrix-grid > :nth-child(3n) {
  border-right: 0;
}

.sme-pricing-section__cell-content {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 20px;
  min-width: 0;
}

.sme-pricing-section__cell-content--compact .sme-pricing-section__cell-text {
  white-space: nowrap;
}

.sme-pricing-section__cell-icon-wrap {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.sme-pricing-section__cell-icon-wrap--check {
  color: var(--color-success);
}

.sme-pricing-section__cell-icon-wrap--x {
  color: var(--color-danger);
}

.sme-pricing-section__cell-icon {
  width: 20px;
  height: 20px;
}

.sme-pricing-section__cell-text {
  color: var(--color-text-strong);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2857;
  overflow-wrap: anywhere;
}

.sme-pricing-section__cell-placeholder {
  display: inline-block;
  width: 1px;
  min-height: 20px;
}

.sme-pricing-section__matrix-mobile {
  display: grid;
  width: 100%;
}

.sme-pricing-section__matrix-mobile-group {
  display: grid;
}

.sme-pricing-section__matrix-mobile-group:not(:last-child) {
  border-bottom: 1px solid var(--color-border-soft);
}

.sme-pricing-section__matrix-mobile-label {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text-strong);
  background: var(--color-surface-white);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sme-pricing-section__matrix-mobile-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sme-pricing-section__matrix-mobile-value {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 12px 16px;
}

.sme-pricing-section__matrix-mobile-value--soft {
  background: rgba(230, 247, 245, 0.3);
  border-right: 1px solid var(--color-border-soft);
}

.sme-pricing-section__matrix-mobile-value--strong {
  background: rgba(204, 240, 235, 0.7);
}

.sme-pricing-section__matrix-mobile-value .sme-pricing-section__cell-text {
  font-size: 14px;
  line-height: 1.3;
}

@container (max-width: 860px) {
  .sme-pricing-section {
    gap: 32px;
  }

  .sme-pricing-section__top {
    grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr);
  }

  .sme-pricing-section__controls {
    padding: 16px;
  }

  .sme-pricing-section__field--responsive {
    display: grid;
  }

  .sme-pricing-section__card {
    grid-template-rows: minmax(42px, auto) auto auto 1fr auto;
    padding: 24px 16px;
  }

  .sme-pricing-section__card-field--desktop {
    display: none;
  }

  .sme-pricing-section__card-field-spacer {
    display: none;
  }

  .sme-pricing-section__card-divider {
    display: none;
  }

  .sme-pricing-section__card-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sme-pricing-section__matrix-grid {
    grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr);
  }

  .sme-pricing-section__matrix-label-cell,
  .sme-pricing-section__matrix-value-cell {
    min-height: 64px;
    padding: 16px;
  }

  .sme-pricing-section__matrix-label-cell,
  .sme-pricing-section__cell-text {
    font-size: 12px;
    line-height: 1.35;
  }
}

@container (max-width: 640px) {
  .sme-pricing-section {
    gap: 24px;
  }

  .sme-pricing-section__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .sme-pricing-section__controls {
    padding: 24px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .sme-pricing-section__checkbox-row {
    align-items: center;
  }

  .sme-pricing-section__tooltip-bubble {
    left: auto;
    right: 0;
    width: min(260px, calc(100vw - 64px));
  }

  .sme-pricing-section__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sme-pricing-section__card {
    gap: 24px;
    padding: 24px 12px;
  }

  .sme-pricing-section__card-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .sme-pricing-section__card-price {
    font-size: 36px;
  }

  .sme-pricing-section__checkbox-label {
    font-size: 14px;
  }

  .sme-pricing-section__label {
    font-size: 12px;
    line-height: 1.25;
  }

  .sme-pricing-section__field-note {
    line-height: 1.75;
  }

  .sme-pricing-section__matrix-shell--wide {
    display: none;
  }

  .sme-pricing-section__matrix-shell--stacked {
    display: block;
  }
}

