/* Avrostay marketing site — shared stylesheet for both locales.
 *
 * Extracted from the two prototype <style> blocks (avrostay-bg.html /
 * avrostay-en.html), which were identical apart from incidental 1-2px font-size
 * drift; unified at the BG values. Tokens mirror the handover's brand-tokens.css.
 *
 * FONTS — two deliberate departures from the handover:
 *
 * 1. Self-hosted, not Google-hosted. fonts.gstatic.com transmits every visitor's
 *    IP to Google; the privacy policy's claim that no visitor data leaves this
 *    server has to actually be true. Also removes 2 DNS lookups + 2 TLS
 *    handshakes + a render-blocking cross-origin request from the critical path.
 *
 * 2. Onest replaces Space Grotesk as the display face. Space Grotesk ships NO
 *    Cyrillic (latin, latin-ext and vietnamese only), so every heading on the
 *    Bulgarian page — the default locale and primary market — silently fell back
 *    to a system font in the prototype. Onest is the closest geometric grotesk
 *    with full Cyrillic. Owner-approved deviation.
 *
 * Each face is split latin/cyrillic by unicode-range, so the EN page downloads
 * ~90KB and never fetches the Cyrillic files at all. Onest and IBM Plex Sans are
 * variable (one file spans the weight range); IBM Plex Mono is static, hence one
 * file per weight. Licenses: assets/fonts/OFL-*.txt (both OFL-1.1).
 */

/* Onest — latin */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/onest-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;
}

/* Onest — cyrillic */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Sans — latin */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans-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;
}

/* IBM Plex Sans — cyrillic */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Mono — latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-400-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;
}

/* IBM Plex Mono — latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-500-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;
}

/* IBM Plex Mono — cyrillic */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Mono — cyrillic */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #f5f6f9;
  --paper-raised: #ffffff;
  --ink: #0e1524;
  --ink-soft: #4a5468;
  --navy: #0f2749;
  --cobalt: #2e5aac;
  --seal: #b5602e;
  --seal-soft: #f4e3d6;
  --line: #dfe3ec;
  --radius: 14px;
  /* Height of the header's content row — see `header .wrap`. Matches the CTA
     button's rendered height so every page's header is identical, whether or not
     it has a button. */
  --header-row-h: 44px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Onest", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Visible only to keyboard/screen-reader users — the honeypot's accessible
   sibling, and the skip link. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Lock the header to the height of the tallest thing it can contain — the CTA
     button. The landing pages have one and the privacy pages don't, so without
     this the row collapses to the logo's height there, and `align-items: center`
     re-centres the logo: it visibly jumps ~7px (and the header shrinks 14px)
     as you navigate between them. Keep in sync with .btn's box. */
  min-height: var(--header-row-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.logo-word {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-family: "IBM Plex Mono", monospace;
}

.lang-switch a {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
}

.lang-switch a.active {
  background: var(--navy);
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a.navlink {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

nav a.navlink:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--cobalt);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: transparent;
}

.hero {
  padding: 96px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--seal);
  background: var(--seal-soft);
  padding: 7px 13px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--cobalt);
}

.hero p.lead {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 530px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.seal-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-graphic svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.problem {
  padding: 76px 0;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.problem h2 {
  font-size: 30px;
  margin-bottom: 18px;
}

.problem p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 460px;
}

.barchart {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 110px;
  align-items: center;
  gap: 14px;
}

.bar-label {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.bar-track {
  background: var(--line);
  border-radius: 6px;
  height: 14px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
}

.bar-fill.ota {
  background: var(--seal);
  width: 82%;
}

.bar-fill.direct {
  background: var(--cobalt);
  width: 18%;
}

/* 12px, not the prototype's 9px — that was below the legible minimum and an
   audit failure. (The prototype defined .fine-print but never used it, so the
   9px never actually rendered; this markup does use it.)
   Scoped `.problem .fine-print` deliberately: a bare `.fine-print` (0,1,0) loses
   to `.problem p` (0,1,1) above, and the disclaimer would silently render at
   body size — which is exactly what it must not do. */
.problem .fine-print {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 440px;
}

.barchart-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.barchart-head span {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

.info-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 10px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
}

.info-btn .tooltip {
  display: none;
  position: absolute;
  top: 22px;
  left: 0;
  width: 230px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: left;
  z-index: 10;
}

.info-btn:hover .tooltip,
.info-btn:focus-visible .tooltip,
.info-btn.open .tooltip {
  display: block;
}

.building {
  padding: 92px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

/* 500, not the prototype's 600: the kickers are IBM Plex Mono, which ships only
   400/500 here, so 600 just triggers synthetic bold. Same applies to .why .kicker. */
.section-head .kicker {
  font-size: 12.5px;
  color: var(--cobalt);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card .status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
  background: #eaf0fb;
  color: var(--cobalt);
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.card ul {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}

.card li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--seal);
}

.why {
  padding: 88px 0;
  background: var(--navy);
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 56px;
  align-items: start;
}

.why .kicker {
  color: #9db6e0;
  font-size: 12.5px;
  font-weight: 500;
  /* Source reads "Why Avrostay" (canonical brand spelling); render stays all-caps
     to match the other section kickers. */
  text-transform: uppercase;
}

.why h2 {
  color: #fff;
  font-size: 28px;
  margin-top: 10px;
}

.why p {
  color: #c7d3e8;
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.why p strong {
  color: #fff;
}

.pricing {
  padding: 92px 0;
  text-align: center;
}

.price-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 36px;
}

.price-flag {
  font-size: 11.5px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--seal);
  background: var(--seal-soft);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 6px;
}

/* Same square-bullet treatment as .card li, but the list sits in a centred card,
   so it gets its own max-width and is left-aligned inside it. */
.price-points {
  list-style: none;
  padding-left: 0;
  margin: 20px auto 0;
  max-width: 260px;
  text-align: left;
}

.price-points li {
  font-size: 15px;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.price-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--seal);
}

.price-card p.desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-top: 16px;
}

/* Same inline-link treatment as .wl-consent a / .legal a — the global `a` rule
   strips colour and underline, so body-copy links have to opt back in. */
.price-card p.desc a {
  color: var(--cobalt);
  text-decoration: underline;
}

.waitlist {
  padding: 88px 0;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
}

.waitlist-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.waitlist h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.waitlist p {
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.wl-form input,
.wl-form select {
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14.5px;
  background: var(--paper);
  color: var(--ink);
}

.wl-form input:focus,
.wl-form select:focus {
  outline: none;
  border-color: var(--cobalt);
}

.wl-form .btn {
  margin-top: 6px;
  justify-content: center;
}

/* Honeypot. Off-screen rather than display:none — bots increasingly skip
   display:none fields, and a real person never reaches this: it is out of tab
   order and hidden from the accessibility tree. */
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl-consent {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 4px;
}

.wl-consent a {
  color: var(--cobalt);
  text-decoration: underline;
}

.wl-success {
  display: none;
  background: #eaf7ef;
  border: 1px solid #bfe3cc;
  color: #1f6b3a;
  padding: 16px;
  border-radius: 9px;
  font-size: 14.5px;
}

.wl-error {
  display: none;
  background: #fdecec;
  border: 1px solid #f0c2c2;
  color: #8f2020;
  padding: 16px;
  border-radius: 9px;
  font-size: 14.5px;
  margin-top: 12px;
  text-align: left;
}

footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .foot-note {
  font-size: 13px;
  color: var(--ink-soft);
}

footer .foot-links {
  font-size: 13px;
  color: var(--ink-soft);
}

footer .foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Long-form legal copy — the privacy pages. */
.legal {
  padding: 64px 0 88px;
}

.legal-inner {
  max-width: 680px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.legal .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  display: block;
}

.legal h2 {
  font-size: 20px;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal a {
  color: var(--cobalt);
  text-decoration: underline;
}

.legal .placeholder {
  background: var(--seal-soft);
  border: 1px solid var(--seal);
  border-radius: 9px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero-grid,
  .problem-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  nav .navlink {
    display: none;
  }

  .seal-graphic {
    order: -1;
  }
}

/* The prototype only hid .navlink below 860px, which is not enough on a phone:
   at 375px the logo's right edge and the BG/EN switch both land on x=146 and
   visually collide. Tighten the header's own spacing rather than dropping the
   language switch or the CTA, both of which earn their place. */
@media (max-width: 560px) {
  :root {
    /* The CTA shrinks below, so the header row must shrink with it — otherwise
       the mobile header keeps desktop's 44px and the logo drifts again. */
    --header-row-h: 37.5px;
  }

  .wrap {
    padding: 0 18px;
  }

  nav {
    gap: 12px;
  }

  header .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .lang-switch a {
    padding: 3px 6px;
  }

  .logo {
    gap: 8px;
  }

  .logo svg {
    width: 26px;
    height: 26px;
  }

  .logo-word {
    font-size: 17px;
  }
}
