:root {
  --brand: #8a1538;
  --brand-strong: #6f102c;
  --brand-tint: #fbf0f3;
  --ink: #1b212d;
  --muted: #7a8494;
  --line: #eceef1;
  --surface: #f6f7f9;
  --leaf: #1f7a4d;
  --leaf-tint: #e8f5ee;
  --amber: #8a5a00;
  --amber-tint: #fdf4e3;
  --red: #b42318;
  --red-tint: #fdecea;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Kumbh Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.brand {
  display: flex;
  justify-content: center;
  padding: 4px 0 22px;
}

.brand img {
  height: 40px;
  width: auto;
}

.test-banner {
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--amber-tint);
  color: var(--amber);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px -18px rgba(27, 33, 45, 0.25);
  overflow: hidden;
}

.pad {
  padding: 22px;
}

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

h1 {
  margin: 4px 0 2px;
  font-size: 20px;
  line-height: 1.3;
}

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

.amount-band {
  background: var(--brand);
  color: #fff;
  padding: 20px 22px;
  text-align: center;
}

.amount-band .label {
  font-size: 13px;
  opacity: 0.85;
}

.amount-band .value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.amount-band .until {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

.items {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.items td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.items td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 12px;
}

.items .qty {
  color: var(--muted);
  font-size: 13px;
}

.items tr.total td {
  border-bottom: 0;
  padding-top: 12px;
  font-weight: 700;
  font-size: 15px;
}

.items tr.minor td {
  color: var(--muted);
  border-bottom: 0;
  padding: 4px 0;
}

.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: 14px;
}

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

.details dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.actions {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(138, 21, 56, 0.6);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-strong);
}

.btn-soft {
  height: 46px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 14px;
}

.secure {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.notice {
  margin: 0 22px 18px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
}

.notice.error {
  background: var(--red-tint);
  color: var(--red);
}

.notice.warning {
  background: var(--amber-tint);
  color: var(--amber);
}

.status {
  padding: 32px 22px 22px;
  text-align: center;
}

.status .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
}

.status .icon.ok {
  background: var(--leaf-tint);
  color: var(--leaf);
}

.status .icon.wait {
  background: var(--amber-tint);
  color: var(--amber);
}

.status .icon.off {
  background: var(--surface);
  color: var(--muted);
}

.status h1 {
  margin: 0 0 6px;
}

.status p {
  margin: 0 auto;
  max-width: 340px;
  color: var(--muted);
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 22px;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: none;
}

.btn .spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

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

.foot {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.foot a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- site pages (home, services, policies, contact) ---------- */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: -8px 0 20px;
  font-size: 13px;
  font-weight: 600;
}

.nav a,
.links a {
  color: var(--brand);
  text-decoration: none;
}

.nav a:hover,
.links a:hover {
  text-decoration: underline;
}

.shell.wide {
  max-width: 760px;
}

.doc h1 {
  font-size: 24px;
  margin: 0 0 4px;
}

.doc h2 {
  margin: 26px 0 8px;
  font-size: 17px;
}

.doc p,
.doc li {
  color: #3b4352;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin: 4px 0;
}

.doc .updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0 6px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.plan .tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plan .price {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.plan .price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.plan .range {
  font-size: 13px;
  color: var(--muted);
}

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

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

.contact-grid dd {
  margin: 0;
  font-weight: 600;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 10px;
}

.legal {
  margin-top: 8px;
  font-size: 12px;
}

/* ---------- Torch loader ---------- */
.torch-loader {
  height: auto;
  overflow: visible;
}
.torch-loader .torch-sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: torch-swirl-a 2.6s ease-in-out infinite alternate;
}
.torch-loader .torch-sway-l {
  animation-name: torch-swirl-b;
  animation-duration: 2.2s;
}
.torch-loader .torch-sway-r {
  animation-name: torch-swirl-b;
  animation-duration: 2.9s;
  animation-delay: 0.15s;
}
@keyframes torch-swirl-a {
  0% { transform: rotate(0) skewX(0) scaleY(1); }
  50% { transform: rotate(1.6deg) skewX(-2deg) scaleY(1.035); }
  100% { transform: rotate(-1.2deg) skewX(1.5deg) scaleY(0.985); }
}
@keyframes torch-swirl-b {
  0% { transform: rotate(0) skewX(0) scaleY(1); }
  50% { transform: rotate(-2deg) skewX(2.5deg) scaleY(1.04); }
  100% { transform: rotate(1.4deg) skewX(-1.5deg) scaleY(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .torch-loader .torch-sway { animation: none; }
}
