@import url('/assets/fonts/fonts.css');

:root {
  --blue: #1b2bd3;
  --blue-deep: #131f9e;
  --on-blue-dim: #d5d9fb;
  --ink: #0d1020;
  --ink-dim: #565b6e;
  --paper: #fff;
  --tint: #eff1f5;
  --rule: #d4d7e0;

  --face: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #a9aebd var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--face);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }
.hero ::selection, .contact ::selection { background: #fff; color: var(--blue); }
img, svg { display: block; max-width: 100%; }
h1, h2, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
:target { scroll-margin-top: 16px; }

/* Twelve columns, one axis for the whole page */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  width: min(100%, 1560px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid > * { grid-column: 1 / -1; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }

/* Bar */
.bar .grid { align-items: center; padding-block: 14px; }
.bar .mark { grid-column: 1 / 7; }
.bar nav { grid-column: 7 / -1; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; text-decoration: none; white-space: nowrap; justify-self: start; }
.bar nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2.4vw, 32px); font-size: 1rem; }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--blue); }
.lang { appearance: none; padding: 4px 0; border: 0; background: none; color: var(--ink-dim); font: inherit; cursor: pointer; }
.lang:hover { color: var(--blue); }
.lang b { color: var(--ink); font-weight: 600; }

/* Hero: the company color owns the first screen */
.hero {
  display: flex;
  align-items: stretch;
  min-height: calc(100svh - 60px - 90px);
  background: var(--blue);
  color: #fff;
}
.hero .grid { align-content: space-between; row-gap: clamp(48px, 8vh, 96px); padding-block: clamp(32px, 4.4vw, 64px); }
h1 {
  font-size: clamp(3rem, min(10.4vw, 21vh), 10rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.03em;
}
.intro { display: grid; gap: 24px; justify-items: start; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.4; }
.intro p { max-width: 36em; }

.btn {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 0;
  background: #fff; color: var(--blue);
  font: 600 1rem/1 var(--face); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn:focus-visible { outline-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: open 1s var(--ease) both; }
  @keyframes open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
}

/* Strip: one cell per product, on the page's columns */
.strip { border-bottom: 1px solid var(--rule); }
.strip li + li { border-top: 1px solid var(--rule); }
.strip a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px;
  height: 100%;
  margin-inline: -12px;
  padding: 14px 12px;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.strip b { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.strip em { font-size: .9375rem; font-style: normal; font-weight: 600; color: var(--blue); transition: color .25s var(--ease); }
.strip span { grid-column: 1 / -1; color: var(--ink-dim); font-size: .9375rem; transition: color .25s var(--ease); }
.strip a:hover, .strip a:focus-visible { background: var(--blue); color: #fff; }
.strip a:hover span, .strip a:focus-visible span, .strip a:hover em, .strip a:focus-visible em { color: #fff; }
.strip a:focus-visible { outline-offset: -6px; }

/* Products */
.product { padding-block: var(--section); }
.tint { background: var(--tint); }
.product .grid { row-gap: clamp(32px, 5vw, 56px); align-items: start; }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
.line { margin-top: 10px; font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.2; color: var(--blue); }
.copy > p:not(.line, .go, .legal) { max-width: 34em; margin-top: 20px; }
dl { margin-top: 32px; border-top: 1px solid var(--ink); font-size: 1rem; }
dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--rule); }
.tint dl div { border-bottom-color: #cdd1dc; }
dt { color: var(--ink-dim); }
.soon { color: var(--blue); font-weight: 600; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; font-weight: 600; }
.go a { text-decoration: none; }
.go a:hover { color: var(--blue); text-decoration: underline; }
.go .primary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  background: var(--blue); color: #fff; font-weight: 600;
  transition: background-color .2s var(--ease);
}
.go .primary:hover { background: var(--blue-deep); color: #fff; text-decoration: none; }
.go .primary:focus-visible { outline-color: var(--blue); }
.legal { margin-top: 20px; color: var(--ink-dim); font-size: .875rem; max-width: 42em; }

.media { display: block; }
.media img { width: 100%; height: auto; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 720px; margin-left: auto; }
.phones img { border-radius: clamp(14px, 2vw, 26px); }

/* Contact */
.contact { padding-block: var(--section); background: var(--blue); color: #fff; }
.contact .grid { row-gap: clamp(40px, 6vw, 64px); }
.contact h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.closing { display: none; width: clamp(88px, 11vw, 168px); height: auto; }
.contact address { margin-top: 20px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-style: normal; }
form { display: grid; gap: 22px; align-content: start; }
label { display: block; margin-bottom: 4px; color: var(--on-blue-dim); font-size: .9375rem; }
input, textarea {
  width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--on-blue-dim); border-radius: 0;
  background: transparent; color: #fff; caret-color: #fff; font: 400 1.0625rem/1.4 var(--face);
}
textarea { min-height: 7.5em; resize: vertical; }
input:focus, textarea:focus { outline: 0; border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.pair { display: grid; gap: 22px; }
form .btn { justify-self: start; }
.status { min-height: 1.5em; }
.status[data-state='error'] { font-weight: 600; }

/* Foot */
.foot { padding-block: 24px; color: var(--ink-dim); font-size: .9375rem; }
.foot .grid { row-gap: 10px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--blue); text-decoration: underline; }

@media (min-width: 620px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .foot p { grid-column: 1 / 7; }
  .foot ul { grid-column: 7 / -1; justify-content: flex-end; }
}
@media (min-width: 900px) {
  .strip li + li { border-top: 0; }
  .strip a { grid-template-columns: auto 1fr; }
  .strip li { grid-column: span 4; }
}
@media (min-width: 960px) {
  .intro { grid-column: 7 / -1; }
  .copy { grid-column: 1 / 6; }
  .media { grid-column: 7 / -1; }
  .lead { grid-column: 1 / 6; display: flex; flex-direction: column; align-items: flex-start; padding-bottom: calc(22px + 1.5em); }
  .closing { display: block; margin-top: auto; }
  .contact form { grid-column: 7 / -1; }
}
@media (max-width: 899px) {
  .hero { min-height: calc(100svh - 60px - 250px); }
}
@media (max-width: 480px) {
  .bar .hide-sm { display: none; }
  .go .primary { flex: 0 0 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
