/* Tahan — buaytahan.com
   Colours and type follow the Tahan design reference (Oct 2026).
   Neon colours are for kueh, motif pieces and button shadows only, never text. */

@font-face {
  font-family: "Saira Stencil One";
  src: url("/fonts/saira-stencil-one.woff2") format("woff2");
  font-display: swap;
}

:root {
  --black: #111111;
  --white: #FFFFFF;
  --near-black: #0E0E12;
  --ghost: #1C1C24;
  --light-ghost: #ECECF0;
  --grey-text: #3A3A3A;
  --light-text: #C9C9D2;
  --phone-edge: #3A3A44;

  --magenta: #E6007E;
  --orange: #F29100;
  --yellow: #FFCC00;
  --green: #00F064;
  --cyan: #00E5D4;
  --sky: #00A8FF;
  --purple: #6600FF;
  --violet: #A000FF;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --wordmark: "Saira Stencil One", var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--black); color: var(--white); padding: 12px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Logo lockup: mark bottom on the wordmark baseline */
.lockup {
  display: inline-flex; align-items: baseline; gap: 5.6px;
  padding: 8px 0; text-decoration: none; color: inherit;
}
.lockup img { width: 20px; height: 21.1px; }
.lockup span { font-family: var(--wordmark); font-size: 28px; line-height: 1; }

/* Header */
.site-header { border-bottom: 2px solid var(--black); background: var(--white); }
.site-header .wrap {
  padding-top: 10px; padding-bottom: 10px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  row-gap: 4px; column-gap: 24px;
}
.site-header .btn { order: 2; }
.main-nav {
  order: 3; flex: 1 1 100%;
  display: flex; gap: 4px; margin-left: -10px; overflow-x: auto;
}
.main-nav a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 10px; font-size: 15px; font-weight: 500; text-decoration: none;
}
.main-nav a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .main-nav { order: 2; flex: 0 1 auto; margin-left: auto; }
  .site-header .btn { order: 3; }
}

/* Buttons: square, solid offset shadow, no blur */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border: 2px solid var(--black);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; border-radius: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn--lg { min-height: 52px; padding: 0 22px; font-weight: 700; font-size: 17px; }
.btn--primary { background: var(--black); color: var(--white); box-shadow: 4px 4px 0 var(--magenta); }
.btn--lg.btn--primary { box-shadow: 5px 5px 0 var(--magenta); }
.btn--secondary { background: var(--white); color: var(--black); box-shadow: 5px 5px 0 var(--cyan); }
.btn--invert { background: var(--white); color: var(--black); border-color: var(--white); }
.btn:hover { transform: translate(-1px, -1px); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 currentColor; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Motif pieces: always at the edges, never behind text */
.motif { position: absolute; pointer-events: none; }
.motif i { position: absolute; display: block; }

/* Sections */
.section { border-top: 2px solid var(--black); padding: 44px 0 48px; }
.section h2 {
  margin: 0; font-size: clamp(30px, 8vw, 48px); line-height: 1.05;
  font-weight: 800; letter-spacing: -0.02em;
}
.lead { font-size: 17px; line-height: 1.5; color: var(--grey-text); }
.photo {
  width: 100%; object-fit: cover; object-position: center;
  border: 2px solid var(--black);
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 52px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero__text { flex: 1 1 360px; min-width: 0; }
.hero h1 {
  margin: 0; font-size: clamp(44px, 12vw, 88px); line-height: 0.98;
  font-weight: 800; letter-spacing: -0.03em;
}
.hero p { margin: 20px 0 0; max-width: 36ch; font-size: 18px; line-height: 1.5; color: var(--grey-text); }
.hero p strong { color: var(--black); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero__image { flex: 1 1 340px; min-width: 0; max-width: 520px; margin: 0 auto; }
.hero__image img { aspect-ratio: 1200 / 883; box-shadow: 6px 6px 0 var(--magenta); }

/* Why */
.why__photo { aspect-ratio: 3 / 2; max-height: 460px; object-position: center 40%; margin: 24px 0 28px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 32px; }
.stat { border-top: 2px solid var(--black); padding: 20px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.stat img { aspect-ratio: 3 / 2; object-position: center 40%; margin-bottom: 8px; }
.label { display: flex; align-items: center; gap: 10px; }
.label i { width: 12px; height: 12px; flex: none; }
.label h3 {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--grey-text);
}
.big-number { margin: 0; font-size: clamp(52px, 14vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.big-number + p { margin: 0; font-size: 17px; line-height: 1.45; }
.big-number.spaced { margin-top: 16px; }
.source { margin: 0; font-size: 13px; color: var(--grey-text); }
.callout {
  margin-top: 8px; border: 2px solid var(--black); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: 5px 5px 0 var(--cyan);
}
.callout p:first-child { margin: 0; font-size: 17px; line-height: 1.45; }

/* Join + host */
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { border: 2px solid var(--black); display: flex; flex-direction: column; }
.card > img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 70%; border-bottom: 2px solid var(--black); width: 100%; }
.card__body { padding: 18px 16px 16px; }
.card__body h3 { margin: 0; font-size: 20px; font-weight: 700; }
.card__body p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--grey-text); }

.join-form { margin-top: auto; border-top: 2px solid var(--black); }
.join-form__row { display: flex; }
.join-form input[type="email"] {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: 0; font: inherit; font-size: 16px;
  background: var(--white); color: var(--black);
}
.join-form button {
  flex: none; min-height: 52px; padding: 0 18px;
  background: var(--black); color: var(--white); border: 0; border-radius: 0;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.join-form button[disabled] { opacity: .6; cursor: progress; }
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  margin: 0; padding: 10px 16px 12px; border-top: 2px solid var(--light-ghost);
  font-size: 13px; line-height: 1.45; color: var(--grey-text);
}
.form-status { margin: 0; padding: 12px 16px; border-top: 2px solid var(--black); font-size: 15px; line-height: 1.45; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--black); color: var(--white); }
.form-status--ok::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--green); margin-right: 10px; }
.form-status--error { background: var(--white); color: var(--black); box-shadow: inset 6px 0 0 var(--magenta); padding-left: 22px; }

.host {
  border: 2px solid var(--black); background: var(--black); color: var(--white);
  padding: 24px 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 6px 6px 0 var(--yellow);
}
.host .eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-text); }
.host h3 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; }
.host p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--light-text); }
.host .host__contact { margin-top: 8px; font-size: 15px; }
.host .host__contact a { display: inline-block; padding: 6px 0; font-size: clamp(20px, 5.5vw, 26px); font-weight: 700; text-underline-offset: 4px; overflow-wrap: anywhere; }
.host a:not(.btn) { color: var(--white); }

/* How it works */
.how__photo { aspect-ratio: 3 / 2; max-height: 460px; object-position: center 60%; margin: 18px 0 24px; }
.steps {
  list-style: none; display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 10px; scroll-padding-left: 20px;
}
.steps li {
  flex: 1 0 min(78%, 240px); scroll-snap-align: start;
  border: 2px solid var(--black); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.steps .num { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0; font-size: 21px; font-weight: 700; }
.steps p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--grey-text); }
.steps .step-head { display: flex; justify-content: space-between; align-items: flex-end; }
.steps .mini-kueh { display: flex; gap: 6px; align-items: flex-end; }

/* Focusing screen preview */
.focus-preview { position: relative; overflow: hidden; background: var(--near-black); color: var(--white); padding: 48px 0 52px; }
.focus-preview .wrap { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: center; }
.focus-preview h2 { margin: 0; font-size: clamp(30px, 8vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.focus-preview__text { flex: 1 1 320px; min-width: 0; }
.focus-preview__text p { margin: 16px 0 0; max-width: 40ch; font-size: 17px; line-height: 1.5; color: var(--light-text); }
.phone {
  flex: none; width: 232px; height: 480px;
  border: 2px solid var(--phone-edge); border-radius: 34px; padding: 8px; background: #000;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 26px; background: var(--near-black);
  padding: 32px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--phone-edge); font-size: 11px; font-weight: 600; }
.pill i { width: 7px; height: 7px; background: var(--green); display: inline-block; }
.timer { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.timer small { font-size: 40%; font-weight: 700; margin: 0 3px 0 1px; }
.phone .allowed { font-size: 11px; color: var(--light-text); }
.phone .spacer { flex: 1; }
.phone .stop {
  width: 100%; text-align: center; padding: 11px 0; background: var(--white); color: var(--black);
  font-weight: 700; font-size: 14px; box-shadow: 4px 4px 0 var(--magenta);
}
.phone .hint { font-size: 10px; color: var(--light-text); text-align: center; }

/* FAQ */
.faq { padding: 48px 0 52px; }
.faq h2 { margin: 0 0 20px; }
.faq__list { border: 2px solid var(--black); }
.faq details { border-bottom: 2px solid var(--light-ghost); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 16px 48px 16px 16px; min-height: 44px;
  font-weight: 700; font-size: 16px; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--black), var(--black)) center / 12px 2px no-repeat,
    linear-gradient(var(--black), var(--black)) center / 2px 12px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--black), var(--black)) center / 12px 2px no-repeat; }
.faq details p { margin: 0; padding: 0 16px 16px; font-size: 15px; line-height: 1.5; color: var(--grey-text); }
.faq details p a { color: var(--black); font-weight: 600; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 28px 0 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.site-footer .legal { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--light-text); }

/* Legal pages */
.legal-page { padding: 40px 0 56px; }
.legal-page h1 { margin: 0; font-size: clamp(36px, 10vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
.legal-page .updated { margin: 12px 0 32px; font-size: 14px; color: var(--grey-text); }
.legal-page .intro { margin: 0 0 28px; font-size: 17px; line-height: 1.55; }
.legal-page h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.legal-page h2 ~ p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--grey-text); }
.legal-page a { color: var(--black); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
