/* WARP design system v2 (17 Oct 2026). Rules: docs/design-system.md §1–§11. Served at /design-system.css.
   Current for new pages. site/brand.css is frozen for funnels v1 and v2. */

/* Geomanist comes from warp.sg through the local server; Manrope is the backup. */
@font-face { font-family: 'Geomanist'; font-weight: 400; src: url('fonts/Geomanist-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Geomanist'; font-weight: 700; src: url('fonts/Geomanist-Bold.ttf') format('truetype'); font-display: swap; }

:root {
  /* Brand colours (§2) */
  --warp-navy: #041B39;
  --warp-blue: #2C7DF3;
  --warp-blue-button: #1D6AE5;
  --warp-sky: #6FB8FF;
  --warp-coral: #FF6975;
  --warp-white: #FFFFFF;
  --warp-ink: #212950;
  --warp-grey: #F0F0F0;
  --warp-teal: #00B4BA;

  /* Working shades */
  --navy-raised: #0A2A52;
  --line-on-navy: rgba(255,255,255,.14);
  --muted-on-navy: rgba(255,255,255,.72);  /* 9.4:1 on navy; never lower for text */

  /* Type (§3, §9) */
  --font: 'Geomanist', 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --measure: 62ch;

  /* Spacing scale (§10) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  /* Motion (§9) */
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --t-fast: 150ms;
  --t-base: 250ms;

  /* Layers */
  --z-sticky: 40;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--warp-navy);
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, #0B2D5C 0%, transparent 70%);
  color: var(--warp-white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 17px; } }
a { color: var(--warp-sky); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--warp-teal); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.measure { max-width: var(--measure); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link (§9): first thing you can tab to */
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--warp-white); color: var(--warp-ink); font-weight: 700;
  padding: var(--s3) var(--s4); border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: var(--s4); }

/* Logo: the blue file, turned white on navy */
.logo-white { filter: brightness(0) invert(1); height: 36px; width: auto; display: block; }

/* Type */
.eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--warp-sky); margin: 0 0 var(--s3); }
.t-display { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0; }
.t-h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.t-h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.t-small { font-size: 14px; line-height: 1.5; color: var(--muted-on-navy); }
.hl-sky { color: var(--warp-sky); }
.hl-coral { color: var(--warp-coral); }

/* Buttons (§4) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 48px; font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  border-radius: 999px; padding: 14px 28px; cursor: pointer; text-decoration: none; touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.btn-primary {
  background: var(--warp-blue-button); color: var(--warp-white); border: 1px solid rgba(111,184,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 28px rgba(44,125,243,.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 40px rgba(44,125,243,.8); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 16px rgba(44,125,243,.5); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-secondary { background: transparent; color: var(--warp-white); border: 2px solid var(--warp-white); padding: 8px 8px 8px 24px; }
.btn-secondary:hover { background: rgba(255,255,255,.08); }
.btn:focus-visible { outline: 3px solid var(--warp-teal); outline-offset: 4px; }
.arrow { font-size: 22px; line-height: 1; }
.arrow-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--warp-white); color: var(--warp-navy); display: grid; place-items: center; }
@media (max-width: 640px) { .btn { font-size: 17px; padding: 13px 22px; } }

/* Icons (§8): 24px line icons, 2px stroke, no fill */
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sky { color: var(--warp-sky); }
.icon-teal { color: var(--warp-teal); }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.icon-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; }
.icon-list li .icon { margin-top: 2px; }

/* Picture placeholder (§5, §9): reserves its space so the page doesn't jump */
.pic {
  background: var(--warp-grey); color: #4B5563; border-radius: 16px;
  display: grid; place-items: center; text-align: center; padding: var(--s4);
  font-size: 14px; aspect-ratio: 16 / 10; width: 100%;
}
@media (max-width: 640px) { .pic { aspect-ratio: 4 / 3; } }

/* Form (§11) */
.form-panel { background: var(--warp-grey); color: var(--warp-ink); border-radius: 20px; padding: var(--s6) 28px; }
.form-panel .form-note { font-size: 15px; margin: 0 0 var(--s5); }
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field select {
  font: inherit; font-size: 17px; color: var(--warp-ink); background: var(--warp-white);
  border: 1px solid #7D8696;  /* 3.7:1 on white, meets 3:1 for field edges */ border-radius: 12px; padding: 0 16px; min-height: 52px; width: 100%;
}
.field select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23212950' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus { outline: 3px solid var(--warp-teal); outline-offset: 1px; border-color: transparent; }
.field.has-error input, .field.has-error select { border: 2px solid #C4384A; }
.field-error { display: none; gap: 6px; align-items: flex-start; font-size: 15px; color: #B42335; font-weight: 700; }
.field.has-error .field-error { display: flex; }
.field-error .icon { width: 18px; height: 18px; margin-top: 2px; }
.form-panel .btn { width: 100%; margin-top: var(--s2); }
.form-panel .t-small { color: var(--warp-ink); opacity: .8; margin: var(--s3) 0 0; }
.form-panel a { color: var(--warp-ink); }

/* Sticky button bar (§10): phones only */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: rgba(4,27,57,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line-on-navy);
  padding: var(--s3) 20px calc(var(--s3) + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform var(--t-base) var(--ease-out);
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 860px) { .sticky-cta { display: none; } }

footer.signoff { padding: 40px 0 56px; font-size: 14px; color: var(--muted-on-navy); border-top: 1px solid var(--line-on-navy); margin-top: var(--s8); }
@media (max-width: 859px) { footer.signoff { padding-bottom: 120px; } } /* room for the sticky bar */

/* Reduced motion (§9) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
