:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --ink: #172033;
  --muted: #687388;
  --line: #d9e0ea;
  --surface: #ffffff;
  --accent: #635bff;
  --accent-strong: #3f37d7;
  --green: #16845b;
  --amber: #a66200;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(99, 91, 255, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(22, 132, 91, 0.1), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
}

.home,
.plan,
.result {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.home,
.plan {
  width: min(460px, 100%);
  padding: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--green));
}

h1 {
  margin: 28px 0 14px;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 28px 0;
}

.price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
}

.cycle {
  color: var(--muted);
  font-weight: 700;
}

.terms {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.plan-links {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.plan-link {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.plan-link:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
}

.link-title {
  font-size: 18px;
  font-weight: 800;
}

.link-price {
  font-size: 24px;
  font-weight: 900;
}

.link-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.terms div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.notice {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--amber);
  font-size: 13px;
  line-height: 1.6;
}

.result-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
}

.result {
  width: min(680px, 100%);
  padding: 32px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .shell {
    padding: 18px;
  }

  h1 {
    font-size: 30px;
  }

  .price {
    font-size: 38px;
  }
}

@media (max-width: 520px) {
  .home,
  .plan,
  .result {
    padding: 20px;
  }

  .terms div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
