/* windcert.app holding page. Tokens from Vera's 1.7.0-web set (light) and the app's
   steelDark ramp (dark). Lockup colours are Clio's W7 pairs. No third-party requests. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-subset.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #FFFFFF;
  --text-1: #111C24;
  --text-2: #45535C;
  --brand: #0B4F71;
  --brand-hover: #06344D;
  --on-brand: #FFFFFF;
  --pill-bg: #D2E6F2;
  --pill-fg: #06344D;
  --stage: #D2E6F2;
  --bezel: #111C24;
  --bezel-ring: transparent;
  --focus: #0B4F71;
  --shadow: 0 40px 80px -20px rgba(6, 52, 77, 0.35);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #10171D;
    --text-1: #E9EEF2;
    --text-2: #A7B5BF;
    --brand: #82C3E5;
    --brand-hover: #A9D6EE;
    --on-brand: #10171D;
    --pill-bg: #19232B;
    --pill-fg: #82C3E5;
    --stage: #03293C;
    --bezel: #05090C;
    --bezel-ring: #2C3944;
    --focus: #82C3E5;
    --shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text-1);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(1240px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: the horizontal lockup, 30 px tall (Vera, leftovers 2), 26 px on the narrowest phones. */
.top { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(20px, 3vw, 36px); }
.brand { display: flex; align-items: flex-start; margin: 0; color: var(--brand); }
.lockup { display: block; height: 30px; width: auto; aspect-ratio: 6954.4 / 1260; }
/* ™ on the first brand mention until registration (Clio, name check 4.3). Text, not part
   of the lockup asset; caption weight, the lockup's colour, its top on the name's cap line. */
.tm { margin: 4px 0 0 1px; font: 600 13px/1 var(--font); }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(32px, 5vw, 64px);
}

.copy { max-width: 36rem; padding-top: clamp(8px, 3vw, 24px); }

.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font: 600 14px/1.3 var(--font);
}

h1 {
  margin-top: 20px;
  font: 800 clamp(40px, 3vw + 22px, 76px)/1.04 var(--font);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.nw { white-space: nowrap; }

.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--text-2);
  font: 400 clamp(18px, 0.3vw + 16px, 21px)/1.5 var(--font);
  text-wrap: pretty;
}

.contact { margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  max-width: 100%;
  padding: 0 28px 0 24px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 600 17px/1.2 var(--font);
  text-decoration: none;
  transition: background-color 160ms var(--ease), transform 90ms var(--ease);
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.icon { width: 22px; height: 22px; flex: none; }

/* The product visual: a colour block with the phone rising out of its bottom edge (Monzo's pattern). */
.stage {
  position: relative;
  border-radius: 28px;
  background: var(--stage);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 44px;
}

.device {
  width: 260px;
  padding: 9px 9px 0;
  border-radius: 44px 44px 0 0;
  background: var(--bezel);
  box-shadow: var(--shadow), 0 0 0 1px var(--bezel-ring);
}
.device picture, .device img { display: block; width: 100%; height: auto; }
.device img { border-radius: 35px 35px 0 0; }

.foot { padding-top: 24px; padding-bottom: 32px; }
.foot p { color: var(--text-2); font: 500 14px/1.4 var(--font); }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .stage { padding-top: 96px; }
  .device { width: 340px; padding: 11px 11px 0; border-radius: 54px 54px 0 0; }
  .device img { border-radius: 43px 43px 0 0; }
}

@media (max-width: 359px) {
  .lockup { height: 26px; }
  .tm { margin-top: 4px; font-size: 12px; }
  .btn { padding: 0 20px 0 18px; font-size: 16px; }
}

/* One quiet entrance on load, then the page is still. Off with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .copy > *, .device { animation: rise 600ms var(--ease) both; }
  .copy > :nth-child(2) { animation-delay: 60ms; }
  .copy > :nth-child(3) { animation-delay: 120ms; }
  .copy > :nth-child(4) { animation-delay: 180ms; }
  .device { animation-duration: 800ms; animation-delay: 200ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
