/* Global styles */

:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  padding: 0;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #fff;
  color: #000;
}
body::before {
  position: fixed;
  z-index: 200;
  inset: 0;
  background: var(--bg);
  content: "";
  pointer-events: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
}
body.page-leaving::before {
  animation: page-wipe 0.55s cubic-bezier(0.8, 0, 0.2, 1) both;
}
@keyframes page-wipe {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }
  45%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}
/* Tombol Back / Forward: browser tidak memberi kesempatan animasi keluar, jadi wipe dimainkan sebagai animasi MASUK
   (layar tertutup lalu terbuka ke atas). Kelas is-arriving dipasang BaseLayout sebelum halaman pertama kali digambar. */
html.is-arriving body::before {
  transform-origin: top;
  animation: page-reveal 0.75s cubic-bezier(0.8, 0, 0.2, 1) both;
}
@keyframes page-reveal {
  0%,
  15% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 1;
    transform: scaleY(0);
  }
}
img {
  max-width: 100%;
}
[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}

/* Layout: one full-bleed LED dot board (the Indonesian "teks berjalan" sign) holds the name and the
   scrolling service ticker; a gradient spotlight follows the pointer. Headline and copy sit below it. */
:root {
  --bg: #fbfdfd;
  --fg: #08171e;
  --muted: #4f646b;
  --line: #d6e2e5;
  --line-strong: #8ea7ae;
  --dot-off: #dae5e8;
  --dim: #c4d4d8;
  --blue: #0f9fd2;
  --teal: #29acb4;
  --green: #81da52;
  --on-brand: #04161c;
  --show-sun: inline;
  --show-moon: none;
  --core-s: 1;
  --cut-x: 0px;
  --rays-s: 1;
  --rays-r: 0deg;
  --ico-r: 0deg;
  --f: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
:root[data-theme="dark"] {
  --bg: #040a0c;
  --fg: #ecf6f5;
  --muted: #8ea6ad;
  --line: #1b2b30;
  --line-strong: #4d676f;
  --dot-off: #14232a;
  --dim: #1f3138;
  --on-brand: #04161c;
  --show-sun: none;
  --show-moon: inline;
  --core-s: 1.7;
  --cut-x: -9px;
  --rays-s: 0;
  --rays-r: -45deg;
  --ico-r: 40deg;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--f);
  padding-block: 76px 0px;
  padding-inline: var(--gutter);
  overflow-x: hidden;
  transition:
    background-color 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wrap {
  max-width: 1360px;
  margin-inline: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.label {
  font-weight: 600;
  font-stretch: 75%;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Global styles continued */

/* reveal on scroll (only when script runs and motion is allowed) */
.js .rv .line {
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .rv.in .line {
  transform: none;
}
.js .svc-row.rv:not(.in)::after {
  transform: scaleX(0);
}
.js .rv .svc-meta,
.js .rv.fade {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s 0.35s,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}
.js .rv.in .svc-meta,
.js .rv.fade.in {
  opacity: 1;
  transform: none;
}

.js .collage:not(.in) .ph {
  clip-path: inset(100% 0 0 0);
}
.js .collage:not(.in) .ph-media img {
  transform: scale(1.18);
}
.js .collage:not(.in) .c-label,
.js .collage:not(.in) .c-intro {
  opacity: 0;
}
.c-label,
.c-intro {
  transition: opacity 0.9s 0.1s;
}
@keyframes float {
  from {
    transform: translateY(-6px) rotate(-0.4deg);
  }
  to {
    transform: translateY(8px) rotate(0.4deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}
::view-transition-new(root) {
  animation: theme-reveal 0.76s cubic-bezier(0.7, 0, 0.2, 1) both;
}
@keyframes theme-reveal {
  from {
    clip-path: circle(0 at var(--theme-x, 50%) var(--theme-y, 50%));
  }
  to {
    clip-path: circle(150% at var(--theme-x, 50%) var(--theme-y, 50%));
  }
}
@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
  ::view-transition-new(root) {
    animation: none;
  }
}

@media (max-width: 900px) {
  .collage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .c-label,
  .c-intro {
    position: static;
    width: auto;
  }
  .ph {
    position: relative;
    left: auto;
    top: auto;
    width: min(80%, 380px);
    translate: none;
  }
  .ph.a {
    align-self: flex-start;
  }
  .ph.b {
    align-self: flex-end;
  }
  .ph.c {
    align-self: flex-start;
    margin-left: 8%;
  }
  .svc-title,
  .svc-meta {
    grid-column: 1 / -1;
  }
  .svc-meta {
    padding-bottom: 0;
  }
  .mrow {
    grid-template-columns: 2.2em minmax(0, 1fr);
  }
  .marr {
    display: none;
  }
  .mtxt {
    font-size: clamp(38px, 11vw, 56px);
  }
}
@media (max-width: 560px) {
  .menu-in {
    gap: 28px;
  }
  .menu-in::before {
    font-size: 9px;
  }
  .mrow {
    grid-template-columns: minmax(0, 1fr) 24px;
    padding-block: 14px;
  }
  .mmeta {
    font-size: 12px;
  }
  .mcard {
    min-height: 104px;
  }
  .mc-body {
    bottom: 14px;
    left: 14px;
    right: 14px;
  }
  .mc-t {
    font-size: 16px;
  }
  .blabel {
    display: none;
  }
  .burger {
    padding: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Arkala — Waitlist modal & etalase beranda (Part 3) */
.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 10, 12, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.wl-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.wl-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(8, 23, 30, 0.45);
  padding: 28px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.25s ease;
}
.wl-overlay.is-open .wl-panel {
  transform: none;
}
.wl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wl-close:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}
.wl-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.wl-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  padding-right: 40px;
}
.wl-title .wl-prod {
  color: var(--blue);
}
.wl-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 18px;
}
.wl-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.wl-field small {
  font-weight: 500;
}
.wl-field input,
.wl-field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
}
.wl-field input:focus,
.wl-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(41, 172, 180, 0.18);
}
.wl-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.wl-ts {
  min-height: 0;
  margin: 4px 0 0;
}
.wl-msg {
  min-height: 18px;
  font-size: 12.5px;
  margin: 8px 0 0;
}
.wl-msg[data-kind='err'] {
  color: #c2452d;
}
.wl-msg[data-kind='ok'] {
  color: #2f7d32;
}
.wl-submit {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.wl-submit:hover {
  opacity: 0.9;
}
.wl-submit:disabled {
  opacity: 0.55;
  cursor: default;
}
.wl-fine {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.wl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 320;
  max-width: min(92vw, 480px);
  background: var(--fg);
  color: var(--bg);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  box-shadow: 0 16px 40px -12px rgba(8, 23, 30, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wl-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.wl-locked {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .wl-overlay,
  .wl-panel,
  .wl-toast {
    transition: none;
  }
}

/* Etalase beranda (featured) */
.he-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.he-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.he-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.he-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px -16px rgba(8, 23, 30, 0.3);
  transform: translateY(-2px);
}
.he-name {
  font-size: 15px;
  font-weight: 650;
}
.he-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
}
.he-all {
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.he-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

/* Modal waitlist ringkas di viewport pendek (tombol utama tetap terlihat) */
@media (max-height: 720px) {
  .wl-panel { padding: 20px; }
  .wl-title { font-size: 18px; margin-bottom: 6px; }
  .wl-sub { font-size: 13px; margin-bottom: 12px; }
  .wl-field { margin-bottom: 8px; }
  .wl-submit { margin-top: 10px; padding: 11px 16px; }
  .wl-fine { margin-top: 8px; }
}

/* Footer modal sticky: tombol submit selalu terlihat tanpa scroll */
.wl-panel {
  display: flex;
  flex-direction: column;
}
.wl-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.wl-foot {
  position: sticky;
  bottom: 0;
  flex: none;
  background: var(--bg);
  padding-top: 10px;
  margin-top: 2px;
}

/* Contextual Product Card (article -> product CTA, dari Admin HQ) */
.cta-card {
  margin: 28px auto 0;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--teal) 6%, transparent);
}
.cta-card .cta-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cta-card .cta-text b { font-size: 14.5px; color: var(--fg); }
.cta-card .cta-text span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cta-card .cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.cta-card .cta-btn:hover { filter: brightness(1.06); }
@media (max-width: 560px) {
  .cta-card { flex-direction: column; align-items: stretch; }
}
