:root {
  color-scheme: light;
  --bg: #f3f6f6;
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.68);
  --soft: rgba(5, 5, 5, 0.46);
  --accent: #0285ff;
  --line: #e6e6e6;
  --line-strong: rgba(2, 133, 255, 0.45);
  --panel: #f2f2f2;
  --panel-strong: #f2f2f2;
  --field: #ffffff;
  --field-text: #050505;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home-page {
  --scene-nav-space: 62px;
  height: 100svh;
  overflow: hidden;
}

.scene-nav {
  position: fixed;
  left: 14px;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  padding: 9px 7px;
  border: 1px solid #e5e5e8;
  border-radius: 999px;
  background: #ececef;
}

.scene-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #707072;
  cursor: pointer;
  padding: 0;
  transition: opacity 140ms ease, height 220ms ease;
}

.scene-dot:hover {
  opacity: 0.8;
}

.scene-dot.is-active {
  background: #707072;
  height: 40px;
}

.scene-dot:focus-visible {
  outline: 3px solid rgba(2, 133, 255, 0.2);
  outline-offset: 3px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.snap-stack {
  height: 100svh;
  overflow: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: none;
  padding-left: var(--scene-nav-space);
}

.scene {
  height: 100svh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-top: 1px solid var(--line);
  display: grid;
  align-items: center;
}

.scene:first-child {
  border-top: 0;
}

.scene-shell,
.section,
.site-footer {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

.checkout-hero {
  padding: 64px 0 72px;
  text-align: center;
}

.scene-checkout,
.scene-plans {
  padding: 64px 0;
}

.scene-checkout .scene-shell {
  display: grid;
  justify-items: center;
}

.scene-footer {
  align-items: center;
  padding: 42px 0 36px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 86px;
  font-weight: 790;
  line-height: 0.95;
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 44px;
  font-weight: 760;
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 730;
}

.hero-copy p {
  max-width: 860px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
  margin-inline: auto;
}

.hero-logo {
  width: clamp(360px, 66vw, 1080px);
  max-width: 100%;
  margin: 0 auto 26px;
}

.quick-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 690;
  padding: 10px 15px;
}

.checkout-card,
.plan-card,
.placeholder-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.checkout-card {
  display: grid;
  gap: 22px;
  padding: 26px;
  width: min(100%, 640px);
  text-align: left;
}

.checkout-card-head,
.plan-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.checkout-card-head h2 {
  margin: 3px 0 0;
  font-size: 36px;
}

.caption {
  display: inline-flex;
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.plan-price {
  color: var(--ink);
  font-size: 26px;
  font-weight: 760;
}

.price-line {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-line span {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.price-line strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 720;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--field-text);
  font-weight: 700;
  padding: 14px 16px;
}

.field input::placeholder {
  color: #98a2b3;
}

.field input:focus,
.agreement input:focus {
  outline: 4px solid rgba(2, 133, 255, 0.16);
}

.field small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.agreement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.agreement input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.agreement a,
.legal-page a {
  color: var(--accent);
  font-weight: 760;
  text-underline-offset: 3px;
}

.form-message {
  min-height: 21px;
  margin: -4px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 690;
}

.pay-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  line-height: 1.2;
  padding: 15px 22px;
  text-align: center;
  text-decoration: none;
}

.pay-button:hover,
.primary-link:hover {
  background: #0074e0;
}

.pay-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.safe-payment {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.safe-payment p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section {
  padding: 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 8px 0 0;
}

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

.plan-card {
  padding: 24px;
}

.featured-plan {
  background: var(--panel-strong);
  border-color: var(--line-strong);
}

.plan-card-head h3 {
  margin: 0;
  font-size: 26px;
}

.plan-card-head span {
  color: var(--accent);
  font-size: 23px;
  font-weight: 760;
}

.plan-card p,
.placeholder-note {
  color: var(--muted);
  line-height: 1.62;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 20px;
}

.plan-card li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

code {
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 2px 5px;
}

.site-footer {
  display: grid;
  gap: 20px;
  max-width: 920px;
  padding: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.site-footer h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 760;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 2px;
}

.footer-links a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  display: grid;
  gap: 14px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal strong {
  color: var(--ink);
}

.footer-legal a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.footer-copy {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 86px;
}

.legal-page h1 {
  margin: 20px 0 32px;
  font-size: 52px;
  line-height: 1.05;
}

.legal-page h2 {
  margin-top: 32px;
  font-size: 22px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-page section {
  padding: 2px 0;
}

.back-link {
  display: inline-flex;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 0;
  text-decoration: none;
}

.center-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.placeholder-box {
  width: min(620px, 100%);
  padding: 32px;
  text-align: center;
}

.placeholder-box img {
  margin: 0 auto 16px;
}

.placeholder-box .primary-link {
  margin-top: 12px;
}

@media (max-width: 900px) {
  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 38px;
  }

  .checkout-hero,
  .scene-checkout,
  .scene-plans {
    padding-top: 46px;
  }
}

@media (max-width: 680px) {
  .scene-shell,
  .section,
  .site-footer,
  .legal-page {
    width: min(100% - 24px, 1100px);
  }

  .checkout-hero {
    padding-bottom: 42px;
  }

  .scene-checkout,
  .scene-plans,
  .scene-footer {
    padding: 38px 0;
  }

  .site-footer h2 {
    font-size: 34px;
  }

  .site-footer,
  .footer-links a,
  .footer-legal a {
    font-size: 15px;
  }

  body.home-page {
    --scene-nav-space: 50px;
  }

  .scene-nav {
    left: 8px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    grid-auto-flow: row;
    gap: 10px;
    padding: 8px 6px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .legal-page h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .quick-list {
    display: grid;
    gap: 8px;
  }

  .quick-list li {
    width: fit-content;
  }

  .checkout-card,
  .plan-card,
  .placeholder-box {
    padding: 18px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 0;
  }
}
