/* Praditya Studio — design system
   Mint #00c896 primary · slate #243535 ink · Baloo 2 headings · Nunito body */

:root {
  --mint: #00c896;
  --mint-dark: #00a97e;
  --mint-soft: #e6faf4;
  --mint-softer: #f2fdf9;
  --ink: #243535;
  --ink-soft: #4a5c5c;
  --muted: #7a8a8a;
  --line: #d9e8e3;
  --bg: #f6fbf9;
  --white: #ffffff;
  --red: #d64545;
  --red-bg: #fdeaea;
  --amber: #ff8c00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(36, 53, 53, 0.08);
  --shadow-lg: 0 14px 40px rgba(36, 53, 53, 0.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name, .price-big {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }

a { color: var(--mint-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.page { padding-top: 24px; padding-bottom: 48px; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mint);
  color: #fff;
  border: 2px solid var(--mint);
  border-radius: 999px;
  padding: 11px 22px;
  min-height: 44px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--mint-dark); border-color: var(--mint-dark); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-ghost { background: #fff; color: var(--mint-dark); border-color: var(--mint); }
.btn-ghost:hover { background: var(--mint-soft); color: var(--mint-dark); }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; min-height: 52px; }
.btn-sm { padding: 7px 16px; font-size: 0.9rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn.disabled { opacity: .45; pointer-events: none; }

.inline-form { display: inline; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.main-nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { background: var(--mint-soft); color: var(--mint-dark); }
.header-cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-strip {
  background: var(--mint-soft);
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 6px 0;
  text-align: center;
}
.trust-strip strong { color: var(--mint-dark); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0 40px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.launch-line { margin: 4px 0 20px; font-size: 1.05rem; }
.strike { text-decoration: line-through; color: var(--muted); margin-right: 8px; }
.now { color: var(--mint-dark); font-weight: 800; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: "Baloo 2", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.stat-lbl { font-size: 0.85rem; color: var(--muted); }

.hero-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cover-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.cover-tile img, .cover-fallback {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.cover-fallback {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px;
  background: linear-gradient(140deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: #fff; font-family: "Baloo 2", sans-serif; font-weight: 700;
}
.cover-fallback.sm { font-size: 0.95rem; }
.cover-cap { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
.section.soft { background: var(--mint-softer); border-radius: var(--radius); padding: 32px 20px; margin: 16px 0; }
.page-head { padding: 24px 0 8px; }
.page-head.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.cat-card, .book-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .1s ease, box-shadow .15s ease;
}
.cat-card:hover, .book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card img, .book-card img, .cat-card .cover-fallback, .book-card .cover-fallback {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0;
}
.cat-meta, .book-meta { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cat-name { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.1rem; }
.book-meta h3 { margin: 2px 0 6px; }

.badge {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

/* ---------- Value cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.value-card .emoji { font-size: 2rem; }
.value-card h3 { margin: 10px 0 6px; }
.value-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Demo strip / tiles ---------- */
.demo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.demo-tile {
  background: linear-gradient(150deg, var(--mint-soft), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-badge {
  align-self: flex-start;
  background: var(--mint);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}
.demo-title { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.05rem; }
.demo-sub { font-size: 0.8rem; color: var(--muted); }

/* ---------- Video ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.video-slot {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: #cfe9e2;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  padding: 12px;
}

/* ---------- Teaser ---------- */
.teaser {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

/* ---------- Price box ---------- */
.price-box {
  background: linear-gradient(140deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.price-box h2 { color: #fff; }
.price-box .muted { color: rgba(255,255,255,.85); }
.price-box .btn { background: #fff; color: var(--mint-dark); border-color: #fff; }
.price-box .btn:hover { background: var(--mint-soft); }
.price-big { font-size: 3rem; font-weight: 800; margin: 8px 0; color: #fff; }
.price-box.big { max-width: 520px; margin: 0 auto; }
.benefit-list { list-style: none; padding: 0; margin: 16px 0; text-align: left; max-width: 300px; margin-inline: auto; }
.benefit-list li { padding: 6px 0 6px 26px; position: relative; }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.notice {
  background: rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-weight: 700;
}
.price-inline { font-family: "Baloo 2", sans-serif; font-size: 2rem; font-weight: 800; color: var(--mint-dark); margin: 8px 0; }

/* ---------- Auth / forms ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 24px 0 48px; }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form.inline-wide { flex-direction: row; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.form label > span { color: var(--ink-soft); }
.form input {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mint-softer);
  color: var(--ink);
  min-height: 44px;
}
.form input:focus { outline: 3px solid var(--mint); outline-offset: 1px; border-color: var(--mint); background: #fff; }
.role-field { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 0; }
.role-field legend { font-weight: 800; padding: 0 6px; font-size: 0.9rem; color: var(--ink-soft); }
.radio-row { flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 600; margin-top: 8px; }
.radio-row input { min-height: auto; width: auto; margin-top: 4px; }

.error-box {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #f3bcbc;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 700;
  margin-top: 12px;
}

/* ---------- Account ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 12px 0 18px; }
.detail-list dt { color: var(--muted); font-weight: 700; }
.detail-list dd { margin: 0; font-weight: 700; }
.access-ok { color: var(--mint-dark); font-weight: 800; font-size: 1.2rem; }

/* ---------- Book / pages ---------- */
.book-head { padding: 20px 0; }
.moral { font-weight: 700; color: var(--ink-soft); background: var(--mint-soft); display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm); }
.page-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: var(--mint-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-n {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(36,53,53,.8); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
}
.thumb.locked img { filter: blur(3px) grayscale(.4); }
.lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(36,53,53,.55); color: #fff;
  font-weight: 800; text-align: center;
}
.back-link { margin: 24px 0; }

/* ---------- Reader (page view) ---------- */
.reader { max-width: 820px; margin: 0 auto; }
.reader-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.reader-count { font-weight: 800; color: var(--ink-soft); }
.page-view {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.page-img { width: 100%; height: auto; display: block; }
.wm-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  transform: rotate(-30deg) scale(1.6);
  opacity: 0.14;
}
.wm-track {
  display: flex; flex-wrap: wrap; gap: 36px 48px;
  padding: 20px;
}
.wm-chip {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 1px;
}
.reader-nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; }

/* ---------- Result / msg cards ---------- */
.result-wrap { display: flex; justify-content: center; padding: 40px 0; }
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.result-card.ok { border-top: 5px solid var(--mint); }
.result-card.fail { border-top: 5px solid var(--amber); }
.result-emoji { font-size: 3rem; margin-bottom: 8px; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.chip {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.chip:hover { border-color: var(--mint); color: var(--mint-dark); text-decoration: none; }
.chip.active { background: var(--mint); border-color: var(--mint); color: #fff; }

/* ---------- Copy rows (agent) ---------- */
.copy-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--mint-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.copy-label { font-weight: 800; color: var(--ink-soft); min-width: 70px; }
.copy-val {
  flex: 1;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  min-width: 140px;
}

/* ---------- Stat cards ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--mint);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card-num { font-family: "Baloo 2", sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.stat-card-lbl { color: var(--muted); font-weight: 700; font-size: 0.85rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th { color: var(--ink-soft); font-weight: 800; background: var(--mint-softer); }
.data-table code { font-size: 0.85rem; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pill-ok { background: var(--mint-soft); color: var(--mint-dark); }
.pill-wait { background: #fff3e0; color: var(--amber); }

/* ---------- Policy ---------- */
.policy {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.policy h2 { margin-top: 1.4em; }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe0db; margin-top: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 40px 16px 28px;
}
.footer-brand { font-family: "Baloo 2", sans-serif; font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-col h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.footer-col a { display: block; color: #a9c6bf; padding: 3px 0; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .muted { color: #8fb0a9; }
.warn-note { color: #ffd37a; font-size: 0.85rem; margin-top: 10px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 0.85rem; color: #8fb0a9; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .main-nav { order: 3; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-covers { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .teaser { flex-direction: column; align-items: flex-start; }
  .form.inline-wide { flex-direction: column; align-items: stretch; }
}
