/* KinBits – laman web (jenama KinBits: Forest, Sage, Sand, Blush, Cloud; fon Nunito) */
:root {
  --navy: #2E3A2F;
  --navy-2: #3B4A3C;
  --ivory: #F6F3EC;
  --ivory-2: #ECE7DC;
  --gold: #B08E45;
  --gold-ink: #7A6230;
  --gold-tint: #F3EAD6;
  --green: #2E3A2F;
  --green-ink: #2E3A2F;
  --green-tint: #E4E9DB;
  --white: #FFFFFF;
  --ink: #2E3A2F;
  --muted: #677064;
  --line: #E3DDD0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(46, 58, 47, .05), 0 8px 24px rgba(46, 58, 47, .06);
  --max: 1120px;
  color-scheme: light;
}

/* Nunito (SIL OFL 1.1), disimpan sendiri kerana CSP hanya membenarkan fon dari laman ini */
@font-face { font-family: "Nunito"; src: url("nunito-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("nunito-700.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("nunito-800.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green-ink); }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

/* Bahasa: tunjuk satu sahaja */
html:not(.l-en) .en { display: none !important; }
html.l-en .ms { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Kepala */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 241, 234, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 20px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--gold-ink); }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.nav + .lang { margin-left: 8px; }
.lang button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; min-width: 44px; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }
.top .lang:only-of-type { margin-left: auto; }

/* Butang */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--green); color: var(--white);
}
.btn:hover { background: var(--green-ink); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--ivory); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink);
}

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); margin: 14px 0 18px; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--gold-ink); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
  border-radius: 12px; background: var(--navy); color: var(--ivory); font-size: 13px; line-height: 1.25;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store b { display: block; font-size: 16px; }
.store small { opacity: .75; }
.soon { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Telefon (lakaran CSS, nama rekaan) */
.phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone {
  width: 280px; border-radius: 40px; padding: 12px; background: var(--navy);
  box-shadow: 0 30px 60px rgba(27, 35, 55, .22);
}
.phone .scr { border-radius: 30px; background: var(--ivory); overflow: hidden; height: 560px; padding: 22px 14px 0; position: relative; font-size: 13px; line-height: 1.35; }
.phone.back { position: absolute; transform: translate(-46%, 34px) rotate(-6deg) scale(.88); opacity: .96; }
.phone.front { position: relative; transform: translateX(22%); }
.m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.m-head b { font-size: 24px; color: var(--navy); }
.m-head small { display: block; color: var(--muted); font-size: 11px; }
.m-chip { display: flex; align-items: center; gap: 6px; background: var(--white); border-radius: 999px; padding: 4px 10px 4px 4px; font-weight: 600; font-size: 12px; box-shadow: var(--shadow); }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--white); flex: none; }
.av.a { background: var(--navy); } .av.b { background: #8A80B8; } .av.c { background: #C98E6E; }
.m-card { background: var(--white); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(27,35,55,.05); }
.m-seg { display: flex; background: var(--gold-tint); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.m-seg > span { flex: 1; text-align: center; padding: 5px 0; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--gold-ink); }
.m-seg > span.on { background: #7E6440; color: var(--white); }
.m-seg > span.on span { color: var(--white); }
.m-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--ivory-2); border-radius: 12px; padding: 6px 4px; text-align: center; }
.m-week i { font-style: normal; font-size: 9px; color: var(--muted); display: block; }
.m-week b { font-size: 14px; color: var(--navy); }
.m-week .on { background: #7E6440; border-radius: 9px; padding: 2px 0; }
.m-week .on i, .m-week .on b { color: var(--white); }
.dots { display: flex; gap: 2px; justify-content: center; height: 6px; margin-top: 2px; }
.dots s { width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.dots s.b { background: #8A80B8; } .dots s.c { background: #C98E6E; }
.m-ev { display: flex; gap: 10px; align-items: center; background: var(--ivory-2); border-radius: 10px; padding: 8px 10px; margin-top: 10px; border-left: 3px solid var(--gold); }
.m-ev small { color: var(--gold-ink); font-weight: 600; font-size: 10px; width: 50px; }
.m-ev b { display: block; font-size: 13px; }
.m-ev em { font-style: normal; color: var(--muted); font-size: 11px; }
.m-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.m-quick div { background: var(--white); border-radius: 12px; padding: 8px 2px; text-align: center; font-size: 10px; font-weight: 600; }
.m-quick svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold-tint); margin: 0 auto 4px; display: block; }
.m-todo { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.m-todo:first-of-type { border-top: 0; }
.m-todo u { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #D8CDB8; flex: none; }
.m-todo small { display: block; color: var(--muted); font-size: 10px; }
.m-h { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.m-sum { background: var(--green-tint); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.m-sum b { display: block; margin-bottom: 4px; }
.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: 6px; }
.m-bars span { flex: 1; background: var(--gold); border-radius: 5px 5px 2px 2px; opacity: .85; }
.m-bars span.g { background: var(--green); }
.m-labels { display: flex; gap: 8px; font-size: 9px; color: var(--muted); text-align: center; margin-top: 4px; }
.m-labels > span { flex: 1; }
.m-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; background: var(--white); padding: 8px 6px 14px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.m-tabs > span { text-align: center; }
.m-tabs > span.on { color: var(--gold-ink); font-weight: 700; }
.m-tabs svg { width: 18px; height: 18px; display: block; margin: 0 auto 2px; }
.m-tabs .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.m-tabs .plus svg { margin: 0; stroke: var(--white); }

/* Seksyen */
section { padding: 80px 0; }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 12px; color: var(--navy); }
.sec-head p { color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin: 14px 0 8px; color: var(--navy); }
.card p { color: var(--muted); font-size: 16px; }
.ico { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-tint); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }
svg.l { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stages > span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--ivory); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

.band { background: var(--navy); color: var(--ivory); }
.band .sec-head h2 { color: var(--ivory); }
.band .sec-head p { color: #C9CCD6; }
.band .eyebrow { color: #D2B88E; }
.band .card { background: var(--navy-2); box-shadow: none; border: 1px solid #343F5C; }
.band .card h3 { color: var(--ivory); }
.band .card p { color: #C9CCD6; }
.band .ico { background: rgba(168, 135, 90, .18); }
.band a { color: #D2B88E; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: var(--radius); padding: 0 22px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

.final { text-align: center; }
.final .card { padding: 48px 24px; background: var(--green-tint); box-shadow: none; }
.final h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); margin-bottom: 12px; }
.final p { color: var(--muted); max-width: 34em; margin: 0 auto 22px; }

/* Kaki */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--navy); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Halaman dokumen (privasi, padam akaun) */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); color: var(--navy); margin: 10px 0 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.doc .card { margin-bottom: 14px; }
.doc .card h2 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.doc .card p + p, .doc .card ul + p, .doc .card p + ul, .doc .card p + ol { margin-top: 10px; }
.doc .card ul, .doc .card ol { margin: 0; padding-left: 22px; color: var(--ink); }
.doc .card li + li { margin-top: 6px; }
.doc .card p { color: var(--ink); font-size: 17px; }
.doc .note { background: var(--gold-tint); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.doc .warn { background: #F6E3DE; }
.doc kbd { font-family: inherit; font-weight: 700; background: var(--ivory-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 15px; }

/* Responsif */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phones { min-height: 520px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .hero .lead { font-size: 17px; }
  section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .phone .scr { height: 500px; }
  .phones { min-height: 520px; }
  .phone.back { display: none; }
  .phone.front { transform: none; }
  .btn { width: 100%; }
  .brand span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
