/* MOKERJO SITE — static coming-soon + content pages.
   Palette and type follow app/packages/cloud/web/assets/theme.css.
   Canvas is white paper with a 72px grid; the topbar is brand blue. */

@font-face {
  font-family: 'Dela Gothic One';
  src: url("fonts/dela-gothic-one-latin-ext.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Dela Gothic One';
  src: url("fonts/dela-gothic-one.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'JetBrains Mono';
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url("fonts/jetbrains-mono.woff2") format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --ctp-sky: #04a5e5;
  --ctp-green: #40a02b;
  --ctp-text: #4c4f69;
  --ctp-subtext0: #6c6f85;
  --ctp-overlay1: #8c8fa1;
  --ctp-surface0: #ccd0da;
  --ctp-surface1: #bcc0cc;
  --ctp-base: #eff1f5;
  --ctp-mantle: #e6e9ef;
  --ctp-crust: #dce0e8;

  --brand: #1e66f5;
  --brand-hover: #3b7cf6;
  --brand-press: #1554d1;
  --brand-text: #1554d1;
  --brand-pale: #e6eeff;
  --brand-soft: #c3d5fc;
  --ink: #11111b;

  --bg: #ffffff;
  --surface: var(--ctp-base);
  --surface-2: var(--ctp-mantle);
  --fg: #11111b;
  --muted: var(--ctp-subtext0);
  --meta: #6c6f85;
  --border: var(--ctp-surface0);
  --border-strong: var(--ctp-surface1);

  --font-hero: 'Dela Gothic One', 'JetBrains Mono', ui-monospace, system-ui, sans-serif;
  --font-body: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --elev-card: 0 4px 0 var(--ctp-crust);
  --elev-modal: 0 24px 64px rgba(17, 17, 27, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page-max: 1120px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --grid: 72px;
}

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

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(172, 176, 190, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(172, 176, 190, 0.42) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: center top;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); }
strong { font-weight: 800; }

:where(a, button):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 200;
  padding: 10px 14px;
  border: 2px solid var(--brand-press);
  border-radius: 10px;
  background: var(--bg);
  color: var(--brand-text);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── topbar ────────────────────────────────────────────────────────────── */

.topbar {
  flex: none;
  background: var(--brand);
  color: var(--ctp-base);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 72px;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 8px;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 34px;
  width: auto;
}
.brand:hover { opacity: 0.9; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 10px);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ctp-base);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: rgba(239, 241, 245, 0.14); }
.nav a[aria-current="page"] {
  background: rgba(239, 241, 245, 0.18);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── home ───────────────────────────────────────────────────────────────── */

.home {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 86px) var(--gutter) clamp(40px, 7vh, 74px);
}

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 3vh, 26px);
  text-align: center;
  width: 100%;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 14px;
  border: 1.5px solid var(--brand-soft);
  border-radius: 9px;
  background: var(--brand-pale);
  color: var(--brand-text);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: rotate(-1.2deg);
  box-shadow: 0 2px 0 var(--brand-soft);
}
.sticker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-title {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(46px, 10vw, 122px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-accent {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: var(--brand-press);
}
.hero-accent::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.1em;
  right: -0.08em;
  top: 0.08em;
  bottom: 0.01em;
  border-radius: 0.1em;
  background: rgba(4, 165, 229, 0.42);
  transform: rotate(-0.6deg);
}

.hero-lead {
  max-width: 640px;
  color: var(--fg);
  font-size: clamp(14px, 1.55vw, 16.5px);
  line-height: 1.75;
}
.hero-lead strong { font-weight: 800; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ctp-green);
  box-shadow: 0 0 0 3px rgba(64, 160, 43, 0.16);
}
.status .sep {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
}
.status .domain {
  color: var(--meta);
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  width: 100%;
  max-width: 940px;
  margin-top: clamp(30px, 6vh, 56px);
}
.feature {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 18px 20px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--elev-card);
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--brand-soft);
  border-radius: 9px;
  background: var(--brand-pale);
  color: var(--brand-text);
}
.feature-num {
  color: var(--meta);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.feature h2 {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 940px;
  margin-top: clamp(22px, 4vh, 34px);
  padding: 13px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 11px;
  background: rgba(239, 241, 245, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.note svg { flex: none; margin-top: 2px; color: var(--meta); }
.note a { color: var(--brand-text); font-weight: 700; }

/* ── content pages ──────────────────────────────────────────────────────── */

.doc-wrap {
  flex: 1 1 auto;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 62px) var(--gutter) clamp(46px, 8vh, 80px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.back:hover { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1.5px solid var(--brand-soft);
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--brand-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.doc h1 {
  margin-bottom: 12px;
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.doc .lead {
  max-width: 640px;
  margin-bottom: 26px;
  color: var(--ctp-text);
  font-size: 14.5px;
  line-height: 1.8;
}
.doc .updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 16px;
  color: var(--meta);
  font-size: 11px;
  font-weight: 700;
}

.sheet {
  padding: clamp(22px, 4vw, 38px);
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--elev-card);
}
.sheet > section + section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1.5px dashed var(--border);
}
.sheet h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.sheet h2 .num {
  color: var(--meta);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sheet p {
  color: var(--ctp-text);
  font-size: 13.5px;
  line-height: 1.85;
}
.sheet p + p { margin-top: 10px; }
.sheet ul {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.sheet li {
  position: relative;
  padding-left: 17px;
  color: var(--ctp-text);
  font-size: 13.5px;
  line-height: 1.75;
}
.sheet li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.sheet a { font-weight: 700; }

.callout {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 2px solid var(--brand-soft);
  border-radius: 13px;
  background: var(--brand-pale);
}
.callout-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--brand-press);
  font-size: 12px;
  font-weight: 800;
}
.callout ul { display: grid; gap: 6px; }
.callout li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #23345c;
  font-size: 12px;
  line-height: 1.65;
}
.callout li svg { flex: none; margin-top: 3px; color: var(--brand); }

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.contact-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1.5px solid var(--brand-soft);
  border-radius: 10px;
  background: var(--bg);
  color: var(--brand-text);
}
.contact-copy { min-width: 0; flex: 1 1 220px; }
.contact h2 {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
}
.contact p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.contact .back {
  margin-bottom: 0;
  align-self: center;
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--meta);
  font-size: 11px;
}
.switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--brand-text);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}
.switch a:hover { border-color: var(--brand-soft); background: var(--brand-pale); }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.notfound {
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(50px, 12vh, 120px) var(--gutter);
  text-align: center;
}
.notfound .code {
  font-family: var(--font-hero);
  font-size: clamp(80px, 22vw, 190px);
  line-height: 0.85;
  color: var(--brand);
  letter-spacing: -0.04em;
  text-shadow: 0 8px 0 var(--ctp-crust);
}
.notfound h1 {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.2;
}
.notfound p {
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.notfound a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 20px;
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.notfound a:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.notfound a:active { transform: translateY(1px); }

/* ── footer ─────────────────────────────────────────────────────────────── */

.footer {
  flex: none;
  border-top: 2px solid var(--border);
  background: var(--surface-2);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 68px;
  padding: 12px var(--gutter);
}
.footer-brand {
  display: grid;
  gap: 1px;
  text-decoration: none;
}
.footer-brand img {
  height: 19px;
  width: auto;
}
.footer-tag {
  color: var(--ctp-subtext0);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 30px);
}
.footer-links a {
  font-family: var(--font-hero);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  color: var(--ctp-text);
  text-decoration: none;
}
.footer-links a:hover { color: var(--brand-text); }
.footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --page-max: 100%; --grid: 56px; }
  .features { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .feature { padding: 16px 16px 18px; }
}

@media (max-width: 720px) {
  .topbar-inner {
    min-height: 0;
    padding-block: 10px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .brand img { height: 26px; }
  .nav {
    flex: 0 0 100%;
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
  }
  .nav a {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .home { padding-top: 34px; }
  .hero-title { font-size: clamp(40px, 13vw, 78px); }
  .footer-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding-block: 14px;
  }
  .footer-links {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

@media (max-width: 460px) {
  .nav a { padding: 6px 6px; font-size: 10.5px; }
  .feature h2 { font-size: 15.5px; }
  .sheet { padding: 20px 16px; }
  .contact { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
