/* Tokens, as on the canvas. */
:root {
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Halant', ui-serif, Georgia, serif;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); }
body.menu-open { overflow: hidden; }

/* ---------- 1. loading stage ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  opacity: 1;
  transition: opacity 300ms ease;
}
.loader.is-fading { opacity: 0; }
.loader.is-done { display: none; }

.dots { display: flex; gap: 8px; align-items: center; }
.dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--foreground);
  animation: mt-dot 1.2s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.16s; }
.dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes mt-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ---------- 2. navbar ---------- */
body { font-family: 'Halant', ui-serif, Georgia, serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--foreground); text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
  width: 100%;
  max-width: 1400px;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  font-family: var(--serif);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  white-space: nowrap;
  background: var(--foreground);
  height: 38px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--background);
  border: 0;
  cursor: pointer;
  transition: opacity 150ms, background 150ms;
}
.pill:hover { opacity: 0.9; }
.pill--ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0 20px;
  font-weight: 500;
}
.pill--ghost:hover { opacity: 1; background: oklch(0.97 0 0); }

/* language */
.lang { position: relative; }
.lang__btn {
  font-family: var(--serif);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  background: none;
  border: 0;
  border-radius: 9999px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 150ms, background 150ms;
}
.lang__btn:hover,
.lang__btn[aria-expanded="true"] { color: var(--foreground); background: oklch(0.97 0 0); }
.lang__menu {
  font-family: var(--serif);
  position: absolute;
  top: calc(100% + 22px);
  left: 0;
  display: grid;
  gap: 4px;
  width: 172px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 4px;
  z-index: 20;
}
.lang__menu button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  transition: background 150ms;
}
.lang__menu button:hover { background: oklch(0.97 0 0); }
.lang__menu button[aria-checked="true"] { background: oklch(0.97 0 0); }
.lang__code {
  width: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.lang__name { flex: 1; }
.lang__check { visibility: hidden; }
.lang__menu button[aria-checked="true"] .lang__check { visibility: visible; }

/* mobile */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--foreground);
  cursor: pointer;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--background);
}
.menu__bar {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.menu__bar .brand { font-size: 19px; }
.menu__bar .menu-btn { display: flex; margin-left: auto; }
.menu__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 32px;
  border-top: 1px solid var(--border);
}
.menu__foot .pill { height: 48px; font-size: 16px; }
.menu__langs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.chip {
  font-family: var(--serif);
  height: 36px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  color: var(--foreground);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: oklch(0.97 0 0); border-color: var(--foreground); }

@media (max-width: 768px) {
  .header__inner { height: 56px; padding: 0 16px; gap: 12px; }
  .header__right { gap: 8px; }
  .lang, .header__login { display: none; }
  .header__right .pill { padding: 7px 14px; font-size: 14px; }
  .header__demo {
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--foreground);
    font-weight: 400;
  }
  .header__demo:hover { background: transparent; opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
  .menu-btn { display: flex; }
}

/* ---------- 3. hero ---------- */
:root {
  --hero-bg: #F5F4F1;
  --ink: #1A1A17;
  --ink-soft: #4C4A44;
  --ink-muted: #8A8880;
  --ink-faint: #9B9890;
  --line: #CFCDC6;
  --field-border: #E2E0DA;
}
main { flex: 1; }
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.hero__inner {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  padding: clamp(44px, 6vw, 96px) clamp(24px, 5vw, 56px) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 540px;
}

/* 3a. eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: 14px;
  row-gap: 8px;
  min-height: 1.6em;
  margin: 0;
}
.eyebrow__dots { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.eyebrow__dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--ink-muted);
  animation: mt-dot 1.2s ease-in-out infinite;
}
.eyebrow__dots span:nth-child(2) { animation-delay: 0.16s; }
.eyebrow__dots span:nth-child(3) { animation-delay: 0.32s; }
.eyebrow__text {
  min-width: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.cursor { opacity: 0.4; }
.eyebrow__more {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 150ms;
  animation: mt-fade-in 400ms ease both;
}
.eyebrow__more:hover { border-color: var(--ink); }
@keyframes mt-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 3b. headline */
.hero__title {
  margin: clamp(32px, 3.4vw, 48px) 0 0;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title-muted { color: var(--ink); }

/* 3c. lede */
.hero__lede {
  margin: clamp(22px, 2.4vw, 32px) 0 0;
  max-width: 420px;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
}

/* 3d. capture */
.capture { margin-top: clamp(28px, 3vw, 44px); max-width: 400px; width: 100%; }
.capture__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.capture__row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--field-border);
  border-radius: 9999px;
  padding: 4px 4px 4px 18px;
}
.capture__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 7px 0;
}
.capture__row input::placeholder { color: var(--ink-muted); }
.capture__btn { height: 36px; padding: 0 18px; font-size: 14px; font-weight: 400; gap: 10px; }
.capture__done { display: none; margin: 12px 0 0; font-size: 14px; color: var(--ink); }
.capture.is-sent .capture__row { display: none; }
.capture.is-sent .capture__done { display: block; }

/* 3e. badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 2.6vw, 40px);
  margin-top: clamp(32px, 3.6vw, 52px);
}
.badge { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.badge__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.badge__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge__text span:last-child { color: var(--ink-muted); }

/* 3f. visual placeholder */
.hero__visual { position: relative; min-width: 0; align-self: end; }
.hero__placeholder {
  width: calc(100% + 80px);
  margin-right: -80px;
  aspect-ratio: 5 / 4;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 24px 60px -30px rgba(16, 30, 54, 0.25);
}

.capture__btn { flex-shrink: 0; }

/* Tablet: one column. The visual sits under the copy with a clear gap. */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-bottom: clamp(40px, 6vw, 64px);
    align-items: start;
  }
  .hero__copy { padding-bottom: 0; max-width: 600px; }
  .hero__visual { width: 100%; align-self: auto; }
  .hero__placeholder { width: 100%; margin-right: 0; aspect-ratio: 16 / 10; border-radius: 20px; }
}

/* Phone: the eyebrow stacks, the form stacks, everything keeps its own room. */
@media (max-width: 768px) {
  .hero__inner { padding-top: 36px; gap: 32px; }
  .eyebrow { flex-wrap: wrap; row-gap: 10px; }
  .eyebrow__text { white-space: normal; }
  .hero__title { margin-top: 24px; font-size: clamp(32px, 9vw, 42px); }
  .hero__lede { margin-top: 18px; max-width: none; }
  .capture { margin-top: 28px; max-width: 420px; }
  .capture__row input { font-size: 16px; }
  .capture__btn { padding: 0 16px; }
  .badges { margin-top: 28px; gap: 16px 28px; }
  .hero__placeholder { aspect-ratio: 4 / 3; border-radius: 16px; }
}

/* Phones: field on top, button under it. */
@media (max-width: 480px) {
  .capture__row { flex-direction: column; align-items: stretch; gap: 6px; border-radius: 24px; padding: 6px; }
  .capture__row input { padding: 10px 14px; }
  .capture__btn { width: 100%; height: 44px; }
}

/* ---------- 9. footer ---------- */
.footer { background: #111110; color: #8A8880; font-family: var(--sans); }
.footer__inner {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  font-size: 14px;
  line-height: 1.6;
}
.footer__links { display: flex; gap: 18px; }
.footer a { color: #8A8880; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color 150ms, border-color 150ms; }
.footer a:hover { color: #EDEBE5; border-color: #8A8880; }
.footer__contact { margin: 0; }
.footer__sep { padding: 0 8px; color: #4C4A44; }
.footer__copy { margin: 0 0 0 auto; color: #EDEBE5; }
@media (max-width: 768px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin-left: 0; }
}
.footer--light { background: transparent; color: var(--ink-muted); }
.footer--light a { color: var(--ink-muted); }
.footer--light a:hover { color: #0B0B0B; border-color: #0B0B0B; }
.footer--light .footer__copy { color: var(--ink-muted); }
.footer--light .footer__sep { color: var(--border); }
.footer--light .footer__inner { padding-top: 20px; padding-bottom: 28px; font-size: 13px; }


/* ---------- 10. cookies ---------- */
/* One bar at the bottom, the login card's chrome: hairline edge, half-white
   ground, faint shadow. One sentence, a privacy link, Decline and Accept at
   equal weight. Shown until a choice is made; "Cookie settings" in the footer
   brings it back. */
.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px;
  border: 1px solid #E7E7E4;
  border-radius: 14px;
  background: rgba(252, 252, 251, .96);
  box-shadow: 0 8px 32px rgba(11, 11, 11, .08);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: #0B0B0B;
}
.consent__text { margin: 0; flex: 1; }
.consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent__btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #0B0B0B;
  border-radius: 8px;
  background: #0B0B0B;
  color: #fff;
  font: 500 12px/1 var(--sans);
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.consent__btn:hover { background: #252525; border-color: #252525; }
.consent__btn--ghost { background: transparent; color: #0B0B0B; border-color: #DEDEDB; }
.consent__btn--ghost:hover { background: rgba(255, 255, 255, .5); border-color: #0B0B0B; }
@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; }
  .consent__actions { justify-content: flex-end; }
}
