:root {
  --bg: #050816;
  --bg-elevated: #0d0e12;
  --bg-soft: #121318;
  --accent: #f5400a;
  --accent-strong: #ff5c2e;
  --accent-soft: rgba(245, 64, 10, 0.12);
  --text: #f7f7ff;
  --muted: #b9bdc6;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --danger: #ff4b6b;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #2a1814 0, #050816 55%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 14px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5400a, #ff5c2e);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  font-size: 14px;
}

.tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
}

.screen--active {
  display: flex;
}

.hero {
  margin-bottom: 20px;
}

.hero--compact {
  margin-bottom: 16px;
}

.hero__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.hero__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
}

.tariffs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 34px;
  }

  .app {
    padding: 32px 24px 40px;
  }

  .tariffs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.tariff-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 16px 16px 18px;
  background: radial-gradient(circle at top left, rgba(245, 64, 10, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(185, 189, 198, 0.18), transparent 55%),
    linear-gradient(145deg, var(--bg-elevated), #050816);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tariff-card--highlighted {
  border-color: rgba(245, 64, 10, 0.9);
  box-shadow: 0 24px 70px rgba(245, 64, 10, 0.45);
}

.tariff-card__badge {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 10px 5px;
  border-radius: 999px;
  background: rgba(185, 189, 198, 0.12);
  border: 1px solid rgba(185, 189, 198, 0.35);
  color: #b9bdc6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tariff-card__badge--accent {
  background: rgba(245, 64, 10, 0.12);
  border-color: rgba(245, 64, 10, 0.6);
  color: #ffc9b8;
}

.tariff-card__image {
  width: 100%;
  height: 120px;
  border-radius: 18px;
  background: radial-gradient(circle at 15% 0, #f5400a 0, transparent 55%),
    radial-gradient(circle at 85% 100%, #b9bdc6 0, transparent 55%),
    linear-gradient(145deg, #16181c, #0a0b0f);
  position: relative;
  overflow: hidden;
}

.tariff-card__image::before,
.tariff-card__image::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tariff-card__image--basic::before {
  inset: 18px 30px 28px;
}

.tariff-card__image--basic::after {
  inset: 8px 50px 50px;
}

.tariff-card__image--plus::before {
  inset: 10px 20px 36px;
}

.tariff-card__image--plus::after {
  inset: 30px 40px 10px;
}

.tariff-card__title {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.tariff-card__title-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.tariff-card__description {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.tariff-card__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 13px 20px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out,
    color 0.12s ease-out, border-color 0.12s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 44px;
}

.btn--primary {
  background: linear-gradient(135deg, #f5400a, #ff5c2e);
  color: #fff;
  box-shadow: 0 16px 40px rgba(245, 64, 10, 0.45);
}

.btn--secondary {
  background: rgba(5, 8, 22, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--full {
  width: 100%;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}

.btn:disabled {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}

.app-footer {
  margin-top: auto;
  padding-top: 20px;
  font-size: 11px;
  color: var(--muted);
}

.back-link {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0 0 12px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.back-link:hover {
  color: var(--text);
}

.payment-summary {
  max-width: 480px;
}

.payment-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(245, 64, 10, 0.16), transparent 55%),
    linear-gradient(150deg, #0e0f12, #050816);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .payment-card {
    padding: 18px 18px 16px;
  }
}

.payment-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.payment-card__title {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.payment-card__meta {
  font-size: 13px;
  color: var(--muted);
}

.payment-card__amount-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.payment-card__price {
  font-size: 18px;
  font-weight: 600;
}

.payment-card__price--old {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

.payment-card__caption {
  font-size: 11px;
  color: #ffc9b8;
  text-transform: lowercase;
}

.payment-card__amount {
  text-align: right;
}

.payment-card__body {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payment-features li {
  padding: 4px 9px 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 64, 10, 0.3);
  font-size: 11px;
  color: #ffc9b8;
}

.field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 22, 0.85);
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.field__input-wrap:focus-within {
  border-color: rgba(245, 64, 10, 0.7);
  box-shadow: 0 0 0 1px rgba(245, 64, 10, 0.4);
}

.field__input-wrap .throbber {
  position: absolute;
  right: 34px;
  top: 50%;
  margin-top: -10px;
  pointer-events: none;
}

.throbber {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: throbber-spin 0.7s linear infinite;
}

@keyframes throbber-spin {
  to {
    transform: rotate(360deg);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-submit {
  position: relative;
  margin: 6px 8px 6px 0;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(245, 64, 10, 0.25);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease-out, color 0.12s ease-out, transform 0.12s ease-out;
}

.promo-submit:hover {
  background: rgba(245, 64, 10, 0.5);
  color: #fff;
}

.promo-submit:active {
  transform: scale(0.95);
}

.promo-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.field__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.field__input {
  flex: 1;
  border-radius: 14px;
  border: none;
  padding: 12px 8px 13px 14px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.field__input::placeholder {
  color: rgba(185, 189, 198, 0.75);
}

.field__input:focus {
  outline: none;
}

.payment-card__footer {
  padding-top: 6px;
}

.payment-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  max-width: 420px;
}

.promo-message {
  font-size: 12px;
  margin-top: -2px;
}

.promo-message--success {
  color: #b9bdc6;
}

.promo-message--error {
  color: var(--danger);
}
