/* PULAS v2 - gaya: gelap 3D (rujukan 1), cerah editorial (rujukan 2), detail streetwear (rujukan 3), kaca (rujukan 4). */

/* ---------- Tema ---------- */
:root, [data-theme="dark"] {
  --bg: #0e0e0f;
  --surface: #19191b;
  --surface-hi: #2a2a2d;
  --inner: #141415;
  --card-top: #262628;
  --card-bottom: #151516;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #8d8d94;
  --faint: #55555b;
  --pill: #1f1f21;
  --cta-bg: #ffffff;
  --cta-ink: #0e0e0f;
  --accent: #ffd400;
  --accent-ink: #111111;
  --glass: rgba(26, 26, 28, 0.66);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  --ring: rgba(255, 255, 255, 0.032);
  --spot: rgba(255, 255, 255, 0.075);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --real-bg: rgba(34, 197, 94, 0.16); --real-ink: #86efac;
  --drama-bg: rgba(255, 212, 0, 0.15); --drama-ink: #fde68a;
  --fik-bg: rgba(167, 139, 250, 0.18); --fik-ink: #c4b5fd;
  --hot-bg: rgba(255, 90, 31, 0.18); --hot-ink: #fdba74;
  --danger: #f87171;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f2f1ed;
  --surface: #ffffff;
  --surface-hi: #ffffff;
  --inner: #f5f4f0;
  --card-top: #ffffff;
  --card-bottom: #efeee9;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.18);
  --text: #111111;
  --muted: #6b6b70;
  --faint: #a3a3a8;
  --pill: #ffffff;
  --cta-bg: #111111;
  --cta-ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-line: rgba(255, 255, 255, 0.95);
  --shadow: 0 30px 60px -28px rgba(17, 17, 17, 0.22);
  --shadow-sm: 0 10px 24px -14px rgba(17, 17, 17, 0.25);
  --ring: rgba(17, 17, 17, 0.04);
  --spot: rgba(255, 255, 255, 0.95);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --real-bg: #dcfce7; --real-ink: #166534;
  --drama-bg: #fef3c7; --drama-ink: #854d0e;
  --fik-bg: #ede9fe; --fik-ink: #5b21b6;
  --hot-bg: #ffedd5; --hot-ink: #9a3412;
  --danger: #dc2626;
  color-scheme: light;
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Chakra Petch", "Rajdhani", ui-monospace, monospace;
  --tap: 48px;
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
}

/* ---------- Asas ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: radial-gradient(1100px 560px at 50% -160px, var(--spot), transparent 70%), var(--bg);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
  transition: background-color .25s ease, color .25s ease;
}
@media (min-width: 760px) { body { padding-bottom: 48px; } }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.desktop-only { display: none !important; }
@media (min-width: 760px) { .desktop-only { display: inline-flex !important; } .mobile-only { display: none !important; } }

/* ---------- Top bar + pill nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo sup { font-size: 0.55em; font-weight: 600; margin-left: 1px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.logo-mark svg { width: 15px; height: 15px; fill: var(--accent-ink); }
.pillnav {
  display: none; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--pill); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) { .pillnav { display: flex; } }
.pn {
  padding: 8px 18px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s;
}
.pn:hover { color: var(--text); }
.pn.active { background: var(--surface-hi); color: var(--text); box-shadow: var(--shadow-sm), var(--inset); }
[data-theme="light"] .pn.active { background: #ecebe6; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.round-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--pill); display: grid; place-items: center;
}
.round-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.view { max-width: 1120px; margin: 0 auto; padding: 0 16px 24px; outline: none; }

/* ---------- Dock (phone) ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 7px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}
@media (min-width: 760px) { .dock { display: none; } }
.dock a {
  height: 52px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; color: var(--muted);
  font-weight: 700; font-size: 13px; white-space: nowrap;
}
.dock a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock a.active { background: var(--cta-bg); color: var(--cta-ink); }
.dock a.dock-main { width: 58px; height: 58px; padding: 0; justify-content: center; background: var(--accent); color: var(--accent-ink); }
.dock a.dock-main svg { width: 26px; height: 26px; fill: var(--accent-ink); stroke: none; }
.dock a.dock-main.active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* ---------- Teks utama ---------- */
.kicker {
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
}
.kicker .chev { letter-spacing: -0.1em; color: var(--faint); }
.display {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95;
  font-size: clamp(46px, 12vw, 104px); margin: 18px 0 18px;
}
.display em, .title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em;
}
.display em { font-size: 1.06em; }
.title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(32px, 8vw, 52px); margin: 0 0 10px;
}
.title em { font-size: 1.08em; }
.lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); line-height: 1.55; max-width: 620px; margin: 0 auto; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.mono { font-family: var(--mono); letter-spacing: 0.08em; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; text-align: center; padding: 34px 0 10px; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: 1500px; height: 900px;
  transform: translateX(-50%);
  background: repeating-radial-gradient(circle at 50% 0, transparent 0 68px, var(--ring) 68px 70px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 25%, transparent 68%);
  mask-image: radial-gradient(ellipse at 50% 10%, #000 25%, transparent 68%);
  pointer-events: none;
}
.proof { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; }
.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 13px; color: #111;
  border: 2px solid var(--bg); margin-left: -9px;
}
.avatar:first-child { margin-left: 0; }
.avatar.more { background: var(--surface-hi); color: var(--text); }
.proof-text { text-align: left; font-size: 12px; line-height: 1.35; color: var(--muted); }
.proof-text b { color: var(--text); font-size: 13px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 9px 16px; border-radius: 999px; background: var(--pill); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.wide-only { display: none; }
@media (min-width: 520px) { .wide-only { display: inline; } }
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px;
  color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.barcode {
  width: 92px; height: 22px; opacity: 0.7;
  background: repeating-linear-gradient(90deg,
    var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px,
    var(--text) 8px 11px, transparent 11px 12px, var(--text) 12px 13px, transparent 13px 16px);
}

/* Kad kaca terapung (desktop) */
.float-card {
  display: none; position: absolute; width: 230px; text-align: left; padding: 16px;
  border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  font-size: 13px; color: var(--muted);
}
.float-card b { display: block; color: var(--text); font-size: 16px; font-family: var(--display); letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0 4px; }
.float-card .mono { font-size: 10px; text-transform: uppercase; color: var(--faint); }
.float-card::after {
  content: ""; position: absolute; width: 120px; height: 70px; border: 1px solid var(--line-strong);
  border-top: 0; pointer-events: none;
}
.float-card::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--text);
}
.fc-left { left: 0; top: 150px; transform: rotate(-4deg); }
.fc-left::after { left: 60%; top: 100%; border-right: 0; border-radius: 0 0 0 40px; width: 140px; }
.fc-left::before { left: calc(60% + 136px); top: calc(100% + 66px); }
.fc-right { right: 0; top: 230px; transform: rotate(4deg); }
.fc-right::after { right: 60%; top: 100%; border-left: 0; border-radius: 0 0 40px 0; width: 140px; }
.fc-right::before { right: calc(60% + 136px); top: calc(100% + 66px); }
@media (min-width: 1100px) { .float-card { display: block; } }

/* ---------- Pill buttons ---------- */
.btn, .pill-btn {
  min-height: var(--tap); padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--pill); color: var(--text);
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: transform .12s ease, background .2s ease;
}
.btn:active, .pill-btn:active { transform: scale(0.98); }
.btn svg, .pill-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary, .pill-cta { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); }
.btn-hot, .pill-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-hot svg, .pill-accent svg, .pill-cta svg.fill, .btn-primary svg.fill { fill: currentColor; stroke: none; }
.btn-ghost, .pill-ghost { background: transparent; border-color: var(--line-strong); }
.btn-danger { color: var(--danger); background: transparent; border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-block { width: 100%; }
.btn-xl { min-height: 62px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.btn-xl svg { width: 22px; height: 22px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line);
  background: var(--pill); display: inline-grid; place-items: center; flex: none;
}
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.listening { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(255, 212, 0, 0); } }

/* ---------- Kad feature 3D (rujukan 1) ---------- */
.features {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 26px -16px 8px; padding: 82px 16px 18px;
}
.features::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
  .features { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 34px 0 10px; padding: 86px 0 10px; gap: 24px; }
}
.feature {
  position: relative; scroll-snap-align: center; text-align: center;
  border-radius: var(--r-xl); padding: 108px 8px 8px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--line); box-shadow: var(--shadow), var(--inset);
  display: flex; flex-direction: column;
}
.feature .obj {
  position: absolute; left: 50%; top: -70px; width: 176px; height: 176px; transform: translateX(-50%);
  pointer-events: none; transition: transform .35s ease;
}
.feature:hover .obj { transform: translateX(-50%) translateY(-6px) rotate(-3deg); }
.feature .inner {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  background: var(--inner); border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--inset), 0 -14px 30px -18px rgba(0, 0, 0, 0.5); padding: 20px 18px 16px;
}
.feature .mono { font-size: 11px; color: var(--faint); text-transform: uppercase; }
.feature h3 { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; margin: 6px 0 8px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 14px; max-width: 280px; }
.feature .more {
  margin-top: auto; min-height: 44px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px;
  color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.feature .more:hover { color: var(--text); }
.feature .more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Panel ---------- */
.panel, .card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 24px 18px; margin: 0 0 18px; box-shadow: var(--shadow-sm), var(--inset);
}
@media (min-width: 760px) { .panel, .card { padding: 30px 30px; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.h { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-size: 22px; margin: 0 0 4px; }
.label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 20px 0 9px; }
.label small { color: var(--muted); font-weight: 500; }
.label .n { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }
.stack > * + * { margin-top: 10px; }
.page-head { text-align: center; padding: 30px 0 22px; position: relative; isolation: isolate; }
.page-head .lead { font-size: 16px; }
.section-gap { margin-top: 26px; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 980px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--pill); color: var(--text);
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); }
.chip[disabled] { opacity: 0.35; cursor: not-allowed; }
.chip small { font-weight: 500; opacity: 0.65; }
.chip .ltr {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--inner); border: 1px solid var(--line); border-radius: 999px; padding: 5px; gap: 4px; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--surface-hi); color: var(--text); box-shadow: var(--shadow-sm), var(--inset); }

/* ---------- Input ---------- */
.input, .textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--inner); color: var(--text); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.textarea.short { min-height: 80px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus { border-color: var(--line-strong); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.with-mic { position: relative; }
.with-mic .textarea { padding-right: 64px; }
.with-mic .icon-btn { position: absolute; right: 8px; bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field-hint { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Pemilih cerita ---------- */
.picker { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.picker::-webkit-scrollbar { display: none; }
.pick {
  flex: none; width: 220px; scroll-snap-align: start; text-align: left;
  border: 1.5px solid var(--line); background: var(--inner); border-radius: var(--r-md);
  padding: 14px; min-height: 112px; transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.pick[aria-pressed="true"] { border-color: var(--text); background: var(--surface-hi); box-shadow: var(--shadow-sm); }
.pick b { display: block; font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 4px; }
.pick span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* ---------- Hasil (output) ---------- */
.output { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.output::before, .output::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--text); opacity: 0.35; pointer-events: none;
}
.output::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.output::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--inner); color: var(--text); border: 1px solid var(--line); white-space: nowrap;
}
.badge.real { background: var(--real-bg); color: var(--real-ink); border-color: transparent; }
.badge.drama { background: var(--drama-bg); color: var(--drama-ink); border-color: transparent; }
.badge.fiksyen { background: var(--fik-bg); color: var(--fik-ink); border-color: transparent; }
.result { font-size: 16px; overflow-wrap: anywhere; }
.result h1, .result h2, .result h3, .result h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.2; margin: 22px 0 8px; }
.result h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.result h3 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.result h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.result h4 { font-size: 16px; font-weight: 700; }
.result p { margin: 8px 0; }
.result ul, .result ol { margin: 8px 0; padding-left: 22px; }
.result li { margin: 5px 0; }
.result li::marker { color: var(--faint); }
.result strong { font-weight: 700; }
.result blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--inner); border-radius: 0 12px 12px 0; }
.result hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 20px 0; }
.result code { background: var(--inner); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.result pre { background: var(--inner); padding: 12px; border-radius: 12px; overflow-x: auto; font-size: 13px; }
.result > :first-child { margin-top: 0; }

/* Lakaran storyboard: kertas putih, bingkai hitam */
.sb-frame { margin: 12px 0 14px; display: flex; justify-content: center; }
.sb-frame img, .sb-frame .sb-wait {
  width: 100%; max-width: 200px; aspect-ratio: 9 / 16; border-radius: 14px;
  background: #fff; border: 3px solid #111; box-shadow: var(--shadow);
}
.sb-wait { display: grid; place-items: center; color: #555; font-weight: 700; font-size: 14px; background: repeating-linear-gradient(45deg, #fafafa 0 10px, #f0f0f0 10px 20px) !important; }

.loader { display: flex; align-items: center; gap: 14px; padding: 18px 4px; color: var(--muted); font-weight: 600; }
.rev { width: 52px; height: 30px; flex: none; }
.rev .track { stroke: var(--line-strong); }
.rev .needle { transform-origin: 26px 26px; animation: rev 1.1s ease-in-out infinite alternate; }
@keyframes rev { from { transform: rotate(-70deg); } to { transform: rotate(70deg); } }
.cursor::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.error-box { background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); padding: 12px 14px; border-radius: var(--r-md); font-weight: 600; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.actions .wide { grid-column: 1 / -1; }
.next-steps { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.next-steps p { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Feed ---------- */
.feed-item { border-top: 1px solid var(--line); }
.feed-item:first-of-type { border-top: 0; }
.feed-btn { width: 100%; background: none; border: 0; text-align: left; padding: 14px 2px; display: flex; gap: 12px; align-items: center; min-height: 64px; }
.feed-btn .meta { flex: 1; min-width: 0; }
.feed-btn b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-btn span { color: var(--muted); font-size: 13px; }
.feed-btn .chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; flex: none; }
.feed-item.open .chev { transform: rotate(90deg); }
.feed-body { padding: 0 2px 18px; }

/* ---------- Story Bank ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .input { flex: 1; border-radius: 999px; padding-left: 20px; background: var(--pill); }
.layout-switch { display: inline-flex; background: var(--pill); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex: none; }
.layout-switch button { width: 44px; height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.layout-switch button[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-ink); }
.layout-switch svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 4px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .chip { flex: none; }
.count { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin: 4px 0 12px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.story-card {
  text-align: left; width: 100%; border-radius: var(--r-lg); padding: 18px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--line); box-shadow: var(--shadow-sm), var(--inset);
  display: flex; flex-direction: column; gap: 8px; min-height: 160px; transition: transform .15s;
}
.story-card:hover { transform: translateY(-2px); }
.story-card .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.story-card b { font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; line-height: 1.25; }
.story-card .gear { color: var(--muted); font-size: 13px; font-weight: 500; }
.story-card .excerpt { font-size: 14px; line-height: 1.5; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-row { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 18px; min-height: 64px; background: none; border: 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .meta { flex: 1; min-width: 0; }
.list-row b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row span { color: var(--muted); font-size: 13px; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 84%); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
@media (min-width: 900px) { .board { grid-auto-columns: minmax(240px, 1fr); } }
.lane { background: var(--inner); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; scroll-snap-align: start; min-height: 220px; }
.lane h3 { margin: 2px 4px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; color: var(--muted); }
.lane .story-card { min-height: 0; margin-bottom: 10px; }

.status-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st-Mentah { background: var(--inner); color: var(--muted); border: 1px solid var(--line); }
.st-DahPulas { background: var(--drama-bg); color: var(--drama-ink); }
.st-DahShoot { background: var(--hot-bg); color: var(--hot-ink); }
.st-DahPost { background: var(--real-bg); color: var(--real-ink); }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--inner); color: var(--muted); border: 1px solid var(--line); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

/* ---------- Sheet (kaca) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 30px 30px 0 0; border: 1px solid var(--line);
  padding: 8px 18px calc(26px + env(safe-area-inset-bottom));
  animation: up .24s ease-out; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .sheet-panel { bottom: 24px; border-radius: 30px; max-height: calc(100vh - 48px); padding: 10px 28px 28px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.facts { display: grid; grid-template-columns: 1fr; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--inner); }
@media (min-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } .fact.full { grid-column: 1 / -1; } }
.fact { padding: 11px 14px; border-top: 1px solid var(--line); }
.fact dt { color: var(--faint); font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.fact dd { margin: 3px 0 0; white-space: pre-wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--cta-bg); color: var(--cta-ink); font-weight: 700; padding: 12px 20px; border-radius: 999px;
  transition: all .2s ease; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .toast { bottom: 32px; } }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Pulas Je v3: butang besar, slot idea, chat WA, A4, kongsi ---------- */
.dock a.dock-home svg { fill: currentColor; stroke: none; }
.dock a { padding: 0 20px; }

.ask { margin: 22px auto 0; max-width: 760px; text-align: center; }
.ask-box { text-align: left; }
.ask summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px dashed var(--line-strong);
  color: var(--muted); font-weight: 600; font-size: 14px; background: transparent;
}
.ask summary::-webkit-details-marker { display: none; }
.ask[open] summary { color: var(--text); border-style: solid; }
.ask-box { margin-top: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ask-tools { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ask-tools .btn { min-height: 44px; font-size: 14px; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 13px; line-height: 1; }
.ask-centre { display: flex; justify-content: center; }

.tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 66px 12px;
  margin: 70px 0 10px;
}
.tiles .tile.hot { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 84px; }
  .tiles .tile.hot { grid-column: auto; }
}
.wa-inline { max-width: 320px; margin: 14px 0 18px; }

/* ---------- Cakap dulu (voice-first) ---------- */
.talk { margin: 26px auto 0; max-width: 680px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mic-big {
  position: relative; width: 112px; height: 112px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 28%, #fff27a, var(--accent) 55%, #d6a400);
  color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 18px 40px -12px rgba(255, 212, 0, 0.55), inset 0 2px 0 rgba(255,255,255,.6);
  transition: transform .15s ease;
}
.mic-big:active { transform: scale(0.96); }
.mic-big svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.mic-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.mic-big.listening { background: radial-gradient(circle at 35% 28%, #ff9a6b, var(--hot) 60%, #c33d0c); color: #fff; animation: none; }
.mic-big.listening .mic-ring { animation: ripple 1.4s ease-out infinite; border-color: var(--hot); }
@keyframes ripple { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.talk-label { margin: 12px 0 0; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.talk-sub { margin: 0 0 8px; color: var(--muted); font-size: 14px; max-width: 460px; }
.talk-sub b { color: var(--text); font-weight: 600; }
.talk-box { width: 100%; text-align: left; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.meter { display: flex; align-items: center; gap: 10px; margin: 10px 2px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.meter .bars { display: inline-flex; gap: 4px; }
.meter .bars i { width: 22px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.meter[data-level="1"] .bars i:nth-child(-n+1),
.meter[data-level="2"] .bars i:nth-child(-n+2) { background: var(--accent); }
.meter[data-level="3"] .bars i { background: var(--hot); }
.meter[data-level="3"] { color: var(--text); }

.tips-row { display: grid; gap: 14px; margin-top: 6px; }
@media (min-width: 760px) { .tips-row { grid-template-columns: repeat(3, 1fr); } }
.tips-row div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-md); background: var(--inner); border: 1px solid var(--line); }
.tips-row b { font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; }
.tips-row span { color: var(--muted); font-size: 14px; }
.tile {
  position: relative; text-align: center; cursor: pointer; color: var(--text);
  border-radius: var(--r-xl); padding: 78px 6px 6px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--line); box-shadow: var(--shadow), var(--inset);
  display: flex; flex-direction: column; transition: transform .15s ease;
}
.tile:active { transform: scale(0.98); }
.tile:disabled { opacity: .55; cursor: wait; }
.tile .obj {
  position: absolute; left: 50%; top: -52px; width: 124px; height: 124px; transform: translateX(-50%);
  pointer-events: none; transition: transform .3s ease;
}
.tile:hover .obj { transform: translateX(-50%) translateY(-5px) rotate(-4deg); }
.tile .inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--inner); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--inset), 0 -12px 26px -18px rgba(0,0,0,.5); padding: 14px 10px 14px;
}
.tile .mono { font-size: 10px; color: var(--faint); text-transform: uppercase; }
.tile b { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1.1; }
.tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tile.hot .inner { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile.hot small, .tile.hot .mono { color: rgba(17,17,17,.7); }
.tiles-hint { text-align: center; color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 22px; }

.src { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.src-review { background: var(--real-bg); color: var(--real-ink); }
.src-staff { background: var(--fik-bg); color: var(--fik-ink); }

.quick-add { display: grid; gap: 10px; }
.quick-add .row-end { display: flex; justify-content: flex-end; }

.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 6px 0 4px; }
.wa-item { display: flex; flex-direction: column; gap: 8px; }
.wa-item img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #0b1510; }
.wa-item .btn { min-height: 42px; font-size: 13px; }
.wa-title { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.seg.mini { display: inline-grid; grid-template-columns: auto auto; padding: 4px; margin-bottom: 12px; }
.seg.mini button { min-height: 36px; padding: 0 14px; font-size: 13px; }

.a4-wrap { display: flex; justify-content: center; margin: 6px 0 4px; }
.a4-wrap img { width: 100%; max-width: 560px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.a4-wait { width: 100%; max-width: 560px; aspect-ratio: 210 / 297; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-weight: 600; background: var(--inner); border: 1px dashed var(--line-strong); }
details.more { margin-top: 14px; border-top: 1px dashed var(--line-strong); padding-top: 10px; }
details.more summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; min-height: 40px; display: flex; align-items: center; }

.shared-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }

/* ---------- Cetak ---------- */
@media print {
  body { background: #fff; color: #111; padding: 0; }
  .topbar, .dock, .no-print, .sheet, .toast, .hero, .features, .feed-card { display: none !important; }
  .panel, .card { border: 0; padding: 0; background: #fff; box-shadow: none; }
  .output::before, .output::after { display: none; }
  .result, .result strong { color: #111; }
  .sb-frame { break-inside: avoid; }
}
