/* =========================================================
   KIBAS — clinic teal · sunny yellow · soft paper
   Layout: hero dua kolom, tabel harga, booking satu halaman
   (form 5 bagian + ringkasan menempel), proses, syarat, FAQ.
   ========================================================= */
:root {
  --bg: #f6f7f4;
  --card: #ffffff;
  --soft: #e8f2ef;
  --ink: #1d2a26;
  --muted: #56635e;
  --line: #dbe3df;
  --teal: #1f7a6d;
  --teal-2: #165d53;
  --sun: #ffcf4a;
  --bad: #b3261e;
  --display: 'Gabarito', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.06; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 10px; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.sub { color: var(--muted); margin-bottom: 26px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); }
.btn--line { border-color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 8px 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.demo-bar { background: var(--teal-2); color: #cfe6e1; font-size: .8rem; text-align: center; padding: 6px 16px; }
.demo-bar a { color: #fff; font-weight: 700; }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(246,247,244,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.brand rect { fill: var(--teal); }
.brand path { fill: none; stroke: var(--sun); stroke-width: 3.4; stroke-linecap: round; }
.brand circle { fill: #fff; }
.nav__links { display: none; gap: 24px; font-weight: 600; font-size: .95rem; }
.nav__links a { text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--teal); }
@media (min-width: 820px) { .nav__links { display: flex; } }

.hero { padding: 48px 0 64px; }
.hero__in { display: grid; gap: 34px; align-items: center; }
@media (min-width: 920px) { .hero__in { grid-template-columns: 1fr 1fr; gap: 56px; } .hero { padding: 72px 0 88px; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); margin-bottom: 18px; }
.hero h1 span { color: var(--teal); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 48ch; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); }
.facts b { color: var(--ink); }
.hero__img { margin: 0; }
.hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; }

.sec { padding: 72px 0; }
.sec--soft { background: var(--soft); }

/* price table */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.ptable { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.ptable thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
.ptable thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ptable tbody th { font-family: var(--display); font-size: 1.1rem; }
.ptable tbody th small { display: block; font-family: var(--body); font-weight: 500; font-size: .82rem; color: var(--muted); }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.pop { display: inline-block; background: var(--sun); border-radius: 999px; padding: 2px 8px; font-size: .7rem; font-weight: 700; margin-left: 6px; vertical-align: middle; font-family: var(--body); }

/* booking */
.bk { display: grid; gap: 22px; margin-top: 24px; }
@media (min-width: 960px) { .bk { grid-template-columns: 1fr 360px; gap: 28px; align-items: start; } }
.bk__form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.step { border: 0; margin: 0; padding: 20px; background: var(--card); border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.step legend b { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .95rem; flex: none; }
.lbl { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg button, .opt, .pkg, .slot, .day, .pick { border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.seg button { padding: 9px 18px; font-weight: 700; border-radius: 999px; }
.seg button small { font-weight: 500; color: var(--muted); margin-left: 4px; }
[aria-pressed="true"].seg-btn, .seg button[aria-pressed="true"], .opt[aria-pressed="true"], .pkg[aria-pressed="true"], .day[aria-pressed="true"], .slot[aria-pressed="true"], .pick[aria-pressed="true"] { border-color: var(--teal); background: var(--soft); box-shadow: inset 0 0 0 1px var(--teal); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.opts--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .opts--4 { grid-template-columns: repeat(4, 1fr); } }
.opt { padding: 10px 12px; font-weight: 700; }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.pkgs { display: grid; gap: 8px; }
@media (min-width: 700px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
.pkg { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.pkg b { font-family: var(--display); font-size: 1.1rem; }
.pkg span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.pkg em { font-style: normal; font-weight: 700; margin-top: auto; font-variant-numeric: tabular-nums; }
.addons { display: flex; flex-direction: column; gap: 6px; }
.addon { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.addon input { margin-top: 4px; accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.addon span { flex: 1; font-weight: 600; }
.addon small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.addon em { font-style: normal; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.addon.is-incl { opacity: .6; cursor: default; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day { flex: none; width: 74px; padding: 8px 0; text-align: center; }
.day small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.day b { display: block; font-family: var(--display); font-size: 1.3rem; }
.day:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { padding: 9px 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.pickup { display: flex; flex-direction: column; gap: 8px; }
.pick { padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pick b { display: block; }
.pick small { display: block; color: var(--muted); font-size: .8rem; }
.pick em { font-style: normal; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--muted); min-width: 0; }
.field input, .field textarea { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 12px; font-size: 1rem; font-weight: 500; color: var(--ink); min-width: 0; width: 100%; }
.field textarea { min-height: 74px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.two { display: grid; gap: 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--teal); width: 17px; height: 17px; flex: none; }

.sum { background: var(--card); border-radius: var(--r); padding: 22px; border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) { .sum { position: sticky; top: 84px; } }
.sum h3 { font-size: 1.4rem; }
.sum__lines { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.sum__lines div { display: flex; justify-content: space-between; gap: 12px; }
.sum__lines dt { color: var(--muted); }
.sum__lines dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: 12px; }
.sum__total b { font-family: var(--display); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.sum__dur { font-size: .9rem; color: var(--muted); }
.err { color: var(--bad); font-weight: 600; font-size: .9rem; }
.fine { font-size: .78rem; color: var(--muted); }
.wa-preview { background: #0b141a; border-radius: 12px; padding: 12px; }
.wa-preview div { margin-left: auto; max-width: 96%; background: #005c4b; color: #e9edef; border-radius: 10px 10px 4px 10px; padding: 10px 12px; white-space: pre-wrap; font-size: .82rem; line-height: 1.45; }

/* process */
.proc { display: grid; gap: 30px; align-items: center; }
@media (min-width: 920px) { .proc { grid-template-columns: 1fr 1fr; gap: 56px; } }
.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.steps b { font-family: var(--display); font-size: 1.1rem; }
.steps span { color: var(--muted); font-size: .95rem; }
.proc__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proc__imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; }
.proc__imgs img:last-child { margin-top: 40px; }

.rules { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .rules { grid-template-columns: repeat(2, 1fr); } }
.rules li { background: var(--card); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.rules b { font-family: var(--display); font-size: 1.15rem; }
.rules span { color: var(--muted); }

.faq { display: grid; gap: 24px; }
@media (min-width: 860px) { .faq { grid-template-columns: 1fr 1.4fr; gap: 56px; } }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-weight: 800; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 8px; color: var(--muted); }

.foot { background: var(--ink); color: #b9c4bf; padding: 28px 0 34px; font-size: .88rem; }
.foot__in { display: flex; flex-direction: column; gap: 6px; }
.foot b { color: #fff; font-family: var(--display); font-size: 1.3rem; }
.foot__credit { font-size: .78rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
