:root {
  --tpv-black: #090908;
  --tpv-paper: #f5f2eb;
  --tpv-white: #fff;
  --tpv-gold: #c99a24;
  --tpv-gold-dark: #8a6512;
  --tpv-line: rgba(9, 9, 8, .13);
  --tpv-muted: #68655f;
  --tpv-danger: #a02c2c;
  --tpv-success: #176b43;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body.tpv-page {
  min-height: 100vh;
  margin: 0;
  color: var(--tpv-black);
  background:
    radial-gradient(circle at 8% 4%, rgba(201, 154, 36, .13), transparent 31rem),
    var(--tpv-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tpv-shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.tpv-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(9, 9, 8, .94);
  backdrop-filter: blur(18px);
}

.tpv-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tpv-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tpv-white);
  text-decoration: none;
}

.tpv-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.tpv-brand span {
  display: grid;
  gap: 2px;
}

.tpv-brand strong {
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.tpv-brand small {
  color: rgba(255, 255, 255, .62);
  font-size: .64rem;
  letter-spacing: .12em;
}

.tpv-back {
  color: var(--tpv-white);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.tpv-back:hover,
.tpv-back:focus-visible {
  color: #f0c85e;
}

.tpv-test-banner {
  padding: 10px 16px;
  color: #463100;
  background: #ffe7a2;
  text-align: center;
  font-size: .86rem;
  font-weight: 800;
}

.tpv-test-banner[hidden] {
  display: none;
}

.tpv-main {
  padding: clamp(34px, 6vw, 76px) 0 72px;
}

.tpv-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.tpv-eyebrow {
  margin: 0 0 10px;
  color: var(--tpv-gold-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tpv-intro h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.tpv-intro > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--tpv-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.tpv-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: start;
}

.tpv-card {
  border: 1px solid var(--tpv-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 20px 50px rgba(20, 16, 8, .08);
}

.tpv-summary {
  position: sticky;
  top: 100px;
  padding: 26px;
}

.tpv-summary h2,
.tpv-form-card h2 {
  margin: 0;
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.tpv-plan-switcher {
  display: grid;
  gap: 8px;
  margin: 20px 0 26px;
}

.tpv-plan-switcher a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: var(--tpv-black);
  border: 1px solid var(--tpv-line);
  border-radius: 12px;
  background: #faf9f6;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.tpv-plan-switcher a[aria-current="true"] {
  color: #fff;
  border-color: var(--tpv-black);
  background: var(--tpv-black);
}

.tpv-plan-switcher strong {
  white-space: nowrap;
}

.tpv-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-block: 1px solid var(--tpv-line);
}

.tpv-total span {
  color: var(--tpv-muted);
  font-size: .86rem;
}

.tpv-total strong {
  font-size: 2.2rem;
  line-height: 1;
}

.tpv-summary-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tpv-summary-list li {
  position: relative;
  padding-left: 23px;
  color: #383630;
  font-size: .9rem;
  line-height: 1.45;
}

.tpv-summary-list li::before {
  position: absolute;
  top: .05em;
  left: 0;
  color: var(--tpv-gold-dark);
  content: "✓";
  font-weight: 900;
}

.tpv-form-card {
  padding: clamp(24px, 4vw, 42px);
}

.tpv-form-card > p {
  margin: 8px 0 28px;
  color: var(--tpv-muted);
  line-height: 1.55;
}

.tpv-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tpv-field {
  display: grid;
  gap: 7px;
}

.tpv-field-wide {
  grid-column: 1 / -1;
}

.tpv-field label {
  font-size: .82rem;
  font-weight: 800;
}

.tpv-field input,
.tpv-field select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--tpv-black);
  border: 1px solid rgba(9, 9, 8, .2);
  border-radius: 11px;
  outline: 0;
  background: #fff;
  font: inherit;
}

.tpv-field input:focus,
.tpv-field select:focus {
  border-color: var(--tpv-gold-dark);
  box-shadow: 0 0 0 3px rgba(201, 154, 36, .18);
}

.tpv-field small {
  color: var(--tpv-muted);
  font-size: .76rem;
  line-height: 1.4;
}

.tpv-honeypot {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tpv-consents {
  display: grid;
  gap: 13px;
  margin: 26px 0 22px;
  padding-top: 24px;
  border-top: 1px solid var(--tpv-line);
}

.tpv-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #37352f;
  font-size: .84rem;
  line-height: 1.5;
}

.tpv-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--tpv-black);
}

.tpv-check a {
  color: var(--tpv-gold-dark);
  font-weight: 800;
}

.tpv-submit {
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  color: #100d07;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #e9bd50, #bd8716);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: .015em;
}

.tpv-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.tpv-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.tpv-message {
  margin: 15px 0 0;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
}

.tpv-message[hidden] {
  display: none;
}

.tpv-message-error {
  color: #721e1e;
  border: 1px solid rgba(160, 44, 44, .22);
  background: #fff0f0;
}

.tpv-secure-note {
  display: flex;
  gap: 10px;
  align-items: start;
  margin: 18px 0 0;
  color: var(--tpv-muted);
  font-size: .77rem;
  line-height: 1.45;
}

.tpv-secure-note strong {
  color: var(--tpv-black);
}

.tpv-result-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  padding: 48px 0;
}

.tpv-result {
  width: min(680px, 100%);
  padding: clamp(28px, 7vw, 58px);
  text-align: center;
}

.tpv-result-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  color: var(--tpv-gold-dark);
  border: 1px solid rgba(201, 154, 36, .28);
  border-radius: 50%;
  background: #fff8e4;
  font-size: 1.7rem;
  font-weight: 900;
}

.tpv-result[data-state="paid"] .tpv-result-icon {
  color: var(--tpv-success);
  border-color: rgba(23, 107, 67, .24);
  background: #ebfaf2;
}

.tpv-result[data-state="denied"] .tpv-result-icon,
.tpv-result[data-state="error"] .tpv-result-icon {
  color: var(--tpv-danger);
  border-color: rgba(160, 44, 44, .24);
  background: #fff0f0;
}

.tpv-result h1 {
  margin: 0;
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.tpv-result-text {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--tpv-muted);
  line-height: 1.65;
}

.tpv-order-summary {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 18px;
  border: 1px solid var(--tpv-line);
  border-radius: 12px;
  background: #faf9f6;
  text-align: left;
}

.tpv-order-summary[hidden] {
  display: none;
}

.tpv-order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: .86rem;
}

.tpv-order-summary span {
  color: var(--tpv-muted);
}

.tpv-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.tpv-result-actions a {
  min-height: 46px;
  padding: 13px 18px;
  color: #fff;
  border-radius: 10px;
  background: var(--tpv-black);
  font-size: .85rem;
  font-weight: 850;
  text-decoration: none;
}

.tpv-result-actions a:last-child {
  color: var(--tpv-black);
  border: 1px solid var(--tpv-line);
  background: #fff;
}

.tpv-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, .64);
  background: var(--tpv-black);
  font-size: .78rem;
}

.tpv-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.tpv-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tpv-footer a {
  color: inherit;
}

.tpv-compact-link {
  color: #9d7600;
  font-size: .75rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .tpv-grid {
    grid-template-columns: 1fr;
  }

  .tpv-summary {
    position: static;
  }

  .tpv-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .tpv-shell {
    width: min(100% - 22px, 1160px);
  }

  .tpv-header-inner {
    min-height: 64px;
  }

  .tpv-brand small {
    display: none;
  }

  .tpv-back {
    font-size: .78rem;
  }

  .tpv-main {
    padding-top: 30px;
  }

  .tpv-fieldset,
  .tpv-summary-list {
    grid-template-columns: 1fr;
  }

  .tpv-summary,
  .tpv-form-card {
    border-radius: 17px;
  }

  .tpv-order-summary div {
    display: grid;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
