/* Shared by every page: fonts, tokens, base, logo, buttons, header and footer */

/* ---------- Fonts ---------- */

/* Self-hosted Google Fonts subsets (OFL, licenses in assets/fonts). Each
   subset downloads only when the page uses a character in its range. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/poppins-latin-300.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: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-latin-400.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: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-latin-500.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: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-600.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: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700.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;
}

/* Noto Sans and Noto Sans Hebrew are variable, one file covers 300 and 400.
   Only their Hebrew and Cyrillic subsets are hosted, Latin characters in
   that text (like punctuation) fall back to Poppins. */

@font-face {
  font-family: "Noto Sans Hebrew";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/noto-sans-hebrew-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC,
    U+FB1D-FB4F;
}

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

/* ---------- Tokens ---------- */

/* Tokens mirror the Acre Man product design system */
:root {
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  /* Poppins has no Hebrew or Cyrillic glyphs */
  --font-hebrew: "Noto Sans Hebrew", var(--font-sans);
  --font-cyrillic: "Noto Sans", var(--font-sans);

  --color-primary-50: #f3eefa;
  --color-primary-200: #c9b1e9;
  --color-primary-300: #b18ddf;
  --color-primary-400: #a177d9;
  --color-primary-500: #8a55cf;
  --color-primary-700: #4d208f;
  --color-primary-800: #4a2f80;
  --color-primary-900: #1f113c;
  --color-secondary-500: #c9fbe6;
  --color-text-muted: #5a5470;
  --color-placeholder: #5c576b;
  --color-border-strong: #757080;
  --color-divider: #e4deee;
  --color-footer: #1d1138;
  --color-footer-muted: #cfc6e3;
  --color-footer-divider: rgb(255 255 255 / 0.14);
  --color-error: #b3261e;

  --content-width: 1120px;
  --gutter: 20px;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-slow: 0.5s;
}

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

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--color-primary-900);
  background: #fff;
}

:lang(he) {
  font-family: var(--font-hebrew);
}

:lang(ru) {
  font-family: var(--font-cyrillic);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin-inline: auto;
}

/* Decorative rings from the homepage pattern */
.ring {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: none;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.299em;
  font-size: 16.65px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
}

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

.logo img {
  width: 1.2909em;
  height: 1.3989em;
}

.site-footer .logo {
  font-size: 18.04px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.btn-primary {
  background-color: var(--color-primary-500);
  background-image: linear-gradient(
    var(--gradient-angle, 106.57deg),
    var(--color-primary-800) 23.76%,
    var(--color-primary-500) 98.51%
  );
  box-shadow: inset 0 1px 0 var(--color-primary-400);
  color: #fff;
}

.btn-primary:where(:hover, :active):not(:disabled) {
  background-image: none;
  box-shadow: inset 0 1px 0 var(--color-primary-300);
}

.btn-primary:disabled {
  cursor: progress;
  opacity: 0.8;
}

.btn-secondary {
  background-color: var(--color-primary-50);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.2);
  color: var(--color-primary-700);
}

.btn-secondary:where(:hover, :active) {
  background-color: color-mix(
    in srgb,
    var(--color-primary-50),
    var(--color-primary-500) 10%
  );
}

/* ---------- Header ---------- */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

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

.site-footer {
  position: relative;
  overflow: clip;
  padding-block: 40px;
  background: var(--color-footer);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.ring-footer {
  top: -130px;
  right: -95px;
  width: 200px;
}

.site-footer .container {
  position: relative;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.footer-carriers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-kicker {
  color: var(--color-secondary-500);
  font-weight: 600;
}

.footer-contact,
.footer-legal {
  white-space: pre-wrap;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-footer-divider);
  color: var(--color-footer-muted);
}

.legal-name {
  display: block;
}

.legal-sep {
  display: none;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 32px;
  }

  .logo,
  .site-footer .logo {
    font-size: 26.755px;
  }

  .site-header .container {
    padding-block: 28px;
  }

  .site-footer {
    padding-block: 56px 48px;
  }

  .ring-footer {
    top: 130px;
    right: -170px;
    width: 320px;
  }

  .footer-legal {
    margin-top: 32px;
    padding-top: 32px;
  }

  .legal-name,
  .legal-sep {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
