/* The homepage keeps its two product slides and changes the controls with them. */
.hero-switcher-controls > button,
.hero-switcher-autoplay:not([hidden]) {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  color: #fff;
  background: #08182d;
  border: 1px solid #ffffff54;
  border-radius: 50%;
}

.hero-switcher-controls > button svg,
.hero-switcher-autoplay svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-switcher-controls > button:hover,
.hero-switcher-autoplay:not([hidden]):hover {
  color: #071427;
  background: #f5c518;
}

.hero-switcher-autoplay {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: 3px;
  padding: 0;
}

.hero-switcher-autoplay .hero-autoplay-play,
.hero-switcher-autoplay[data-paused="true"] .hero-autoplay-pause { display: none; }
.hero-switcher-autoplay[data-paused="true"] .hero-autoplay-play { display: block; }

.hero-switcher[data-active-product="Tovia"] .hero-switcher-controls {
  background: #f5dedc;
  border-color: #e5bbc1;
}

.hero-switcher[data-active-product="Tovia"] .hero-switcher-controls > button,
.hero-switcher[data-active-product="Tovia"] .hero-switcher-autoplay:not([hidden]) {
  color: #fff;
  background: #a13b5c;
  border-color: #d7859d;
}

.hero-switcher[data-active-product="Tovia"] .hero-switcher-controls > button:hover,
.hero-switcher[data-active-product="Tovia"] .hero-switcher-autoplay:not([hidden]):hover {
  color: #fff;
  background: #7f2847;
}

.hero-switcher[data-active-product="Tovia"] .hero-switcher-dots button { background: #b57a8c; }
.hero-switcher[data-active-product="Tovia"] .hero-switcher-dots button.is-active { background: #8d284b; }
.hero-switcher[data-active-product="Tovia"] button:focus-visible { outline-color: #7f2847; }

.tovia-home-hero,
.app-duo-tovia {
  background: #f7e1ce url("../img/tovia-brand/home-paper.webp") center / cover no-repeat;
}

.tovia-home-hero::before {
  background: linear-gradient(90deg, #fff6e668, #fff6e610);
}

.home-hero-screens {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 535px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-self: center;
  padding: 20px 19px 28px;
}

.home-hero-screens img {
  width: 100%;
  height: auto;
  border: 1px solid #cfaa52;
  border-radius: clamp(9px, 1.4vw, 17px);
  background: #0c2340;
  box-shadow: 0 18px 35px #0009;
}

.tovia-home-hero .home-hero-screens img {
  background: #f8eddf;
  border-color: #c98e96;
  box-shadow: 0 18px 35px #6032454d;
}

.home-hero-screens .home-hero-screen-main {
  position: relative;
  z-index: 1;
  transform: scale(1.18);
}

.home-hero-screen-left { transform: translateX(8%) rotate(-8deg); }
.home-hero-screen-right { transform: translateX(-8%) rotate(8deg); }

.app-duo-tflsk p { max-width: 45ch; }
.tflsk-preview {
  color: #fff;
  background: #102844;
  border-color: #d8b556;
}

.tflsk-preview::before { content: none; }
.tflsk-preview-copy span { color: #e0ebf7; }
.tflsk-preview-copy strong::after { background: #f2c54c; }
.tflsk-preview > img.tflsk-preview-screen { border-color: #a48645; }

/* TFLSK. Floodlights, pitch markings and gold kit trim. */
.tflsk-brand {
  --product-gold: #f8d267;
  --product-navy: #07182c;
  --product-white: #f4f8ff;
}

.tflsk-brand .site-header {
  color: var(--product-white);
  background: #07182cf7;
  border-color: #cfaa5266;
}

.tflsk-brand .site-header .brand {
  height: auto;
  padding: 6px 8px;
  background: #f4f8ff;
  border-radius: 3px;
}

.tflsk-brand .site-header .brand-logo { height: auto; }
.tflsk-brand .site-header .site-nav a { color: var(--product-white); }
.tflsk-brand .site-header .nav-toggle { color: var(--product-white); border-color: #ffffff54; }
.tflsk-brand .nav-toggle::before,
.tflsk-brand .nav-toggle::after { background: var(--product-white); }
.tflsk-brand .site-footer { background: #050f20; border-top: 1px solid #cfaa5266; }
.tflsk-brand .site-footer .brand { background: #edf2f8; }
.tflsk-brand .to-top { border-radius: 5px; }

.tflsk-brand .launch-download.btn { border-radius: 3px; }

.tflsk-languages-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(25px, 4vw, 62px);
}

.tflsk-language-copy > p {
  max-width: 48ch;
  margin: 16px 0 0;
  color: #d5e2f0;
}

.brand-text-link {
  display: inline-block;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .23em;
}

.tflsk-brand .brand-text-link { color: var(--product-gold); }

.tflsk-languages {
  overflow: hidden;
  background: repeating-linear-gradient(120deg, #d1e0fa08 0 1px, transparent 1px 36px),
    linear-gradient(133deg, #122e4d, #061426 70%);
  border-block: 1px solid #ba974c60;
}

.tflsk-languages .hero-controls {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.tflsk-languages .hero-control {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 6px 12px;
  color: #eaf2fd;
  background: #0c233a;
  border: 1px solid #8ea2b9;
  border-radius: 2px;
  font-size: .82rem;
  font-weight: 800;
}

.tflsk-languages .hero-control.is-active,
.tflsk-languages .hero-control:hover {
  color: #101823;
  background: var(--product-gold);
  border-color: var(--product-gold);
}

.tflsk-languages .hero-control:focus-visible {
  outline: 2px solid var(--product-gold);
  outline-offset: 4px;
}

.tflsk-languages .hero-roster {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  place-items: center;
  margin: 0;
  opacity: 1;
}

.tflsk-languages .hero-player {
  position: relative;
  inset: auto;
  display: grid;
  width: min(65%, 290px);
  height: auto;
  grid-area: 1 / 1;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 5px;
  color: white;
  background: linear-gradient(146deg, #2a5280, #07182c 64%);
  border-color: #c1a15b;
  border-radius: 4px 20px 4px 20px;
  aspect-ratio: .72;
  pointer-events: none;
}

.tflsk-languages .hero-player.is-next { transform: translate(27%, 4%) rotate(10deg) scale(.87); }
.tflsk-languages .hero-player.is-third { opacity: .62; transform: translate(-25%, 4%) rotate(-9deg) scale(.86); }
.tflsk-languages .hero-player > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 2px 15px 2px 2px; }

.tflsk-player-caption {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 10px;
}

.tflsk-player-caption span { color: var(--product-gold); font-size: .76rem; }
.tflsk-player-caption strong { color: #fff; font-size: .9rem; }
.tflsk-brand .app-screen-tour { background: #061728; }
.tflsk-brand .app-screen-tour::before { background: linear-gradient(155deg, #13427273, transparent 70%); }
.tflsk-brand .app-screen-tour .section-heading p { color: #d1dfed; }
.tflsk-brand .app-screen-tour .app-screen-track figure { border-color: #c6a65979; border-radius: 4px 18px 4px 18px; }
.tflsk-brand .app-founder-story { border-block: 1px solid #a4834270; }
.tflsk-brand .launch-closing { background: #0b2340; }

/* Tovia. Paper textures and collage elements sourced from the app. */
.tovia-page {
  --scrap-ink: #402737;
  --scrap-pink: #932d52;
  --scrap-cream: #fcf2e6;
  color: var(--scrap-ink);
  background: var(--scrap-cream);
}

.tovia-page .site-header { background: #fff7edf7; border-color: #d99aab7a; }
.tovia-page .site-header .site-nav a { color: #5b2d45; }
.tovia-page .site-nav a[aria-current="page"]::after { background: #a83e61; }
.tovia-page .nav-cta,
.tovia-page .to-top { color: white; background: #932d52; border-radius: 999px; box-shadow: none; }
.tovia-page .nav-cta:hover,
.tovia-page .to-top:hover { background: #78213f; }
.tovia-page .launch-download.btn { color: white; background: #932d52; border-radius: 999px; }
.tovia-page .launch-download.btn:hover { background: #78213f; }
.tovia-page .site-footer { color: #f9e8e9; background: #462236; border-color: #a05974; }
.tovia-page .footer-brand p,
.tovia-page .footer-col a,
.tovia-page .footer-bottom { color: #f3dce4; }

.tovia-page h1,
.tovia-page h2,
.tovia-page .tovia-note h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

.tovia-page .tovia-product-hero {
  overflow: hidden;
  padding: calc(var(--header) + clamp(38px, 5vw, 73px)) 0 clamp(67px, 7vw, 106px);
  background: #faf0e3 url("../img/tovia-brand/cream-paper.webp") center / cover;
}

.tovia-product-hero::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 46px;
  background: #f0c4c8;
  clip-path: polygon(0 72%, 30% 100%, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.tovia-product-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}

.tovia-product-hero h1 {
  max-width: none;
  font-size: clamp(3.8rem, 7.4vw, 7.6rem);
  line-height: .94;
  text-wrap: initial;
}

.tovia-product-hero h1 span { color: var(--scrap-pink); }
.tovia-product-copy .launch-product-lead { max-width: 45ch; color: #553a49; }
.tovia-product-copy .launch-link { color: #7e2948; }

.tovia-hero-collage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  aspect-ratio: 1.08;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  padding: 5% 11%;
}

.tovia-hero-collage::before {
  position: absolute;
  z-index: -1;
  inset: 11% 6% 7% 7%;
  background: #f4cbc8 url("../img/tovia-brand/grid-paper.webp") center / cover;
  border-radius: 28px 9px 19px 7px;
  box-shadow: 0 15px 42px #50313c29;
  content: "";
  transform: rotate(-7deg);
}

.tovia-collage-story,
.tovia-collage-today {
  width: 100%;
  height: auto;
  border: 1px solid #b28b85;
  border-radius: 14px;
  box-shadow: 0 14px 34px #50313c3d;
}

.tovia-collage-story { transform: translateX(8%) rotate(-12deg) scale(.87); }
.tovia-collage-today { transform: translate(-4%, 2%) rotate(8deg) scale(.98); }
.tovia-collage-camera {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 1%;
  width: 21%;
  height: auto;
  transform: rotate(-8deg);
  pointer-events: none;
}

.tovia-notes {
  background: #f1c5c9 url("../img/tovia-brand/blush-paper.webp") center / cover;
}

.tovia-notes h2 { max-width: 16ch; margin: 0 auto 36px; text-align: center; }
.tovia-note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }

.tovia-note {
  position: relative;
  padding: 24px clamp(18px, 3vw, 32px) 31px;
  background: #fff7e9 url("../img/tovia-brand/cream-paper.webp") center / cover;
  border: 1px solid #bb8b885e;
  border-radius: 18px 10px 23px 14px;
  box-shadow: 0 10px 28px #73394b20;
}

.tovia-note:nth-child(2) { transform: rotate(1.5deg); }
.tovia-note:nth-child(3) { transform: rotate(-1.5deg); }
.tovia-note img { width: 65px; height: 61px; object-fit: contain; margin-bottom: 17px; }
.tovia-note h3 { font-size: clamp(1.75rem, 3.1vw, 2.8rem); }
.tovia-note p { margin: 12px 0 0; color: #533b49; }
.tovia-page .tovia-screen-tour { background: #faeadf url("../img/tovia-brand/cream-paper.webp") center / cover; }
.tovia-page .tovia-screen-tour::before { background: #faeadf; }
.tovia-page .tovia-travel-feature { background: #f7ebd8 url("../img/tovia-brand/grid-paper.webp") center / cover; }
.tovia-page .tovia-games-feature { background: #f0c6ce url("../img/tovia-brand/blush-paper.webp") center / cover; }
.tovia-page .tovia-feature-text .brand-text-link { color: #8c264b; }
.tovia-travel-feature .tovia-sticker { width: 76px; height: auto; margin-bottom: 14px; }
.tovia-page .tovia-screen-gallery img { border-radius: 21px; }
.tovia-page .launch-closing { background: #faeedf url("../img/tovia-brand/cream-paper.webp") center / cover; }
.tovia-download-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 14px; }

.guide-couples .guide-hero { background: #f0c6ce url("../img/tovia-brand/blush-paper.webp") center / cover; }
.guide-couples .guide-callout,
.guide-couples .guide-next { background: #ffefdf url("../img/tovia-brand/cream-paper.webp") center / cover; border-radius: 18px; }
.guide-couples article { color: #442e3c; background: #fff9ef; }
.guide-couples .guide-body h2,
.guide-couples .guide-next { color: #532b41; }
.guide-couples .guide-body a { color: #8c264b; }
.guide-couples .guide-body .btn-primary { color: #fff; border-radius: 999px; }
.guide-football .guide-hero { background: linear-gradient(90deg, #061528f2, #06152882), url("../img/tflsk-brand/stadium.webp") center / cover; }
.guide-football .guide-callout,
.guide-football .guide-next { border-color: #be9b4d; border-radius: 3px; }
.tflsk-brand .edition-card { border-color: #b7985b8c; border-radius: 3px; }
.tflsk-brand main > .section-ice { background: #eaf0f7; }
.tflsk-brand .page-hero .wrap h1 span { color: #f7cd5d; }

@media (max-width: 900px) {
  .home-hero-screens { max-width: 420px; padding: 19px 24px 32px; margin-top: 18px; }
  .tovia-product-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .tovia-product-copy .launch-product-lead { margin-inline: auto; }
  .tovia-product-copy .launch-actions { justify-content: center; }
  .tovia-hero-collage { width: min(100%, 490px); }
}

@media (max-width: 760px) {
  .hero-switcher[data-active-product="Tovia"] .hero-switcher-controls { background: none; }
  .hero-switcher-autoplay {
    top: calc(min(100%, 100svh) - 50px);
    right: 8px;
    bottom: auto;
  }
  .tovia-home-hero,
  .app-duo-tovia { background-image: url("../img/tovia-brand/home-paper-portrait.webp"); }
  .tflsk-languages-grid { grid-template-columns: minmax(0, 1fr); }
  .tflsk-languages .hero-roster { max-width: 520px; justify-self: center; }
  .tovia-note-grid { grid-template-columns: minmax(0, 1fr); }
  .tovia-note:nth-child(n) { transform: none; }
  .tovia-note { padding: 21px; }
}

@media (max-width: 390px) {
  .hero-switcher-controls > button { width: 36px; height: 36px; }
  .home-hero-screens { padding-inline: 19px; }
}

@media (max-width: 360px) {
  .site-header .nav-wrap { gap: 8px; }
  .site-header .brand { width: min(36%, 120px); }
  .site-header .nav-cta { margin-right: 0; padding-inline: 8px; letter-spacing: .04em; }
  .site-header .nav-toggle { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tflsk-languages .hero-player { transition: none; }
}
