:root {
  --tg: #0088cc;
  --tg-dark: #0070aa;
  --ink: #0f1620;
  --muted: #6b7785;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: linear-gradient(160deg, #0088cc 0%, #0a2540 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--ink);
}

.card {
  background: var(--card);
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}

.badge {
  display: inline-block;
  background: rgba(0, 136, 204, 0.12);
  color: var(--tg-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1 { font-size: 28px; margin-bottom: 8px; }

.tag { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }

.price { margin: 8px 0 24px; }
.price span:first-child { font-size: 44px; font-weight: 800; color: var(--ink); }
.per { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 4px; }

.features {
  list-style: none;
  text-align: left;
  margin: 0 auto 28px;
  max-width: 300px;
}
.features li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: #24313f;
  font-size: 15px;
  border-bottom: 1px solid #eef2f6;
}
.features li:last-child { border-bottom: none; }
.features li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: var(--tg);
  font-weight: 700;
}

.btn {
  display: inline-block;
  width: 100%;
  background: var(--tg);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--tg-dark); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: default; }

.fine { color: var(--muted); font-size: 12.5px; margin-top: 14px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 34, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.hidden { display: none; }

.modal {
  background: #fff;
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
}
.modal h2 { margin-bottom: 12px; }
.modal p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 22px; }
.check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f7ee;
  color: #1aa260;
  font-size: 32px;
  line-height: 64px;
  margin: 0 auto 18px;
}

/* --- educational disclaimer + policy footer ------------------------- */
.disclaimer {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: left;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
}

.site-footer {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.site-footer a {
  color: var(--tg-dark);
  font-size: 12.5px;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* --- policy / legal document pages ---------------------------------- */
body.doc-page { align-items: flex-start; }

.doc {
  background: var(--card);
  width: 100%;
  max-width: 760px;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  text-align: left;
  line-height: 1.65;
}
.doc h1 { font-size: 24px; margin-bottom: 4px; }
.doc h2 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 14.5px; color: #3a4756; }
.doc ul { margin: 8px 0 8px 22px; }
.doc .updated { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.doc a { color: var(--tg-dark); }
.doc .back { display: inline-block; margin-top: 26px; font-size: 13px; font-weight: 600; }
.doc .note {
  background: #f4f8fb;
  border: 1px dashed #c9d8e4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 18px 0;
}
