/* Desaverse studio site. One file, no build step.
   Palette (owner-decided): orange #F46A36, cobalt #2448D8, paper #F2EBDD, ink #202126.
   Contrast (WCAG): ink on paper 14:1, paper on cobalt 5.9:1, ink on orange 5.3:1,
   cobalt on paper 5.9:1. Orange is never used for text on paper or cobalt (below AA);
   it only fills buttons and shapes, with ink text on top. */

:root {
  --orange: #F46A36;
  --cobalt: #2448D8;
  --cobalt-deep: #1B38B0;
  --paper: #F2EBDD;
  --paper-light: #FAF6EC;
  --paper-shade: #DCD2BD;
  --ink: #202126;
  --radius: 20px;
  --gutter: 16px;
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-cobalt :focus-visible { outline-color: var(--paper); }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- cobalt hero (header + intro) ---------- */
.on-cobalt { background: var(--cobalt); color: var(--paper); }
.on-cobalt a { color: var(--paper); }

.hero .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 24px; padding-bottom: 88px;
}
.hero .wrap > div { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.5rem); font-weight: 800; max-width: 20ch; text-wrap: balance; }
.hero .lead { margin-top: 16px; font-size: 1.15rem; max-width: 40ch; }
.hero-mark { display: none; width: 140px; height: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  background: var(--orange); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 0; border-radius: 14px;
}
.btn:hover { background: #E5582A; }
.on-cobalt .btn { color: var(--ink); }

/* ---------- product cards (overlap the cobalt hero) ---------- */
.products { padding: 0 0 64px; }
.product-list {
  list-style: none; margin: -48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px;
}
.product {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper-light);
  border: 1px solid var(--paper-shade); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(32, 33, 38, .08);
  padding: 24px 22px;
}
.product h2 { font-size: 1.6rem; }
.product p { flex: 1 0 auto; }
.product .btn { align-self: flex-start; }
.badge {
  align-self: flex-start;
  background: #E3E8FA; color: var(--cobalt-deep);
  font-weight: 600; font-size: .9rem; padding: 4px 12px; border-radius: 999px;
}

/* ---------- footer ---------- */
/* The footer itself is shared/footer.css (same on every section of desaverse.com). */

/* ---------- info pages (tentang, metodologi, pembetulan, terma, privasi, bayaran-balik) ---------- */
.page-title .wrap { padding-top: 20px; padding-bottom: 44px; }
.page-title h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); font-weight: 800; }
.page-title .lead { margin-top: 14px; font-size: 1.15rem; max-width: 40ch; }
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h2 { margin-top: 36px; font-size: clamp(1.35rem, 4.6vw, 1.7rem); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 22px; font-size: 1.1rem; }
.doc p, .doc ul, .doc ol { margin-top: 12px; max-width: 64ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc .card {
  margin-top: 16px; padding: 18px 20px; max-width: 64ch;
  background: var(--paper-light); border: 1px solid var(--paper-shade); border-radius: 16px;
}
.doc .card p:first-child { margin-top: 0; }
.doc .meta { margin-top: 28px; font-size: .95rem; color: #4A4B52; }
.doc table { margin-top: 14px; width: 100%; max-width: 64ch; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-shade); }
.doc th { font-family: var(--font-head); font-weight: 700; }

/* ---------- 404 ---------- */
.lost .wrap { display: grid; gap: 28px; justify-items: start; padding-top: 48px; padding-bottom: 64px; }
.lost img { width: 150px; height: auto; }
.lost h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.lost p { margin-top: 14px; max-width: 34ch; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  body { font-size: 1.125rem; }
  .hero .wrap { padding-top: 48px; padding-bottom: 104px; }
  .hero-mark { display: block; }
  .product { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

