/* HAUZ Design System tokens (Direction A, "Clean"). Source: HAUZ Design System artifact. */
:root {
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-muted: #f5f5f5;
  --placeholder: #f2f2f2;
  --tint-accent: #f3f8f7;
  --tint-accent-tag: #e6f2ef;
  --line: #ebebeb;
  --line-strong: #dddddd;
  --ink: #111111;
  --ink-body: #555555;
  --ink-secondary: #6a6a6a;
  --on-ink: #ffffff;
  --accent: #17806d;         /* logo, icons, large text (4.8:1 on white) */
  --accent-strong: #12695a;  /* small green text, tags, hover (6.6:1 on white) */
  --danger-ink: #9f2a1c;
  --danger-bg: #fce7e4;

  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-12: 48px; --space-18: 72px;

  --radius-md: 12px; --radius-input: 14px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-2xl: 28px; --radius-pill: 999px;

  --shadow-device: 0 30px 60px rgba(0, 0, 0, 0.08);
  --target-min: 44px;
  --content-max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding-inline: var(--space-6); }
.muted { color: var(--ink-body); }
.small { font-size: 13px; color: var(--ink-secondary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); padding: 14px 26px; border-radius: var(--radius-pill); font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: #000000; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 22px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.nav-links a:not(.btn) { font-size: 15px; text-decoration: none; color: #333333; }
.nav-links .btn { padding: 11px 20px; font-size: 15px; }
/* Language switch: links to the same page in the other language (EN at /, BM at /ms). */
.nav-links a.lang-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target-min); }
@media (max-width: 560px) {
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn):not(.lang-link) { display: none; }
  .nav-links .btn { padding: 11px 16px; }
  .lang-link .lang-full { display: none; }
}

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-12); align-items: center; padding-block: var(--space-18) 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-body); max-width: 30em; }
.ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.trust { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--ink-secondary); }

/* Phone illustration */
.device-wrap { display: flex; justify-content: center; }
.device { width: 280px; border-radius: 40px; border: 1px solid #e6e6e6; background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-device); }
.device .photo { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 24px; background: var(--placeholder); }
.device .t { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.device .s { font-size: 12px; color: var(--ink-secondary); margin-top: -8px; }
.device .unit { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.device .thumb { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--placeholder); flex-shrink: 0; }
.device .unit b { display: block; font-size: 13px; }
.device .unit span { font-size: 11px; color: var(--ink-secondary); }
.device .cta { margin-top: 4px; height: 44px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.device .badge { text-align: center; font-size: 10px; letter-spacing: 0.04em; color: #8a8a8a; }

/* Sections */
.section { padding-block: var(--space-18); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: 32px; max-width: 40em; }
.section-head h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; font-weight: 800; }

.fee { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-12); align-items: center; }
.fee-num { font-size: clamp(56px, 9vw, 96px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.fee-num small { font-size: 0.35em; font-weight: 600; letter-spacing: 0; color: var(--ink-secondary); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.feature { display: flex; flex-direction: column; gap: var(--space-3); }
.feature h3 { font-size: 21px; font-weight: 700; }
.feature p { font-size: 16px; line-height: 1.55; color: var(--ink-body); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-6); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.steps li::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { color: var(--ink-body); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-4); }
.price { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: 10px; }
.price.featured { border: 2px solid var(--ink); padding: 23px; }
.price .row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.price .name { font-size: 15px; font-weight: 600; }
.price .amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price .amount small { font-size: 15px; font-weight: 500; color: var(--ink-body); letter-spacing: 0; }
.price .units { font-size: 14px; color: var(--ink-body); }
.price .year { font-size: 13px; color: var(--ink-secondary); }
.pill { font-size: 12px; font-weight: 600; background: var(--ink); color: var(--on-ink); padding: 3px 9px; border-radius: var(--radius-pill); }
.price-note { margin-top: var(--space-4); }

/* Sign-up */
.signup { border-radius: var(--radius-2xl); background: var(--tint-accent); padding: 56px clamp(20px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; align-items: start; margin-block: var(--space-6) var(--space-18); }
.signup-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.overline { font-size: 13px; font-weight: 600; color: var(--accent-strong); letter-spacing: 0.06em; text-transform: uppercase; }
.signup h2 { font-size: clamp(28px, 4vw, 34px); line-height: 1.12; font-weight: 800; }
.signup ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-body); }

form.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-secondary); }
.field input, .field select { font: 400 16px/1.3 var(--font-sans); color: var(--ink); padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-input); background: var(--surface); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 420px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.check a { color: inherit; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: var(--danger-ink); background: var(--danger-bg); border-radius: var(--radius-input); padding: 10px 14px; }
.done { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.done h3 { font-size: 22px; font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-body); max-width: 60ch; }

footer { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-block: var(--space-6) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-secondary); }
footer a { color: var(--ink-secondary); }

/* Privacy page */
.doc { max-width: 720px; padding-block: 40px var(--space-18); display: flex; flex-direction: column; gap: var(--space-6); }
.doc h1 { font-size: 34px; font-weight: 800; }
.doc h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.doc section { display: flex; flex-direction: column; gap: var(--space-2); }
.doc p, .doc li { color: var(--ink-body); line-height: 1.6; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* Founding offer: what happens after year 1 */
.lead-price { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: calc(-1 * var(--space-2)); }
