:root {
  --blue: #1f4fd8;
  --blue-dark: #173ca8;
  --ink: #111827;
  --muted: #5b6474;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
}

.wrap {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.narrow {
  width: min(100% - 32px, 760px);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
}

.btn-ghost:hover {
  background: #eef2ff;
}

.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav a:not(.btn) {
  color: var(--muted);
}

.nav a:not(.btn):hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.hero-points li::before {
  content: "✓ ";
  color: var(--blue);
  font-weight: 700;
}

.hero-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 20px 40px rgb(17 24 39 / 8%);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  color: var(--blue);
  font-size: 30px;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  text-align: center;
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.plan-featured {
  border: 2px solid var(--blue);
  box-shadow: 0 16px 32px rgb(31 79 216 / 12%);
}

.badge {
  position: absolute;
  top: -12px;
  left: 28px;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.price {
  margin: 4px 0;
  color: var(--muted);
}

.price span {
  color: var(--ink);
  font-size: 36px;
  font-weight: 800;
}

.plan-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.plan ul {
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.plan li::before {
  content: "✓ ";
  color: var(--blue);
  font-weight: 700;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
details {
  margin-top: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Contact */
.contact {
  text-align: center;
}

.contact p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.footer-row nav {
  display: flex;
  gap: 18px;
}

.footer-row a {
  color: var(--muted);
}

/* Narrow screens */
@media (max-width: 900px) {
  .hero-grid,
  .plans,
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0;
  }
}

@media (max-width: 600px) {
  .nav a:not(.btn) {
    display: none;
  }

  .section {
    padding: 56px 0;
  }
}

/* --- Checkout and result pages ------------------------------------------- */
.page-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  text-align: left;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.center {
  text-align: center;
}

.checkout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
}

.plan-pick {
  display: grid;
  gap: 8px;
}

.plan-pick label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.plan-pick label:has(input:checked) {
  border-color: var(--blue);
  background: #eef2ff;
}

.plan-pick b {
  margin-left: auto;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

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

.field small {
  color: var(--muted);
}

.field input,
.field select {
  padding: 11px 12px;
  border: 1px solid #cbd2dc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}

.err {
  min-height: 0;
  color: #b42318;
  font-size: 13px;
  font-style: normal;
}

.form-error {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid #f4b4ad;
  border-radius: 8px;
  background: #fef3f2;
  color: #b42318;
}

.btn-block {
  display: block;
  width: 100%;
  margin: 22px 0 12px;
  font-size: 17px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 16px 0;
}

.summary dd,
.summary dt {
  margin: 0;
}

.summary .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.tick {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick li::before {
  content: "✓ ";
  color: var(--blue);
  font-weight: 700;
}

/* The framed payment page */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgb(17 24 39 / 60%);
}

.modal[hidden] {
  display: none;
}

.modal-open {
  overflow: hidden;
}

.modal-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  height: min(100%, 780px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
}

.modal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.modal-bar span {
  flex: 1;
  font-weight: 600;
}

.modal-bar button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-card iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .modal {
    padding: 0;
  }

  .modal-card {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* Result page */
.result-card {
  text-align: center;
}

.result-card .page-title {
  text-align: center;
}

.lead-sm {
  font-size: 18px;
}

.mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 700;
}

.mark-ok {
  background: #e7f6ec;
  color: #1a7f37;
}

.mark-wait {
  background: #eef2ff;
  color: var(--blue);
}

.mark-bad {
  background: #fef3f2;
  color: #b42318;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 4px solid #dbe4ff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.receipt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  max-width: 380px;
  margin: 20px auto;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: left;
}

.receipt dt {
  color: var(--muted);
}

.receipt dd {
  margin: 0;
  font-weight: 600;
  word-break: break-all;
}

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

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

  .card {
    padding: 20px;
  }
}
