/* Alyte holding page. Layout, colours and type follow the September 2026
   pitch decks (three-pager, page 1) and the Alyte Design System tokens in
   _reference/_ds. The font is self-hosted so the page makes no third-party
   requests. */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-var.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;
}
/* Latin Extended (Hungarian ő ű, Polish ł ę ś, Czech ř …): only downloaded when a page
   uses those characters. Same OFL font, self-hosted (no third-party requests). */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-ext-var.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;
}

:root {
  --alyte-healthy-blue: #004F53;
  --alyte-techy-green:  #70FF70;
  --alyte-honest-white: #FFFFFF;

  --teal-200:    #A9CDCE;
  --teal-glow:   #2E7073;
  --ink-card:    #073B3E;
  --canvas:      #F7FAF8;
  --surface-soft:#E6EFEE;
  --rule:        #CFDDDA;
  --ink-strong:  #203B33;
  --ink-body:    #3A4641;
  --ink-muted:   #51605A;

  --font-grotesk: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-body);
  font-family: var(--font-grotesk);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, blockquote { margin: 0; }

.wrap {
  max-width: calc(1280px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

a:focus-visible {
  outline: 2px solid var(--alyte-techy-green);
  outline-offset: 4px;
}

/* ---- Hero: the teal page of the three-pager ---- */

.hero {
  background-color: var(--alyte-healthy-blue);
  background-image: radial-gradient(ellipse 60% 70% at 84% 6%, var(--teal-glow) 0%, rgba(46, 112, 115, 0.4) 38%, rgba(0, 79, 83, 0) 100%);
  color: var(--alyte-honest-white);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: clamp(20px, 3vw, 36px);
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { display: block; height: 36px; width: auto; }
.site-header .eyebrow { flex: 1 1 auto; color: var(--teal-200); }
/* Language switcher: only rendered when more than one language is published. */
.lang-switch { display: flex; flex: none; flex-wrap: wrap; gap: 4px; font-size: 0.75rem; font-weight: 600; line-height: 1.3; }
.lang-switch a, .lang-switch [aria-current] { padding: 6px 10px; border-radius: 999px; color: var(--surface-soft); text-decoration: none; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: rgba(230, 239, 238, 0.14); }
.lang-switch [aria-current] { border: 1px solid rgba(230, 239, 238, 0.45); }
.site-header__status {
  flex: none;
  padding: 6px 14px;
  border: 1px solid rgba(230, 239, 238, 0.45);
  border-radius: 999px;
  color: var(--surface-soft);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__grid > * { min-width: 0; } /* let long translated words wrap instead of widening the grid */
.hero__grid {
  display: grid;
  gap: clamp(28px, 4.5vw, 64px);
  padding-top: clamp(28px, 4.5vw, 64px);
}

h1 {
  max-width: 13em;
  font-size: clamp(2.25rem, 4.7vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Translations run longer (German ~30%, with long compounds): a word that cannot fit may
   break instead of pushing the page sideways, and non-English pages hyphenate by their
   language. English layout is unchanged (nothing overflows there). */
h1, h2, h3, p, blockquote, li { overflow-wrap: break-word; }
html:not([lang|="en"]) :is(h1, h2, h3, p, blockquote, li) { hyphens: auto; }

.lede {
  max-width: 31em;
  margin-top: clamp(20px, 2.4vw, 32px);
  color: var(--surface-soft);
  font-size: clamp(1.125rem, 1.65vw, 1.5rem);
  line-height: 1.42;
  text-wrap: pretty;
}

.use-cases {
  display: grid;
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(28px, 4vw, 56px);
}
.use-case {
  padding: 22px 24px 26px;
  border-radius: 14px;
  background: rgba(7, 59, 62, 0.78);
}
.use-case .eyebrow { color: var(--teal-200); }
.use-case blockquote {
  margin-top: 14px;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.32;
  text-wrap: balance;
}
.use-case__where {
  margin-top: 12px;
  color: var(--teal-200);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.example {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 16px;
  background: var(--canvas);
  color: var(--ink-body);
}
.example .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--alyte-healthy-blue);
}
.example .eyebrow::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alyte-techy-green);
}
.example blockquote {
  margin-top: clamp(22px, 2.6vw, 36px);
  margin-bottom: clamp(24px, 3vw, 40px);
  color: var(--alyte-healthy-blue);
  font-size: clamp(1.375rem, 1.95vw, 1.75rem);
  line-height: 1.32;
  text-wrap: balance;
}
.example__terms {
  margin-top: auto;
  padding-top: clamp(20px, 2.2vw, 30px);
  border-top: 1px solid var(--rule);
}
.example__terms strong { display: block; color: var(--ink-strong); font-weight: 700; }
.example__terms p + p { margin-top: 14px; }

.hero__close { margin-top: clamp(28px, 3.4vw, 44px); }
.hero__close strong {
  display: block;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
}
.hero__close span {
  display: block;
  margin-top: 8px;
  color: var(--teal-200);
  font-size: 0.9375rem;
}

/* ---- For whom: the five verticals ---- */

.verticals {
  padding-block: clamp(48px, 6.5vw, 88px) 0;
}
.verticals .eyebrow { color: var(--alyte-healthy-blue); }
.verticals h2 {
  max-width: 20em;
  margin-top: 18px;
  color: var(--ink-strong);
  font-size: clamp(1.5rem, 2.9vw, 2.25rem);
}
.verticals__lede {
  max-width: 36em;
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--ink-body);
}
.vertical-list {
  display: grid;
  gap: 12px;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}
.vertical-list li {
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: var(--surface-soft);
}
.vertical-list h3 {
  margin: 0;
  color: var(--alyte-healthy-blue);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}
.vertical-list p {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-body);
}

/* ---- How Alyte fits: the light pages of the decks ---- */

.fit { padding-block: clamp(56px, 7.5vw, 104px) clamp(40px, 5vw, 64px); }
.fit .eyebrow { color: var(--alyte-healthy-blue); }

h2 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.fit h2 {
  max-width: 17em;
  margin-top: 18px;
  color: var(--ink-strong);
  font-size: clamp(1.75rem, 3.5vw, 2.875rem);
}

.points {
  display: grid;
  margin-top: clamp(32px, 4.5vw, 60px);
}
.point { padding-block: 22px; border-top: 1px solid var(--rule); }
.point h3 {
  color: var(--alyte-healthy-blue);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
}
.point p { max-width: 24em; margin-top: 10px; font-size: 1.0625rem; }

.fit__note {
  margin-top: clamp(20px, 2.6vw, 36px);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* ---- Next step ---- */

.next { padding-bottom: clamp(48px, 6vw, 80px); }
.next__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(28px, 4.2vw, 56px);
  border-radius: 20px;
  background: var(--alyte-healthy-blue);
  color: var(--alyte-honest-white);
}
.next__copy { flex: 1 1 26em; }
.next .eyebrow { color: var(--teal-200); }
.next h2 { margin-top: 14px; font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.next p:not(.eyebrow) {
  max-width: 34em;
  margin-top: 14px;
  color: var(--surface-soft);
  font-size: 1.0625rem;
}

.cta {
  display: inline-block;
  flex: none;
  max-width: 100%;        /* longer translations wrap inside the pill instead of overflowing */
  overflow-wrap: anywhere;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--alyte-honest-white);
  color: var(--alyte-healthy-blue);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.cta:hover { background: var(--surface-soft); }

/* ---- Footer ---- */

.site-footer {
  padding-bottom: clamp(28px, 4vw, 44px);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.site-footer__inner { padding-top: 20px; border-top: 1px solid var(--rule); }
.site-footer p { max-width: 62em; }
.site-footer p + p { margin-top: 6px; }
.site-footer strong { color: var(--ink-body); font-weight: 600; }
.site-footer a { color: inherit; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--alyte-healthy-blue); }
.site-footer a:focus-visible { outline-color: var(--alyte-healthy-blue); outline-offset: 2px; }

/* ---- 404: the hero alone, filling the screen ---- */

.hero--full {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.hero--full .wrap { width: 100%; }
.hero--full .hero__body { margin-block: auto; padding-block: 40px; }
.hero--full .lede { margin-bottom: 36px; }

/* ---- Wider screens ---- */

@media (min-width: 380px) {
  /* Break the heading between its sentences, and inside one only when a sentence is
     wider than the line (long translations, e.g. German compounds). */
  .fit h2 span { display: inline-block; max-width: 100%; }
}

@media (min-width: 720px) {
  .use-cases { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 560px) {
  .vertical-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .vertical-list { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 719px) {
  /* Logo and status share the first row; the positioning line drops below. */
  .site-header { justify-content: space-between; }
  .site-header .eyebrow { order: 3; flex-basis: 100%; }
  /* Six languages do not fit beside the logo: give the switcher its own wrapping row. */
  .lang-switch { order: 4; flex: 1 1 100%; margin-left: -10px; }
}

@media (min-width: 860px) {
  .points { grid-template-columns: repeat(3, 1fr); }
  .point {
    padding: 4px clamp(20px, 2.6vw, 36px);
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .point:first-child { padding-left: 0; border-left: 0; }
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
    align-items: center;
  }
}
