@import "./i18n.css";

:root {
  color-scheme: light;
  --lead-page: #f4f7fb;
  --lead-surface: #ffffff;
  --lead-surface-soft: #eef4fb;
  --lead-text: #10233d;
  --lead-muted: #60738c;
  --lead-border: #ccd9e8;
  --lead-accent: #1769e9;
  --lead-accent-hover: #0f56c2;
  --lead-error: #b42318;
  --lead-success: #087a5b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--lead-page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--lead-text);
  background: var(--lead-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.lead-header {
  border-bottom: 1px solid var(--lead-border);
  background: rgba(255, 255, 255, 0.96);
}

.lead-header__inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lead-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.lead-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #10233d;
  color: #ffffff;
  font-size: 14px;
}

.lead-nav,
.lead-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lead-nav {
  color: var(--lead-muted);
  font-size: 14px;
  font-weight: 700;
}

.lead-nav a[aria-current="page"] {
  color: var(--lead-accent);
}

.lead-button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lead-border);
  border-radius: 7px;
  background: var(--lead-surface);
  color: var(--lead-text);
  font-weight: 780;
  cursor: pointer;
}

.lead-button--primary {
  border-color: var(--lead-accent);
  background: var(--lead-accent);
  color: #ffffff;
}

.lead-button--primary:hover {
  border-color: var(--lead-accent-hover);
  background: var(--lead-accent-hover);
}

.lead-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.lead-copy {
  padding-top: 22px;
}

.lead-eyebrow {
  margin: 0 0 16px;
  color: var(--lead-accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.lead-copy h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead-copy > p:not(.lead-eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--lead-muted);
  font-size: 18px;
  line-height: 1.55;
}

.lead-points {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.lead-points[hidden],
.lead-eyebrow[hidden] {
  display: none;
}

.lead-points li {
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
}

.lead-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--lead-accent);
  border-radius: 50%;
}

.lead-form-shell {
  border: 1px solid var(--lead-border);
  border-radius: 8px;
  background: var(--lead-surface);
  box-shadow: 0 18px 52px rgba(30, 56, 88, 0.12);
  overflow: hidden;
}

.lead-form-shell__header {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--lead-border);
}

.lead-form-shell__header h2 {
  margin: 0;
  font-size: 25px;
}

.lead-form-shell__header p {
  margin: 8px 0 0;
  color: var(--lead-muted);
  line-height: 1.45;
}

.lead-form {
  padding: 26px 28px 28px;
  display: grid;
  gap: 20px;
}

.lead-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lead-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.lead-field--wide {
  grid-column: 1 / -1;
}

.lead-field label,
.lead-consent {
  font-size: 14px;
  font-weight: 750;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--lead-border);
  border-radius: 7px;
  background: var(--lead-surface);
  color: var(--lead-text);
  outline: none;
}

.lead-field textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.5;
}

.lead-field input:focus,
.lead-field textarea:focus,
.lead-button:focus-visible,
.lead-nav a:focus-visible,
.lead-brand:focus-visible {
  outline: 3px solid rgba(23, 105, 233, 0.22);
  outline-offset: 2px;
  border-color: var(--lead-accent);
}

.lead-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--lead-muted);
  line-height: 1.45;
  font-weight: 600;
}

.lead-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--lead-accent);
}

.lead-consent a {
  color: var(--lead-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lead-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lead-form__actions .lead-button {
  min-width: 190px;
}

.lead-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.lead-status {
  min-height: 24px;
  margin: 0;
  color: var(--lead-muted);
  font-size: 14px;
  line-height: 1.45;
}

.lead-status.is-error {
  color: var(--lead-error);
}

.lead-status.is-success {
  color: var(--lead-success);
}

.lead-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--lead-border);
  color: var(--lead-muted);
  font-size: 13px;
}

.lead-footer nav {
  display: flex;
  gap: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --lead-page: #0c1524;
    --lead-surface: #111e31;
    --lead-surface-soft: #17263b;
    --lead-text: #eef5ff;
    --lead-muted: #a6b7cb;
    --lead-border: #2b3d53;
    --lead-accent: #5b9dff;
    --lead-accent-hover: #77adff;
  }

  .lead-header {
    background: rgba(12, 21, 36, 0.96);
  }

  .lead-brand__mark {
    background: #e8f1ff;
    color: #10233d;
  }
}

@media (max-width: 840px) {
  .lead-nav {
    display: none;
  }

  .lead-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lead-copy {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .lead-header__inner,
  .lead-main,
  .lead-footer {
    width: min(100% - 24px, 1120px);
  }

  .lead-header__inner {
    min-height: 64px;
  }

  .lead-header__actions .lead-button {
    display: none;
  }

  .lead-main {
    padding-top: 30px;
  }

  .lead-copy h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .lead-copy > p:not(.lead-eyebrow) {
    font-size: 16px;
  }

  .lead-form-shell__header,
  .lead-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lead-field-grid {
    grid-template-columns: 1fr;
  }

  .lead-field--wide {
    grid-column: auto;
  }

  .lead-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-form__actions .lead-button {
    width: 100%;
  }

  .lead-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }
}

/* Public lead pages use the same calm operational language as the landing page. */
@font-face {
  font-family: "Geist";
  src: url("/assets/landing/geist-500.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/landing/geist-700.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: light;
  --lead-page: #f8f9fb;
  --lead-surface: #ffffff;
  --lead-surface-soft: #f3f5f8;
  --lead-text: #25344a;
  --lead-muted: #77849a;
  --lead-border: #dce3ec;
  --lead-accent: #2f69ff;
  --lead-accent-hover: #2459de;
}

body {
  background-color: var(--lead-page);
  background-image: linear-gradient(to right, rgba(37, 52, 74, 0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(37, 52, 74, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  font-family: "Geist", Inter, sans-serif;
}

.lead-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom-color: rgba(220, 227, 236, 0.78);
  background: rgba(248, 249, 251, 0.88);
  backdrop-filter: blur(18px);
}

.lead-header__inner {
  width: min(1224px, calc(100% - 40px));
  min-height: 76px;
}

.lead-brand__mark {
  border-radius: 10px;
  background: linear-gradient(145deg, #4f83ff, #2f69ff);
  box-shadow: 0 8px 20px rgba(47, 105, 255, 0.2);
}

.lead-button {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lead-button--primary {
  box-shadow: inset 0 0 28px rgba(185, 215, 255, 0.55), 0 10px 24px rgba(47, 105, 255, 0.18);
}

.lead-main {
  width: min(1224px, calc(100% - 40px));
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  gap: clamp(44px, 7vw, 88px);
  padding: clamp(56px, 8vw, 104px) 0 80px;
}

.lead-eyebrow {
  width: max-content;
  margin-bottom: 22px;
  border: 1px dashed rgba(47, 105, 255, 0.35);
  padding: 7px 11px;
  color: var(--lead-accent);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.lead-copy h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.lead-points {
  gap: 0;
  border-top: 1px solid var(--lead-border);
}

.lead-points li {
  min-height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--lead-border);
  padding: 12px 0 12px 28px;
}

.lead-points li::before {
  top: 50%;
  width: 16px;
  height: 16px;
  border-width: 1px;
  background: rgba(47, 105, 255, 0.08);
  transform: translateY(-50%);
}

.lead-form-shell {
  border-color: rgba(220, 227, 236, 0.92);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(25, 43, 71, 0.08);
}

.lead-form-shell__header {
  padding: 30px 32px 24px;
  background: linear-gradient(145deg, rgba(47, 105, 255, 0.07), rgba(255, 255, 255, 0) 70%);
}

.lead-form {
  padding: 28px 32px 32px;
}

.lead-field input,
.lead-field textarea {
  border-radius: 10px;
  background: #fbfcfe;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lead-field input:focus,
.lead-field textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 105, 255, 0.08);
}

.lead-footer {
  width: min(1224px, calc(100% - 40px));
  padding: 26px 0 38px;
}

@media (hover: hover) and (pointer: fine) {
  .lead-button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 900px) {
  .lead-main {
    grid-template-columns: 1fr;
  }
}

/* Demo and contact pages share the landing shell instead of maintaining a second header/footer. */
body.landing-page.public-lead-page {
  color: var(--landing-text);
  background-color: var(--landing-canvas);
  background-image: var(--landing-grid-pattern);
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 90px 90px;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.public-lead-page .lead-main {
  padding-top: clamp(104px, 10vw, 132px);
}

.public-lead-page .public-page-footer {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
}

@media (max-width: 620px) {
  .public-lead-page .lead-main {
    padding-top: 90px;
  }
}

/* Final public form treatment: solid surfaces and symmetrical page rhythm. */
.public-lead-page .lead-main {
  padding-top: 204px;
  padding-bottom: 132px;
}

.public-lead-page .lead-form-shell {
  box-shadow: 0 18px 44px rgba(8, 19, 45, 0.055);
}

.public-lead-page .lead-form-shell__header {
  background: #ffffff;
}

.public-lead-page .lead-button--primary {
  background: var(--lead-accent);
  box-shadow: none;
}

.public-lead-page .lead-button--primary:hover {
  background: var(--lead-accent-hover);
}

@media (max-width: 620px) {
  .public-lead-page .lead-main {
    padding-top: 150px;
    padding-bottom: 96px;
  }
}

/* Demo composition: a two-line statement paired with an equally weighted form. */
.demo-page .lead-main {
  width: min(1280px, calc(100% - 40px));
  grid-template-columns: repeat(auto-fit, minmax(min(510px, 100%), 1fr));
  gap: clamp(52px, 6vw, 88px);
}

.demo-page .lead-copy {
  padding-top: 34px;
}

.demo-page .lead-copy h1 {
  max-width: none;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.04;
}

.demo-page .lead-copy h1 span {
  display: block;
}

.demo-page .lead-form-shell__header {
  border-bottom: 0;
  padding-bottom: 12px;
}

.demo-page .lead-form {
  padding-top: 18px;
}
