/* ORBIT - base: design tokens, reset, typography */

/* ---------- Fonts: self-hosted (SIL Open Font License 1.1, licence texts in fonts/) ----------
   Latin subset files exactly as served by Google Fonts (Wix Madefor Text v17: static 400 / 500 / 600 / 700;
   Onest v11: one variable file, declared at 600 and 800 as Google does). The page uses no other subset. */
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/wix-madefor-text-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; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/wix-madefor-text-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; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/wix-madefor-text-600-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; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/wix-madefor-text-700-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; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; 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; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; 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; }

/* ---------- Theme tokens (measured from the reference) ---------- */
:root {
  --c-white: #fefefe;
  --c-dark: #262626;
  --c-text: #404040;
  --c-muted: #dddee1;
  --c-accent: #34be90;
  --c-accent-text: #187356;   /* accent for text and focus rings on light backgrounds: 5.7:1 on white, 5.2:1 on #f2f2f7 (WCAG 1.4.3 / 1.4.11) */
  --c-page: #f2f2f7;
  --c-hero: #1c1c1e;
  --c-header: #141414;
  --c-border: #a6a6b3;

  --font-text: "Wix Madefor Text", Arial, sans-serif;
  --font-display: "Onest", "Wix Madefor Text", Arial, sans-serif;

  --max-section-width: 1120px;
  --xxl: 140px;
  --xl: 80px;
  --x: 60px;
  --l: 40px;
  --m: 30px;
  --s: 20px;
  --xs: 16px;
  --xxs: 10px;
  --header-height: 80px;
  --screen-padding: 32px;

  /* hero illustration: height of the phone box and phone scale */
  --phone-k: 1;
}

@media (max-width: 1199px) {
  :root {
    --xxl: 128px; --xl: 64px; --x: 48px; --l: 32px; --m: 24px;
    --s: 16px; --xs: 12px; --xxs: 8px; --header-height: 80px; --screen-padding: 32px;
    --phone-k: 1.05;
  }
}

@media (max-width: 767px) {
  :root {
    --xxl: 100px; --xl: 64px; --x: 48px; --l: 24px; --m: 24px;
    --s: 16px; --xs: 12px; --xxs: 8px; --header-height: 56px; --screen-padding: 16px;
    --phone-k: .7;
  }
}

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

html {
  width: 100vw;
  max-width: 100%;
  background-color: var(--c-page);
  overscroll-behavior-y: none;
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--c-text);
  font-size: 20px;
  line-height: 32px;
  -webkit-text-size-adjust: 100%;
}
/* smooth anchor scrolling only when the visitor has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body { margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; }
h1, h2 { margin: 0; font-weight: inherit; }
