/* Styles shared by the consultancy site (wasabitlabs.com) and the support site
   (support.wasabitlabs.com): both use the same look. */

/* Manrope is self-hosted (variable font, SIL Open Font License: fonts/OFL.txt),
   so neither site makes requests to third parties. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #1E63D6;
  --blue-dark: #174EA8;
  --ink: #1F2937;
  --muted: #566070;
  --wasabi: #A8C23A;
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --line: #E1E7EE;
  --danger: #B42318;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
p { margin: 0; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--wasabi); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
/* Text columns keep the page's left edge and limit their line length. */
.narrow > * { max-width: 740px; }

/* Header */

.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); white-space: nowrap; }
.logo-labs { color: var(--blue); margin-left: 0.28em; }

/* The dot of the "i" is the brand's wasabi-green accent. */
.logo-i { position: relative; display: inline-block; }
.logo-i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.06em;
  width: 0.2em;
  height: 0.2em;
  margin-left: -0.1em;
  border-radius: 50%;
  background: var(--wasabi);
}

.nav, .languages { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current] { border-bottom-color: var(--wasabi); }

.languages { gap: 4px 10px; font-size: 0.85rem; }
.languages a { color: var(--muted); text-decoration: none; font-weight: 500; }
.languages a[aria-current] { color: var(--ink); font-weight: 700; }

/* Buttons and links */

.button {
  display: inline-block;
  background: var(--blue);
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 24px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  cursor: pointer;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #FFFFFF; }
.button-ghost { background: transparent; color: var(--blue); }
.button-ghost:hover { background: var(--blue); color: #FFFFFF; }
.button-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); white-space: nowrap; }
.button-light:hover { background: var(--wasabi); border-color: var(--wasabi); color: var(--ink); }

.more { font-weight: 700; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }

/* Page sections */

.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 16ch; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 62ch; margin-top: 20px; }
.lead p + p { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.facts { list-style: none; margin: clamp(40px, 7vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; }
.facts li { border-top: 3px solid var(--blue); padding-top: 14px; color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }

.page-head { padding: clamp(40px, 7vw, 80px) 0 8px; }
.page-head .more { display: inline-block; margin-top: 24px; }

.section { padding: clamp(32px, 6vw, 64px) 0; }
.section > .wrap > h2 { margin-bottom: 28px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt p { margin-top: 16px; color: var(--muted); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h2, .card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.card h2::before, .card h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--wasabi); }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

.card a { color: var(--ink); text-decoration: none; }
.card a:hover { color: var(--blue); text-decoration: underline; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h2 { font-size: 1.25rem; align-self: end; }
.steps p { color: var(--muted); margin-top: 6px; }

.prose p + p { margin-top: 18px; }
.prose p:first-child { font-size: 1.3rem; font-weight: 500; }

/* Long-form text of the support site's privacy policy. */
.policy h1 { margin-bottom: 24px; }
.policy h2 { font-size: 1.3rem; margin-top: 40px; }
.policy p { margin-top: 14px; }

/* Call to action band */

.band { background: var(--ink); color: #FFFFFF; padding: clamp(36px, 6vw, 60px) 0; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.band p { color: #C9D1DB; margin-top: 8px; }

/* Contact form */

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 20px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }

.form input, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #B8C2CE;
  border-radius: 10px;
  padding: 11px 13px;
}
.form textarea { resize: vertical; min-height: 160px; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--wasabi); outline-offset: 1px; border-color: var(--blue); }

.errors { border: 1px solid var(--danger); background: #FEF3F2; color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.errors ul { margin: 0; padding-left: 18px; }

/* Honeypot: off-screen for people, still in the DOM for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 24px 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
