:root {
  color-scheme: light;
  --navy: #062d50;
  --navy-deep: #062a49;
  --teal: #4fc6ad;
  --teal-dark: #18aa98;
  --ink: #122d43;
  --muted: #526579;
  --paper: #fbfbfa;
  --line: #dce3e8;
  --shadow: 0 24px 80px rgb(6 42 73 / 16%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.landing {
  display: flex;
  width: min(100%, 1120px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  margin-bottom: clamp(76px, 10vw, 146px);
  color: var(--navy);
  text-decoration: none;
}

.brand-logo { display: block; width: 100%; height: auto; }

.message { max-width: 100%; }
.message h1, .message p {
  margin: 0;
  font-size: clamp(20px, 2.25vw, 31px);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.45;
}
.message p { margin-top: clamp(16px, 2vw, 28px); }

.contact-button, .submit-button {
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--navy-deep);
  font-size: 22px;
  font-weight: 600;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-button {
  min-width: 300px;
  margin-top: clamp(42px, 6vw, 76px);
  padding: 16px 32px;
  box-shadow: 0 10px 26px rgb(6 42 73 / 9%);
}
.contact-button svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-button:hover, .submit-button:hover { background: #0a416d; transform: translateY(-1px); }
.contact-button:focus-visible, .submit-button:focus-visible, .dialog-close:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }

.contact-dialog {
  width: min(92vw, 520px);
  max-width: 520px;
  max-height: min(90svh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.contact-dialog::backdrop { background: rgb(5 25 43 / 48%); backdrop-filter: blur(3px); }
.contact-form { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 5vw, 42px); }
.dialog-close { position: absolute; top: 15px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 30px; line-height: 1; }
.dialog-close:hover { background: #edf2f5; }
.dialog-kicker { margin: 0 0 8px; color: var(--teal-dark); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.contact-form h2 { margin: 0; color: var(--navy); font-size: 28px; font-weight: 500; }
.dialog-intro { margin: 8px 0 24px; color: var(--muted); line-height: 1.5; }
.contact-form label { margin: 14px 0 7px; font-size: 14px; font-weight: 600; }
.contact-form input:not([type="hidden"]), .contact-form textarea {
  width: 100%;
  border: 1px solid #cbd6df;
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal-dark); outline: 2px solid rgb(24 170 152 / 15%); }
.turnstile-container { min-height: 0; margin-top: 18px; }
.form-status { min-height: 1.5em; margin: 8px 0 0; color: #a42a2a; font-size: 14px; line-height: 1.4; }
.form-status.success { color: #14765f; }
.submit-button { min-height: 52px; width: 100%; margin-top: 8px; border-radius: 10px; font-size: 17px; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trap { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 600px) {
  .page { padding: 26px 22px; }
  .brand { width: min(100%, 420px); margin-bottom: clamp(64px, 20vw, 100px); }
  .message h1, .message p { max-width: 34ch; font-size: clamp(18px, 5.1vw, 22px); line-height: 1.5; }
  .message p { margin-top: 16px; }
  .contact-button { min-width: min(100%, 250px); min-height: 58px; margin-top: 40px; gap: 13px; padding: 13px 24px; border-radius: 12px; font-size: 18px; }
  .contact-button svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
