@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #F6F3EC;
  --tint: #EBE5D8;
  --surface: #FDFCF9;
  --ink: #141311;
  --muted: #544F46;
  --brand: #B93815;
  --rule: #D5CDBE;
  --wa: #15693F;
  --wa-hover: #0F5230;
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-block: 1.5rem;
  scrollbar-color: var(--muted) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
p, li { text-wrap: pretty; }
h1, h2, h3, .brand strong, .callout-num, .step-num {
  font-family: var(--display);
  line-height: 1.04;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }

.icon {
  display: inline-block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbols, [hidden] { display: none !important; }

.wrap {
  width: min(calc(100% - clamp(2rem, 8vw, 8rem)), 74rem);
  margin-inline: auto;
}
.section { padding-block: clamp(3.25rem, 6.5vw, 5.75rem); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand); color: #FFFDF9; }

.skip {
  position: absolute;
  top: .25rem;
  left: .5rem;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-weight: 600;
  z-index: 20;
}
.skip:focus { transform: none; }

/* Zero-JS BM / EN toggle driven by top-level radio inputs */
.lang-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
#lang-ms:checked ~ .site-shell .en,
#lang-ms:checked ~ .sticky-bar .en { display: none; }
#lang-en:checked ~ .site-shell .ms,
#lang-en:checked ~ .sticky-bar .ms { display: none; }

#lang-ms:checked ~ .site-shell .lang-opt-ms,
#lang-en:checked ~ .site-shell .lang-opt-en {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
#lang-ms:focus-visible ~ .site-shell .lang-opt-ms,
#lang-en:focus-visible ~ .site-shell .lang-opt-en {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.8rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .75rem;
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}
.brand strong {
  color: var(--brand);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand span {
  padding-left: .75rem;
  border-left: 1px solid var(--rule);
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.site-header nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: .35rem;
  background: var(--surface);
  padding: 2px;
  gap: 2px;
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 .65rem;
  border-radius: .25rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  cursor: pointer;
}
.lang-opt:hover { color: var(--ink); }

/* Primary WhatsApp CTA */
.wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .78rem 1.3rem;
  border-radius: .4rem;
  background: var(--wa);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}
.wa:hover { background: var(--wa-hover); transform: translateY(-2px); }
.wa:active:not(:focus-visible) { transform: translateY(1px); }
.wa:focus-visible { transform: none; animation: none; }
.head-wa .wa { min-height: 44px; padding: .52rem 1rem; font-size: .9rem; }

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4.4rem);
}
h1 {
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.038em;
  text-wrap: balance;
  animation: enter .45s ease-out;
}
h1 em { color: var(--brand); font-style: normal; }
.hero-lead {
  max-width: 34rem;
  margin-block: 1.25rem 1.35rem;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--muted);
}
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1.25rem;
  padding-block: .85rem;
  border-block: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
.offer-price {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.offer-meta {
  font-size: .92rem;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.5rem;
}
.actions .wa { animation: enter .45s ease-out, nudge .55s ease 3s; }
.actions .wa:focus-visible { animation: none; }
.jump {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  font-weight: 650;
  font-size: .96rem;
  text-decoration: none;
}
.jump:hover { color: var(--brand); text-decoration: underline; }

/* 3D Centrepiece Stage */
.bench {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  min-width: 0;
  background: var(--paper);
}
.bench picture { display: block; }
.hero-layers, .hero-layers picture, .phone-spin {
  position: absolute;
  inset: 0;
}
.hero-layers picture:first-child { z-index: 1; }
.hero-layers picture:last-child { z-index: 2; }
.bench picture img {
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(#000 94%, transparent);
  mask-composite: intersect;
}
.hero-layers {
  display: none;
  overflow: clip;
  background: var(--paper);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-layers { display: block; visibility: hidden; }
    .is-layered .hero-layers { visibility: visible; }
    .is-layered:not(.is-spinnable) .hero-layers-front {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: contain 80% exit 80%;
    }
    .is-spinnable .hero-layers { visibility: hidden; }
  }
}
@keyframes drift {
  to { transform: translate(26px, -10px); opacity: .9; }
}

.phone-spin {
  opacity: 0;
  transition: opacity .22s ease-out;
  z-index: 3;
}
.is-spinnable .phone-spin { opacity: 1; }
.spin-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.spin-canvas:active { cursor: grabbing; }
.spin-controls {
  position: absolute;
  inset: auto .5rem .35rem .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  pointer-events: none;
}
.spin-hint {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  background: rgba(246, 243, 236, .88);
  padding: .2rem .55rem;
  border-radius: .25rem;
}
.spin-toggle {
  pointer-events: auto;
  margin-left: auto;
  min-height: 44px;
  padding: .5rem .95rem;
  border-radius: .35rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: 650 .86rem/1 var(--body);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease;
}
.spin-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }
.spin-toggle:active:not(:focus-visible) { transform: translateY(1px); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Band 2: Included / Not Included */
.scope-band { background: var(--tint); border-block: 1px solid var(--rule); }
.scope-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.section-lead {
  margin-top: .75rem;
  color: var(--muted);
  max-width: 40rem;
}
.section-lead strong { color: var(--ink); }
.price-callout {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .45rem;
}
.callout-num {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.price-callout span { font-size: .88rem; color: var(--muted); }

.scope-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem clamp(2.5rem, 6vw, 5.5rem);
  margin-top: 2rem;
}
.scope-group h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.rule-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.rule-list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--rule);
}
.rule-list .icon {
  position: relative;
  top: .2rem;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--brand);
}
.scope-excl .rule-list .icon { color: var(--muted); }

/* Band 3: Examples (5 live phone screenshots + plain links) */
.band-intro { max-width: 44rem; margin-bottom: 2.25rem; }
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem clamp(1.25rem, 2.8vw, 2.25rem);
}
.ex-item {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-width: 0;
}
.ex-shot {
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: .55rem;
  padding: .75rem .75rem 0;
  overflow: hidden;
  transition: transform .18s ease-out;
}
.ex-shot img {
  aspect-ratio: 390 / 540;
  object-fit: cover;
  object-position: top center;
  border-radius: .35rem .35rem 0 0;
  border: 1px solid var(--rule);
  border-bottom: 0;
}
.ex-body h3 { font-size: 1.25rem; }
.ex-note {
  margin-top: .25rem;
  font-size: .92rem;
  color: var(--muted);
}
.ex-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  min-height: 44px;
  font-weight: 650;
  font-size: .96rem;
  color: var(--brand);
}
.ex-link .icon { width: .95rem; height: .95rem; }
.ex-link:hover { color: var(--ink); }

/* Band 4: Cara Tempah */
.steps-band { background: var(--tint); border-block: 1px solid var(--rule); }
.steps-band h2 { margin-bottom: 2rem; }
.steps-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.steps-list li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.step-num {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.steps-list p {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 48ch;
}

/* Band 5: Trust + FAQ Split */
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 2rem clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.trust-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.trust-list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  max-width: 58ch;
}
.trust-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  margin-bottom: .2rem;
}
.trust-list span { color: var(--muted); }

.faq-band { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding-block: .9rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--brand);
  transition: transform .18s ease;
}
.faq-list details[open] > summary .icon { transform: rotate(45deg); }
.faq-list details p {
  padding-bottom: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Closing + Footer + Mobile Sticky Bar */
.closing-band { background: var(--tint); border-top: 1px solid var(--rule); }
.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.closing-inner p {
  margin-top: .5rem;
  color: var(--muted);
  max-width: 44ch;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.75rem;
  padding-block: 1.65rem;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.site-footer strong { color: var(--ink); font-family: var(--display); }
.sticky-bar { display: none; }

@keyframes enter { from { opacity: .82; transform: translateY(.35rem); } }
@keyframes nudge { 50% { opacity: .88; } }

@media (min-width: 961px) {
  .ex-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
    background: var(--tint);
    border: 1px solid var(--rule);
    border-radius: .55rem;
    padding: 1.15rem;
  }
  .ex-featured .ex-shot { padding: 0; border: 0; background: transparent; }
  .ex-featured .ex-shot img { border: 1px solid var(--rule); border-radius: .35rem; }
  .ex-featured .ex-body { padding-top: .4rem; }
  .ex-featured .ex-body h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
}

@media (max-width: 960px) {
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) and (max-width: 960px) {
  .ex-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    background: var(--tint);
    border: 1px solid var(--rule);
    border-radius: .55rem;
    padding: 1rem;
  }
  .ex-featured .ex-shot { padding: 0; border: 0; background: transparent; }
  .ex-featured .ex-shot img { border: 1px solid var(--rule); border-radius: .35rem; }
}

@media (max-width: 759px) {
  html { scroll-padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .site-header { min-height: 4rem; gap: .75rem; }
  .brand strong { font-size: 1.65rem; }
  .brand span { font-size: .78rem; padding-left: .55rem; }
  .site-header nav, .head-wa { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: .95rem 1.3rem; }
  h1 { font-size: clamp(2.15rem, 10.4vw, 3.3rem); }
  .hero-lead { margin-block: .6rem .75rem; font-size: .96rem; }
  .hero-offer { margin-bottom: .85rem; padding-block: .55rem; }
  .bench { margin-bottom: .4rem; }
  .scope-cols, .split, .examples-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-list li { grid-template-columns: 3.1rem minmax(0, 1fr); gap: .65rem; }
  .closing-inner { align-items: start; flex-direction: column; }
  .site-footer { justify-content: start; }
  .sticky-bar {
    position: fixed;
    z-index: 15;
    inset: auto 0 0;
    display: flex;
    padding: .5rem max(1rem, 4.5vw) calc(.5rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--rule);
  }
  .sticky-bar .wa { width: 100%; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
  .wrap { width: calc(100% - 1.75rem); }
  h1 { font-size: 2rem; }
  .hero-lead { font-size: .92rem; line-height: 1.45; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(var(--rise, 24px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .is-revealing { animation: rise .55s cubic-bezier(.2, .65, .3, 1) both; }
  .is-revealing :is(.ex-item, .steps-list li, .trust-list li) {
    --rise: 18px;
    animation: rise .55s cubic-bezier(.2, .65, .3, 1) var(--delay, 0ms) both;
  }
  :is(.ex-item, .steps-list li, .trust-list li):nth-child(2) { --delay: 80ms; }
  :is(.ex-item, .steps-list li, .trust-list li):nth-child(3) { --delay: 160ms; }
  :is(.ex-item, .steps-list li, .trust-list li):nth-child(4) { --delay: 240ms; }
  :is(.ex-item, .steps-list li, .trust-list li):nth-child(5) { --delay: 320ms; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ex-item:hover .ex-shot { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .wa:hover, .wa:active:not(:focus-visible), .ex-item:hover .ex-shot { transform: none; }
  .phone-spin { display: none; }
}
