/* ============================================================
   WUBU — wubu.co.za
   Ink, paper and lime (the app's own tokens). Bricolage Grotesque for
   headlines, Inter for reading, Instrument Serif italic for the softer
   half of a line (a nod to the house style of equallyoked.co.za).
   ============================================================ */
:root {
  --ink: #0d0e12;
  --ink-2: #13151a;
  --raised: #17191f;
  --line: #262932;
  --line-2: #3a3e4a;
  --paper: #f6f5f1;
  --soft: #d5d7de;
  --mist: #9ba0ad;
  --lime: #c8ff2e;
  --violet: #7b5cff;
  --violet-soft: #c9beff;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 28px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.lime { color: var(--lime); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip:focus { left: 16px; }

/* ---- type ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--lime); }
.h-xl { font-family: var(--display); font-size: clamp(52px, 9vw, 128px); line-height: 0.92; font-weight: 800; letter-spacing: -0.045em; }
.h-l { font-family: var(--display); font-size: clamp(38px, 5.6vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.h-l em, .h-xl em { font-size: 1.05em; color: var(--paper); }
.h-m { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--soft); max-width: 640px; }
.small { font-size: 14px; color: var(--mist); }

/* ---- header ---- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(13, 14, 18, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.top .wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 20px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--soft); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--paper); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--paper); border-radius: 12px; height: 44px; padding: 0 14px; font: inherit; font-weight: 600; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform 0.25s var(--ease), background 0.2s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--line-2); text-decoration: none; }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; color: var(--mist); line-height: 1.2; }
.store b { display: block; font-size: 16px; line-height: 1.2; }

/* ---- phones ---- */
.phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #2a2d36, #0b0c0f); box-shadow: 0 0 0 1px #3a3e4a inset, 0 40px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
/* No fake notch: the screenshots start at the app's own header. */

/* ---- hero ---- */
.hero { position: relative; padding: 148px 0 96px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(123, 92, 255, 0.35), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -20%; bottom: -30%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(200, 255, 46, 0.12), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; }
.hero-phones .p1 { left: 4%; top: 40px; max-width: 280px; transform: rotate(-6deg); }
.hero-phones .p2 { right: 2%; top: 0; max-width: 300px; transform: rotate(5deg); z-index: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { font-size: 13px; font-weight: 600; color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; }

/* ---- sections ---- */
.sec { padding: 112px 0; position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: 56px; }
.sec-head.center { text-align: center; justify-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.phones-row { display: flex; gap: 24px; justify-content: center; }
.phones-row .phone { max-width: 260px; }
.phones-row .phone:nth-child(2) { transform: translateY(40px); }
.points { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--soft); }
.points li b { color: var(--paper); display: block; font-size: 18px; }
.points .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--lime); font-weight: 800; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid3 .card h3 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; margin: 14px 0 8px; }
.grid3 .card p { color: var(--soft); }
.num { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--ink); background: var(--lime); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.statement { padding: 120px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.statement p { font-family: var(--display); font-size: clamp(30px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.03em; max-width: 1000px; }
.statement p em { color: var(--lime); }
.autoedit-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cut { background: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.cut s { color: var(--mist); text-decoration-color: #ff4d4d; text-decoration-thickness: 2px; }
.cut .after { color: var(--paper); font-weight: 600; margin-top: 8px; }
.gallery { display: flex; gap: 24px; overflow-x: auto; padding: 24px 24px 48px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { flex: 0 0 auto; width: 240px; scroll-snap-align: center; }
.gallery figcaption { text-align: center; margin-top: 16px; color: var(--mist); font-size: 14px; font-weight: 500; }
.gallery .phone { max-width: 240px; }
.cta { text-align: center; padding: 128px 0; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(200, 255, 46, 0.14), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta .stores { justify-content: center; margin-top: 36px; }

/* ---- prose pages ---- */
.page { padding: 150px 0 96px; }
.page h1 { margin: 18px 0 20px; }
.prose { color: var(--soft); }
.prose h2 { font-family: var(--display); color: var(--paper); font-size: 28px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose h3 { color: var(--paper); font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--lime); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.prose table { table-layout: fixed; }
.prose th { color: var(--paper); }
.rule { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rule .code { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--lime); }
.rule h3 { margin: 0 0 6px; }
.note { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; color: var(--soft); margin: 24px 0; }
.powered { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 48px; }
.powered .logo { width: 88px; height: 88px; border-radius: 24px; background: #080808; border: 1px solid #f5c400; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #f5c400; font-size: 34px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--soft); }
.foot a:hover { color: var(--paper); }
.foot-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: var(--mist); font-size: 14px; }
.foot-bottom .powered-by a { color: var(--lime); font-weight: 700; }
.foot-bottom .about-link { color: var(--soft); }

/* ---- reveal ---- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero { padding-top: 120px; }
  .hero-phones { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-phones .p1 { max-width: 220px; left: 0; }
  .hero-phones .p2 { max-width: 240px; }
  .grid3, .autoedit-demo { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .sec { padding: 80px 0; }
}
@media (max-width: 560px) {
  .phones-row { gap: 12px; }
  .phones-row .phone { max-width: 46%; }
  .phones-row .phone:nth-child(3) { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}
