/* =========================================================
   KokoIMEI — hand-built visual system
   Paper, ink, tomato red, signal green.
   ========================================================= */

:root {
  --paper: #f6f0e4;
  --paper-2: #efe5d2;
  --paper-3: #e7dac2;
  --ink: #14213d;
  --ink-2: #2b3a5a;
  --muted: #5c6475;
  --red: #d62828;
  --red-dark: #a91f1f;
  --green: #2a9d8f;
  --green-dark: #1d7a6f;
  --yellow: #f4a261;
  --line: rgba(20, 33, 61, 0.16);
  --line-strong: rgba(20, 33, 61, 0.36);
  --shadow: 6px 6px 0 var(--ink);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --container: 1180px;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 33, 61, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 4rem, var(--container));
  }
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

em {
  font-style: italic;
  color: var(--red);
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.15);
  flex: none;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink .section-label {
  color: var(--yellow);
}

.section--ink .section-head .section-lead {
  color: rgba(246, 240, 228, 0.72);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--paper-2);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- header ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 228, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 0 rgba(20, 33, 61, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 1.55rem;
  line-height: 1;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--red);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  flex: none;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-word span {
  color: var(--ink);
}

.brand-word strong {
  color: var(--red);
  font-weight: 800;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 600;
}

.primary-nav a {
  position: relative;
  padding: 0.25rem 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transition: right 0.2s ease;
}

.primary-nav a:hover::after {
  right: 0;
}

.header-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.5rem 1rem;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .header-cta {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 1.2rem 0 1.4rem;
}

.hero-lead {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-row svg {
  width: 18px;
  height: 18px;
  color: var(--green-dark);
  flex: none;
}

.hero-art {
  position: relative;
  min-height: 570px;
}

.phone-card {
  position: absolute;
  left: 2%;
  top: 6%;
  z-index: 2;
  width: 44%;
  max-width: 250px;
  aspect-ratio: 9 / 18.5;
  padding: 9px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 32px;
  transform: rotate(-5deg);
  box-shadow: 10px 10px 0 rgba(20, 33, 61, 0.2);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 36%;
  height: 18px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  border-radius: 23px;
  background: #e9e2d5;
  overflow: hidden;
}

.phone-time {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.no-signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.no-signal svg {
  width: 38px;
  height: 38px;
  margin-bottom: 0.2rem;
  color: var(--red);
}

.no-signal strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.no-signal small {
  max-width: 14ch;
  color: var(--ink-2);
  font-size: 0.7rem;
  line-height: 1.35;
}

.phone-stamp {
  position: absolute;
  left: 50%;
  bottom: 16%;
  padding: 0.3rem 0.45rem;
  border: 2px solid var(--red);
  border-radius: 4px;
  background: rgba(246, 240, 228, 0.85);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: translateX(-50%) rotate(-9deg);
}

.receipt-card {
  position: absolute;
  right: 0;
  bottom: 7%;
  z-index: 3;
  width: 55%;
  max-width: 310px;
  padding: 1rem;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  transform: rotate(3.5deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.7rem;
}

.receipt-line strong {
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.receipt-line .green {
  color: var(--green-dark);
}

.barcode {
  height: 38px;
  margin: 0.8rem 0 0.55rem;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 9px
  );
  opacity: 0.8;
}

.receipt-stamp {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  border: 2px solid var(--green-dark);
  border-radius: 4px;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-4deg);
}

.sticker {
  position: absolute;
  right: 2%;
  top: 4%;
  z-index: 4;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  transform: rotate(7deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.speech-bubble {
  position: absolute;
  left: 0;
  bottom: -3%;
  z-index: 4;
  max-width: 54%;
  padding: 0.9rem 1rem;
  border-radius: 16px 16px 16px 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  line-height: 1.45;
  box-shadow: 5px 5px 0 rgba(20, 33, 61, 0.18);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  border-width: 12px 12px 0 0;
  border-style: solid;
  border-color: var(--ink) transparent transparent transparent;
}

.art-caption {
  position: absolute;
  right: 1rem;
  bottom: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-art {
    width: min(100%, 560px);
    min-height: 520px;
    margin: 1rem auto 0;
  }
}

@media (max-width: 560px) {
  .hero-art {
    min-height: 430px;
  }

  .phone-card {
    left: 0;
    width: 42%;
  }

  .receipt-card {
    right: -2%;
    bottom: 4%;
    width: 60%;
  }

  .speech-bubble {
    max-width: 64%;
    bottom: -6%;
    padding: 0.7rem 0.8rem;
    font-size: 0.7rem;
  }

  .sticker {
    padding: 0.4rem 0.65rem;
    font-size: 0.52rem;
  }

  .art-caption {
    display: none;
  }
}

/* ---------- marquee ---------- */

.marquee {
  padding: 0.75rem 0;
  background: var(--red);
  color: var(--paper);
  border-block: 2px solid var(--ink);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✳";
  color: var(--yellow);
  font-size: 1rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section heads ---------- */

.section-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head .section-label {
  padding-top: 0.7rem;
}

.section-head h2 {
  max-width: 13ch;
}

.section-head .section-lead {
  grid-column: 2;
  max-width: 58ch;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.02rem;
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .section-head .section-lead {
    grid-column: auto;
  }
}

/* ---------- problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.problem-card {
  padding: 1.4rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
}

.problem-card .num {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.problem-card h3 {
  margin: 1.4rem 0 0.6rem;
}

.problem-card p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--paper-2);
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 0.9rem;
}

.callout strong {
  color: var(--red);
  flex: none;
}

@media (max-width: 820px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 1.2rem 1.1rem 1.3rem;
  border-top: 2px solid var(--ink);
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1.4rem;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--ink-2);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 520px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.price-card--featured {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-8px);
}

.price-card--featured .price-desc,
.price-card--featured .price-list li {
  color: rgba(246, 240, 228, 0.78);
}

.price-card--featured .price-amount {
  color: var(--yellow);
}

.price-badge {
  position: absolute;
  right: 1rem;
  top: -14px;
  padding: 0.3rem 0.7rem;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(3deg);
}

.price-kicker {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.price-card--featured .price-kicker {
  color: var(--yellow);
}

.price-amount {
  margin: 0.6rem 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.price-amount span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
}

.price-desc {
  min-height: 3.2em;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.price-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--ink-2);
}

.price-list svg {
  width: 16px;
  height: 16px;
  margin-top: 0.18rem;
  color: var(--green-dark);
  flex: none;
}

.price-card--featured .price-list svg {
  color: var(--yellow);
}

.price-card .btn {
  margin-top: auto;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .price-card--featured {
    transform: none;
  }
}

/* ---------- trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.trust-card {
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  background: rgba(246, 240, 228, 0.6);
  border: 2px solid var(--line-strong);
  border-radius: 16px;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.trust-card p {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.quote-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.6rem;
  background: var(--ink);
  border-radius: 20px;
  color: var(--paper);
}

.quote-mark {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.7;
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.quote-card cite {
  display: block;
  margin-top: 0.7rem;
  color: rgba(246, 240, 228, 0.65);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.1em;
}

@media (max-width: 720px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- IMEI checker ---------- */

.checker-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.checker-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: repeating-linear-gradient(180deg, var(--red) 0 8px, transparent 8px 16px);
}

.checker-copy h2 {
  max-width: 10ch;
  margin-bottom: 1rem;
}

.checker-copy p {
  max-width: 40ch;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.checker-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.checker-form .field {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.checker-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.checker-form input:focus {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.checker-result {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.checker-result.is-ok {
  color: var(--green-dark);
  font-weight: 600;
}

.checker-result.is-error {
  color: var(--red-dark);
  font-weight: 600;
}

.checker-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.checker-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .checker-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  flex: none;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 70ch;
  padding: 0 0 1.3rem;
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* ---------- final CTA ---------- */

.cta-section {
  position: relative;
  background: var(--red);
  color: var(--paper);
  border-block: 2px solid var(--ink);
  overflow: hidden;
}

.cta-section::before {
  content: "KOKO";
  position: absolute;
  right: -0.08em;
  bottom: -0.28em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 20rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  -webkit-text-stroke: 2px rgba(246, 240, 228, 0.18);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.cta-inner h2 {
  margin-bottom: 1rem;
}

.cta-inner p {
  max-width: 48ch;
  color: rgba(246, 240, 228, 0.8);
}

.cta-inner .btn {
  margin-top: 1.8rem;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: var(--ink);
  color: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 240, 228, 0.18);
}

.footer-brand .brand {
  color: var(--paper);
}

.footer-brand .brand-word span {
  color: var(--paper);
}

.footer-brand .brand-word strong {
  color: var(--yellow);
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 1rem;
  color: rgba(246, 240, 228, 0.65);
  font-size: 0.85rem;
}

.footer-col h4 {
  margin-bottom: 0.9rem;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  color: rgba(246, 240, 228, 0.5);
  font-size: 0.72rem;
}

.footer-bottom .mono {
  letter-spacing: 0.04em;
}

.footer-legal {
  max-width: 70ch;
  line-height: 1.6;
}

@media (max-width: 780px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- order page ---------- */

.order-page {
  padding: 2.5rem 0 5rem;
}

.order-head {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.order-head h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.order-head p {
  color: var(--ink-2);
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1.5rem;
  align-items: start;
}

.order-form-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  border-bottom: 2px solid var(--line-strong);
  list-style: none;
}

.step-indicator li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: -2px;
  padding: 0 0 0.9rem;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-indicator li span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.step-indicator li.is-active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.step-indicator li.is-done {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.step-panel h2 {
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}

.step-panel .step-desc {
  margin-bottom: 1.5rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.field .hint {
  color: var(--muted);
  font-size: 0.72rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 0.95rem;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  background: #fff0f0;
  border-color: var(--red);
}

.field-error {
  min-height: 1.1em;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 600;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.5rem 0.7rem;
  background: #fffaf0;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.choice input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--red);
}

.choice input[aria-invalid="true"] + label {
  background: #fff0f0;
  border-color: var(--red);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.package-list {
  display: grid;
  gap: 0.8rem;
}

.package-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.package-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-option-body {
  display: block;
  padding: 1rem 1.1rem;
  background: #fffaf0;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.package-option input:checked + .package-option-body {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.package-option input:focus-visible + .package-option-body {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.package-option-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.package-option-head strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.package-option-price {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.package-option-desc {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-2);
  font-size: 0.8rem;
}

.package-option-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.7rem;
}

.package-option-features li::before {
  content: "✓";
  margin-right: 0.3rem;
  color: var(--green-dark);
  font-weight: 700;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line-strong);
}

.step-actions .btn {
  min-width: 130px;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
}

.field label.consent {
  font-weight: 400;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--red);
  flex: none;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-alert {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #fff0f0;
  border: 2px solid var(--red);
  border-radius: 10px;
  color: var(--red-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-alert.is-visible {
  display: block;
}

.summary-card {
  position: sticky;
  top: 100px;
  padding: 1.2rem;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.order-grid > aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.order-grid .summary-card {
  position: static;
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dotted var(--line-strong);
  font-size: 0.86rem;
}

.summary-row span {
  color: var(--ink-2);
}

.summary-row strong {
  text-align: right;
}

.summary-divider {
  height: 2px;
  margin: 0.4rem 0;
  background: var(--ink);
}

.summary-total {
  padding-top: 1rem;
  border-bottom: none;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.summary-total strong {
  font-size: 1.25rem;
}

.summary-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.summary-device {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-2);
  font-size: 0.78rem;
}

.summary-device strong {
  color: var(--ink);
}

.order-aside-note {
  margin-top: 1.2rem;
  padding: 1.1rem 1.2rem;
  background: rgba(246, 240, 228, 0.62);
  border: 2px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--ink-2);
  font-size: 0.8rem;
  line-height: 1.55;
}

.order-aside-note strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-aside-note ul {
  margin: 0;
  padding-left: 1.1rem;
}

.order-aside-note li {
  margin-bottom: 0.3rem;
}

.order-aside-note li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: 1fr;
  }

  .order-grid > aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .step-indicator li {
    font-size: 0.68rem;
  }

  .step-indicator li span {
    display: none;
  }

  .step-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .step-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .step-actions .btn-ghost {
    width: auto;
    align-self: flex-start;
    padding: 0.45rem 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}

/* ---------- payment ---------- */

.pay-page {
  padding: 2.5rem 0 5rem;
}

.narrow {
  max-width: 720px;
}

.pay-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.demo-ribbon {
  position: absolute;
  top: 1.2rem;
  right: -2.6rem;
  padding: 0.35rem 3.2rem;
  background: var(--yellow);
  border-block: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: rotate(35deg);
}

.pay-card h1 {
  margin: 0.8rem 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.pay-card > p {
  color: var(--ink-2);
  font-size: 0.94rem;
}

.pay-receipt {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  background: #fffaf0;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
}

.pay-receipt .summary-row:last-child {
  border-bottom: none;
}

.pay-amount {
  margin: 0.4rem 0;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.pay-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.pay-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
  font-size: 0.82rem;
}

.pay-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pay-amount-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 1.5rem 0 1.2rem;
  padding: 1rem 1.1rem;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.pay-amount-box > span {
  flex: 1 1 100%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pay-amount-box strong {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: -0.05em;
}

.pay-steps {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
  counter-reset: pay-step;
}

.pay-steps li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.5;
  counter-increment: pay-step;
}

.pay-steps li::before {
  content: counter(pay-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.qris-frame {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  padding: 1.2rem;
  background: #fffaf0;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
}

.qris-frame img {
  width: min(100%, 320px);
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
}

.qris-merchant {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.pay-upload {
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--line-strong);
}

.pay-upload h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.pay-upload input[type="file"] {
  width: 100%;
  padding: 0.7rem;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.proof-preview {
  margin-top: 0.8rem;
  width: min(100%, 260px);
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.pay-success {
  margin: 1.5rem 0 1rem;
  padding: 1.4rem;
  background: #f1f8ee;
  border: 2px solid var(--green-dark);
  border-radius: 16px;
  text-align: center;
}

.pay-success-badge {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--green-dark);
  border-radius: 4px;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pay-success h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

.pay-success p {
  margin-bottom: 1rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.pay-success .pay-note {
  margin-top: 0.8rem;
  margin-bottom: 0;
  text-align: center;
}

/* ---------- status page ---------- */

.status-page {
  padding: 2.5rem 0 5rem;
}

.status-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.status-head h1 {
  margin: 0.8rem 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.status-head p {
  color: var(--ink-2);
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.status-card {
  margin-bottom: 1.2rem;
  padding: 1.3rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--pending {
  background: #fff3cd;
  color: #8a5a00;
}

.status-badge--active {
  background: #dcefff;
  color: #14548a;
}

.status-badge--done {
  background: #d8f3ec;
  color: var(--green-dark);
}

.status-badge--error {
  background: #ffe0e0;
  color: var(--red-dark);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.order-meta strong {
  color: var(--ink);
}

.timeline {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  margin-left: 0.45rem;
  padding: 0 0 1.2rem 1.7rem;
  border-left: 2px solid var(--line-strong);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.timeline li.is-current::before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.15);
}

.timeline strong {
  display: block;
  font-size: 0.88rem;
}

.timeline span {
  color: var(--muted);
  font-size: 0.72rem;
}

.status-side .summary-card {
  position: static;
}

.help-card {
  padding: 1.2rem;
  background: var(--ink);
  border-radius: 16px;
  color: var(--paper);
}

.help-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.help-card p {
  margin-bottom: 1rem;
  color: rgba(246, 240, 228, 0.7);
  font-size: 0.82rem;
}

.help-card .btn {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
}

.empty-state {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  text-align: center;
}

.empty-state h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.empty-state p {
  margin-bottom: 1.5rem;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- admin ---------- */

.admin-body {
  background: var(--paper-2);
}

.admin-topbar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.admin-topbar .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.admin-topbar .brand-word span {
  color: var(--paper);
}

.admin-topbar .brand-word strong {
  color: var(--yellow);
}

.admin-tag {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(246, 240, 228, 0.3);
  border-radius: 999px;
  color: rgba(246, 240, 228, 0.7);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-logout {
  min-height: 38px;
  margin-left: auto;
  padding: 0.35rem 0.8rem;
  background: transparent;
  border: 2px solid rgba(246, 240, 228, 0.4);
  box-shadow: none;
  color: var(--paper);
  font-size: 0.75rem;
}

.admin-page {
  padding: 2rem 0 4rem;
}

.admin-login {
  max-width: 440px;
  margin: 4rem auto;
  padding: 1.6rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
}

.admin-login h1 {
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.admin-login p {
  margin-bottom: 1.2rem;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.stat-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th {
  padding: 0.8rem 0.9rem;
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr {
  cursor: pointer;
}

.admin-table tbody tr:hover {
  background: #fffaf0;
}

.admin-table .mono {
  font-size: 0.7rem;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.admin-drawer.is-open {
  display: block;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.45);
}

.admin-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 560px);
  padding: 1.4rem;
  background: var(--paper);
  border-left: 2px solid var(--ink);
  box-shadow: -8px 0 0 rgba(20, 33, 61, 0.12);
  overflow-y: auto;
}

.admin-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
}

.admin-drawer-head h2 {
  font-size: 1.4rem;
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1.1rem;
}

.detail-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted var(--line);
  font-size: 0.8rem;
}

.detail-list span {
  color: var(--muted);
}

.detail-list strong {
  text-align: right;
}

.admin-note {
  margin: 1rem 0;
  padding: 0.8rem;
  background: var(--paper-2);
  border: 2px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 0.78rem;
}

.admin-form {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
}

.admin-form h3 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.admin-form select,
.admin-form textarea {
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.6rem 0.7rem;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.admin-form textarea {
  min-height: 80px;
  resize: vertical;
}

@media (max-width: 980px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .admin-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .admin-table {
    display: block;
    min-width: 0;
    font-size: 0.82rem;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .admin-table tbody tr {
    display: block;
    overflow: hidden;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .admin-table tbody tr:hover {
    background: var(--paper);
  }

  .admin-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px dashed var(--line);
  }

  .admin-table tr:last-child td {
    border-bottom: 1px dashed var(--line);
  }

  .admin-table td:last-child {
    border-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .admin-cell {
    min-width: 0;
    text-align: right;
  }

  .admin-table td[colspan] {
    display: block;
    text-align: center;
  }

  .admin-table td[colspan]::before {
    display: none;
  }

  .admin-table td[data-label="Aksi"]::before {
    display: none;
  }

  .admin-table td[data-label="Aksi"] .admin-cell,
  .admin-table td[data-label="Aksi"] .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-drawer-panel {
    width: 100%;
  }
}

/* ---------- legal ---------- */

.legal-page {
  padding: 2.5rem 0 5rem;
}

.legal-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.legal-card h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.legal-card h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink-2);
  font-size: 0.94rem;
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card li {
  margin-bottom: 0.4rem;
}

.legal-card .updated {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

/* ---------- 404 ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 3rem 0;
}

.error-card {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 2.5rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--ink);
  text-align: center;
}

.error-code {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.error-card h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.error-card p {
  margin-bottom: 1.5rem;
  color: var(--ink-2);
}

/* ---------- motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  .marquee-track {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(20, 33, 61, 0.2);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
