/* ==========================================================================
   Lentur Pilates — design system
   Referensi: ClassPass (landing: mosaik foto bersudut bulat + kartu putih
   mengambang, sans geometris tebal & rapat, tombol pill, bar promo kuning,
   footer hitam) dan GymForce gym dashboard (daftar kelas hari ini dengan
   kapasitas "10 / 12", daftar member "check-in 2 menit lalu", aksen oranye).
   Lihat study-cases/pilates-studio-website/design-system.md
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --font: "Figtree", system-ui, sans-serif;

  --ink: #111111;        /* teks utama */
  --ink-2: #5e5e5e;      /* meta */
  --ink-3: #9b9b9b;      /* nonaktif */
  --line: #e6e6e6;
  --line-2: #cfcfcf;
  --bg: #ffffff;
  --soft: #f3f3f3;       /* field, chip, slot terisi */
  --action: #e0570f;     /* oranye brand asli (#FF8B38) dijenuhkan untuk teks putih */
  --action-hover: #c84c0b;
  --action-tint: #fdeee4;
  --promo: #fce07a;      /* bar promo ala ClassPass */
  --ok: #1d7a4c;
  --ok-tint: #e5f3eb;
  --warn: #a95a00;
  --night: #000000;      /* footer */

  --r-sm: 10px;          /* field, slot */
  --r-md: 16px;          /* foto, panel */
  --r-lg: 22px;          /* kartu mengambang */
  --r-pill: 999px;
  --sh-card: 0 12px 40px rgba(0, 0, 0, .14);
  --sh-bar: 0 -4px 20px rgba(0, 0, 0, .08);

  --w: 1240px;
  --gutter: 32px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }
.i-sm { width: 16px; height: 16px; }

/* Router layar (dipakai lapak.js) */
[data-screen] { display: none; }
[data-screen].is-active { display: block; }

.wrap { max-width: calc(var(--w) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Tipografi ---------- */
.t-hero { font: 800 50px/1.02 var(--font); letter-spacing: -0.035em; }
.t-h1 { font: 800 36px/1.08 var(--font); letter-spacing: -0.03em; }
.t-h2 { font: 800 26px/1.15 var(--font); letter-spacing: -0.025em; }
.t-h3 { font: 700 18px/1.3 var(--font); letter-spacing: -0.01em; }
.t-meta { font-size: 14px; color: var(--ink-2); }
.t-small { font-size: 13px; color: var(--ink-2); }
@media (max-width: 720px) { .t-hero { font-size: 34px; } .t-h1 { font-size: 28px; } .t-h2 { font-size: 22px; } }

/* ---------- Tombol ---------- */
.btn { height: 46px; padding: 0 22px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-outline { border: 1.5px solid var(--action); color: var(--action); background: #fff; }
.btn-outline:hover { background: var(--action-tint); }
.btn-quiet { border: 1px solid var(--line-2); background: #fff; }
.btn-quiet:hover { background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { background: var(--soft); color: var(--ink-3); border-color: var(--soft); cursor: default; }

/* ---------- Header & promo ---------- */
.promo { background: var(--promo); text-align: center; font-size: 15px; padding: 11px var(--gutter); }
.promo a { text-decoration: underline; font-weight: 600; }
.header { height: 68px; display: flex; align-items: center; gap: 28px; }
.wordmark { font: 500 25px/1 var(--font); letter-spacing: .14em; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a.is-active { color: var(--action); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: var(--r-pill); background: var(--soft); font-size: 14px; font-weight: 600; }
.credit-pill b { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.header--line { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) { .header { gap: 12px; } .header .btn { display: none; } .wordmark { font-size: 21px; } }

/* ---------- Foto ---------- */
.photo { position: relative; aspect-ratio: var(--ar, 4 / 3); border-radius: var(--r-md); overflow: hidden; background: var(--soft); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }

/* ---------- Hero mosaik (ClassPass) ---------- */
.mosaic { position: relative; overflow: hidden; padding: 0 0 40px; }
.mosaic__cols { display: grid; grid-template-columns: 1fr 1fr minmax(600px, 2.3fr) 1fr 1fr; gap: 18px; height: 660px; padding: 0 18px; }
.mosaic__col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mosaic__col .photo { aspect-ratio: auto; flex: 1; }
.mosaic__col--up { margin-top: -70px; }
.mosaic__col--down { margin-top: 56px; margin-bottom: -40px; }
.mosaic__card { align-self: center; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: 34px 36px 28px; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
@media (max-width: 1180px) {
  .mosaic__cols { grid-template-columns: 1fr minmax(0, 3fr) 1fr; }
  .mosaic__col--outer { display: none; }
}
@media (max-width: 820px) {
  .mosaic__cols { grid-template-columns: 1fr 1fr; height: auto; padding: 0 var(--gutter); gap: 10px; }
  .mosaic__col { height: 170px; margin: 0 !important; }
  .mosaic__card { grid-column: 1 / -1; grid-row: 2; padding: 22px 18px; box-shadow: none; border: 1px solid var(--line); }
}

/* ---------- Baris kelas (GymForce "Today's classes") ---------- */
.classes { display: flex; flex-direction: column; }
.class-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.class-row:last-child { border-bottom: 1px solid var(--line); }
.class-row__time { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.class-row__time small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.class-row__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.class-row__meta { font-size: 13.5px; color: var(--ink-2); }
.class-row.is-past { color: var(--ink-3); }
.class-row.is-past .class-row__meta { color: var(--ink-3); }
.spots { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spots svg { width: 16px; height: 16px; color: var(--ink-2); }
.spots--low { color: var(--action); }
.spots--full { color: var(--ink-2); }
@media (max-width: 560px) {
  .class-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .class-row .spots { grid-column: 2; grid-row: 2; }
  .class-row > .btn, .class-row > .go { grid-row: 1 / span 2; grid-column: 3; }
}

/* Daftar kelas yang bisa dipilih (layar jadwal) */
.pick-list .class-row { padding: 14px 14px; border: 1px solid transparent; border-top-color: var(--line); border-radius: 0; }
.pick-list .class-row.is-selected { border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fff; }
.pick-list .class-row.is-selected + .class-row { border-top-color: transparent; }
.go { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.is-selected .go { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Chip, tab, segmented ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #fff; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--soft); }
.seg button { height: 38px; padding: 0 20px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Deret hari */
.days { display: grid; grid-template-columns: repeat(7, minmax(84px, 1fr)); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.day b { font-size: 17px; font-weight: 700; }
.day span { font-size: 13px; color: var(--ink-2); }
.day.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.is-selected span { color: #d4d4d4; }

/* ---------- Panel & daftar ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.rows > * + * { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; }
.row__name { font-weight: 700; font-size: 16px; }
.row__desc { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.row__right { text-align: right; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.row__right b { display: block; color: var(--ink); font-size: 15px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--soft); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag--action { background: var(--action-tint); color: var(--action); }
.tag--ok { background: var(--ok-tint); color: var(--ok); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Instruktur ---------- */
.people { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { display: flex; flex-direction: column; gap: 4px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font: 700 19px var(--font); flex: none; margin-bottom: 8px; }
.avatar--sm { width: 38px; height: 38px; font-size: 13px; margin: 0; }
.person__name { font-weight: 700; }
.person__role { font-size: 14px; color: var(--ink-2); }

/* ---------- Peta reformer ---------- */
.room { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.room__front { height: 34px; border-radius: var(--r-sm); background: var(--soft); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
.spotmap { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 12px; }
.spot { position: relative; height: 92px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.spot::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: currentColor; opacity: .18; margin-bottom: 6px; } /* sandaran kepala */
.spot small { font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.spot--mat { height: 64px; }
.spot--mat::before { display: none; }
.spot.is-taken { background: var(--soft); border-color: var(--soft); color: var(--ink-3); cursor: default; }
.spot.is-taken small { color: var(--ink-3); }
.spot.is-selected { background: var(--action); border-color: var(--action); color: #fff; }
.spot.is-selected small { color: #fff; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1.5px solid var(--line-2); }
.legend .l-taken { background: var(--soft); border-color: var(--soft); }
.legend .l-sel { background: var(--action); border-color: var(--action); }
@media (max-width: 560px) { .spotmap { gap: 8px; } .spot { height: 72px; font-size: 14px; } .spot small { display: none; } .room { padding: 14px; } }

/* ---------- Ringkasan ---------- */
.kv { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.kv svg { margin-top: 3px; color: var(--ink-2); }
.line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.note { background: var(--soft); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; }
.note svg { margin-top: 2px; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; }

/* ---------- Paket ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px; text-align: left; display: flex; flex-direction: column; gap: 14px; background: #fff; position: relative; }
.plan.is-selected { border-color: var(--action); box-shadow: 0 0 0 1.5px var(--action); }
.plan__name { font-weight: 700; font-size: 16px; }
.plan__price { font: 800 30px/1 var(--font); letter-spacing: -0.03em; }
.plan__per { font-size: 14px; color: var(--ink-2); }
.plan ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ink-2); }
.radio { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.is-selected > .radio { border: 7px solid var(--action); }
.meter { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .pay { grid-template-columns: 1fr; } }
.pay__opt { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; text-align: left; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.pay__opt small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.pay__opt.is-selected { border-color: var(--ink); box-shadow: 0 0 0 .5px var(--ink); }
.timeline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 14px; }
.timeline__bar { height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 13px); }
.paybar { position: sticky; bottom: 0; background: #fff; box-shadow: var(--sh-bar); border-top: 1px solid var(--line); z-index: 5; }
.paybar__in { display: flex; align-items: center; gap: 24px; min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 640px) { .paybar__in { gap: 12px; flex-wrap: wrap; } .paybar__in .btn { width: 100%; } }
.field { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; display: flex; align-items: center; gap: 10px; background: #fff; }
.field input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 15px; }

/* ---------- Meja depan (tablet) ---------- */
.desk { min-height: 100vh; background: var(--soft); display: flex; flex-direction: column; }
.desk__bar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 24px; }
.desk__clock { font: 800 22px/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.desk__classes { display: flex; gap: 10px; padding: 16px 24px; overflow-x: auto; scrollbar-width: none; }
.desk__classes::-webkit-scrollbar { display: none; }
.dclass { flex: none; min-width: 178px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.dclass b { font-size: 15px; }
.dclass span { font-size: 13px; color: var(--ink-2); }
.dclass.is-active { border-color: var(--ink); box-shadow: 0 0 0 .5px var(--ink); }
.dclass.is-past { opacity: .55; }
.desk__main { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; padding: 0 24px 24px; flex: 1; align-items: start; }
@media (max-width: 1080px) { .desk__main { grid-template-columns: 1fr; } }
.desk__card { background: #fff; border-radius: var(--r-md); padding: 22px; }
.count { display: flex; gap: 28px; flex-wrap: wrap; }
.count div { display: flex; flex-direction: column; }
.count b { font: 800 28px/1.1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.count span { font-size: 13px; color: var(--ink-2); }
.seat { position: relative; height: 104px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-2); display: flex; flex-direction: column; justify-content: space-between; padding: 10px 12px; font-size: 13px; text-align: left; background: #fff; }
.seat__no { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.seat__who { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.seat__st { font-size: 12.5px; color: var(--ink-2); }
.seat.is-booked { border-style: solid; }
.seat.is-in { border: 1.5px solid var(--ok); background: var(--ok-tint); }
.seat.is-in .seat__st { color: var(--ok); font-weight: 600; }
.seat.is-empty .seat__who { color: var(--ink-3); font-weight: 500; }
@media (max-width: 560px) { .seat { height: 84px; padding: 8px; } .seat__who { font-size: 13px; } .seat__st { display: none; } }
.roster > * + * { border-top: 1px solid var(--line); }
.member { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; }
.member__name { font-weight: 700; font-size: 15px; }
.member__meta { font-size: 13px; color: var(--ink-2); }
.member__flag { font-size: 12.5px; font-weight: 600; color: var(--warn); }
.member .is-in-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ok); white-space: nowrap; }

/* ---------- Footer (hitam, ClassPass) ---------- */
.footer { background: var(--night); color: #fff; padding: 56px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; font-size: 15px; }
.footer__grid h4 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footer__grid li + li { margin-top: 10px; }
.footer__grid a, .footer p { color: #cfcfcf; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Tata letak bersama ---------- */
.sec { padding: 64px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 20px; }
@media (max-width: 1024px) { .sticky { position: static; } }
