:root {
  color-scheme: dark;
  --bg: #111;
  --text: #fff;
  --muted: #767676;
  --yellow: #feec02;
  --yellow-end: #fed802;
  --card: #3a3a3a;
  --accent: linear-gradient(105deg, #feec02, #fed802);
  --surface: linear-gradient(115deg, #383838, #484848);
  --red: #f6394e;
  --width: 480px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}
button,
input,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: normal;
}
h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--yellow);
}
.small {
  font-size: 12px;
  line-height: 16px;
}
.center {
  text-align: center;
}
.page-width {
  width: min(var(--width), calc(100% - 40px));
  margin-inline: auto;
}
/* Full-width landing tracks; readable content grows within a shared gutter. */
.landing-page {
  --gutter: clamp(16px, 5vw, 40px);
}
.landing-page main.page-width {
  width: 100%;
}
.landing-page .header,
.landing-page .footer,
.landing-page main > .section,
.landing-page .hero,
.landing-page .start-card {
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.landing-page .hero,
.landing-page .start-card {
  max-width: 760px;
}
.landing-page main > .features-section {
  width: 100%;
}
.features-section > .heading-block,
.features-section > .platforms {
  width: min(760px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.landing-page h1,
.landing-page h2 {
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.18;
}
.landing-page .small {
  font-size: clamp(12px, 1.5vw, 16px);
  line-height: 1.4;
}
.landing-page .hero .actions {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}
.landing-page .faq {
  max-width: 800px;
  margin-inline: auto;
}
@media (min-width: 760px) {
  .landing-page .plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .landing-page .hero .actions {
    grid-template-columns: 1.2fr 1fr;
  }
}
.header {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: max(12px, env(safe-area-inset-top));
  margin-bottom: 24px;
  padding: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  color: var(--yellow);
  letter-spacing: normal;
}
.brand img {
  border-radius: 5px;
}
.back {
  width: 19px;
  height: 24px;
  display: grid;
  place-items: center;
  background: none;
  padding: 0;
  font-size: 27px;
}
.banner-window {
  overflow: hidden;
  width: 100%;
  margin-bottom: 32px;
}
.banner-strip {
  display: flex;
  width: max-content;
  gap: 12px;
  position: relative;
  left: 50%;
  will-change: transform;
}
.banner {
  flex: 0 0 auto;
  width: min(clamp(338px, 48vw, 540px), calc(100vw - 32px));
  height: auto;
  aspect-ratio: 338 / 100;
  border-radius: 20px;
  background: var(--accent);
  color: #383838;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 24px;
}
.banner-viewport {
  overflow: hidden;
  touch-action: pan-y;
}
.banner .banner-artwork {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.banner-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  color: #969696;
  border-radius: 50%;
  font-size: 20px;
}
.banner-controls button:hover {
  color: var(--yellow);
}
.banner-dots {
  display: flex;
}
.banner-dots button {
  width: 22px;
}
.banner-dots button::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: #555;
  transition:
    width 250ms ease,
    background 250ms ease;
}
.banner-dots button[aria-current="true"]::before {
  width: 14px;
  background: var(--yellow);
}
.banner p {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  position: relative;
  z-index: 1;
}
.banner em {
  color: #89722c;
}
.banner img {
  width: 120px;
  height: 128px;
  object-fit: contain;
  position: absolute;
  right: 18px;
  top: 6px;
}
.banner:not(:has(.banner-artwork)) > img {
  width: 36%;
  height: 128%;
  right: 5%;
  top: 6%;
}
.banner p {
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.25;
}
.hero {
  display: grid;
  gap: 24px;
  text-align: center;
}
.heading-block {
  display: grid;
  gap: 12px;
  text-align: center;
}
.hero .heading-block {
  gap: 12px;
}
.actions {
  display: grid;
  gap: 8px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 32px;
  background: var(--accent);
  color: #383838;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.button:hover {
  filter: brightness(1.07);
}
.button:active {
  transform: translateY(1px);
}
.button.secondary {
  background: var(--surface);
  color: white;
}
.button.ghost {
  background: none;
  color: #bdbdbd;
}
.button.compact {
  width: auto;
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
}
.button .arrow {
  font-size: 24px;
  line-height: 18px;
  font-weight: 400;
}
.divider {
  display: block;
  width: 99px;
  height: 8px;
  object-fit: contain;
  margin: 32px auto;
}
.section {
  margin-block: 32px;
}
.section-title {
  margin-bottom: 24px;
}
.feature-scroll {
  overflow: hidden;
  padding-bottom: 2px;
  touch-action: pan-y;
}
.feature-track {
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
}
.feature-card {
  flex: 0 0 clamp(200px, 36vw, 288px);
  height: 220px;
  border-radius: 32px;
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.feature-card p {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
@media (min-width: 640px) {
  .feature-card {
    height: 252px;
  }
  .feature-card h3 {
    font-size: 18px;
    line-height: 24px;
  }
  .feature-card p {
    font-size: 14px;
    line-height: 19px;
  }
}
.feature-card img {
  position: absolute;
  object-fit: contain;
}
.feature-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.feature-dots button {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  padding: 0;
  background: #545454;
  position: relative;
}
.feature-dots button::before {
  content: "";
  position: absolute;
  inset: -7px;
}
.feature-dots button[aria-current="true"] {
  background: var(--yellow);
}
.platforms {
  background: #060606;
  border-radius: 32px;
  text-align: center;
  height: 72px;
  padding: 13.5px 16px;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.platform-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 24px;
}
.platform-icons img {
  height: 24px;
  max-width: 68px;
}
.platform-icons img[alt="macOS"] {
  height: 16px;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
}
.tabs button {
  position: relative;
  border-radius: 24px;
  padding: 8px 16px;
  background: transparent;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}
.tabs button[aria-selected="true"] {
  background: var(--surface);
}
.tabs button.expanded[aria-selected="true"] {
  background: linear-gradient(105deg, #e7122a, #fa4559);
}
.plan-list {
  display: grid;
  gap: 12px;
}
.plan-card {
  border: 0;
  border-radius: 32px;
  overflow: hidden;
  height: 108px;
  display: flex;
  background: var(--surface);
  position: relative;
}
.plan-art {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}
.plan-card.recommended .plan-art {
  background: linear-gradient(135deg, #ffdf0a, #eeb807);
}
.plan-art img {
  width: 108px;
  height: 108px;
  object-fit: cover;
}
.plan-content {
  padding: 19.5px 20px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-top,
.plan-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.plan-tag {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.recommended .plan-tag {
  color: var(--muted);
}
.plan-price {
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 28px;
}
.plan-card .button {
  min-height: 36px;
  padding: 8px 16px;
  width: auto;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 20px;
}
.catalog-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.faq {
  display: grid;
  gap: 8px;
}
.faq details {
  border-radius: 32px;
  overflow: hidden;
}
.faq details[open] {
  background: transparent;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 24px;
  min-height: 56px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 21px;
  height: 12px;
  flex-shrink: 0;
  background: #767676;
  mask: url("/assets/faq-arrow.svg") center / contain no-repeat;
  transform: none;
}
.faq details[open] summary::after {
  transform: rotate(180deg);
}
.faq details p {
  padding: 4px 24px 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.start-card {
  border-radius: 32px;
  background: var(--surface);
  padding: 24px 12px 16px;
  display: grid;
  gap: 24px;
  text-align: center;
}
.footer {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  font-size: 12px;
  color: #979797;
  margin: 32px auto 70px;
}
.footer a {
  max-width: 133px;
  text-align: center;
  line-height: 16px;
}
.footer a:hover {
  text-decoration: underline;
}
.auth-main {
  margin-top: 65px;
  padding-bottom: 80px;
}
.auth-main form {
  display: grid;
  gap: 8px;
}
.auth-main .heading-block {
  margin-bottom: 0;
}
.auth-main .divider {
  margin-block: 24px;
}
.form-label {
  font-size: 12px;
  color: #b0b0b0;
  text-align: center;
  margin-bottom: 8px;
}
.field {
  width: 100%;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 32px;
  background: #060606;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  outline: none;
}
.field::placeholder {
  color: #222;
  opacity: 1;
}
.field:focus-visible {
  outline: none;
  border-color: var(--yellow);
}
.field.invalid,
.field.invalid:focus-visible {
  border-color: #f6394e;
}
.auth-main .field {
  text-align: center;
}
.code-fields {
  display: grid;
  grid-template-columns: repeat(var(--code-digits, 4), minmax(0, 1fr));
  gap: 12px;
  padding-inline: 2px;
  margin-bottom: 16px;
}
.code-fields .code-digit {
  height: 65px;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 24px;
  font-weight: 600;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-inline: 44px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border-radius: 50%;
  color: #777;
}
.password-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.password-toggle .eye-slash {
  display: none;
}
.password-toggle[aria-pressed="true"] .eye-slash {
  display: block;
}
.socials {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.socials .button {
  min-height: 50px;
  justify-content: center;
  padding-inline: 24px;
  gap: 8px;
}
.socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.socials small {
  font-size: 10px;
  color: #ccc;
  margin-left: auto;
}
.error-message {
  color: #f6394e;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  min-height: 0;
  margin: 4px 0;
}
.error-message:empty {
  display: none;
}
.form-help {
  font-size: 12px;
  line-height: 17px;
  color: #9a9a9a;
  text-align: center;
  margin-top: 16px;
}
.form-help a {
  text-decoration: underline;
}
.text-button {
  display: block;
  background: none;
  color: #aaa;
  font-size: 12px;
  text-align: center;
  padding: 10px;
  margin: auto;
}
.auth-secondary {
  margin-top: 16px;
}
.panel {
  padding: 24px;
  border-radius: 32px;
  background: var(--surface);
}
.empty-panel {
  display: grid;
  gap: 16px;
  text-align: center;
}
.empty-panel .mascot {
  width: 132px;
  height: 140px;
  object-fit: contain;
  margin: auto;
}
.cabinet-heading {
  margin-bottom: 24px;
}
.subscription-panel {
  border-radius: 32px;
  background: #222;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.subscription-panel .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.days {
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
}
.device-panel {
  margin-top: 12px;
  border-radius: 32px;
  background: #222;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.device-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  height: 28px;
}
.device-heading button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  padding: 0;
}
.device-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff14;
  font-size: 14px;
}
.device-row button {
  background: none;
  color: #ddd;
  flex-shrink: 0;
  font-size: 12px;
}
.download-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.download-list a {
  height: 56px;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 16px;
  color: #d2d2d2;
  font-weight: 600;
}
.download-list img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.app-nav {
  position: sticky;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  height: 72px;
  padding: 12px;
  gap: 8px;
  background: #222;
  border-radius: 32px;
  margin: 28px auto 16px;
  z-index: 2;
}
.app-nav a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.app-nav a.active {
  color: var(--yellow);
}
.profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-heading .text-button {
  margin-left: auto;
  margin-right: 0;
}
.menu-section {
  margin-top: 24px;
}
.menu-section > h3 {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}
.menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 24px;
}
.menu-item span {
  display: grid;
  gap: 12px;
}
.menu-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.menu-item b {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}
.menu-item .chevron {
  color: #999;
  font-size: 24px;
}
.menu-item:hover {
  background: #ffffff04;
}
.profile-form {
  display: grid;
  gap: 12px;
}
.page-content {
  padding-bottom: 20px;
}
.status-card {
  background: #232323;
  padding: 20px;
  border-radius: 24px;
  display: grid;
  gap: 12px;
}
.status-card p {
  font-size: 14px;
  color: #aaa;
}
.notice {
  border-radius: 20px;
  background: #26251a;
  padding: 16px;
  font-size: 13px;
  line-height: 19px;
  color: #ddd6a2;
  margin: 20px 0;
}
.purchase-summary {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.purchase-summary .row {
  display: flex;
  justify-content: space-between;
}
.pay-methods {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.pay-methods label {
  background: var(--surface);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.pay-methods input {
  accent-color: var(--yellow);
}
dialog {
  border: 0;
  border-radius: 32px;
  padding: 24px;
  background: #222;
  color: white;
  width: min(420px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dialog-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
.dialog-close {
  background: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  padding: 0;
}
.dialog-body {
  display: grid;
  gap: 16px;
}
.dialog-body .qr {
  width: 100%;
  max-width: 270px;
  border-radius: 20px;
  margin: auto;
}
.dialog-body p {
  font-size: 14px;
  color: #bbb;
}
.dialog-body .field {
  font-size: 16px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #eee;
  color: #222;
  padding: 12px 20px;
  border-radius: 20px;
  max-width: min(460px, 90%);
  font-size: 13px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: #aaa;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 30;
  padding: 12px;
  background: var(--yellow);
  color: #111;
}
.skip-link:focus {
  top: 16px;
}
.skeleton {
  height: 108px;
  background: var(--surface);
  border-radius: 32px;
  opacity: 0.5;
}
.offline {
  padding: 20px;
  text-align: center;
  display: grid;
  gap: 20px;
}
.payment-history {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.history-row {
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  display: grid;
  gap: 8px;
}
.history-row p {
  font-size: 12px;
  color: #bbb;
}
.history-row a {
  font-size: 14px;
  color: var(--yellow);
}
@media (max-width: 600px) {
  .footer {
    gap: 20px;
  }
  .auth-main {
    margin-top: 65px;
  }
}
@media (max-width: 370px) {
  .brand {
    font-size: 21px;
  }
  .plan-art {
    width: 88px;
  }
  .plan-content {
    padding: 14px 12px;
  }
  .plan-price {
    font-size: 21px;
  }
  .plan-card .button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .tabs {
    gap: 4px;
  }
  .tabs button {
    font-size: 14px;
  }
  .platform-icons {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
/* Motion: brief feedback on direct actions, with no idle movement. */
:root {
  --ease-settle: cubic-bezier(0.22, 0.68, 0, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}
.button {
  transition:
    background-color 150ms,
    color 150ms,
    filter 150ms,
    transform 120ms var(--ease-out);
}
.button:active:not(:disabled) {
  transform: scale(0.985);
}
.tabs {
  position: relative;
  isolation: isolate;
}
.tabs .tab-indicator {
  position: absolute;
  left: 0;
  z-index: -1;
  border-radius: 24px;
  background: #434343;
  pointer-events: none;
  transition:
    transform 240ms var(--ease-settle),
    width 240ms var(--ease-settle),
    background-color 160ms;
}
.tabs .tab-indicator.is-expanded {
  background: linear-gradient(105deg, #e7122a, #fa4559);
}
.tabs:has(.tab-indicator) button[aria-selected="true"] {
  background: transparent;
}
.tabs button {
  transition: color 140ms;
}
.faq summary::after {
  transition:
    transform 200ms var(--ease-settle),
    margin-top 200ms var(--ease-settle);
}
.faq details {
  transition: background-color 180ms;
  overflow: clip;
}
.feature-scroll {
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
}
.feature-scroll.is-dragging {
  cursor: grabbing;
}
.feature-dots button {
  transition:
    background-color 160ms,
    transform 160ms var(--ease-out);
}
.feature-dots button[aria-current="true"] {
  transform: scale(1.15);
}
.field {
  transition:
    border-color 150ms,
    background-color 150ms;
}
.menu-item {
  transition: background-color 140ms;
}
.app-nav a {
  transition:
    color 160ms,
    background-color 160ms;
}
#toast {
  transition:
    opacity 160ms,
    transform 220ms var(--ease-settle);
}
dialog::backdrop {
  transition:
    background-color 160ms,
    backdrop-filter 160ms;
}
dialog.is-closing::backdrop {
  background-color: #0000;
  backdrop-filter: blur(0);
}
#subscription-content > .skeleton {
  height: 300px;
}
@media (hover: hover) {
  .button:hover:not(:disabled) {
    filter: brightness(1.06);
  }
  .menu-item:hover {
    background: #ffffff06;
  }
  .tabs button:hover {
    color: var(--yellow);
  }
  .tabs button[aria-selected="true"]:hover {
    color: white;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .button:active:not(:disabled) {
    transform: none;
  }
}

/* Auth states follow Figma frames 111:719, 111:860, 130:1522 and 130:1501. */
.auth-main {
  max-width: 362px;
}
.auth-main .form-label {
  margin-bottom: 0;
  color: #767676;
  line-height: 16px;
}
.auth-main .auth-subtitle {
  overflow-wrap: anywhere;
}
.auth-main form > .button {
  min-height: 44px;
  padding: 12px 24px;
  line-height: 20px;
}
.auth-main .text-button {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  padding: 8px;
  color: #767676;
}
.auth-main .auth-secondary {
  margin-top: 16px;
}
.auth-main .resend-code {
  font-size: 12px;
}
.auth-main .form-help {
  margin-top: 24px;
}
.auth-main .error-message {
  text-align: center;
  margin: 0;
  line-height: 16px;
}

.landing-page .header,
.cabinet-page .header {
  margin-bottom: 4px;
}

.feature-card h3 {
  font-weight: 600;
}

.feature-speed img {
  left: 60px;
  top: 97px;
  width: 81px;
  height: 100px;
}

.feature-shield img {
  left: 55px;
  top: 104px;
  width: 87px;
  height: 96px;
}

.feature-privacy img {
  left: 46px;
  top: 105px;
  width: 108px;
  height: 93px;
}

.feature-globe img {
  left: 53px;
  top: 108px;
  width: 98px;
  height: 91px;
}

.feature-support img {
  left: 54px;
  top: 106px;
  width: 92px;
  height: 93px;
}
.feature-card img {
  left: 50%;
  top: auto;
  bottom: 20px;
  transform: translateX(-50%);
}

.plan-price.compact-price {
  font-size: 20px;
}

.selected-plan {
  background: #767676;
  color: #fff;
}

.tabs button.expanded[aria-selected="false"] {
  color: var(--red);
}

.subscription-plan {
  height: 48px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 32px;
  background: #383838;
}

.subscription-plan h3 {
  color: var(--yellow);
  font-weight: 600;
}

.upgrade-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 32px;
  border-radius: 32px;
  background: linear-gradient(105deg, #e7122a, #fa4559);
  color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
}

.subscription-balance {
  background: #383838;
  border-radius: 24px;
  padding: 8px;
  display: grid;
  gap: 12px;
}

.subscription-copy {
  height: 100px;
  padding: 12px 12px 0;
}
.subscription-copy .balance-label,
.subscription-copy .days {
  margin-bottom: 16px;
}
.subscription-copy .small {
  line-height: 12px;
}

.balance-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.subscription-balance .button,
.device-panel .button {
  min-height: 40px;
  height: 40px;
  padding: 10px 16px;
}

.device-heading h3 {
  font-weight: 600;
}

.device-heading .arrow {
  width: 14px;
  height: 12px;
}

.download-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 32px;
}

.download-title img {
  width: 32px;
  height: 32px;
}

.app-nav .ui-icon {
  width: 24px;
  height: 24px;
}

.profile-heading h1 {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 12px;
}

.profile-heading > div {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}

.profile-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--red);
  font-weight: 500;
  background: none;
}

.profile-page .divider,
.cabinet-page .divider {
  margin-block: 24px;
}

.account-settings .menu-item:last-child {
  margin-bottom: 0;
}

.renewal-summary {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.renewal-summary .button {
  min-height: 40px;
  padding: 10px 16px;
}

.upgrade-art {
  border-radius: 32px;
  height: 177px;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.upgrade-art img {
  width: 208px;
  height: 113px;
  object-fit: contain;
}

.upgrade-price {
  margin: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upgrade-actions {
  display: grid;
  gap: 12px;
}

.upgrade-actions .button {
  min-height: 40px;
  height: 40px;
  padding: 10px 16px;
}

.dialog-head h2 img {
  width: 24px;
  height: 24px;
}

.subscription-dialog {
  width: min(338px, calc(100% - 40px));
}

.subscription-dialog .dialog-body {
  gap: 12px;
}

.subscription-dialog .qr {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 24px;
  background: #fff;
  padding: 25px;
  margin-bottom: 12px;
}

.subscription-dialog .button {
  min-height: 40px;
  padding: 10px 16px;
}

.subscription-dialog .dialog-body > a:last-child {
  margin-top: 12px;
  font-size: 16px;
  line-height: 20px;
}

.ui-icon,
.arrow {
  display: inline-block;
  width: 19px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

.icon-nav-menu {
  --icon: url("/assets/nav-menu.svg");
}

.icon-nav-bonuses {
  --icon: url("/assets/nav-bonuses.svg");
}

.icon-nav-profile {
  --icon: url("/assets/nav-profile.svg");
}

.icon-logout {
  --icon: url("/assets/logout.svg");
}

.icon-back {
  --icon: url("/assets/back.svg");
}

.icon-upgrade-arrow {
  --icon: url("/assets/upgrade-arrow.svg");
}

.icon-unlink {
  --icon: url("/assets/unlink.svg");
}

.icon-add-device {
  --icon: url("/assets/add-device.svg");
}

.arrow {
  --icon: url("/assets/arrow.svg");
}

/* Figma trims text boxes to cap height instead of retaining browser line-box padding. */
@supports (text-box-trim: trim-both) {
  h1,
  h2,
  h3,
  p,
  .menu-item b,
  .menu-item small,
  .app-nav a > span:last-child,
  .form-label {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}
@media (max-width: 370px) {
  .plan-art,
  .plan-art img {
    width: 88px;
  }
  .plan-content {
    padding-inline: 12px;
  }
  .plan-card .button {
    font-size: 14px;
    padding-inline: 12px;
  }
  .plan-tag {
    font-size: 12px;
  }
  .subscription-plan {
    padding-left: 12px;
  }
  .subscription-plan h3,
  .upgrade-button,
  .device-heading button {
    font-size: 14px;
  }
}

.icon-back {
  transform: rotate(180deg);
}
.accent-red {
  color: var(--red);
}
.auth-page[data-auth-step="code"] .auth-main,
.auth-page[data-auth-step="password"] .auth-main {
  margin-top: 130px;
}
.auth-page[data-auth-step="set-password"] .auth-main {
  margin-top: 116px;
}
@supports (text-box-trim: trim-both) {
  .subscription-dialog .dialog-body > a:last-child {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}
@media (max-height: 700px) {
  .auth-page[data-auth-step] .auth-main {
    margin-top: 40px;
  }
}

.dialog-body .error-message {
  color: #f6394e;
  font-size: 12px;
  line-height: 16px;
}
@media (max-width: 370px) {
  .plan-price.compact-price {
    font-size: 18px;
  }
  .plan-card .button {
    padding-inline: 10px;
  }
}

/* Keep the artwork compact while making touch and keyboard controls usable. */
.back,
.dialog-close,
.profile-logout,
.device-heading button {
  position: relative;
}
.back::after,
.dialog-close::after,
.profile-logout::after,
.device-heading button::after {
  content: "";
  position: absolute;
  inset: -10px -8px;
  min-height: 44px;
}
.dialog-close {
  flex-shrink: 0;
}
.auth-main .text-button {
  min-height: 44px;
}
.field::placeholder {
  color: #767676;
}
.feature-dots {
  gap: 0;
  margin-top: 0;
}
.feature-dots button {
  width: 30px;
  height: 32px;
  background: transparent;
  border-radius: 8px;
}
.feature-dots button::before {
  width: 7px;
  height: 7px;
  inset: 12px auto auto 11px;
  border-radius: 50%;
  background: #545454;
}
.feature-dots button[aria-current="true"] {
  background: transparent;
  transform: none;
}
.feature-dots button[aria-current="true"]::before {
  background: var(--yellow);
}
.pay-methods label {
  cursor: pointer;
  border: 1px solid transparent;
}
.pay-methods label:has(input:checked) {
  border-color: var(--yellow);
}
.pay-methods label:focus-within {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.dialog-body,
.menu-item > span,
.device-row > span,
.profile-heading > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dialog-body .button {
  white-space: normal;
}
.device-row button {
  min-height: 44px;
  flex-shrink: 0;
}
.status-card {
  display: grid;
  gap: 16px;
}
button:disabled {
  cursor: default;
}
@media (max-width: 370px) {
  .dialog-head {
    gap: 12px;
  }
  .dialog-head h2,
  .dialog-close {
    font-size: 14px;
  }
}

[hidden] {
  display: none !important;
}

/* Figma 2026-10-05: grouped tariff picker, referral flow and payment results. */
.tabs {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px;
  gap: 12px;
  border-radius: 32px;
  background: #222;
}
.tabs button {
  min-width: 0;
}
.upgrade-art {
  height: 180px;
  background: linear-gradient(135deg, #e7122a, #fa4559);
}
.referral-art {
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  overflow: hidden;
  margin-top: 24px;
  background: var(--surface);
}
.referral-art img {
  width: 100%;
  height: 168px;
  object-fit: contain;
}
.referral-steps {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 24px;
  margin: 12px 0 24px;
  list-style: none;
  background: #222;
  border-radius: 32px;
}
.referral-steps::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 44px;
  left: 43px;
  width: 2px;
  background: #383838;
}
.referral-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}
.referral-step-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #383838;
}
.referral-step-icon img {
  width: 16px;
  height: 16px;
}
.referral-steps h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
.referral-steps p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.referral-actions,
.payment-result-actions {
  display: grid;
  gap: 12px;
}
.referral-actions .button {
  min-height: 40px;
  padding: 10px 16px;
}
.icon-referral-send {
  --icon: url("/assets/referral-send.svg");
}
.payment-result-details {
  margin-top: 32px;
}
.payment-result-actions {
  margin-top: 24px;
}
.payment-result-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.payment-result-page .page-content {
  flex: 1;
}
.payment-result-page .skeleton {
  margin-top: 32px;
}
.payment-result-page .heading-block .muted {
  max-width: 340px;
  margin-inline: auto;
}
@media (max-width: 370px) {
  .tabs {
    gap: 4px;
  }
  .tabs button {
    padding-inline: 10px;
    font-size: 14px;
  }
  .referral-steps {
    padding: 20px 16px;
  }
  .referral-steps::before {
    left: 35px;
  }
  .referral-steps li {
    gap: 12px;
  }
  .referral-steps h3 {
    font-size: 14px;
  }
  .referral-steps p {
    font-size: 11px;
  }
}

.icon-share-telegram {
  --icon: url("/assets/share-telegram.svg");
}
.bonuses-page .page-content {
  padding-bottom: 0;
}
.bonuses-page .app-nav {
  margin-top: 32px;
}
