/* Shared styles for the single-card brand landing pages (edox.fi, betoninkovetus.fi).
 * Each page sets --accent, --accent-ink and --bg-image on <body>. */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/open-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/open-sans-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
}

a { color: #1d1d1f; }
a:hover { color: #000; }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 0;
  background: #7a7a7b var(--bg-image) center / cover no-repeat;
}

/* Optional tint layers (edox): desaturate the background, then wash it grey. */
.page--muted::before,
.page--muted::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page--muted::before { background: #808081; mix-blend-mode: saturation; }
.page--muted::after { background: #8a8b8d; opacity: var(--overlay, 0.5); }

.page > main,
.page > footer { position: relative; z-index: 1; }

main {
  flex-grow: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-top: 6px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  padding: 56px 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.card__logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.card__note {
  margin: -16px 0 0;
  font-size: 14px;
  color: #5a5a5c;
}

.groups {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4a4c;
}

.group__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.group__row > .btn { flex: 1 1 200px; width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--accent-ink, #1d1d1f);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  color: var(--accent-ink, #1d1d1f);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.btn:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
.btn svg { flex-shrink: 0; }

.btn--green { background: #50b400; color: #fff; }
.btn--green:hover { color: #fff; }

.site-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0 24px;
}

.site-footer p {
  margin: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  font-size: 13px;
  color: #3a3a3c;
}
.site-footer a { color: #3a3a3c; }

@media (max-width: 480px) {
  .card { padding: 40px 24px 32px; gap: 28px; }
  .card h1 { font-size: 24px; }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
