/* Dose AI purchase site (doseai.zbrainsoft.com). One stylesheet for every page.
   Brand green #16a34a, the same as the emails. System fonts only: no font
   downloads, nothing loaded from a third party. */

:root {
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-soft: #dcfce7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f6f7f9;
  --card: #ffffff;
  --warn-bg: #fef3c7;
  --warn-ink: #92400e;
  --err-bg: #fee2e2;
  --err-ink: #991b1b;
  --ok-bg: #dcfce7;
  --ok-ink: #166534;
  --focus: #2563eb;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: .2px;
}
.top-link { font-size: 15px; color: var(--muted); text-decoration: none; }
.top-link:hover { color: var(--ink); text-decoration: underline; }

main {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
main.wide { max-width: 640px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.card + .card { margin-top: 20px; }

h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 22px; }

label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }

input[type=email], input[type=password], input[type=text] {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
input[type=email]:focus, input[type=password]:focus, input[type=text]:focus { border-color: var(--brand); }
input.code-input {
  font-size: 26px;
  letter-spacing: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

/* The bot check is invisible unless Cloudflare asks the visitor to tick a box,
   so it takes no room until then. */
.turnstile { margin: 12px 0 0; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: var(--brand);
  color: #fff;
}
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.block { display: block; width: 100%; margin-top: 22px; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid #cbd5e1; }
.btn.secondary:hover { background: #f1f5f9; }
.btn.link {
  background: none;
  color: var(--brand-dark);
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
}

.msg { border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; font-size: 15px; }
.msg.error { background: var(--err-bg); color: var(--err-ink); }
.msg.ok { background: var(--ok-bg); color: var(--ok-ink); }
.msg.warn { background: var(--warn-bg); color: var(--warn-ink); }
.msg[hidden] { display: none; }

.below { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.below p { margin: 6px 0; }

.facts { margin: 6px 0 0; padding: 0; list-style: none; }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--muted); }
.facts .v { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink);
}
.pill.on { background: var(--brand-soft); color: var(--ok-ink); }
.pill.off { background: var(--warn-bg); color: var(--warn-ink); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.pack { border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; background: #fff; }
.pack strong { display: block; font-size: 18px; }
.pack .btn { margin-top: 10px; padding: 8px 14px; width: 100%; }

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 8px auto 18px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }
[hidden] { display: none !important; }

footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  color: var(--muted);
}
.foot-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--muted); }

noscript .msg { margin: 16px; }

@media (max-width: 480px) {
  main { padding-top: 20px; }
  .card { padding: 22px 16px; }
  h1 { font-size: 23px; }
}
