/* Dukung Anime X (/pro/): the site's purple + green palette (index.html), light and dark.
   Static file only: no fonts, images or scripts from other sites (CSP default-src 'none'). */

:root {
  color-scheme: light dark;
  --bg: #f7f5fc;
  --card: #ffffff;
  --line: #e4ddf3;
  --text: #1b1430;
  --muted: #564e6e;
  --accent: #6d28d9;
  --accent-soft: #f1e9ff;
  --ok: #166534;
  --ok-soft: #e8f8ee;
  --warn: #8a3a0b;
  --warn-soft: #fff4e0;
  --warn-line: #f3d7a6;
  --btn-bg: #6d28d9;
  --btn-bg-hover: #5b21b6;
  --btn-text: #ffffff;
  --focus: #6d28d9;
  --input-bg: #ffffff;
  --input-line: #8f86a8;
  --code-bg: #f1ecfb;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07040d;
    --card: #140c24;
    --line: #2c1d4a;
    --text: #ece9f8;
    --muted: #a89fc4;
    --accent: #c084fc;
    --accent-soft: #24143f;
    --ok: #86efac;
    --ok-soft: #10261a;
    --warn: #fcd34d;
    --warn-soft: #251b07;
    --warn-line: #4a3710;
    --btn-bg: linear-gradient(120deg, #86efac 0%, #a7f3d0 45%, #c084fc 130%);
    --btn-bg-hover: linear-gradient(120deg, #a7f3d0 0%, #bbf7d0 45%, #d8b4fe 130%);
    --btn-text: #0b0714;
    --focus: #86efac;
    --input-bg: #0d0718;
    --input-line: #6f6390;
    --code-bg: #24143f;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

code {
  font-family: var(--mono);
  font-size: .94em;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.top {
  color: #ffffff;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(74, 222, 128, .16), transparent 60%),
    linear-gradient(135deg, #1e0b3d 0%, #4c1d95 55%, #701a75 100%);
}
.top :focus-visible { outline-color: #ffffff; }

/* dua bahasa (id / ms): hanya bahasa terpilih yang tampil; tanpa JavaScript halaman tetap bahasa Indonesia */
[data-lang] { display: none; }
html[lang="id"] [data-lang="id"], html[lang="ms"] [data-lang="ms"] { display: revert; }

.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 14px; }
.lang { display: inline-flex; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px; }
.lang a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  color: #ffffff; font-size: .9rem; font-weight: 700; text-decoration: none;
}
.lang a[aria-current="true"] { background: #ffffff; color: #4c1d95; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding-right: 6px;
  color: #ffffff; text-decoration: none; font-weight: 700; letter-spacing: .2px;
}
.brand img {
  width: 36px; height: 36px; border-radius: 10px; display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.hero { padding: 22px 0 34px; }
.kicker {
  margin: 0 0 4px; color: #86efac; font-size: .78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.15; letter-spacing: -.5px; }
.hero p { margin: 0; max-width: 560px; color: #ede7fb; }

/* ---------- sections ---------- */
main.wrap { padding-top: 20px; padding-bottom: 32px; }

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
}
section h2 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; }
section p { margin: 8px 0; }

/* the deal: 1 Traktir Server = 7 hari */
.deal {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  margin: 4px 0 12px; text-align: center;
}
.deal-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--line);
}
.deal-item-pro { background: var(--ok-soft); }
.deal-label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.deal-value { font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.deal-item-pro .deal-value { color: var(--ok); }
.deal-eq { font-size: 1.4rem; font-weight: 800; color: var(--muted); line-height: 1; }

.facts { margin: 0; padding-left: 20px; }
.facts li { margin: 6px 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 0 44px; margin: 0 0 14px; min-height: 30px;
}
.steps li:last-child { margin-bottom: 2px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--card);
  font-weight: 800; font-size: .95rem; line-height: 1;
}
.steps .step-title { display: block; }

/* the helper + the main button */
.action { border-color: var(--accent); border-width: 2px; }

.field { margin: 4px 0 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input {
  display: block; width: 100%; min-height: 48px;
  padding: 10px 14px; border-radius: 12px;
  border: 2px solid var(--input-line); background: var(--input-bg); color: var(--text);
  font: 600 1.05rem/1.3 var(--mono); letter-spacing: .5px;
}
.field input::placeholder { color: var(--muted); opacity: 1; font-weight: 400; letter-spacing: 0; font-family: var(--font); }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
.field input[data-state="valid"] { border-color: var(--ok); }
.field input[aria-invalid="true"] { border-color: var(--warn); }

.help { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.status { margin: 6px 0 0; font-size: .95rem; font-weight: 600; min-height: 0; }
.status:empty { margin: 0; }
.status[data-state="valid"] { color: var(--ok); }
.status[data-state="invalid"], .status[data-state="noprefix"], .status[data-state="example"] { color: var(--warn); }
.status[data-state="partial"] { color: var(--muted); font-weight: 400; }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 12px 22px;
  border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 800; font-size: 1.05rem; text-align: center; text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(109, 40, 217, .8);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--btn-bg-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn[aria-disabled="true"]:hover { background: var(--btn-bg); }
.btn[aria-disabled="true"]:active { transform: none; }
.status[data-state="required"] { color: var(--warn); }

.small { color: var(--muted); font-size: .9rem; margin-top: 12px; }

.my { border-color: var(--ok); }
.my h2 { color: var(--ok); }
.my ol.facts { padding-left: 22px; }

.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.warn h2 { color: var(--warn); }

.link-row { margin: 4px 0 0; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- footer ---------- */
.foot { color: var(--muted); font-size: .9rem; padding-bottom: 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* ---------- wider screens ---------- */
@media (min-width: 480px) {
  .deal { grid-template-columns: 1fr auto 1fr; align-items: center; }
  section { padding: 22px 24px; }
}
@media (min-width: 640px) {
  .btn { display: inline-flex; width: auto; min-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .top { background: none; color: #000; }
  .brand, .hero p { color: #000; }
  .lang { display: none; }
  .action .field, .btn { display: none !important; }
}
