/* Contact page (Figma page "contact page", 142:1032). Every "px" here is a Figma pixel: build.py turns it into
   calc(N * var(--u)), and --u scales with the window exactly as on the landing pages (1/1440 of the width on
   desktop, 1/375 on phones), so text and boxes keep the same size relative to the rest of the site.
   Values written "px" are real pixels (media queries, hairlines). */

.contact { background: #ffffff; --u: calc(100vw / 1440); }
@media (max-width: 519px) { .contact { --u: calc(100vw / 375); } }
.contact, .contact * { box-sizing: border-box; }

/* which navigation shows: the desktop bar from 520 px wide, the phone bar below */
@media (max-width: 519px) { .c-desk { display: none !important; } }
@media (min-width: 520px) { .c-mob { display: none !important; } }

/* ---------- Photo band with the form ---------- */
.c-hero {
  position: relative; min-height: calc(1095 * var(--u)); padding: calc(181 * var(--u)) calc(20 * var(--u)) calc(96 * var(--u));
  display: flex; justify-content: center; align-items: flex-start;
  background: linear-gradient(rgba(1, 8, 19, 0.4), rgba(1, 8, 19, 0.4)), url('assets/contact-bg.jpg') center 72% / cover no-repeat, #0b1f4a;
}
.c-card {
  width: 100%; max-width: calc(600 * var(--u)); padding: calc(32 * var(--u));
  background: #fefefe; border: 1px solid #dce3e6; border-radius: calc(10 * var(--u));
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) calc(-6 * var(--u)) rgba(4, 26, 37, 0.05);
  font-family: 'Geist', var(--font-body); color: #041a25;
}
.c-title { margin: 0; font-family: 'Cal Sans', var(--font-display); font-weight: 400; font-size: calc(26 * var(--u)); line-height: calc(36 * var(--u)); letter-spacing: calc(-0.5 * var(--u)); color: #041a25; }
.c-lede { margin: calc(6 * var(--u)) 0 0; font-size: calc(14 * var(--u)); line-height: calc(22 * var(--u)); color: #4a5a62; }
.c-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(16 * var(--u)); }
.c-field { margin: calc(24 * var(--u)) 0 0; padding: 0; border: 0; min-width: 0; }
.c-field label, .c-field legend { display: block; margin-bottom: calc(8 * var(--u)); padding: 0; font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); font-weight: 500; color: #041a25; }
.c-field input, .c-field select, .c-field textarea {
  display: block; width: 100%; height: calc(48 * var(--u)); padding: 0 calc(14 * var(--u)); margin: 0;
  background: #fefefe; border: 1px solid #788c95; border-radius: calc(10 * var(--u));
  font: 400 calc(16 * var(--u))/calc(26 * var(--u)) 'Geist', var(--font-body); color: #041a25;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.c-field textarea { height: calc(120 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); resize: vertical; }
.c-field input::placeholder, .c-field textarea::placeholder { color: #4a5a62; opacity: 1; }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus { outline: none; border-color: #041a25; box-shadow: 0 0 0 calc(3 * var(--u)) rgba(4, 26, 37, 0.12); }
.c-field .is-bad { border-color: #b4232a; }
.c-select { position: relative; }
.c-select select { appearance: none; -webkit-appearance: none; padding-right: calc(40 * var(--u)); cursor: pointer; }
.c-select::after {
  content: ""; position: absolute; right: calc(18 * var(--u)); top: 50%; width: calc(7 * var(--u)); height: calc(7 * var(--u)); margin-top: calc(-6 * var(--u)); pointer-events: none;
  border-right: calc(1.6 * var(--u)) solid #041a25; border-bottom: calc(1.6 * var(--u)) solid #041a25; transform: rotate(45deg);
}
.c-help { margin: calc(8 * var(--u)) 0 0; font-size: calc(14 * var(--u)); line-height: calc(22 * var(--u)); color: #4a5a62; }

/* "You are": three joined options, the chosen one shaded */
.c-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dce3e6; border-radius: calc(6 * var(--u)); overflow: hidden; }
.c-seg label { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.c-seg label + label { border-left: 1px solid #dce3e6; }
.c-seg input { position: absolute; opacity: 0; width: calc(1 * var(--u)); height: calc(1 * var(--u)); }
.c-seg span { display: flex; align-items: center; justify-content: center; height: calc(38 * var(--u)); padding: 0 calc(6 * var(--u)); text-align: center;
  font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); color: #4a5a62; transition: background-color 0.15s ease, color 0.15s ease; }
.c-seg input:checked + span { background: #eef2f3; color: #041a25; font-weight: 500; }
.c-seg input:focus-visible + span { box-shadow: inset 0 0 0 calc(2 * var(--u)) #2b7bd6; }

.c-check { display: flex; gap: calc(10 * var(--u)); align-items: flex-start; margin-top: calc(24 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(22 * var(--u)); color: #4a5a62; cursor: pointer; }
.c-check input { flex: none; width: calc(18 * var(--u)); height: calc(18 * var(--u)); margin: calc(2 * var(--u)) 0 0; accent-color: #041a25; cursor: pointer; }
.c-error { margin: calc(16 * var(--u)) 0 0; font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); color: #b4232a; }
.c-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; height: calc(44 * var(--u)); margin-top: calc(24 * var(--u));
  border: 0; border-radius: calc(6 * var(--u)); background: #041a25; color: #fefefe;
  font: 500 calc(14 * var(--u))/calc(20 * var(--u)) 'Geist', var(--font-body); cursor: pointer; transition: filter 0.15s ease;
}
.c-submit:hover { filter: brightness(1.35); }
.c-done { text-align: left; }
.c-note { margin-top: calc(18 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(8 * var(--u)); background: #f3f6f8; }
.c-back { text-decoration: none; }

/* ---------- Footer ---------- */
.c-foot { background: #ffffff; overflow: hidden; }
.c-foot-in {
  max-width: calc(1200 * var(--u)); margin: 0 auto; padding: calc(76 * var(--u)) calc(24 * var(--u)) 0;
  display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: calc(32 * var(--u));
  font-family: var(--font-body);
}
.cf-brand { display: flex; align-items: center; gap: calc(10 * var(--u)); font-weight: 700; font-size: calc(15 * var(--u)); line-height: calc(18 * var(--u)); color: var(--footer-head); white-space: nowrap; }
.cf-brand img { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.cf-copy { margin: calc(18 * var(--u)) 0 0; font-size: calc(12 * var(--u)); line-height: calc(16 * var(--u)); color: var(--footer-link); }
.cf-col h4 { margin: 0 0 calc(24 * var(--u)); font-weight: 700; font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); letter-spacing: calc(1.9 * var(--u)); color: var(--footer-head); }
.cf-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(22 * var(--u)); }
.cf-col li { font-size: calc(13 * var(--u)); line-height: calc(16 * var(--u)); color: var(--footer-link); white-space: nowrap; }
.cf-col a:hover { color: var(--navy); }
.cf-wordmark {
  margin: calc(96 * var(--u)) 0 0; font-family: var(--font-body); font-weight: 500; text-align: center; white-space: nowrap;
  font-size: calc(200 * var(--u)); line-height: 0.82; letter-spacing: -0.01em;
  background: linear-gradient(0deg, #e6eefb 0%, #7b8da3 60%, #0f2d4b 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Phones (below 520 px, where the site switches to its mobile layout) ---------- */
@media (max-width: 519px) {
  .c-hero { min-height: 0; padding: calc(96 * var(--u)) calc(16 * var(--u)) calc(56 * var(--u)); background-position: 58% 100%; }
  .c-card { padding: calc(24 * var(--u)) calc(20 * var(--u)); }
  .c-grid { grid-template-columns: 1fr; }
  .c-seg { grid-template-columns: 1fr; }
  .c-seg label + label { border-left: 0; border-top: 1px solid #dce3e6; }
  .c-foot-in { grid-template-columns: 1fr 1fr; row-gap: calc(44 * var(--u)); padding: calc(48 * var(--u)) calc(17 * var(--u)) 0; }
  .c-foot-brand { grid-column: 1 / -1; }
  .cf-wordmark { margin-top: calc(64 * var(--u)); font-size: calc(57 * var(--u)); }
}
@media (prefers-reduced-motion: reduce) { .c-field input, .c-field select, .c-field textarea, .c-seg span, .c-submit { transition: none; } }

/* the phone bar spans the full width here (the mobile landing page caps it at 520 px for its centred column) */
.contact .m-nav, .contact .m-menu { max-width: none; --u: calc(100vw / 375); }

/* ---------- Coming Soon page (Figma 156:41) ---------- */
.cs-hero {
  position: relative; height: calc(704 * var(--u)); display: flex; flex-direction: column; align-items: center; padding-top: calc(185 * var(--u));
  background: linear-gradient(rgba(1, 8, 19, 0.4), rgba(1, 8, 19, 0.4)), url('assets/contact-bg.jpg') center 78% / cover no-repeat, #0b1f4a;
}
.cs-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: calc(80 * var(--u)); line-height: calc(72 * var(--u)); letter-spacing: calc(-3.2 * var(--u)); color: var(--white); text-align: center; white-space: nowrap; }
.cs-text { margin: calc(54 * var(--u)) 0 0; max-width: calc(601 * var(--u)); font-family: var(--font-body); font-weight: 500; font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u)); color: var(--white); text-align: center; }
.cs-text a { color: inherit; text-decoration: none; }
.cs-text a:hover { text-decoration: underline; text-underline-offset: calc(3 * var(--u)); }
.cs-home { margin-top: calc(54 * var(--u)); height: calc(36 * var(--u)); }   /* Figma 156:41: title y 185, message y 311, button y 413 */
@media (max-width: 519px) {
  .cs-hero { height: calc(640 * var(--u)); padding-top: calc(200 * var(--u)); }
  .cs-text { margin-top: calc(32 * var(--u)); padding: 0 calc(20 * var(--u)); }
  .cs-title { font-size: calc(50 * var(--u)); letter-spacing: calc(-2 * var(--u)); }
  .cs-home { margin-top: calc(36 * var(--u)); }
}

/* consent line on the contact form: the Privacy Policy link */
.c-check a { color: #041a25; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Terms of Use and Privacy Policy pages (terms.html, privacy.html) ----------
   The photo band scales like the rest of the site; the policy text uses real pixels ("px") so it stays readable at every window width. */
.lg-hero {
  display: flex; align-items: flex-end; justify-content: center; height: calc(360 * var(--u)); padding: 0 calc(20 * var(--u)) calc(64 * var(--u));
  background: linear-gradient(rgba(1, 8, 19, 0.45), rgba(1, 8, 19, 0.45)), url('assets/contact-bg.jpg') center 78% / cover no-repeat, #0b1f4a;
}
.lg-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: calc(64 * var(--u)); line-height: calc(72 * var(--u)); letter-spacing: calc(-2.56 * var(--u)); color: var(--white); text-align: center; }
.lg-doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 24px; font-family: var(--font-body); color: #041a25; }
.lg-kicker { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 20px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--footer-link); }
.lg-updated { margin: 12px 0 0; font-size: 16px; line-height: 26px; color: #4a5a62; }
.lg-doc h2 { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid #dce3e6; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 34px; letter-spacing: -0.6px; color: #041a25; scroll-margin-top: 128px; }
.lg-p, .lg-plain { margin: 18px 0 0; font-size: 16px; line-height: 26px; color: #1f3340; scroll-margin-top: 128px; }
.lg-p { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
.lg-n { font-variant-numeric: tabular-nums; color: var(--footer-link); }
.lg-list { list-style: none; margin: 10px 0 0 52px; padding: 0; }
.lg-list li { display: grid; grid-template-columns: 32px 1fr; column-gap: 6px; margin-top: 10px; font-size: 16px; line-height: 26px; color: #1f3340; }
.lg-doc b { font-weight: 600; color: #041a25; }
.lg-doc a { color: #041a25; text-decoration: underline; text-underline-offset: 3px; }
.lg-doc a:hover { color: var(--navy); }
.lg-p:target { background: #f3f6f8; border-radius: 6px; box-shadow: 0 0 0 8px #f3f6f8; }
@media (max-width: 519px) {
  .lg-hero { height: calc(300 * var(--u)); padding-bottom: calc(40 * var(--u)); }
  .lg-title { font-size: calc(40 * var(--u)); line-height: calc(46 * var(--u)); letter-spacing: calc(-1.6 * var(--u)); }
  .lg-doc { padding: 44px 20px 8px; }
  .lg-doc h2 { margin-top: 40px; font-size: 22px; line-height: 30px; }
  .lg-p, .lg-plain, .lg-list li { font-size: 15px; line-height: 24px; }
  .lg-p { grid-template-columns: 36px 1fr; }
  .lg-list { margin-left: 0; }
}

/* spam trap field: off-screen, never shown to people */
.c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-submit[disabled] { opacity: .6; cursor: progress; }
