/* The AI model pages (public/ai-models/, built by scripts/build-model-pages.mjs).
   Tokens, nav, buttons, FAQ and footer match landing.html. */
/* Page and box colours are the models page's (models.html). */
:root {
  --bg: #07090d;
  --bg-soft: #0b0f14;
  --raised: #1a222d;
  --card: #0f141b;
  --card-hover: #121923;
  --border: #1d2632;
  --border-soft: #151c25;
  --text: #f2f5f7;
  --muted: #9aa7b4;
  --faint: #5d6b7a;
  --accent: #00726f;
  --accent-hover: #005f5c;
  --accent-soft: rgba(0, 114, 111, .12);
  --green: #5fb37a;
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --bg-soft: #eef0f3; --raised: #ffffff; --card: #ffffff; --card-hover: #fbfcfd; --border: #d9dde3; --border-soft: #e5e8ec;
  --text: #14171c; --muted: #5a6370; --faint: #8b939e; --green: #2e8b57;
  --accent-soft: rgba(0, 114, 111, .1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(70vw 340px at 50% 0, rgba(3, 211, 199, .09), transparent 70%) no-repeat, var(--bg);
  color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
nav.scrolled, nav:has(.nav-links.open) { backdrop-filter: blur(14px); background: rgba(7, 9, 13, .78); border-bottom-color: var(--border-soft); }
:root[data-theme="light"] nav.scrolled, :root[data-theme="light"] nav:has(.nav-links.open) { background: rgba(246, 247, 249, .82); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-logo { height: 36px; width: auto; display: block; }
:root[data-theme="light"] .brand-logo { content: url(../img/pilih-ai-logo-light.svg); }
.nav-links { display: flex; gap: 24px; margin-left: 12px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang-switch button { background: transparent; border: 0; color: var(--muted); padding: 7px 13px; cursor: pointer; font: inherit; }
.lang-switch button.active { background: var(--raised); color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 7px 10px; cursor: pointer; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; border-radius: 10px; padding: 11px 22px;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s, background .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn[hidden] { display: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- Shared section bits ---------- */
section.block { padding: 88px 0; }
section.alt { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.center { text-align: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -.015em; font-weight: 800; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.center .lead { margin: 0 auto; }
.ico svg, svg.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 64px; }
.model-mark {
  width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 20px; display: grid; place-items: center;
  background: var(--raised); border: 1px solid var(--border); color: var(--text);
  box-shadow: 0 0 60px rgba(3, 211, 199, .08);
}
.model-mark svg { width: 40px; height: 40px; }
.hero .meta {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  border: 1px solid var(--border); background: var(--bg-soft); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--muted);
}
.hero .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin-bottom: 18px; }
.hero .sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 660px; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 800px; margin: 56px auto 0; }
.fact { position: relative; padding: 24px 20px 22px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--card); }
.fact b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.fact span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 210px; margin: 0 auto; }

/* ---------- Highlight cards ---------- */
.grid { display: grid; gap: 18px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; transition: border-color .15s, background .15s, transform .15s; }
.card:hover { border-color: var(--border); background: var(--card-hover); transform: translateY(-2px); }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 18px; display: grid; place-items: center;
  color: var(--text); border: 1px solid var(--border); background: var(--raised); transition: color .15s, border-color .15s;
}
.card:hover .ico { color: var(--accent); border-color: rgba(0, 114, 111, .4); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Deep-dive rows ---------- */
.rows { display: grid; gap: 72px; margin-top: 56px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row:nth-child(even) .row-text { order: 2; }
.row-text h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 14px; }
.row-text p { color: var(--muted); font-size: 16px; }
.prompts { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; }
.prompts-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.prompts ul { list-style: none; display: grid; gap: 10px; }
.prompts li {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 10px;
  background: var(--raised); border: 1px solid var(--border-soft); font-size: 14.5px;
}
.prompts li svg.ico { color: var(--accent); flex: none; margin-top: 3px; width: 16px; height: 16px; }
.prompts-label svg.ico { width: 16px; height: 16px; }

/* ---------- Family table ---------- */
.cmp-scroll { overflow-x: auto; margin-top: 40px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-size: 14px; font-weight: 700; }
.cmp th a:hover { color: var(--accent); }
.cmp td:first-child { color: var(--muted); width: 22%; }
.cmp .cur { background: var(--accent-soft); }
.cmp th.cur { color: var(--accent); }

/* ---------- Media models: availability, sample gallery, official videos ---------- */
.hero .meta.soon-meta .dot { background: #f59e0b; }
.gallery { columns: 3; column-gap: 16px; margin-top: 44px; }
.shot {
  break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border-soft);
}
.shot img { display: block; width: 100%; height: auto; background: var(--raised); }
.shot figcaption { padding: 14px 16px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.shot figcaption b { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 18px; }
.note a { color: var(--muted); border-bottom: 1px solid var(--border); }
.note a:hover { color: var(--text); }

/* Same-prompt gallery (build-model-pages.mjs compareSection / buildCompare, js/compare-media.js). Every picture sits
   in a square and every clip in a 16:9 box, shown whole, so models compare at a glance whatever shape they made. */
.cmp-carousel { position: relative; margin-top: 44px; }
.cmp-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 2px 2px 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
#compare .cmp-track:has(video) { grid-auto-columns: 360px; }
.cmp-track > * { scroll-snap-align: start; }
.cmp-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.cmp-nav {
  position: absolute; top: calc(50% - 40px); z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: var(--raised); border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: opacity .15s, background .15s;
}
.cmp-nav:hover { background: var(--card-hover); }
.cmp-nav:disabled { opacity: 0; pointer-events: none; }
.cmp-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-nav.prev { left: -20px; }
.cmp-nav.prev svg { transform: scaleX(-1); }
.cmp-nav.next { right: -20px; }
.cmp-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border-soft); }
.cmp-card.here { border-color: rgba(0, 114, 111, .55); box-shadow: 0 0 0 1px rgba(0, 114, 111, .35); }
.cmp-media { position: relative; aspect-ratio: 1; background: var(--raised); }
.cmp-media:has(video) { aspect-ratio: 16 / 9; }
.cmp-media img, .cmp-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.cmp-media video { cursor: pointer; }
.cmp-here {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.cmp-sound {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .2);
}
.cmp-sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.cmp-sound[aria-pressed="true"] { background: var(--accent); }
.cmp-sound[aria-pressed="true"] svg { opacity: 1; }
.cmp-card figcaption { padding: 12px 14px 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cmp-card figcaption b { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 2px; }
.cmp-card figcaption b a:hover { color: var(--accent); }
.cmp-meta, .cmp-time { display: block; }
.cmp-time { color: var(--faint); font-size: 12.5px; }
.cmp-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--border); color: var(--muted); }
.cmp-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.cmp-filters button {
  font: inherit; font-size: 13.5px; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.cmp-filters button:hover { color: var(--text); }
.cmp-filters button.active { background: var(--raised); color: var(--text); border-color: var(--accent); }
.cmp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.cmp-grid.videos-grid { grid-template-columns: repeat(3, 1fr); }
.cmp-grid .cmp-card[hidden] { display: none; }
@media (max-width: 960px) { .cmp-grid { grid-template-columns: repeat(3, 1fr); } .cmp-grid.videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .cmp-grid, .cmp-grid.videos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cmp-nav { display: none; }
  .cmp-track { grid-auto-columns: 78%; }
  #compare .cmp-track:has(video) { grid-auto-columns: 86%; }
}
@media (max-width: 460px) { .cmp-grid.videos-grid { grid-template-columns: 1fr; } .cmp-card figcaption { padding: 10px 11px 12px; } }

.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.videos.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.video { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
/* Click-to-play: only the thumbnail loads until the visitor presses play, then the youtube-nocookie player replaces it. */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat;
}
.yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); transition: opacity .2s; }
.yt:hover::after { opacity: .6; }
.yt .play {
  position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px); transition: transform .15s, background .15s;
}
.yt:hover .play { transform: scale(1.06); background: var(--accent); }
.yt .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.yt-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { padding: 14px 18px 16px; }
.video-meta b { display: block; font-size: 15px; line-height: 1.4; }
.video-meta span { font-size: 13px; color: var(--faint); }

.official { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.official a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted); transition: color .15s, border-color .15s;
}
.official a:hover { color: var(--text); border-color: rgba(0, 114, 111, .5); }
.official a svg.ico { width: 15px; height: 15px; }
.badge-soon {
  display: inline-block; margin-left: 8px; vertical-align: 2px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #f59e0b; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .3);
}
:root[data-theme="light"] .badge-soon { color: #9a6a0c; }

/* ---------- Other models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.model-link {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border-soft); transition: border-color .15s, background .15s, transform .15s;
}
.model-link:hover { border-color: var(--border); background: var(--card-hover); transform: translateY(-2px); }
.model-link .logo { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--border-soft); color: var(--text); }
.model-link .logo svg { width: 20px; height: 20px; }
.model-link b { display: block; font-size: 15px; }
.model-link span { font-size: 13px; color: var(--muted); }
.model-link .arrow { margin-left: auto; color: var(--faint); transition: color .15s, transform .15s; }
.model-link:hover .arrow { color: var(--accent); transform: translateX(2px); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font: inherit; font-weight: 600; font-size: 15.5px; text-align: left;
}
.faq-q .plus { color: var(--accent); font-size: 20px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Final CTA ---------- */
.final {
  background: radial-gradient(600px 280px at 50% 100%, rgba(0, 114, 111, .14), transparent 70%), var(--bg-soft);
  border-top: 1px solid var(--border-soft); text-align: center; padding: 96px 0;
}
.final .lead { margin: 0 auto 30px; }

/* ---------- Footer (same as landing.html) ---------- */
footer { border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px 32px; padding-block: 56px 48px; }
.foot-brand .brand-logo { height: 26px; }
.foot-brand p { margin: 18px 0 20px; max-width: 280px; line-height: 1.65; }
.foot-mail { color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.foot-mail:hover { border-color: var(--accent); }
.foot-col h2 { font-size: 12px; line-height: inherit; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: grid; gap: 12px; }
.foot-col a { color: var(--muted); transition: color .15s; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--text); }
.soon { display: inline-block; margin-left: 6px; vertical-align: 1px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: #03d3c7; letter-spacing: normal; text-transform: none; }
:root[data-theme="light"] .soon { color: var(--accent); }
.foot-bottom { border-top: 1px solid var(--border-soft); padding: 20px 0; color: var(--faint); font-size: 13px; }
.foot-bottom .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.foot-legal { display: flex; gap: 22px; }
.foot-legal a:hover, .foot-legal a[aria-current] { color: var(--text); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
}
@media (max-width: 700px) { .videos { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gallery { columns: 1; } }
@media (max-width: 820px) {
  nav .wrap { padding: 0 18px; }
  .nav-inner { height: 64px; gap: 12px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-left: 0; background: var(--bg-soft); flex-direction: column; padding: 12px 24px 20px; gap: 4px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .menu-btn { display: block; }
  .btn-login { display: none; }
  section.block { padding: 64px 0; }
  .hero { padding: 48px 0 48px; }
  .grid-3, .grid-4, .models { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 10px; margin-top: 44px; }
  .fact { padding: 18px 18px 16px; }
  .row { grid-template-columns: 1fr; gap: 24px; }
  .row:nth-child(even) .row-text { order: 0; }
  .rows { gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding-block: 44px 36px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) { nav .wrap { padding: 0 18px; } .nav-inner { height: 64px; } }
@media (max-width: 560px) { .brand-logo { height: 30px; } .nav-inner { height: 62px; } }
/* Phones: the footer as landing.html's (16px sides, tighter gaps). */
@media (max-width: 620px) {
  footer .wrap { padding-inline: 16px; }
  .foot-grid { gap: 28px 20px; padding-block: 36px 28px; }
}
@media (max-width: 360px) {
  .nav-inner { gap: 8px; }
  nav .wrap { padding: 0 12px; }
  .lang-switch button { padding: 6px 7px; }
}
/* "Get Started" is wider than "Mulai": keep the nav inside a phone screen in English too. */
@media (max-width: 420px) {
  .brand-logo { height: 24px; }
  .nav-right { gap: 8px; }
  .lang-switch button { padding: 6px 9px; }
  .nav-right .btn-sm { padding: 7px 10px; font-size: 13px; }
}
.btn-logout { gap: 7px; }
.btn-logout svg { width: 16px; height: 16px; flex: none; }
/* Once the nav folds into the ☰ menu, Log out moves into that menu so the bar still fits a phone. */
.nav-logout { display: none; background: none; border: 0; padding: 10px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nav-logout:hover { color: var(--text); }
@media (max-width: 820px) { .nav-right .btn-logout { display: none; } .nav-links .nav-logout:not([hidden]) { display: block; } }

/* ---------- Feature pages: /coding, /gambar-ai, /video-ai (build-model-pages.mjs buildCoding / buildPictures / buildVideos) ---------- */
.fp .hero h1 { font-size: clamp(34px, 5.6vw, 60px); }
.fp-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); }
.fp-shot img { display: block; width: 100%; height: auto; }
.fp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.fp-clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
/* /upscale-ai: before and after side by side, at every width. */
.fp-clips.pairs { grid-template-columns: repeat(2, 1fr) !important; }
.fp-clips.pairs img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--raised); }
.fp-tile, .fp-clip { margin: 0; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border-soft); }
.fp-tile > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--raised); }
.fp-clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--raised); cursor: pointer; }
.fp-tile figcaption, .fp-clip figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; font-size: 14px; font-weight: 600; min-width: 0; }
.fp-tile figcaption img, .fp-clip figcaption img { width: 18px; height: 18px; flex: none; border-radius: 5px; }
.fp-tile figcaption a:hover, .fp-clip figcaption a:hover { color: var(--accent); }
@media (max-width: 960px) {
  .fp-gallery { grid-template-columns: repeat(3, 1fr); }
  .fp-clips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .fp-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
  .fp-clips { grid-template-columns: 1fr; }
  .fp-tile figcaption { padding: 8px 10px 10px; font-size: 12.5px; }
}
:root[data-theme="light"] .fp img.mono { filter: invert(1); }
/* Pricing as the landing page's #harga (its rules, copied; keep the two alike). */
.fp { --accent-text: #14a39d; }
:root[data-theme="light"] .fp { --accent-text: #00726f; }
.launch-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #f59e0b; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; text-align: left; }
.plan-card {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
  position: relative; transition: border-color .15s, background .15s, transform .15s;
}
.plan-card:hover { border-color: var(--border); background: var(--card-hover); transform: translateY(-2px); }
.plan-card.popular, .plan-card.popular:hover { border-color: var(--accent); box-shadow: 0 0 60px rgba(0,114,111,.12); }
.plan-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-name { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-coins {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 4px;
  background: var(--accent-soft); border: 1px solid rgba(0,114,111,.35);
  border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px;
  color: var(--accent-text); align-self: flex-start;
}
.coin-ico { width: 1.15em; height: 1.15em; flex: none; color: #e2a54a; }
.plan-valid { color: var(--faint); font-size: 13px; margin-bottom: 20px; }
.use-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; margin-bottom: 10px; }
.quota { border-bottom: 1px solid var(--border-soft); padding: 2px 0 14px; margin-bottom: 14px; }
.quota-head { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.quota-head b { font-weight: 800; }
.model-list { list-style: none; display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.model-list li { display: flex; align-items: center; gap: 10px; }
.model-list .mi { width: 20px; height: 20px; flex: none; color: var(--text); border-radius: 5px; }
.quota-note { font-size: 13px; color: var(--faint); margin-top: 10px; }
.also-list { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.also-list li { position: relative; padding-left: 22px; }
.also-list li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 10px; height: 5px; border: solid var(--accent-text); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.also-list b { color: var(--text); font-weight: 700; }
.plan-best { font-size: 13.5px; color: var(--faint); margin-bottom: 24px; }
.plan-best b { color: var(--muted); }
.plan-card .btn { width: 100%; margin-top: auto; }
.coin-note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 26px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
@media (max-width: 620px) {
  .plans { display: flex; gap: 12px; max-width: none; margin-inline: -24px; padding: 18px 24px 10px; margin-top: 28px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan-card { flex: 0 0 86%; scroll-snap-align: start; padding: 20px 18px; }
  .plan-card:hover { transform: none; }
  .plan-flag { top: -12px; font-size: 12px; padding: 3px 12px; }
  .plan-price { font-size: 32px; margin: 2px 0 0; }
  .plan-price small { font-size: 13.5px; }
  .plan-coins { margin: 6px 0 2px; padding: 4px 12px; font-size: 14px; }
  .plan-valid { font-size: 12.5px; margin-bottom: 14px; }
  .use-label { margin-bottom: 8px; }
  .quota { padding-bottom: 10px; margin-bottom: 10px; }
  .quota-head { font-size: 14px; margin-bottom: 7px; }
  .model-list { grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 13px; line-height: 1.35; }
  .model-list li { gap: 7px; }
  .model-list .mi { width: 16px; height: 16px; }
  .also-list { font-size: 13px; gap: 6px; }
  .plan-best { margin-bottom: 16px; }
}

/* Model cards as the models page's (models.html .media-card; keep the two alike). */
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; text-align: left; }
.mcard { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border-soft); border-radius: 20px; padding: 24px 24px 22px;
  display: flex; flex-direction: column; transition: border-color .15s, background .15s, transform .15s; }
.mcard:hover { border-color: var(--border); background: var(--card-hover); transform: translateY(-2px); }
.mcard h3 { font-size: 19px; font-weight: 700; margin-bottom: 2px; padding-right: 64px; line-height: 1.25; }
.mcard p { color: var(--muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .maker { font-size: 12px; color: var(--faint); }
.mbadge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: #03d3c7; }
:root[data-theme="light"] .mbadge { color: var(--accent); }
.fam-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fam-head > div { min-width: 0; }
.fam-logo { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, #1b222c, #10151c); border: 1px solid var(--border); }
.fam-logo img { width: 26px; height: 26px; }
.fam-logo b { font-size: 15px; font-weight: 800; letter-spacing: -.5px; color: #03d3c7; }
:root[data-theme="light"] .fam-logo { background: linear-gradient(160deg, #ffffff, #e8ecf1); }
:root[data-theme="light"] .fam-logo b { color: var(--accent); }
.fam-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.variants { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.variants a { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--raised); color: var(--text); white-space: nowrap; transition: border-color .15s, color .15s; }
.variants a:hover { border-color: var(--accent); color: #03d3c7; }
:root[data-theme="light"] .variants a { background: var(--bg-soft); }
:root[data-theme="light"] .variants a:hover { color: var(--accent); }
.mstatus { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--faint); margin-top: auto; padding-top: 14px; }
.mstatus i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none; }
@media (max-width: 960px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: two cards a row, each compact, as on the models page. */
@media (max-width: 720px) {
  .mgrid { gap: 12px; margin-top: 28px; }
  .mcard { padding: 16px 14px 14px; border-radius: 16px; }
  .mcard h3 { padding-right: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mcard p { font-size: 12.5px; line-height: 1.4; -webkit-line-clamp: 3; }
  .mbadge { position: static; align-self: flex-start; order: -1; margin-bottom: 8px; font-size: 11px; padding: 3px 9px; }
  .fam-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
  .fam-head > div { width: 100%; }
  .fam-logo { width: 34px; height: 34px; border-radius: 10px; }
  .fam-logo img { width: 20px; height: 20px; }
  .fam-logo b { font-size: 12px; }
  .mcard .maker { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .variants { gap: 5px; margin-top: 10px; }
  .variants a { font-size: 11.5px; padding: 3px 8px; max-width: 100%; white-space: normal; line-height: 1.3; }
  .mstatus { font-size: 11px; padding-top: 10px; gap: 6px; }
}
/* The header marks the page it is on (the landing page header, from site-parts.mjs nav). */
.nav-links a[aria-current="page"] { color: var(--text); }
/* /coding, after the enterprise page: app screens in a window frame, a hero stage with labels over it, cards with a
   picture on top, sticky tabs over alternating feature rows. */
.fp-hero { position: relative; overflow: hidden; padding-bottom: 0; }
.fp-hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.float { position: absolute; border-radius: 6px; opacity: .55; pointer-events: none; }
.float.f1 { width: 22px; height: 22px; left: 19%; top: 54px; background: #1a222d; rotate: -14deg; }
.float.f2 { width: 8px; height: 8px; left: 14%; top: 84px; border-radius: 50%; background: #6366f1; opacity: .35; }
.float.f3 { width: 20px; height: 20px; right: 21%; top: 128px; background: rgba(0, 114, 111, .12); border: 1px solid rgba(3, 211, 199, .25); rotate: 8deg; }
:root[data-theme="light"] .float.f1 { background: #dfe4ea; }
@media (max-width: 860px) { .float { display: none; } }
.cshot { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 30px 60px -30px rgba(0, 0, 0, .9); }
:root[data-theme="light"] .cshot { box-shadow: 0 30px 60px -36px rgba(20, 30, 45, .3); }
.cshot::before { content: ''; display: block; height: 30px; border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(circle at 18px 15px, #e06c5f 4px, transparent 5px), radial-gradient(circle at 34px 15px, #e5b454 4px, transparent 5px),
    radial-gradient(circle at 50px 15px, #5fb37a 4px, transparent 5px), var(--card); }
.cshot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--card); }
@media (max-width: 560px) { .cshot { border-radius: 12px; } .cshot::before { height: 20px; background: var(--card); } }
.stage { position: relative; max-width: 1120px; margin: 56px auto 0; text-align: left; }
.stage .cshot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.stage .cshot.bare { -webkit-mask-image: linear-gradient(to bottom, #000 40%, rgba(0,0,0,.55) 66%, transparent 90%); mask-image: linear-gradient(to bottom, #000 40%, rgba(0,0,0,.55) 66%, transparent 90%); }
.stage .cshot img { aspect-ratio: 1272 / 821; }
/* A picture that brings its own window frame on a transparent background (img/code-app*.webp): no card, bar or shadow. */
.cshot.bare { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.cshot.bare::before { display: none; }
.cshot.bare img, .stage .cshot.bare img { aspect-ratio: 1600 / 1040; object-fit: contain; background: none; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; text-align: left;
  background: color-mix(in srgb, var(--raised) 90%, transparent); border: 1px solid var(--border); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.chip > span:last-child > span { display: block; }
.chip small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.chip .dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-a { left: -32px; top: 18%; } .chip-b { right: -28px; top: 34%; } .chip-c { left: 7%; top: 64%; }
@media (max-width: 1200px) { .chip-a { left: 12px; } .chip-b { right: 12px; } }
@media (max-width: 760px) { .chip { display: none; } .stage { margin-top: 40px; } }
@media (max-width: 620px) { .fp-hero .cta-row .btn { width: 100%; } }

.card.use { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.use-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); }
.use-pic img { display: block; transition: scale .4s; }
.card.use:hover .use-pic img { scale: 1.04; }
/* Part of a screen: --x / --y move it so the interesting part shows. */
.use-pic.crop img { width: 190%; max-width: none; height: auto; transform: translate(var(--x, -11%), var(--y, -5%)); transform-origin: 0 0; }
.use-pic.win { --x: -40%; --y: -16%; }
.use-pic.web { --x: -47%; --y: -4%; }
.use-pic.cloud { --x: -47%; --y: -10%; }
.use-body { padding: 24px 28px 28px; }
.use-body .kicker { font-size: 12.5px; margin-bottom: 8px; }
.card.use .ico { display: none; }

.tour { padding: 0; }
.tabs { position: sticky; top: 72px; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-block: 1px solid var(--border-soft); }
.tabs-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; text-align: center; padding: 16px 20px; font-size: 15px; font-weight: 600; color: var(--faint); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent-text); }
@media (max-width: 860px) { .tabs { top: 64px; } .tabs a { padding: 13px 14px; font-size: 14px; } }
@media (max-width: 560px) { .tabs { top: 62px; } }
html:has(.tour) { scroll-padding-top: 128px; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: center; padding: 80px 0; }
.tour .feature:last-child { padding-bottom: 24px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .f-text { order: 2; }
.f-text, .f-pic { min-width: 0; }
.f-text .kicker { margin-bottom: 16px; }
.f-text h2 { margin-bottom: 20px; }
.f-text .lead { line-height: 1.65; }
.f-list { list-style: none; margin-top: 32px; display: grid; gap: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.f-list li { padding-left: 30px; position: relative; }
.f-list li::before { content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 999px; background: var(--accent-soft); }
.f-list li::after { content: ''; position: absolute; left: 6px; top: .52em; width: 8px; height: 4px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.f-pic { position: relative; }
.f-pic .over { position: absolute; width: 56%; right: -12px; bottom: -56px; }
#f-plan { padding-bottom: 120px; }
@media (max-width: 1000px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 48px; padding: 64px 0; }
  .tour .feature:last-child { padding-bottom: 16px; }
  .feature.flip .f-text { order: 0; }
  .f-pic .over { right: 8px; bottom: -32px; width: 52%; }
  #f-plan { padding-bottom: 96px; }
}
@media (max-width: 560px) { .f-pic .over { display: none; } #f-plan { padding-bottom: 64px; } }

/* The 1M context card: words and bars, not a screen. */
.ctx-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7); }
:root[data-theme="light"] .ctx-card { box-shadow: 0 30px 60px -36px rgba(20, 30, 45, .25); }
.ctx-label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ctx-big { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 28px; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--text), var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ctx-big small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.ctx-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.ctx-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.ctx-bar { height: 12px; border-radius: 999px; background: var(--raised); overflow: hidden; margin-bottom: 18px; }
.ctx-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #03d3c7); }
.ctx-bar i.dim { background: var(--faint); }
.ctx-note { font-size: 13.5px; color: var(--faint); margin-top: 6px; }
@media (max-width: 560px) { .ctx-card { padding: 24px 20px; } }
/* The Remotion row: the 16:9 render in a window frame, the 9:16 one standing over its corner. */
.rm-stage { position: relative; padding-right: 15%; }
.rm-media { position: relative; }
.rm-media video { display: block; width: 100%; height: auto; background: #000; cursor: pointer; }
.rm-wide .rm-media video { aspect-ratio: 16 / 9; }
.rm-tall { position: absolute; right: 0; bottom: -40px; width: 27%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
.rm-tall .rm-media video { aspect-ratio: 9 / 16; }
.rm-tall .cmp-sound { right: 8px; bottom: 8px; width: 30px; height: 30px; }
.rm-note { text-align: left; margin-top: 64px; }
#f-remotion { padding-bottom: 96px; }
@media (max-width: 1000px) { .rm-note { text-align: center; } }
@media (max-width: 560px) { .rm-stage { padding-right: 22%; } .rm-tall { width: 34%; bottom: -24px; border-radius: 12px; } .rm-note { margin-top: 44px; } #f-remotion { padding-bottom: 72px; } }
