@font-face {
  font-family: "AVS Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.public-page,
.auth-page {
  --avs-font: "AVS Inter", Inter, "Segoe UI", Arial, sans-serif;
  --avs-weight-regular: 400;
  --avs-weight-medium: 500;
  --avs-weight-semibold: 600;
  --avs-weight-bold: 700;
  font-family: var(--avs-font);
  font-size: 15px;
  font-weight: var(--avs-weight-regular);
  line-height: 1.5;
  letter-spacing: 0.006em;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.public-page :is(button, input, select, textarea),
.auth-page :is(button, input, select, textarea) {
  font-family: inherit;
}

.public-page :is(h1, h2, h3, strong),
.auth-page :is(h1, h2, h3, strong) {
  text-wrap: balance;
}

/* Shared public header */
.public-brand span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.public-brand strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.public-nav a {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.3;
}

.public-user,
.public-user a,
.public-user button,
.notification-btn {
  font-size: 13px;
  font-weight: 550;
}

.primary-link,
.secondary-link,
.primary-btn,
.secondary-btn,
.multi-button,
.pricing-cta {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Page titles and supporting copy */
.public-hero h1,
.plans-hero h1,
.account-panel h1 {
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.public-hero p,
.plans-hero p:last-child,
.account-panel > p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.access-box strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.access-box span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.public-filters :is(select, input, .multi-button),
.public-app-filters :is(select, input, button) {
  font-size: 14px;
  font-weight: 500;
}

/* Creative cards and details */
.public-card,
.modal-card {
  font-size: 14px;
}

.public-view-count,
.geo-count-badge,
.public-card-metrics > .badge,
.modal-detail-pill,
.modal-detail-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.public-view-count,
.geo-count-badge,
.home-stats strong,
.pricing-card > div > strong,
.app-installs,
.app-row-number,
.apps-summary strong,
.account-table td {
  font-variant-numeric: tabular-nums;
}

.public-card-metrics > .badge .approach-with-icon > span {
  font-size: 11px;
  font-weight: 600;
}

.views-help,
.lock-badge {
  font-weight: 650;
}

.modal-card h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.modal-card p,
.modal-detail-text {
  line-height: 1.5;
}

/* Landing */
.home-hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.018em;
}

.home-lead {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

.home-product h2,
.home-steps-title,
.home-cta-strip h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.home-product-copy > p:not(.eyebrow),
.home-grid-section p,
.home-cta-strip p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.home-product-points span,
.home-cta-points span {
  font-size: 13px;
  font-weight: 600;
}

.home-grid-section h3 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.008em;
}

.home-stats strong {
  font-weight: 750;
  letter-spacing: -0.015em;
}

.home-stats span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Applications table */
.public-apps-summary {
  font-size: 14px;
  line-height: 1.4;
}

.public-apps-table th,
.app-sort-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.public-apps-table td {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.app-name,
.app-installs,
.app-group-title {
  font-weight: 650;
}

.app-bundle,
.public-apps-table small,
.app-group-count {
  font-size: 12px;
  font-weight: 400;
}

.app-supplier-pill,
.app-status-badge,
.app-play-status,
.app-status-locked,
.app-store-link {
  font-size: 12px;
  font-weight: 600;
}

/* Plans */
.pricing-label {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.pricing-card h2,
.plans-flow h2,
.plans-contact h2 {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pricing-card > div > strong {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.pricing-card li,
.flow-grid p,
.plans-contact p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.flow-grid h3 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

/* Account */
.account-tab {
  font-size: 14px;
  font-weight: 600;
}

.account-status strong,
.account-security h2,
.account-section-head h2 {
  font-weight: 650;
}

.account-list dt,
.account-form label {
  font-size: 13px;
  font-weight: 500;
}

.account-list dd {
  font-size: 14px;
  font-weight: 600;
}

.account-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.account-table td {
  font-size: 14px;
}

/* Login and registration */
.auth-card h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.auth-card > p,
.auth-bottom,
.auth-message {
  font-size: 14px;
  line-height: 1.5;
}

.auth-form label {
  font-size: 14px;
  font-weight: 550;
}

.auth-form input,
.auth-form button {
  font-size: 15px;
}

.auth-form button,
.auth-bottom a,
.link-button {
  font-weight: 600;
}

@media (max-width: 640px) {
  .home-hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .public-hero h1,
  .plans-hero h1,
  .account-panel h1 {
    font-size: 34px;
  }

  .home-product h2,
  .home-steps-title,
  .home-cta-strip h2 {
    font-size: 28px;
  }
}
