/* Nomo — public site (landing, auth, legal). Plain CSS, no framework, no build.
   CSP-safe: external file only, system fonts (no web-font CDN), inline SVG for art.
   Dark-first with a light-mode override. Mobile-first. */

:root {
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #1a212b;
  --border: #253040;
  --text: #e8edf2;
  --muted: #9aa7b4;
  --brand: #25d366;         /* WhatsApp green — the product lives on WhatsApp */
  --brand-strong: #1ebe5d;
  --brand-ink: #04150a;     /* text on brand fills */
  --accent: #4f9cf9;
  --danger: #f2555a;
  --ok: #3fb98c;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #eef2f7;
    --border: #dde4ee;
    --text: #10151c;
    --muted: #566372;
    --brand-ink: #04150a;
    --shadow: 0 10px 30px rgba(20, 40, 30, 0.10);
    --shadow-sm: 0 4px 14px rgba(20, 40, 30, 0.08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, filter .15s ease, background .15s ease;
  min-height: 44px; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a.link { color: var(--muted); font-weight: 550; }
.nav-links a.link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 44px 0 24px; }
  .hero .lead { max-width: none; }
}

/* WhatsApp chat mockup (pure CSS, no image) */
.phone {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow); padding: 14px; max-width: 360px; margin-inline: auto;
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; border-bottom: 1px solid var(--border); }
.phone-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.phone-title { font-weight: 700; font-size: 15px; }
.phone-sub { font-size: 12px; color: var(--brand); }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 6px 6px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; box-shadow: var(--shadow-sm); }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.bubble .t { display: block; font-size: 10.5px; opacity: 0.7; margin-top: 3px; text-align: right; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 820px) { .steps, .features { grid-template-columns: 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; position: relative; }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .price { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .plan-sub { color: var(--muted); font-size: 14px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { color: var(--muted); margin: 0 0 14px; }

/* cta band */
.cta-band { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--surface)), var(--surface)); border: 1px solid var(--border); border-radius: 20px; padding: 44px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.6vw, 32px); }
.cta-band p { color: var(--muted); max-width: 48ch; margin: 0 auto 22px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 44px 0 32px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer .brand { margin-bottom: 10px; }
.footer-about { max-width: 280px; }
.footer-about p { font-size: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- auth (masuk) ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 20px; }
.auth { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; width: 100%; max-width: 420px; }
.auth h1 { font-size: 24px; }
.auth .lead { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; padding: 13px 14px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit;
}
.field input:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.auth .btn { width: 100%; }
.auth-alt { background: transparent; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 10px; width: 100%; }
.auth-alt:hover { color: var(--text); }
.msg { min-height: 20px; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.consent { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; text-align: center; }
.consent a { color: var(--brand); }

/* ---------- legal prose ---------- */
.legal { padding: 48px 0 64px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 28px; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--text); }
.legal .toc p { margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
