@font-face {
  font-family: "PrimaryWordmark";
  src: url("/assets/menda-4.ttf") format("truetype");
  font-display: swap;
}

:root {
  --accent: #ff3c28;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.62);
  --faint: rgba(17, 17, 17, 0.42);
  --line: rgba(17, 17, 17, 0.14);
  --paper: #ffffff;
  --paper-deep: #f2f2f1;
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
.shell { width: min(100% - 56px, var(--max)); margin-inline: auto; }

.topbar {
  background: var(--paper);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-block;
  font-family: "PrimaryWordmark", "Arial Black", "Inter", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 760;
  font-variation-settings: "wght" 760;
  -webkit-text-stroke: 0.5px var(--accent);
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.navlink {
  color: var(--muted);
  text-decoration: none;
}
.navlink:hover,
.navlink.is-current { color: var(--ink); }

.demo-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 540;
}
.demo-btn:hover { border-color: var(--ink); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
body.menu-open { overflow: hidden; }
.mobile-menu__bar {
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__bar .menu-btn { display: inline-flex; }
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  padding: 10px 18px 0;
}
.mobile-menu__links a {
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 540;
  text-decoration: none;
}
.mobile-menu__actions {
  margin-top: auto;
  padding: 0 18px calc(24px + env(safe-area-inset-bottom));
}
.mobile-menu__actions a {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 560;
}

main { flex: 1; }

.page {
  width: min(100% - 56px, 820px);
  margin-inline: auto;
  padding: clamp(44px, 7vw, 92px) 0 clamp(72px, 9vw, 120px);
}

.page-intro {
  margin-bottom: 30px;
}
.page-intro .back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.page-intro .back:hover { color: var(--ink); }
.page-intro h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.page-intro h1 .quiet { color: var(--faint); }
.page-intro p {
  margin: 20px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.07);
}

.completion-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
  margin-bottom: 36px;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 5px;
}
.completion-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}
.completion-step__number {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.completion-step strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 570;
  line-height: 1.35;
}
.completion-step p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.45;
}
.completion-divider { width: 1px; background: rgba(255, 255, 255, 0.14); }

.card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.018em;
}
.card .intro {
  margin: 12px 0 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

form { margin-top: 30px; }
form.is-hidden { display: none; }
.field { margin-top: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.field-row .field { margin-top: 0; }
form > .field-row:first-child { margin-top: 0; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 560;
}
.field label .opt { color: var(--faint); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid rgba(17, 17, 17, 0.24);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  height: 50px;
  padding: 0 24px;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--paper);
  font: inherit;
  font-weight: 560;
  cursor: pointer;
}
.btn:hover { background: #000; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.form-note { color: var(--muted); font-size: 0.86rem; }

.form-status {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 0.94rem;
  line-height: 1.55;
}
.form-status.is-error {
  display: block;
  background: rgba(255, 60, 40, 0.08);
  border: 1px solid rgba(255, 60, 40, 0.42);
}
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }

.booking { display: none; }
.booking.is-active { display: block; }
.booking .lede {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.calendly-frame {
  margin-top: 22px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.booking iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
}

footer {
  padding: 26px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}
.flag { display: block; border-radius: 1px; }

@media (max-width: 720px) {
  .nav { height: 64px; }
  .nav__actions { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 620px) {
  .shell,
  .page { width: min(100% - 36px, var(--max)); }
  .page { padding-top: 36px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-top: 22px; }
  form > .field-row:first-child .field:first-child { margin-top: 0; }
  .completion-note { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .completion-divider { width: auto; height: 1px; }
  .booking iframe { height: 640px; }
}

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