/* Layout: halaman = badan rice cooker Kom. Latar enamel putih-biru bermotif bunga,
   panel layar navy dengan teks LED, tombol bulat ala COOK/WARM. Satu kolom, satu halaman. */
:root {
  --enamel: #f2f5fa;      /* badan Kom */
  --enamel-2: #e6edf6;
  --flower: #c3d4ea;      /* motif bunga biru */
  --flower-dk: #5d80b3;
  --panel: #19203d;       /* layar Kom */
  --panel-2: #232b4f;
  --led: #7fe3f0;         /* LED cyan */
  --cook: #e2553a;        /* lampu COOK merah-oranye, juga kaos Jalu */
  --warm: #f2b632;        /* lampu WARM */
  --ink: #19203d;
  --ink-2: #56607c;
  --paper: #fffdf8;       /* kertas struk */

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-led: "VT323", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-lg: 30px;
  --r-md: 18px;
  --lift: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -22px rgba(25,32,61,.45), 0 2px 6px rgba(25,32,61,.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--enamel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23d6e2f1'%3E%3Cg transform='translate(36 40)'%3E%3Ccircle cx='0' cy='-9' r='7'/%3E%3Ccircle cx='8.6' cy='-2.8' r='7'/%3E%3Ccircle cx='5.3' cy='7.3' r='7'/%3E%3Ccircle cx='-5.3' cy='7.3' r='7'/%3E%3Ccircle cx='-8.6' cy='-2.8' r='7'/%3E%3C/g%3E%3Cg transform='translate(118 112) scale(.6)'%3E%3Ccircle cx='0' cy='-9' r='7'/%3E%3Ccircle cx='8.6' cy='-2.8' r='7'/%3E%3Ccircle cx='5.3' cy='7.3' r='7'/%3E%3Ccircle cx='-5.3' cy='7.3' r='7'/%3E%3Ccircle cx='-8.6' cy='-2.8' r='7'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23f2f5fa'%3E%3Ccircle cx='36' cy='40' r='3.4'/%3E%3Ccircle cx='118' cy='112' r='2.1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flower-dk); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 560px; margin: 0 auto; padding-block: 0 56px; display: flex; flex-direction: column; gap: 44px; }

h1, h2 { font-family: var(--f-display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.5px; }
h1 { font-size: clamp(30px, 8.2vw, 42px); line-height: 1.08; }
h2 { font-size: clamp(22px, 5.8vw, 27px); line-height: 1.15; }
h3 { font-family: var(--f-display); font-weight: 600; font-size: 16px; margin: 0; letter-spacing: -0.2px; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec > header { display: flex; flex-direction: column; gap: 8px; }

/* Label LED kecil */
.led-label { font-family: var(--f-led); font-size: 19px; letter-spacing: 1px; color: var(--flower-dk); line-height: 1; text-transform: uppercase; }

/* Header lengket */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--enamel); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(242, 245, 250, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--enamel-2);
}
.top .in { max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 15px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.top-cta {
  text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  background: var(--panel); color: var(--led); white-space: nowrap;
}

/* Hero */
.hero { display: flex; flex-direction: column; gap: 18px; padding-top: 26px; }
.hero h1 em { font-style: normal; color: var(--cook); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 32em; }

/* Panel layar Kom */
.screen {
  background: var(--panel); color: #e9eefc; border-radius: var(--r-lg); padding: 14px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--enamel-2), 0 28px 50px -28px rgba(25,32,61,.7);
  display: flex; flex-direction: column; gap: 12px;
}
.screen-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-led); font-size: 18px; color: var(--led); padding: 2px 6px 0; }
.screen-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--led); margin-right: 6px; box-shadow: 0 0 8px var(--led); }
.player { border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; max-height: 70vh; max-width: 100%; margin-inline: auto; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.prompt { font-family: var(--f-led); font-size: 22px; line-height: 1.15; color: var(--led); padding: 4px 6px 8px; }
.prompt span { display: block; font-size: 16px; color: #9aa6cf; margin-bottom: 4px; }

/* Tombol panel bulat */
.knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.knob {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; border-radius: 999px; padding: 10px 18px 10px 10px; box-shadow: var(--lift);
  font-weight: 700; font-size: 15px; line-height: 1.2;
}
.knob i {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--enamel-2);
  display: grid; place-items: center; box-shadow: inset 0 2px 4px rgba(25,32,61,.15);
}
.knob i::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cook); box-shadow: 0 0 10px var(--cook); }
.knob.warm i::after { background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.knob small { display: block; font-family: var(--f-led); font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: .5px; }
.knob:hover i::after { transform: scale(1.15); }

/* Timeline adegan */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.scene { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scene .shot { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 9 / 13; max-width: 100%; box-shadow: var(--lift); background: var(--panel); }
.scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.scene .tc { font-family: var(--f-led); font-size: 18px; color: var(--flower-dk); line-height: 1; }
.scene p { font-size: 14px; line-height: 1.4; }
@media (min-width: 560px) { .reel { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }

/* Serial */
.series { display: flex; flex-direction: column; gap: 12px; }
.serie {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center;
  background: #fff; border-radius: var(--r-md); padding: 10px; box-shadow: var(--lift);
}
.serie .clip { border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 14; max-width: 100%; background: var(--panel); }
.serie video { width: 100%; height: 100%; object-fit: cover; }
.serie div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 6px; }
.serie p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.serie .stat { font-family: var(--f-led); font-size: 18px; color: var(--cook); line-height: 1.1; }

/* Galeri 6 gaya */
.styles6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.styles6 figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.styles6 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: var(--lift); background: #fff; }
.styles6 figcaption { font-size: 13px; font-weight: 700; line-height: 1.25; }

/* Pilih porsi */
.order { background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 16px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--enamel-2); padding: 6px; border-radius: 999px; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode label {
  display: flex; flex-direction: column; align-items: center; gap: 0; cursor: pointer; text-align: center;
  padding: 10px 8px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.mode label small { font-family: var(--f-body); font-weight: 600; font-size: 12px; }
.mode input:checked + label { background: var(--panel); color: var(--led); }
.mode input:focus-visible + label { outline: 3px solid var(--flower-dk); outline-offset: 2px; }

.display {
  background: var(--panel); border-radius: var(--r-md); padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--f-led); color: var(--led);
}
.display .lbl { font-size: 18px; color: #9aa6cf; }
.display output { font-size: 44px; line-height: 1; text-shadow: 0 0 12px rgba(127,227,240,.45); font-variant-numeric: tabular-nums; }

.struk { background: var(--paper); border: 1.5px dashed #c9cfdc; border-radius: 12px; padding: 14px 16px; }
.struk ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.struk li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.struk li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--flower-dk); }
.struk li.plus::before { background: var(--cook); }
.struk li span { min-width: 0; }
.struk .for { font-size: 13.5px; color: var(--ink-2); border-top: 1.5px dashed #c9cfdc; margin-top: 12px; padding-top: 10px; }

.btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; text-decoration: none;
  background: var(--cook); color: #fff; border-radius: 999px; padding: 15px 22px;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.15;
  box-shadow: 0 10px 22px -10px rgba(226,85,58,.8);
  transition: transform .12s ease;
}
.btn small { font-family: var(--f-body); font-weight: 600; font-size: 12.5px; opacity: .9; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.navy { background: var(--panel); color: var(--led); box-shadow: 0 10px 22px -12px rgba(25,32,61,.9); }
.note { font-size: 13px; color: var(--ink-2); text-align: center; }

/* FAQ sebagai chat */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.msg b { display: block; font-family: var(--f-led); font-weight: 400; font-size: 16px; letter-spacing: .5px; line-height: 1; margin-bottom: 4px; }
.msg.q { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: var(--lift); font-weight: 600; }
.msg.q b { color: var(--cook); }
.msg.a { align-self: flex-end; background: var(--panel); color: #e9eefc; border-bottom-right-radius: 6px; }
.msg.a b { color: var(--led); }
.thread .gap { height: 6px; }

/* Fariz */
.owner {
  background: var(--panel); color: #e9eefc; border-radius: var(--r-lg); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.owner .led-label { color: var(--led); }
.owner h2 { color: #fff; }
.owner p { color: #c3cbe6; }
.owner .num { font-family: var(--f-led); font-size: 24px; color: var(--led); user-select: all; }
.owner .btn { background: var(--led); color: var(--panel); box-shadow: none; }

footer { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
footer a { font-weight: 700; }
footer .led-label { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mode label { transition: none; }
}
