/* Monsora landing — page styles.
   Font: Manrope, bundled locally under the SIL Open Font License (see landing-manrope-OFL.txt). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./landing-manrope-400.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./landing-manrope-500.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./landing-manrope-600.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./landing-manrope-700.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./landing-manrope-800.ttf") format("truetype");
}

/* ============ Tokens ============ */
:root {
  --bg: #f9f8f6;
  --surface: #f2f1ee;
  --surface-2: #ffffff;
  --ink: #15130f;
  --ink-soft: #6e6b60;
  --ink-faint: #9a9689;
  --line: #e4e0d3;
  --accent: #564ce0;
  --accent-soft: #ece9fc;
  --accent-2: #ff7a45;
  --accent-2-soft: #ffe7d8;
  --shadow-sm: 0 1px 2px rgba(21, 19, 15, 0.05);
  --shadow-md: 0 10px 30px rgba(21, 19, 15, 0.07);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --r-pill: 999px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
}
main {
  overflow-x: clip;
}
/* responsive range: the full scroll choreography runs at 1200–1920px (centred above 1920); below 1200px the page uses the stacked tablet/mobile layout */
:root {
  --vw: 100vw;
}
@media (min-width: 1200px) {
  :root {
    --vw: clamp(1200px, 100vw, 1920px);
  }
  html {
    min-width: 1200px;
  }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h2 {
  line-height: 1.2;
  font-weight: 800;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: 24px;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  line-height: 1;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  opacity: 0.82;
}
.btn-sm {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 76px;
}
.logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px;
  height: 20px;
  flex: none;
  color: var(--ink);
  display: block;
}
.logo-type {
  display: inline-flex;
  align-items: center;
  min-width: 5.2em; /* reserve room so nothing shifts while typing */
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0;
}
.logo-type.typing .caret {
  opacity: 1;
}
.logo-type.done .caret {
  animation: caretOut 1.4s steps(1) forwards;
}
@keyframes caretOut {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  75%,
  100% {
    opacity: 0;
  }
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* single CTA: the header button waits until the hero button has scrolled away */
html.motion:not(.cta-docked) .nav-cta .btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* language switch: round button + dropdown */
.lang {
  position: relative;
}
.lang-toggle[aria-expanded="true"] {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--ink) 20%, var(--line));
}
.lang-menu button[aria-checked="true"] .check {
  opacity: 1;
}
@media (max-width: 600px) {
  .nav-cta .btn-sm {
    padding: 0 16px;
  }
}
@media (max-width: 400px) {
  .logo {
    font-size: 17px;
  }
  .nav-cta .btn-sm {
    font-size: 13px;
    padding: 0 13px;
  }
}
