/* Roll · unofficial redesign concept
   Sistem visual dari hi-fi Fase 4 (Arah 3 "Galeri"): Arimo 400, sudut 0, grid 12 kolom. */

@font-face {
  font-family: "Arimo";
  src: url("../fonts/arimo-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F9F4;          /* dasar */
  --alt: #ECECE9;         /* section selang, kotak tab S5, kotak catatan */
  --panel: #E4E4E2;       /* panel gambar, S6, S9, Your Roll, penutup + footer */
  --ink: #33342F;         /* teks dan tombol */
  --text-2: #45463F;      /* teks isi di panel */
  --muted: #5C5C59;       /* teks redup */
  --off: #8F8D88;         /* tidak aktif, hanya garis diagram */
  --line: #D9DAD5;        /* garis tipis di dasar */
  --line-panel: #C6C7C2;  /* garis tipis di panel */
  --dark-panel: #484943;  /* panel gambar di pita gelap S10 */
  --on-dark: #F6F9F4;
  --on-dark-muted: #D2D3CD;
  --copper: #B98563;      /* hanya logo, titik LED, titik finish */

  --margin: 40px;
  --gutter: 16px;
  --section-y: 80px;
  --header-h: 65px;       /* header 64 + garis 1 (bar konsep ikut bergulir) */
  --r-sm: 4px;            /* tombol, toggle, pil (revisi 14 Nov: sudut sedikit melengkung) */
  --r: 8px;               /* foto, video, kotak/frame */

  --h-hero: 60px;
  --h-section: 44px;
  --h-card: 26px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Arimo", Arial, "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--muted); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: var(--on-dark); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--on-dark); }

/* ---------- Layout ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--margin); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-panel { background: var(--panel); }
.bg-dark { background: var(--ink); color: var(--on-dark); }

.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 787px; margin-bottom: 48px; }
.h-section { font-size: var(--h-section); line-height: 1.02; font-weight: 400; letter-spacing: -0.05em; }
.h-card { font-size: var(--h-card); line-height: 1.1; font-weight: 400; letter-spacing: -0.04em; }
.h-small { font-size: 22px; line-height: 1.15; font-weight: 400; letter-spacing: -0.04em; }
.sub { font-size: 16px; color: var(--muted); max-width: 560px; }
.body-muted { font-size: 15px; color: var(--muted); }
.small { font-size: 12px; color: var(--muted); }
.compare-line { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Tombol: kotak 44 px, sudut 0 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px; font-size: 14px;
  background: var(--ink); color: var(--on-dark); text-decoration: none; border: 1px solid var(--ink);
  cursor: pointer; white-space: nowrap; border-radius: var(--r-sm);
}
.btn:hover { background: #46473F; color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--ink); }

/* Label di atas gambar */
.tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 12px; line-height: 1.4; color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.pill { font-size: 12px; line-height: 1.4; color: var(--ink); background: var(--bg); padding: 3px 8px; border-radius: var(--r-sm); }
.media { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--r); }
.media > img, .media > picture > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.r-16-9 { aspect-ratio: 16 / 9; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-3-2 { aspect-ratio: 3 / 2; }
.r-1-1 { aspect-ratio: 1 / 1; }
.r-4-5 { aspect-ratio: 4 / 5; }

/* Toggle Closed/Open */
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.seg button {
  height: 36px; padding: 0 16px; font-size: 13px; border: 0; background: transparent; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }

/* ---------- S0 · Bar konsep + header ---------- */
.site-top { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.concept-bar {
  min-height: 34px; padding: 6px 16px; background: var(--ink); color: var(--on-dark);
  font-size: 12px; display: flex; align-items: center; justify-content: center; text-align: center;
}
.concept-bar a { color: var(--on-dark); margin-left: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .g12 { height: 64px; align-items: center; }
.logo { grid-column: span 2; display: flex; align-items: center; width: max-content; }
.logo svg { width: 72px; height: 36px; }
.jump { grid-column: 3 / span 8; display: flex; justify-content: center; align-items: center; gap: 2px; font-size: 13px; }
.jump a { padding: 10px; text-decoration: none; color: var(--muted); }
.jump a:hover { color: var(--ink); }
.jump a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.trade-link { grid-column: 11 / span 2; justify-self: end; font-size: 13px; padding: 10px 0; }
.menu-btn { display: none; }

/* ---------- S1 · Hero ---------- */
.hero { position: relative; height: 802px; background: var(--panel); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy {
  position: absolute; left: var(--margin); bottom: 80px; width: 560px;
  display: flex; flex-direction: column; gap: 20px; color: #FFFFFF;
}
.hero-copy h1 { font-size: var(--h-hero); line-height: 1; font-weight: 400; letter-spacing: -0.055em; }
.hero-copy p { font-size: 16px; max-width: 420px; }
.hero-copy .btn { align-self: flex-start; margin-top: 4px; }
.hero-wrap { max-width: 1440px; margin: 0 auto; position: relative; height: 100%; }

/* ---------- S2 · Pita bukti ---------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.proof li { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--ink); padding-top: 20px; }
.proof .fig { display: flex; align-items: baseline; gap: 10px; min-height: 48px; }
.proof .num { font-size: 48px; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.proof .unit { font-size: 15px; color: var(--muted); }
.proof .badge { display: flex; align-items: center; gap: 14px; height: 48px; }
.proof .badge span { font-size: 30px; line-height: 1.05; letter-spacing: -0.05em; }
.proof .cap { font-size: 14px; color: var(--muted); }
.proof-note { margin-top: 32px; }

/* ---------- S3 · Tiga alasan ---------- */
#s3 .sec-head { margin-bottom: 56px; }
#s3 .h-section { max-width: 630px; }
.card-auto { row-gap: 32px; }
.card-auto .demo { grid-column: span 8; }
.card-auto .text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; padding-bottom: 20px; }
.card-auto .compare-line { margin-top: 10px; }
.demo-time {
  position: absolute; right: 14px; top: 12px; z-index: 2; display: flex; gap: 8px; align-items: center;
  font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); padding: 3px 8px;
  border-radius: var(--r-sm);
}
.steps { grid-column: span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .bar { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.steps .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--copper); }
.steps .row { display: flex; gap: 12px; align-items: baseline; }
.steps .t { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.steps .lbl { font-size: 15px; }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 96px; }
.cards-2 article { display: flex; flex-direction: column; gap: 14px; }
.cards-2 .h-card { margin-top: 10px; }
.cards-2 .body-muted { max-width: 520px; }
.icon-box { aspect-ratio: 3 / 2; background: var(--alt); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 264px; height: 180px; }
.f2 { width: 100%; height: auto; margin-top: 8px; }

/* ---------- S4 · Tabel ---------- */
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { border-bottom-color: var(--ink); font-weight: 400; font-size: 22px; letter-spacing: -0.04em; color: var(--muted); }
.compare thead th:first-child { width: 19%; }
.compare thead th.roll { width: 24%; }
.compare tbody th { padding-left: 0; font-weight: 400; font-size: 13px; color: var(--muted); }
.compare thead th:first-child { padding-left: 0; }
.compare .roll { background: var(--panel); padding-left: 20px; padding-right: 20px; color: var(--ink); }
.compare td { color: var(--text-2); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .roll svg { width: 64px; height: 32px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 32px; }
.table-foot p { max-width: 720px; }
.table-scroll { overflow-x: auto; }

/* ---------- S5 · Hidup dengan Roll ---------- */
#s5 .wrap { display: flex; flex-direction: column; gap: 40px; }
#s5 .sec-head { margin-bottom: 0; }
.tabbox { background: var(--alt); padding: 12px; align-items: center; border-radius: var(--r); }
.tabbox [role="tablist"] { grid-column: span 7; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tabbox [role="tab"] {
  height: 44px; padding: 0 18px; font-size: 14px; border: 0; cursor: pointer; border-radius: var(--r-sm);
  background: var(--line); color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease;
}
.tabbox [role="tab"]:hover { background: var(--line-panel); }
.tabbox [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--on-dark); }
.tabbox .panels { grid-column: 8 / span 5; padding: 8px 12px 8px 0; }
.tabbox .panels p { font-size: 15px; color: var(--text-2); }
.compare-slider { position: relative; }
.compare-slider .after { border-radius: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-slider .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: var(--bg); z-index: 2; pointer-events: none; }
.compare-slider .knob {
  position: absolute; left: var(--pos, 50%); top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 14px; pointer-events: none;
}
.compare-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4;
}
.compare-slider .tag-r { left: auto; right: 14px; }
.compare-slider:has(input:focus-visible) .knob { outline: 2px solid var(--ink); outline-offset: 3px; }
.render-note { margin-top: 12px; }

/* ---------- S6 · Detail ---------- */
#s6 .sec-head { margin-bottom: 40px; }
.tabs-line { display: flex; flex-wrap: wrap; gap: 28px; border-bottom: 1px solid var(--line-panel); margin-bottom: 48px; }
.tabs-line [role="tab"] {
  padding: 14px 0; font-size: 15px; background: transparent; border: 0; border-bottom: 1px solid transparent;
  margin-bottom: -1px; color: var(--muted); cursor: pointer;
}
.tabs-line [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--copper); }
.detail { align-items: start; }
.detail .left { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }
.detail .right { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 14px; }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); margin-top: 8px; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line-panel); }
.list li.kv { display: flex; justify-content: space-between; gap: 16px; }
.list .k { font-size: 13px; color: var(--muted); }
.crop-room { margin-top: 16px; background: var(--line); }
.crop-room img { object-position: 62% 70%; transform: scale(1.35); transform-origin: 62% 72%; }
.diagram-head { display: flex; justify-content: space-between; align-items: center; }
.diagram-head span { font-size: 13px; color: var(--muted); }
.diagram { width: 100%; height: auto; }
.layers { display: flex; flex-direction: column; font-size: 14px; }
.layers li { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-panel); }
.layers .n, .num-s { font-size: 11px; color: var(--muted); width: 18px; flex: none; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pair .media, .detail .right > .media { background: var(--line); }
.specs { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-panel); vertical-align: top; }
.specs thead th { border-bottom-color: var(--ink); font-weight: 400; font-size: 20px; letter-spacing: -0.04em; padding-top: 14px; padding-bottom: 14px; }
.specs thead th:first-child { width: 28%; }
.specs th:first-child { padding-left: 0; }
.specs tbody th { font-weight: 400; font-size: 13px; color: var(--muted); }
.specs-foot { margin-top: 16px; }
[role="tabpanel"][hidden] { display: none; }

/* Diagram: garis tergambar */
.diagram .ink { stroke: var(--ink); }
.diagram .dash { stroke: var(--off); stroke-dasharray: 4 4; }
.diagram text { font-family: "Arimo", Arial, sans-serif; font-size: 13px; fill: var(--muted); letter-spacing: -0.01em; }
.diagram text.strong { fill: var(--ink); }

/* ---------- S7 · Konfigurator ---------- */
.cfg { align-items: start; }
.cfg-preview { grid-column: span 7; position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 12px; }
.cfg-preview .media img { transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cfg-options { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 40px; }
.cfg fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cfg legend { padding: 0; margin-bottom: 12px; display: flex; align-items: baseline; gap: 16px; }
.cfg legend .t { font-size: 24px; letter-spacing: -0.04em; }
.opt-list { border-top: 1px solid var(--ink); margin-top: -12px; }
.opt-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-row .sq { flex: none; width: 14px; height: 14px; border: 1px solid var(--ink); border-radius: 50%; }
.opt-row input:checked + .sq { background: var(--copper); border-color: var(--copper); }
.opt-row:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-row .name { flex: 1; display: flex; flex-direction: column; font-size: 16px; }
.opt-row .name small { font-size: 13px; color: var(--muted); }
.finishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.finish { position: relative; padding: 6px; border: 1px solid transparent; border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.finish:has(input:checked) { border-color: var(--ink); }
.finish:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.finish input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.finish .chip { position: relative; aspect-ratio: 1 / 1; background: var(--panel); overflow: hidden; display: block; border-radius: var(--r-sm); }
.finish .chip img { position: absolute; left: -182%; top: -57%; width: 340%; height: auto; max-width: none; }
.finish .label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 0 2px 2px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.helper { font-size: 13px; color: var(--muted); }
.extra-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.extra-row img, .extra-thumb { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }
.extra-row .name { flex: 1; font-size: 15px; }
.switch { flex: none; position: relative; width: 34px; height: 18px; border: 1px solid var(--ink); border-radius: 9px; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: var(--ink); border-radius: 50%; transition: left 0.15s ease; }
.extra-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.extra-row input:checked ~ .switch { background: var(--ink); }
.extra-row input:checked ~ .switch::after { left: 18px; background: var(--copper); }
.extra-row:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.base-block { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.base-head { display: flex; align-items: center; gap: 14px; }
.base-head .name { flex: 1; font-size: 15px; }
.base-head .price { font-size: 13px; color: var(--muted); }
.bases { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.base { position: relative; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.base:has(input:checked) { border-color: var(--ink); }
.base:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.base input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.note-box { font-size: 14px; color: var(--text-2); background: var(--alt); padding: 14px 16px; border-radius: var(--r); }
.summary { background: var(--panel); padding: 24px; border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; }
.summary h3 { font-size: 13px; font-weight: 400; color: var(--text-2); }
.summary .sentence { font-size: 16px; }
.summary .total { font-size: 40px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.summary ul { margin-top: 4px; font-size: 14px; border-top: 1px solid var(--line-panel); }
.summary li { padding: 8px 0; border-bottom: 1px solid var(--line-panel); }
.summary p { font-size: 14px; }
.summary .ph { color: var(--text-2); }
.buy { height: 48px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: var(--on-dark); font-size: 14px; cursor: not-allowed; }
.summary .fine { font-size: 12px; color: var(--text-2); }

/* ---------- S8 · Coba di rumah ---------- */
.s8-inner { border-top: 1px solid var(--line); padding: var(--section-y) 0; }
#s8 .sec-head { margin-bottom: 56px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.cards-3 article { border-top: 1px solid var(--ink); padding: 20px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.cards-3 .h-small { margin-top: 8px; }
.cards-3 a { font-size: 13px; }
.ordering { margin-top: 96px; row-gap: 32px; }
.ordering > h3 { grid-column: span 4; }
.ordering .steps-o { grid-column: 5 / span 8; border-top: 1px solid var(--ink); }
.steps-o li { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps-o .num-s { padding-top: 4px; }
.steps-o .st { width: 200px; flex: none; font-size: 18px; letter-spacing: -0.03em; }
.steps-o .sd { flex: 1; color: var(--muted); }
.batch { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 12px; }
.batch > p:first-child { font-size: 13px; }

/* ---------- S9 · Dari pembuatnya ---------- */
.maker { align-items: start; }
.maker .story { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.maker .story .body { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.maker .story .sign { margin-top: 8px; font-size: 14px; color: var(--muted); }
.timeline { grid-column: 8 / span 5; border-top: 1px solid var(--ink); }
.timeline li { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line-panel); }
.timeline time { width: 110px; flex: none; font-size: 13px; color: var(--muted); padding-top: 2px; }
.reviews { margin-top: 80px; border: 1px dashed var(--off); border-radius: var(--r); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.reviews div { display: flex; flex-direction: column; gap: 6px; }

/* ---------- S10 · Pita bisnis ---------- */
.trade { align-items: center; }
.trade .copy { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.trade h2 { font-size: 38px; line-height: 1.05; font-weight: 400; letter-spacing: -0.05em; }
.trade .copy p { font-size: 15px; color: var(--on-dark-muted); max-width: 560px; }
.trade .actions { display: flex; align-items: center; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.trade .actions span { font-size: 14px; }
.trade .pic { grid-column: 9 / span 4; }
.trade .media { background: var(--dark-panel); }
.trade .tag { left: 12px; bottom: 10px; }

/* ---------- S11 · FAQ ---------- */
.faq { align-items: start; }
.faq .side { grid-column: span 4; position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 16px; }
.faq .side nav { display: flex; flex-direction: column; margin-top: 16px; }
.faq .side nav a { display: flex; gap: 16px; align-items: baseline; font-size: 15px; text-decoration: none; padding: 6px 0; }
.faq .groups { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 56px; }
.faq .group h3 { margin-bottom: 12px; }
.faq .qs { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--copper); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 48px 20px 0; font-size: 15px; color: var(--muted); }

/* ---------- S12 + footer ---------- */
.closing { padding: 128px 0 112px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.closing h2 { font-size: var(--h-hero); line-height: 1; font-weight: 400; letter-spacing: -0.055em; }
.closing > p { font-size: 16px; color: var(--text-2); }
.closing .btn { margin-top: 10px; }
.closing .q { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.footer-inner { border-top: 1px solid var(--line-panel); padding: 48px 0 64px; row-gap: 32px; font-size: 13px; color: var(--muted); }
.footer-inner .logo-f { grid-column: span 2; }
.footer-inner .logo-f svg { width: 64px; height: 32px; }
.footer-inner .f-concept { grid-column: 3 / span 5; }
.footer-inner .f-company { grid-column: 8 / span 3; }
.footer-inner .f-credit { grid-column: 11 / span 2; }
.footer-inner a { color: var(--muted); }

/* ---------- Bar lengket (HP saja, diatur di langkah 4) ---------- */
.sticky-buy { display: none; }

/* Video hero muncul halus setelah mulai diputar */
.hero-video { opacity: 0; transition: opacity 0.6s ease; }
.hero-video.is-playing { opacity: 1; }

/* F1: Closed/Open */
.f1[data-state="closed"] .f1-open, .f1[data-state="open"] .f1-closed { display: none; }

/* ---------- Animasi kecil (langkah 3) ---------- */
/* Reveal: naik 16 px, 400 ms. Hanya aktif kalau JS jalan dan pengunjung tidak memilih reduced motion. */
/* Revisi 14 Nov: gaya animasi mengikuti referensi (fuzzy-lynx-807509.framer.app)
   Kurva bersama: cubic-bezier(0.2, 0.7, 0.2, 1). */
:root { --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .reveal, .motion .reveal-load { transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); transition-delay: var(--d, 0ms); }
.motion .reveal:not(.is-in), .motion .reveal-load:not(.is-in) { opacity: 0; transform: translateY(10px); }

/* Teks muncul per kata: dari kabur 10 px dan turun 10 px, bergiliran 40 ms */
.motion [data-split] .w {
  display: inline-block; will-change: transform, filter, opacity;
  transition: opacity 0.9s var(--ease-soft), filter 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
  transition-delay: calc(var(--i) * 40ms + var(--d, 0ms));
}
.motion [data-split]:not(.is-in) .w { opacity: 0; filter: blur(10px); transform: translateY(10px); }

/* Garis atas tumbuh dari kiri */
.motion .grow-lines > *, .motion .grow-line { position: relative; border-top-color: transparent !important; }
.motion .grow-lines > *::before, .motion .grow-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.1s var(--ease-soft); transition-delay: calc(var(--i, 0) * 120ms);
}
.motion .grow-lines.is-in > *::before, .motion .grow-line.is-in::before { transform: scaleX(1); }

/* Header bersembunyi saat scroll ke bawah, muncul lagi saat scroll ke atas */
.site-top { transition: transform 0.4s var(--ease-soft); }
.site-top.is-hidden { transform: translateY(-100%); }

/* Isi tab berganti dengan fade 0.6 s */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.motion [role="tabpanel"]:not([hidden]), .motion .tabbox .panels p:not([hidden]) { animation: fade-in 0.6s var(--ease-soft); }

/* Garis diagram tergambar saat muncul */
.motion .draw-on .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.motion .draw-on.is-in .ln { animation: draw-line 1.1s ease forwards; }
.motion .f2.is-in .roll-outline { animation-delay: 0.7s; }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.motion .f2 text, .motion .f1 text, .motion .f5 text { transition: opacity 0.4s ease 0.5s; }
.motion .draw-on:not(.is-in) text { opacity: 0; }

/* F4: lapisan kasur terpisah saat tab dibuka */
.f4 .layer { transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.f4[data-apart="true"] .l-cover { transform: translateY(-56px); }
.f4[data-apart="true"] .l-memory { transform: translateY(-20px); }
.f4[data-apart="true"] .l-base { transform: translateY(24px); }

/* Pratinjau konfigurator berganti halus */
.cfg-preview .media img.is-swapping { opacity: 0; transition-duration: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Revisi 14 Nov: gradasi gelap tipis di belakang teks hero (kiri bawah) */
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(25, 24, 20, 0.55) 0%, rgba(25, 24, 20, 0.28) 38%, rgba(25, 24, 20, 0) 65%);
}
.hero-wrap { z-index: 2; }

/* Revisi 14 Nov: kolom Roll di tabel melengkung */
.compare { border-collapse: separate; border-spacing: 0; }
.compare thead th.roll { border-radius: var(--r) var(--r) 0 0; }
.compare tbody tr:last-child td.roll { border-radius: 0 0 var(--r) var(--r); }

/* =====================================================================
   Langkah 4 · Responsif
   ≥1024 = desktop (grid 12 kolom, margin 40) · 768–1023 = tablet · <768 = HP
   Aturan utama: video hero dan foto tidak terpotong di bagian penting.
   ===================================================================== */

/* Desktop sempit (1024–1439): tinggi hero mengikuti rasio video supaya produk di kanan tidak terpotong */
@media (min-width: 1024px) {
  .hero { height: min(802px, calc(100vw * 1088 / 1920)); }
}

/* Header ringkas + menu (tablet dan HP) */
.menu-panel-open .jump { display: flex; }
@media (max-width: 1023px) {
  :root { --margin: 32px; --section-y: 64px; --h-hero: 48px; --h-section: 36px; --h-card: 24px; }

  .site-header .g12 { display: flex; justify-content: space-between; height: 56px; }
  :root { --header-h: 57px; }
  .trade-link { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px; font-size: 14px;
    background: transparent; border: 1px solid var(--ink); border-radius: var(--r-sm); cursor: pointer;
  }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--on-dark); }
  .jump {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--margin) 16px;
    font-size: 16px; box-shadow: 0 12px 24px rgba(51, 52, 47, 0.08);
  }
  .site-top.menu-open .jump { display: flex; }
  .jump a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .jump a:last-child { border-bottom: 0; }
  .site-header { position: relative; }

  /* Hero: video utuh 16:9, teks di bawahnya (tidak ada yang menutupi produk) */
  .hero { height: auto; background: var(--bg); }
  .hero-media { position: relative; aspect-ratio: 1920 / 1088; background: var(--panel); }
  .hero-media::after { display: none; }
  .hero-wrap { height: auto; }
  .hero-copy { position: static; width: auto; max-width: 640px; padding: 32px var(--margin) 8px; color: var(--ink); }
  .hero-copy p { color: var(--muted); max-width: 520px; }
  .hero :focus-visible { outline-color: var(--ink); }

  /* S2 */
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }

  /* S3 */
  .card-auto .demo, .card-auto .text, .steps { grid-column: 1 / -1; }
  .card-auto .text { padding-bottom: 0; }
  .cards-2 { grid-template-columns: 1fr; row-gap: 64px; margin-top: 72px; }

  /* S4 */
  .table-foot { flex-direction: column; align-items: flex-start; }

  /* S5 */
  .tabbox [role="tablist"], .tabbox .panels { grid-column: 1 / -1; }
  .tabbox .panels { padding: 14px 4px 4px; }

  /* S6 */
  .detail .left, .detail .right { grid-column: 1 / -1; }
  .detail .right { margin-top: 40px; }
  .tabs-line { gap: 24px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs-line [role="tab"] { white-space: nowrap; }

  /* S7: pratinjau di atas, pilihan di bawah (tidak lengket) */
  .cfg-preview { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .cfg-options { grid-column: 1 / -1; }

  /* S8 */
  .ordering > h3, .ordering .steps-o, .batch { grid-column: 1 / -1; }
  .ordering { margin-top: 72px; }

  /* S9 */
  .maker .story, .timeline { grid-column: 1 / -1; }
  .timeline { margin-top: 40px; }

  /* S10 */
  .trade .copy { grid-column: 1 / -1; }
  .trade .pic { grid-column: 1 / -1; margin-top: 40px; max-width: 560px; }
  .trade h2 { font-size: 34px; }

  /* S11 */
  .faq .side { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .faq .groups { grid-column: 1 / -1; }

  /* S12 + footer */
  .closing { padding: 96px 0 88px; }
  .footer-inner .logo-f { grid-column: 1 / -1; }
  .footer-inner .f-concept { grid-column: 1 / span 6; }
  .footer-inner .f-company { grid-column: 7 / span 6; }
  .footer-inner .f-credit { grid-column: 1 / -1; }
}

/* HP */
@media (max-width: 767px) {
  :root { --margin: 20px; --gutter: 12px; --section-y: 56px; --h-hero: 36px; --h-section: 30px; --h-card: 22px; }

  .concept-bar { font-size: 11px; }
  .sec-head { margin-bottom: 32px; }
  #s3 .sec-head, #s8 .sec-head { margin-bottom: 32px; }
  .sub { font-size: 15px; }

  .hero-copy { padding-top: 24px; gap: 16px; }
  .hero-copy p { font-size: 15px; }

  .proof .num { font-size: 34px; }
  .proof .badge span { font-size: 22px; }
  .proof .badge svg { width: 34px; height: 34px; }
  .proof .fig { flex-wrap: wrap; gap: 2px 8px; min-height: 0; }
  .proof li { gap: 12px; padding-top: 16px; }

  /* Diagram: huruf diperbesar di dalam SVG supaya tetap terbaca saat diagram mengecil */
  .f2 text { font-size: 24px; }
  .f1 text { font-size: 22px; }
  .f5 text { font-size: 30px; }

  /* S4: tabel jadi kartu per baris, tanpa geser ke samping */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0 !important; padding: 0; }
  .compare tbody th { font-size: 13px; margin-bottom: 8px; }
  .compare td { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 6px 0; font-size: 14px; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .compare td.roll { padding: 10px 12px; border-radius: var(--r) !important; margin-bottom: 4px; }
  .compare td.roll::before { content: "Roll"; color: var(--ink); }
  .compare tbody tr:last-child td.roll { border-radius: var(--r) !important; }
  .table-scroll { overflow: visible; }

  /* S5: tab bisa digeser ke samping */
  .tabbox { padding: 8px; }
  .tabbox [role="tablist"] { gap: 6px; }
  .tabbox [role="tab"] { white-space: nowrap; flex: none; padding: 0 14px; }
  .f2 .cap { display: none; }
  .steps .lbl { font-size: 13px; }
  .steps .row { flex-direction: column; gap: 2px; }
  .compare-slider .knob { width: 36px; height: 36px; }
  .tag { left: 10px; bottom: 8px; font-size: 11px; }
  .compare-slider .tag-r { right: 10px; }

  /* S6 */
  .tabs-line { margin-bottom: 32px; }
  .specs { font-size: 14px; }
  .specs th, .specs td { padding: 10px 8px; }
  .specs thead th { font-size: 16px; }
  .specs thead th:first-child { width: 32%; }

  /* S7 */
  .cfg-options { gap: 32px; }
  .finishes { gap: 6px; }
  .finish { padding: 4px; }
  .finish .label { font-size: 13px; }
  .base-head .price { display: none; }
  .base-head .name::after { content: " · +€40 (90 cm) / +€60 (160 cm)"; color: var(--muted); font-size: 13px; }
  .summary { padding: 20px; }
  .summary .total { font-size: 34px; }

  /* S8 */
  .cards-3 { grid-template-columns: 1fr; row-gap: 32px; }
  .cards-3 article { padding-right: 0; }
  .steps-o li { flex-wrap: wrap; gap: 4px 16px; }
  .steps-o .st { width: auto; flex: 1; }
  .steps-o .sd { flex-basis: 100%; padding-left: 34px; }

  /* S9 */
  .maker .story .body { font-size: 16px; }
  .reviews { flex-direction: column; align-items: flex-start; padding: 20px; margin-top: 56px; }
  .timeline time { width: 92px; }

  /* S10 */
  .trade h2 { font-size: 28px; }

  /* FAQ */
  .faq details p { padding-right: 0; }
  .faq summary { font-size: 15px; }

  /* S12 + footer */
  .closing { padding: 80px 0 72px; }
  .footer-inner .f-concept, .footer-inner .f-company { grid-column: 1 / -1; }
  .footer-inner { padding-bottom: 96px; }

  /* Bar lengket versi HP: muncul setelah hero, sembunyi saat S7 terlihat */
  .sticky-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); font-size: 14px;
    transform: translateY(110%); transition: transform 0.4s var(--ease-soft, ease);
  }
  .sticky-buy.is-shown { transform: none; }
  .sticky-buy .btn { height: 44px; padding: 0 18px; }
}

/* Desktop sempit: judul hero lebih kecil supaya tidak menimpa produk di video */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-copy { width: 440px; bottom: 56px; }
  .hero-copy h1 { font-size: 48px; }
}
.concept-bar { text-wrap: balance; }
.concept-bar a { white-space: nowrap; }
.concept-bar { display: block; padding: 9px 16px; line-height: 16px; }

/* Revisi 14 Nov (tablet & HP) */
@media (max-width: 1023px) {
  #s5 .tabbox + div { margin-top: -20px; }
  .tabs-line { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line-panel); }
  .tabs-line [role="tab"] { margin-bottom: 0; }
}

/* Revisi 14 Nov: link footer berubah warna saat disorot */
.footer-inner a:hover { color: var(--ink); }
