:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #ff6536;
  color: #121212;
  --accent: #ff6032;
  --accent-soft: #fff0e9;
  --muted: #77736f;
  --border: #dfdfdf;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100svh; background: #ff6536; }
button, input { font: inherit; }

main {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #ff6536;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 270px;
  flex: 1 1 auto;
  padding: max(18px, env(safe-area-inset-top)) 24px 18px;
  background: #ff6536 url("/background-desktop-2.jpg") center top / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 91, 42, .06) 0%, rgba(255, 96, 48, .04) 45%, rgba(255, 101, 54, .98) 100%);
  pointer-events: none;
}

.hero-copy, .award { position: relative; z-index: 1; }
.hero-copy { margin-bottom: 12px; }
h1 { margin: 0; font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.hero-copy p { margin: 12px 0 0; font-size: 18px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }

.award { width: min(195px, 55vw); height: auto; display: block; }

.purchase-panel {
  position: relative;
  z-index: 2;
  margin-top: -2px;
  padding: 28px 22px max(22px, env(safe-area-inset-bottom));
  border-radius: 34px 34px 0 0;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04);
  flex: 0 0 auto;
}

.trial-toggle {
  min-height: 66px;
  padding: 12px 18px 12px 22px;
  border-radius: 22px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.trial-toggle input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.switch { width: 58px; height: 34px; flex: 0 0 58px; padding: 3px; border-radius: 999px; background: #dedfe4; transition: background .2s ease; }
.switch::after { content: ""; display: block; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .28); transition: transform .2s ease; }
.trial-toggle input:checked + .switch { background: var(--accent); }
.trial-toggle input:checked + .switch::after { transform: translateX(24px); }
.trial-toggle input:focus-visible + .switch { outline: 3px solid rgba(255, 96, 50, .3); outline-offset: 3px; }

.plans { margin-top: 28px; display: grid; gap: 18px; }
.plan {
  position: relative;
  width: 100%;
  min-height: 83px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 17px;
  background: #fff;
  color: #161616;
  overflow: hidden;
  cursor: pointer;
  text-align: start;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.plan:active { transform: scale(.992); }
.plan:focus-visible { outline: 3px solid rgba(255, 96, 50, .28); outline-offset: 3px; }
.plan.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.yearly-plan { min-height: 116px; padding-top: 31px; }
.weekly-plan, .weekly-plan .plan-content { min-height: 68px; }
.saving { position: absolute; inset: 0 0 auto; height: 31px; display: grid; place-items: center; background: #d8d8d8; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; transition: background .18s ease; }
.yearly-plan.selected .saving { background: var(--accent); }
.plan-content { min-height: 81px; padding: 15px 17px; display: flex; align-items: center; gap: 15px; }
.radio { width: 23px; height: 23px; flex: 0 0 23px; border: 2px solid #dedede; border-radius: 50%; display: grid; place-items: center; color: transparent; font-size: 13px; font-weight: 900; }
.selected .radio { border-color: var(--accent); background: var(--accent); color: #fff; }
.plan-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.plan-copy > strong { font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.plan-copy small { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: -.035em; white-space: nowrap; text-decoration: line-through; }
.plan-price { max-width: 44%; font-size: 16px; font-weight: 700; line-height: 1.12; text-align: end; white-space: normal; }
.yearly-plan .plan-price { max-width: 36%; font-size: 16px; font-weight: 700; text-transform: uppercase; }

.benefit { min-height: 32px; margin: 25px 0 6px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 16px; font-weight: 400; }
.benefit > span { font-size: 28px; font-weight: 500; }
.benefit strong { font-weight: 400; }
.checkout { min-height: 60px; }
#wallet { min-height: 60px; height: 60px; border-radius: 13px; background: #000; overflow: hidden; display: flex; align-items: center; }
#wallet > * { width: 100%; }
.wallet-slot-hidden { display: none !important; }
.loading { min-height: 60px; border-radius: 13px; overflow: hidden; background: #000; }
.apple-pay-placeholder { width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: 0; }
#message { min-height: 18px; margin: 9px 0 0; color: #ba3518; text-align: center; font-size: 13px; }
#message:empty { display: none; }
.legal { display: flex; justify-content: center; gap: clamp(26px, 9vw, 50px); margin-top: 10px; }
.legal a { color: #6c6866; font-size: 13px; font-weight: 400; text-decoration: none; }

@media (min-width: 561px) {
  body { background: #efefef; padding: 20px 0; }
  main { min-height: calc(100svh - 40px); border-radius: 30px; box-shadow: 0 18px 70px rgba(0, 0, 0, .18); }
  .purchase-panel { border-radius: 34px 34px 30px 30px; }
  .award { width: 235px; }
}

@media (max-height: 760px) {
  .hero { min-height: 220px; padding-bottom: 14px; }
  .award { width: min(170px, 50vw); }
  .purchase-panel { padding-top: 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .trial-toggle { min-height: 58px; }
  .plans { margin-top: 17px; gap: 11px; }
  .benefit { margin: 14px 0 4px; }
}
