/*
 * Shared styles for the partner post-migration landing pages
 * (world/tvizio, world/bgtv-on). Structure lives here; each page sets its
 * own theme via the CSS custom properties declared on :root (see the page's
 * inline <style>). Keep this file structure-only — no per-partner colors.
 */

:root {
  /* arrow glyph used by .i-arrow (replaces the Font Awesome dependency) */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.17l-5.59-5.59L12 4l8 8-8 8-1.41-1.41L16.17 13H4z'/%3E%3C/svg%3E");

  /* theme defaults (tvizio-like light theme); pages override as needed */
  --body-bg: #fff;
  --body-color: #000;
  --link: #5d9fd8;
  --link-hover: #3487ce;

  --hero-pad: 60px;
  --hero-overlay: linear-gradient(90deg, rgba(255, 255, 255, 0.733) 30%, rgba(255, 255, 255, 0.133) 70%);
  --hero-bg: none;
  --hero-bg-size: cover;
  --hero-bg-pos: center;
  --join-color: #325574;
  --elem-logo-w: 85%;
  --elem-logo-max: 440px;

  --accent: #5d9fd8;
  --accent-hover: #3487ce;
  --register-bg: #725ea9;
  --register-hover: #5b4a8c;
  --more-color: #5d9fd8;

  --benefits-bg: linear-gradient(0deg, #725ea9 0%, #5d9fd8 100%);
  --benefit-bg: rgba(255, 255, 255, 0.1);
  --benefit-border: transparent;
  --benefit-icon: #b7c8d7;
  --maxsport-w: 110px;
  --maxsport-h: 29px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: elemontal, system-ui, sans-serif;
  line-height: 1.5;
  font-size: 16px;
  color: var(--body-color);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* elemontal only ships Regular (400) + Bold (500); never let the browser
     fake heavier weights — that faux-bold reads as too heavy/crude. */
  font-synthesis: none;
}
a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
}

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

/* arrow icon — colored via currentColor, sized to the text */
.i-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}

/* ---------- hero ---------- */
.hero {
  padding: var(--hero-pad) 0;
  display: flex;
  align-items: center;
  background-image: var(--hero-overlay), var(--hero-bg);
  background-size: var(--hero-bg-size);
  background-position: var(--hero-bg-pos);
  background-repeat: no-repeat;
}
.hero__inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}
.hero__brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero__logo-partner {
  width: 62%;
  max-width: 340px;
  height: auto;
  display: block;
}
.hero__join {
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--join-color);
  margin: 16px 0 18px;
  letter-spacing: -0.01em;
}
.hero__logo-elemental {
  width: var(--elem-logo-w);
  max-width: var(--elem-logo-max);
  height: auto;
  display: block;
}
.hero__card-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
}
.hero__card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 40px;
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.063);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* ---------- CTAs ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 19px 30px;
  border-radius: 8px;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s;
}
.cta-login {
  background: var(--accent);
}
.cta-login:hover {
  background: var(--accent-hover);
  color: #fff;
}
.cta-register {
  background: var(--register-bg);
}
.cta-register:hover {
  background: var(--register-hover);
  color: #fff;
}
.cta-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 0;
  color: var(--more-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.cta-more:hover {
  color: var(--more-color);
  text-decoration: underline;
}
.cta-more .i-arrow {
  font-size: 13px;
}
.cta:focus-visible,
.cta-more:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- benefits ---------- */
.benefits {
  background: var(--benefits-bg);
  color: #fff;
  padding: 60px 0;
}
.benefits__inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.benefits__title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.benefits__lead {
  font-weight: 500;
  font-size: 18px;
}
.benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}
.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 24px 24px 46px;
  border-radius: 24px;
  background: var(--benefit-bg);
  border: 1px solid var(--benefit-border);
  font-size: 15px;
}
.benefit__icon {
  position: absolute;
  top: 26px;
  left: 22px;
  font-size: 15px;
  line-height: 1;
  color: var(--benefit-icon);
}
.benefit__heading {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 12px 0;
  min-height: calc(3 * 1.25em);
}
.benefit__maxsport {
  width: var(--maxsport-w);
  height: var(--maxsport-h);
  display: inline-block;
  vertical-align: middle;
  margin: 3px 0;
}
.benefit__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.4;
  font-size: 16px;
}
.benefit__contact a {
  color: #fff;
  text-decoration: none;
}
.benefit__contact a:hover {
  text-decoration: underline;
}
.benefit__contact a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* When the benefit heading has no fixed rows to align, let it size naturally */
@media (max-width: 640px) {
  .benefit__heading {
    min-height: 0;
  }
}
