/* Self-hosted webfont — Outfit (SIL OFL 1.1). Variable font, one file per subset.
   Licence travels with the font at /assets/fonts/OFL.txt.
   To swap the display face, change --font below and drop files in /assets/fonts/. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* WaaS launch portal - monochrome: total black to shiny white.
   Palette follows the Terengganu flag: black field, white geometry, grey hairlines.
   Craft rules applied from the Refero design references (anti-ai-slop, craft-details):
   no decorative card boxes, no emoji icons, real focus states, anchor scroll offset. */

:root {
  --bg: #000000;
  --surface: #0A0A0A;
  --surface-alt: #050505;
  --surface-raise: #141414;
  --line: #1F1F1F;
  --line-strong: #333333;
  --ink: #FFFFFF;
  --muted: #B0B0B0;
  --muted-dim: #8A8A8A;
  --shiny: #FFFFFF;
  --shiny-dim: #E9E9E9;
  --radius: 12px;
  --wrap: 1080px;
  --header-h: 65px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; touch-action: manipulation; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: #FFFFFF; color: #000000; }

/* Anchored sections must clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: .4em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--shiny);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 100;
  background: var(--shiny); color: #000; padding: 10px 14px; border-radius: 8px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 1rem; line-height: 1.15; }
.brand-text small { font-weight: 400; font-size: .68rem; color: var(--muted); letter-spacing: 0; }
.brand-text .brand-sub { color: var(--muted); }
.brand-text .brand-by { color: var(--muted-dim); }
.brand-svg { display: block; height: 30px; width: auto; }
.site-nav { display: none; margin-left: auto; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; }
.site-nav + .header-cta { margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .12);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--shiny) 0%, var(--shiny-dim) 100%);
  color: #000;
  border-color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.btn-primary:hover { background: #FFFFFF; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- hero: asymmetric - text left, geometric motif right ---------- */
.hero { padding: 52px 0 30px; }
.hero-grid { display: block; }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink);
  background: var(--surface-raise); border: 1px solid var(--line-strong);
  padding: 6px 12px; border-radius: 999px;
}
/* Headline carries emphasis through scale alone. No underline ornament, no
   two-tone treatment - both read as accidental to a first-time viewer. */
.hero h1 { font-size: 2.1rem; margin-bottom: 18px; }
/* <em> is structural only - without this it falls back to browser italic,
   which reads as an accident. Emphasis here comes from scale, not slant. */
.hero h1 em { font-style: normal; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-strip {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .88rem; color: var(--muted);
}
.hero-note {
  margin: -16px 0 22px;
  color: var(--muted-dim);
  font-size: .82rem;
}

/* Code-native geometric primitive: flat black field, white line geometry.
   Carries the reference (flag) instead of collapsing to text only. */
.hero-motif { display: none; }

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.hero + .section { padding-top: 28px; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sub { color: var(--muted); max-width: 42em; margin-bottom: 30px; }
.section-sub strong { color: var(--ink); }

.grid { display: grid; gap: 0 28px; }

/* Ruled entries, not cards. A box would add nothing here: nothing is clickable. */
.entry { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.entry h3 { margin-bottom: .3em; }
.entry p { margin: 0; color: var(--muted); font-size: .92rem; }

.icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  color: var(--ink);
}
.icon svg { width: 22px; height: 22px; }

.item { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.item h3 { font-size: .98rem; margin-bottom: .3em; }
.item p { margin: 0; color: var(--muted); font-size: .9rem; }
.item-soon { border-top-style: dashed; border-top-color: var(--line-strong); }
.tag {
  display: inline-block; margin-left: 6px; vertical-align: middle;
  font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  background: var(--surface-raise); border: 1px solid var(--line-strong);
  padding: 2px 7px; border-radius: 999px;
}

/* Numbers give the reasons editorial weight without boxes. */
.reason { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.reason h3 { font-size: 1rem; margin-bottom: .3em; }
.reason p { margin: 0; color: var(--muted); font-size: .92rem; }
.reason-num {
  display: block; margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--muted-dim); font-variant-numeric: tabular-nums;
}

/* ---------- how it works ---------- */
.section-kicker {
  margin: 0 0 8px;
  color: var(--muted-dim);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.steps { margin-top: 8px; }
.step { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.step-num {
  display: block; margin-bottom: 12px;
  color: var(--muted-dim);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.step h3 { max-width: 18em; margin-bottom: .35em; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- plans: columns + rules, not three cookie-cutter boxes ---------- */
.plans { align-items: start; gap: 0 32px; }
.plan { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.plan h3 { font-size: 1.25rem; margin-bottom: .15em; }
.plan-tag { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
/* A heavy white rule MEANS "recommended" here - it is not decoration. */
.plan-featured { border-top: 2px solid var(--shiny); padding-top: 19px; }
.plan-badge {
  display: inline-block;
  background: var(--shiny); color: #000;
  font-size: .64rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.plan-badge-slot { min-height: 24px; margin-bottom: 12px; }
.check { list-style: none; margin: 0; padding: 0; }
.check li {
  position: relative; padding: 6px 0 6px 26px;
  font-size: .92rem; color: var(--ink);
  border-top: 1px solid var(--line);
}
.check li:first-child { border-top: none; }
.check li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--shiny);
  border-bottom: 2px solid var(--shiny);
  transform: rotate(-45deg);
}
.note {
  margin: 32px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}

/* ---------- final cta: the one shiny white block ---------- */
.cta-final { padding: 60px 0 72px; }
.cta-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #E9E9E9 100%);
  color: #000;
  border-radius: 16px; padding: 40px 24px; text-align: center;
}
.cta-box h2 { color: #000; }
.cta-box p { color: #3D3D3D; max-width: 34em; margin: 0 auto 24px; }
.cta-box .btn-primary { background: #000; color: #FFFFFF; border-color: #000; box-shadow: none; }
.cta-box .btn-primary:hover { background: #1A1A1A; }
.cta-note { margin: 16px 0 0; font-size: .85rem; color: #5A5A5A; }

/* ---------- FAQ / buying friction ---------- */
.faq-layout { display: grid; gap: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 17px 32px 17px 0;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 2px; top: 14px;
  color: var(--muted-dim);
  font-size: 1.15rem; font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; color: var(--ink); }
.faq-list summary:focus-visible {
  outline: 2px solid var(--shiny);
  outline-offset: 3px;
  border-radius: 4px;
}
.faq-list details p {
  max-width: 45em;
  margin: -3px 32px 17px 0;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0 20px; }
.footer-inner { display: grid; gap: 26px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 1.1rem; color: var(--ink); }
.footer-brand span { color: var(--muted); font-size: .85rem; }
.footer-col h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-dim); margin-bottom: .7em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .4em; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--muted); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--muted-dim); font-size: .82rem; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.6rem; }
  h2 { font-size: 1.7rem; }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }

  .hero { padding: 76px 0 46px; }
  .hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; }
  .hero h1 { font-size: 3rem; }
  .lede { font-size: 1.15rem; }
  .hero + .section { padding-top: 36px; }
  .section { padding: 72px 0; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-verticals { grid-template-columns: repeat(4, 1fr); }
  /* 7 verticals in 4 columns: let the last one span two so the final row
     fills the width instead of leaving a dangling empty column. */
  .grid-verticals > .entry:last-child { grid-column: span 2; }

  /* Vertical rules between ruled columns */
  .grid-4 > .item:nth-child(4n+2),
  .grid-4 > .item:nth-child(4n+3),
  .grid-4 > .item:nth-child(4n+4),
  .grid-2 > .reason:nth-child(even),
  .plans > .plan + .plan { border-left: 1px solid var(--line); padding-left: 28px; }
  .plans > .plan { padding-right: 4px; }

  .cta-box { padding: 56px 40px; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .faq-layout { grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; }
  .steps > .step + .step { border-left: 1px solid var(--line); padding-left: 28px; }

  /* Hero mark: the WaaS icon in full colour. This is the ONE place colour is
     allowed on the site - everywhere else stays strict monochrome. It must earn
     that by being the single focal point, so no frame, no grid, no decoration. */
  .hero-motif {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
  }
  .hero-motif img {
    display: block; width: 100%; height: auto;
    /* New supplied colour lockup is the single hero focal point. Keep the
       approved 340px cap so the headline remains primary. */
    max-width: 340px;
  }
}

/* ---------- CTA modal (Refero-style popup) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  overscroll-behavior: contain;
}
.modal-backdrop[data-open="true"] { display: flex; }

.modal {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 34px 28px 28px;
  color: var(--ink);
  overscroll-behavior: contain;
  animation: modal-in .18s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
}

.modal-mark { display: block; width: 34px; height: 34px; margin-bottom: 18px; }
.modal h2 { font-size: 1.35rem; margin-bottom: .35em; }
.modal p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.modal .btn { width: 100%; }
.modal-note {
  margin: 14px 0 0; font-size: .84rem; color: var(--muted-dim);
  text-align: center;
}
.modal-dismiss {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: 0; padding: 8px;
  font: inherit; font-size: .88rem; color: var(--muted);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.modal-dismiss:hover { color: var(--ink); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line);
  border-radius: 9px; color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .12);
}
.modal-close:hover { color: var(--ink); border-color: var(--line-strong); }

/* Bottom sheet reads better than a centred dialog on phones */
@media (max-width: 560px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal {
    max-width: none;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding: 30px 22px 26px;
  }
}

