:root {
  color-scheme: dark;
  --background: #0b0b0d;
  --surface: #141417;
  --text: #f7f7f8;
  --muted: #b8b8c1;
  --border: #343439;
  --accent: #f04432;
  --button: #d83221;
  --button-hover: #bc281a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.6; }
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, .button { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

.vsl { width: 100%; padding: 32px 24px 40px; }
.intro { max-width: 1040px; margin: 0 auto 32px; text-align: center; }
.brand-icon { display: block; width: 40px; height: 40px; margin: 0 auto 24px; border-radius: 10px; }
h1 { margin: 0 auto 20px; font-size: clamp(1.8rem, 3.5vw, 3.1rem); font-weight: 800; line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
.accent-text { color: var(--accent); }
.subheadline { max-width: 1040px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.75; }
.subheadline strong { color: var(--text); font-weight: 700; }

.player-frame { position: relative; width: 100%; max-width: 1400px; aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; border: 1px solid #29292f; border-radius: 10px; background: #000; box-shadow: 0 16px 48px #0005; }
.player-frame > vturb-smartplayer,
.player-frame > iframe,
.player-frame > vturb-smartplayer > iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.video-deadline { margin: 6px auto 0; color: #e7e7eb; text-align: center; font-size: .76rem; font-weight: 600; line-height: 1.3; }
.player-error { max-width: 760px; margin: 20px auto 0; padding: 14px 18px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); text-align: center; font-size: .95rem; overflow-wrap: anywhere; }
.offer { margin: 28px auto 0; text-align: center; }
#primary-checkout { width: min(100%, 320px); padding-block: 16px; border-radius: 999px; box-shadow: 0 12px 32px #d8322150; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; max-width: 100%; padding: 14px 26px; border: 1px solid transparent; border-radius: 8px; font: 700 1rem/1.45 Inter, "Segoe UI", Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.button-primary { border-color: var(--button); background: var(--button); color: #fff; }
.button-primary:hover { border-color: var(--button-hover); background: var(--button-hover); }
.button-secondary { border-color: #62626c; color: var(--text); background: transparent; }
.button-secondary:hover { border-color: #93939d; background: #25252b; }

#plans-dialog { width: min(820px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: 0 24px 100px #0009; overscroll-behavior: contain; }
#plans-dialog::backdrop { background: #000b; }
#plans-dialog[open] { animation: appear .2s ease-out both; }
.dialog-content { position: relative; padding: 38px 28px 24px; }
.close-button { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.close-button:hover { color: #fff; background: #25252b; }
#plans-title { margin: 0 36px 32px; text-align: center; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.25; letter-spacing: -.025em; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 22px 22px; border: 1px solid var(--border); border-radius: 12px; background: #101013; }
.plan-card-featured { border: 2px solid var(--accent); padding: 27px 21px 21px; }
.plan-card h3 { margin: 0 0 16px; font-size: 1.05rem; font-weight: 600; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 2.65rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.currency, .period { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-billing { margin: 0 0 24px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.plan-link { width: 100%; margin-top: auto; padding-inline: 14px; font-size: .9rem; }
.plan-badge { position: absolute; top: -13px; right: 18px; padding: 3px 12px; border-radius: 20px; color: #fff; background: var(--button); font-size: .7rem; line-height: 1.6; font-weight: 700; }
.guarantee { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: .85rem; }

@media (min-width: 601px) {
  .vsl { padding: 20px 24px; }
  .intro { margin-bottom: 18px; }
  .brand-icon { margin-bottom: 16px; }
  h1 { margin-bottom: 12px; }
  .subheadline { line-height: 1.55; }
  .player-frame { max-width: 880px; }
}

@media (max-width: 600px) {
  .vsl { padding: 24px 12px 28px; }
  .intro { margin-bottom: 24px; padding-inline: 8px; }
  .brand-icon { width: 36px; height: 36px; margin-bottom: 20px; border-radius: 9px; }
  h1 { max-width: 350px; margin-bottom: 14px; font-size: clamp(1.2rem, 5.2vw, 1.4rem); line-height: 1.14; }
  .subheadline { max-width: 350px; font-size: .82rem; line-height: 1.55; }
  .player-frame { border-radius: 6px; }
  .offer { margin-top: 24px; }
  .offer .button { width: min(100%, 360px); }
  #plans-dialog { width: calc(100% - 24px); border-radius: 12px; }
  .dialog-content { padding: 64px 16px 22px; }
  #plans-title { margin: 0 0 28px; }
  .plans-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .plan-card { padding: 24px 20px 20px; }
  .plan-card-featured { padding: 23px 19px 19px; }
  .plan-price { font-size: 2.3rem; }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
