/* Foxper Studios site styles. No external fonts or assets. Dark by default,
   light via prefers-color-scheme or a forced choice: html[data-theme] is
   "light" or "dark" when the visitor picked one in the theme menu (set by
   /assets/intro.js before the first paint), absent for "auto". Shared by
   foxperstudios.com and the apps.foxperstudios.com portal (copied by
   build_site; the portal has no theme menu, so it follows the system). */

:root {
  --bg: #050814;
  --bg-soft: #070c1d;
  --surface: #0b1229;
  --surface-2: #111b3b;
  --line: rgba(140, 165, 255, 0.14);
  --line-strong: rgba(140, 165, 255, 0.3);
  --field-line: rgba(140, 165, 255, 0.42);
  --text: #eef2ff;
  --text-2: #b8c2e3;
  --text-3: #8f9bc2;
  --accent: #0050ff;
  --accent-hover: #2266ff;
  --accent-text: #80a8ff;
  --accent-soft: rgba(0, 80, 255, 0.16);
  --success: #45d69b;
  --beta: #b48cff;
  --warning: #ffbf5e;
  --danger: #ff7a7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --hero:
    radial-gradient(900px 520px at 85% -10%, rgba(0, 80, 255, 0.38), transparent 62%),
    radial-gradient(700px 420px at -10% 110%, rgba(0, 80, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #050814 0%, #0a1a42 100%);
  --header-bg: rgba(5, 8, 20, 0.78);
  --footer-bg: #03050e;
  --radius: 20px;
  --font:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
    Meiryo, sans-serif;
  color-scheme: dark;
}

/* Light tokens. The two blocks below must stay identical (a test checks
   it): one for a forced light theme, one for the system light theme when
   dark is not forced. */
:root[data-theme="light"] {
  --bg: #f5f7ff;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-2: #eef2fe;
  --line: rgba(12, 32, 96, 0.12);
  --line-strong: rgba(12, 32, 96, 0.24);
  --field-line: rgba(12, 32, 96, 0.52);
  --text: #0a1028;
  --text-2: #3b4566;
  --text-3: #58638a;
  --accent-text: #0045d8;
  --accent-soft: rgba(0, 80, 255, 0.09);
  --success: #0b7a53;
  --beta: #7a4fd6;
  --warning: #a35f00;
  --danger: #c43030;
  --shadow: 0 18px 50px rgba(16, 32, 90, 0.14);
  --shadow-sm: 0 6px 18px rgba(16, 32, 90, 0.12);
  --hero:
    radial-gradient(900px 520px at 85% -10%, rgba(0, 80, 255, 0.16), transparent 62%),
    radial-gradient(700px 420px at -10% 110%, rgba(0, 80, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #f5f7ff 0%, #e4ecff 100%);
  --header-bg: rgba(245, 247, 255, 0.86);
  --footer-bg: #eaf0ff;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7ff;
    --bg-soft: #eef2ff;
    --surface: #ffffff;
    --surface-2: #eef2fe;
    --line: rgba(12, 32, 96, 0.12);
    --line-strong: rgba(12, 32, 96, 0.24);
    --field-line: rgba(12, 32, 96, 0.52);
    --text: #0a1028;
    --text-2: #3b4566;
    --text-3: #58638a;
    --accent-text: #0045d8;
    --accent-soft: rgba(0, 80, 255, 0.09);
    --success: #0b7a53;
    --beta: #7a4fd6;
    --warning: #a35f00;
    --danger: #c43030;
    --shadow: 0 18px 50px rgba(16, 32, 90, 0.14);
    --shadow-sm: 0 6px 18px rgba(16, 32, 90, 0.12);
    --hero:
      radial-gradient(900px 520px at 85% -10%, rgba(0, 80, 255, 0.16), transparent 62%),
      radial-gradient(700px 420px at -10% 110%, rgba(0, 80, 255, 0.08), transparent 60%),
      linear-gradient(180deg, #f5f7ff 0%, #e4ecff 100%);
    --header-bg: rgba(245, 247, 255, 0.86);
    --footer-bg: #eaf0ff;
    color-scheme: light;
  }
}

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

/* hidden="until-found" (folded FAQ answers) keeps the browser's own
   content-visibility, so find-in-page can still reveal it. */
[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:lang(ja) body,
body:lang(ja) {
  line-break: strict;
  word-break: auto-phrase;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  hyphens: auto;
  letter-spacing: -0.015em;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 750;
}

h3,
.h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 820px;
}

.muted {
  color: var(--text-3);
  font-weight: 400;
}

/* ---------------------------------------------------------------- icons */

.ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-sm {
  width: 18px;
  height: 18px;
}

.ico-fill {
  fill: currentColor;
  stroke: none;
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 80, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-store {
  background: var(--text);
  color: var(--bg);
}

.btn-store:hover {
  color: var(--bg);
  opacity: 0.92;
}

.btn-lg {
  min-height: 54px;
  padding: 14px 26px;
  font-size: 1.05rem;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.btn-meta {
  font-weight: 500;
  opacity: 0.8;
  font-size: 0.85em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow .ico {
  transition: transform 0.18s;
}

.link-arrow:hover .ico {
  transform: translateX(3px);
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 34px;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu[open] summary .ico-sm {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.lang-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
}

.lang-list a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.lang-list a[aria-current="true"] {
  color: var(--text);
  background: var(--accent-soft);
}

/* Theme menu: same shell as the language menu. The summary shows the
   current choice from html[data-theme] (absent = auto). */
.theme-menu summary {
  padding: 6px 8px;
}

.theme-cur {
  display: none;
}

.theme-cur-auto,
:root[data-theme="light"] .theme-cur-light,
:root[data-theme="dark"] .theme-cur-dark {
  display: inline-flex;
}

:root[data-theme] .theme-cur-auto {
  display: none;
}

.theme-list {
  min-width: 170px;
}

.theme-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.theme-list button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.theme-list button[aria-pressed="true"] {
  color: var(--text);
  background: var(--accent-soft);
}

/* Logos: the white one on dark, the dark one on light (same rules as the
   colour tokens). */
.logo-on-light {
  display: none;
}

:root[data-theme="light"] .logo-on-light {
  display: block;
}

:root[data-theme="light"] .logo-on-dark {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-on-light {
    display: block;
  }

  :root:not([data-theme="dark"]) .logo-on-dark {
    display: none;
  }
}

/* Logo, seven menu items, the play button and the language menu need
   about 1100px in the widest languages (es, pt): below that the menu
   becomes a scrolling second row. */
@media (max-width: 1180px) {
  .header-row {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 10px;
  }

  .main-nav {
    order: 3;
    flex: 1 0 100%;
    margin: 0 -20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    padding: 0 20px 10px;
  }
}

@media (max-width: 520px) {
  .brand img,
  .brand-mark {
    height: 28px;
  }

  .header-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .header-cta {
    padding: 8px 11px;
  }

  .header-tools {
    gap: 8px;
  }

  .theme-menu summary > .ico-sm {
    display: none;
  }
}

/* Smallest phones (320px): logo and all header tools still fit one row. */
@media (max-width: 360px) {
  .header-row {
    column-gap: 8px;
  }

  .lang-menu summary {
    padding: 6px 8px;
  }

  .lang-menu summary > .ico-sm {
    display: none;
  }
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 80, 255, 0.25);
}

/* Long words (tr "Vazgeçemeyeceğin", de compounds) must never split: the
   title shrinks to its column instead (10cqi fits a 16-letter word). */
.hero-copy {
  container-type: inline-size;
}

.hero h1 {
  margin-bottom: 20px;
  text-wrap: balance;
}

@supports (font-size: 1cqi) {
  .hero h1 {
    font-size: min(clamp(2rem, 1.3rem + 3vw, 3.5rem), 10cqi);
    overflow-wrap: normal;
    hyphens: manual;
  }
}

:lang(ja) .hero h1 {
  max-width: 18ch;
}

.lead {
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.hero .actions {
  margin-top: 30px;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 80, 255, 0.55), transparent 68%);
  filter: blur(30px);
}

.mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(100%, 400px);
  transform: rotate(-8deg);
}

.mosaic a {
  display: block;
  border-radius: 24%;
}

.mosaic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: var(--shadow);
}

.mosaic a:nth-child(3n + 2) {
  transform: translateY(22px);
}

@media (prefers-reduced-motion: no-preference) {
  .mosaic {
    animation: float 9s ease-in-out infinite;
  }

  @keyframes float {
    0%,
    100% {
      transform: rotate(-8deg) translateY(0);
    }
    50% {
      transform: rotate(-8deg) translateY(-10px);
    }
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    max-width: none;
  }

  .mosaic {
    width: min(70%, 270px);
    gap: 12px;
  }
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-2);
  text-wrap: balance;
}

.section-head-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rail-nav {
  display: flex;
  gap: 8px;
}

.rail-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.18s,
    border-color 0.18s;
}

.rail-btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--accent-text);
}

.rail-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Touch screens swipe the rail; the buttons are for mouse users. */
@media (max-width: 760px), (hover: none) {
  .rail-nav {
    display: none;
  }
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section-head-center p {
  margin: 0 auto;
}

.page-head {
  padding: 36px 0 32px;
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-top: 8px;
}

.page-head .lead {
  margin-bottom: 0;
}

.page-head .actions {
  margin-top: 24px;
}

.page-head .form-note {
  margin-top: 10px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.88rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ----------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 20px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.pcard:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.pcard:focus-within {
  border-color: var(--accent);
}

.pcard-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pcard-head {
  min-width: 0;
}

.app-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 22%;
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}

.app-icon-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-text);
}

.app-icon-md {
  width: 72px;
  height: 72px;
}

.app-icon-lg {
  width: 96px;
  height: 96px;
}

.pcard-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.pcard-title a {
  color: var(--text);
  text-decoration: none;
}

.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.stretched:focus-visible {
  outline: none;
}

.stretched:focus-visible::after {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
}

.pcard-tagline {
  margin: 3px 0 0;
  color: var(--text-3);
  font-size: 0.88rem;
  line-height: 1.35;
}

.pcard-desc {
  flex: 1;
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-kind {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: transparent;
}

.badge-status {
  color: var(--text-2);
}

.badge-status[data-status="coming_soon"] {
  color: var(--warning);
  border-color: currentColor;
}

.badge-status[data-status="beta"] {
  color: var(--beta);
  border-color: currentColor;
}

.badge-status[data-status="live"] {
  color: var(--success);
  border-color: currentColor;
}

.platforms {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 600;
}

.plat + .plat::before {
  content: "·";
  margin-right: 6px;
}

.rail {
  display: flex;
  gap: 18px;
  margin: 0 -20px;
  padding: 4px 20px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.rail {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

.rail > .pcard {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
}

.rail > .pcard:hover {
  transform: none;
}

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.card-note {
  margin-top: 24px;
}

.card-note p {
  margin: 0;
  color: var(--text-2);
}

/* ------------------------------------------------------------- web band */

.web-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: 44px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(120, 160, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #0b1f4d 0%, #0039c0 70%, #0050ff 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 40, 140, 0.35);
}

.web-band h2 {
  color: #fff;
}

.web-band p {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.85);
}

.web-band .btn-primary {
  background: #fff;
  color: #0039c0;
  box-shadow: none;
}

.web-band .btn-primary:hover {
  background: #e8eeff;
  color: #002a8f;
}

.web-band-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  transform: rotate(6deg);
}

.web-band-art .app-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 760px) {
  .web-band {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .web-band-art {
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    transform: none;
  }
}

/* ------------------------------------------------------------------ why */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-item {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.why-item h3 {
  margin: 16px 0 8px;
}

.why-item p {
  margin: 0;
  color: var(--text-2);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* ------------------------------------------------------------ newsletter */

.card-glow {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(0, 80, 255, 0.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
}

.newsletter-copy p {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .newsletter {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
}

/* ----------------------------------------------------------------- forms */

.field-row {
  display: flex;
  gap: 10px;
}

/* The e-mail field takes the free space; the button keeps its label on one
   line ("Subscribe" must never wrap mid-word). */
.field-row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.field-row .btn {
  flex: none;
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (max-width: 520px) {
  .field-row {
    flex-direction: column;
  }
}

input[type="email"],
input[type="text"],
input[type="search"],
select,
textarea {
  width: 100%;
  /* Explicit height so a select lines up with the input next to it. */
  height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  height: auto;
  min-height: 160px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
  outline-offset: 0;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
  opacity: 1;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 0.92rem;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-note,
.hint {
  margin: 10px 0 0;
  color: var(--text-3);
  font-size: 0.86rem;
}

.form-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-weight: 650;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.form {
  display: grid;
  gap: 18px;
  align-content: start;
}

.form .field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

.form .btn {
  justify-self: start;
}

.form .form-note,
.form .form-status {
  margin: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- toolbar */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.search {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}

.search .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.search input {
  padding-left: 44px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.chip:hover {
  color: var(--text);
}

.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip-count {
  font-size: 0.8em;
  opacity: 0.75;
}

.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--text-2);
}

/* --------------------------------------------------------------- product */

.product-hero {
  padding: 24px 0 52px;
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 16px;
}

.product-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.product-title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}

.product-tagline {
  margin: 6px 0 0;
  color: var(--accent-text);
  font-weight: 650;
  font-size: 1.05rem;
}

/* The tagline is part of the product page H1 (name: tagline), shown as
   the subtitle line under the name. */
h1 .product-tagline {
  display: block;
  letter-spacing: 0;
  line-height: 1.4;
}

.product-hero .lead {
  margin-bottom: 18px;
}

.store-actions {
  margin-top: 24px;
}

.store-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 0.92rem;
}

.product-feature {
  margin: 0;
}

.product-feature img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.shots {
  display: flex;
  gap: 16px;
  margin: 0 -20px;
  padding: 6px 20px 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.shots li {
  flex: none;
  scroll-snap-align: start;
}

.shots img {
  width: clamp(160px, 21vw, 250px);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.product-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.product-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 900px) {
  .product-hero-grid,
  .product-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .product-title {
    gap: 14px;
  }

  .product-title .app-icon-lg {
    width: 72px;
    height: 72px;
  }

  .store-actions .btn {
    flex: 1 1 100%;
  }
}

.prose {
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.prose p,
.prose li {
  color: var(--text-2);
  line-height: 1.75;
}

.prose h2 {
  margin-top: 0;
}

.prose > h2:not(:first-child) {
  margin-top: 2em;
  font-size: 1.3rem;
}

.prose h3 {
  margin: 2em 0 0.6em;
  color: var(--accent-text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin: 0.45em 0;
}

.prose li::marker {
  color: var(--accent-text);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--text-2);
}

.checks .ico {
  margin-top: 3px;
  color: var(--success);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.84rem;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  margin: 10px 0;
}

.link-list li > .muted {
  display: block;
  font-size: 0.85rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------- support */

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

/* Questions are h3 headings holding the disclosure button (site.js). */
.faq-q {
  margin: 0;
  font: inherit;
  color: inherit;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 650;
  font-size: 1.04rem;
  line-height: inherit;
  text-align: start;
  cursor: pointer;
}

.faq-chevron {
  flex: none;
  color: var(--text-3);
  transition: transform 0.2s;
}

.faq-toggle[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 4px 18px;
  color: var(--text-2);
}

/* html.js (intro.js, before the first paint): answers start folded until
   site.js takes over with the hidden attribute. Without JavaScript they
   stay open. */
html.js .faq:not(.faq-ready) .faq-answer {
  display: none;
}

html.js .faq:not(.faq-ready) .faq-chevron {
  transform: none;
}

.faq-answer p {
  margin: 0;
}

.faq-steps {
  margin: 10px 0 0;
  padding-left: 1.4em;
}

.faq-steps li {
  margin: 6px 0;
  padding-left: 4px;
}

.faq-steps li::marker {
  color: var(--accent-text);
  font-weight: 700;
}

.card-note .faq-steps {
  color: var(--text-2);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
}

.mini-card:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-2);
}

.mini-card .app-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: none;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(0, 80, 255, 0.2), transparent 70%),
    var(--surface);
}

.cta-card h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.cta-card p {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 520px) {
  .cta-card {
    padding: 24px 20px;
  }

  .cta-card .btn {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------- services band */

.services-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 44px;
}

.services-band .eyebrow {
  margin-bottom: 16px;
}

.services-band-copy p {
  max-width: 58ch;
  color: var(--text-2);
}

.service-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-chips li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 650;
  line-height: 1.3;
}

.service-chips .ico {
  color: var(--accent-text);
}

@media (max-width: 860px) {
  .services-band {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
}

@media (max-width: 520px) {
  .service-chips {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------- services and careers */

/* Six cards: three per row on wide screens instead of 4 + 2. */
.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.process-num {
  color: var(--accent-text);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  opacity: 0.45;
}

.process-step h3 {
  margin: 16px 0 8px;
}

.process-step p {
  margin: 0;
  color: var(--text-2);
}

/* In-page targets (#request, #apply) clear the sticky header. */
section[id] {
  scroll-margin-top: 120px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.card-project {
  border-color: var(--line-strong);
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(0, 80, 255, 0.18), transparent 70%),
    var(--surface);
}

.card-project p {
  margin: 0 0 14px;
  color: var(--text-2);
}

.checks-lg {
  max-width: 760px;
}

.checks-lg li {
  font-size: 1.05rem;
}

.cta-copy {
  flex: 1 1 420px;
  min-width: 0;
}

.cta-copy .form-note {
  margin-top: 12px;
}

/* ----------------------------------------------------------------- press */

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-tile {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.asset-preview {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 28px;
  background: #050814;
}

.asset-light .asset-preview {
  background: #ffffff;
}

.asset-preview img {
  max-height: 64px;
  width: auto;
}

.asset-icon .asset-preview img {
  max-height: 96px;
  border-radius: 22%;
}

.asset-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.asset-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.asset-links a {
  font-weight: 700;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.swatch-color {
  height: 96px;
  border-bottom: 1px solid var(--line);
}

.swatch-0050ff { background: #0050ff; }
.swatch-050814 { background: #050814; }
.swatch-0b1f4d { background: #0b1f4d; }
.swatch-ffffff { background: #ffffff; }
.swatch-000000 { background: #000000; }

.swatch-name {
  padding: 12px 16px 0;
  font-weight: 650;
}

.swatch code {
  padding: 2px 16px 14px;
  color: var(--text-3);
  font-size: 0.88rem;
}

.press-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.press-columns p {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 760px) {
  .press-columns {
    grid-template-columns: 1fr;
  }
}

.press-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.press-product .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.press-product-name {
  flex: 1;
  min-width: 0;
  font-weight: 650;
  line-height: 1.3;
}

.press-product .asset-links {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* ----------------------------------------------------- message / root */

.message-page {
  padding: 110px 0;
  text-align: center;
  background: var(--hero);
}

.message-page .lead {
  margin: 0 auto 28px;
}

.message-page .actions {
  justify-content: center;
}

.root-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 40px 20px;
  background: var(--hero);
  text-align: center;
  color: var(--text-2);
}

.root-loader {
  display: none;
}

/* While intro.js redirects to the visitor's language: only the brand
   loader. If the redirect somehow stalls, the list comes back after 4 s. */
html.root-go .root-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 56px;
  animation: root-hide 0s linear 4s forwards;
}

html.root-go .root-page > :not(.root-loader) {
  visibility: hidden;
  animation: root-show 0s linear 4s forwards;
}

@keyframes root-hide {
  to {
    visibility: hidden;
  }
}

@keyframes root-show {
  to {
    visibility: visible;
  }
}

.root-logo {
  width: 200px;
}

.root-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.root-langs a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.root-langs a:hover {
  background: var(--surface-2);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 40px;
  padding: 52px 0 28px;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 42ch;
  margin: 16px 0 0;
  color: var(--text-2);
}

.brand-footer img {
  height: 30px;
}

/* The studio profiles (brand.json sameAs) under the footer e-mail. */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer .social-links li {
  margin: 0;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.social-links a:hover {
  border-color: var(--accent-text);
  background: var(--accent-soft);
  color: var(--text);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  text-decoration: none;
}

.footer-title {
  margin: 0 0 12px;
  line-height: 1.4;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer li a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.footer-langs a {
  color: var(--text-3);
  text-decoration: none;
}

.footer-langs a:hover,
.footer-langs a[aria-current="true"] {
  color: var(--text);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Footer without the link grid (portal, legal pages). */
.site-footer-slim {
  padding: 24px 0;
}

.site-footer-slim .footer-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Footer "Cookie preferences": a button that looks like the footer links. */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
  text-decoration: underline;
}

/* --------------------------------------------------- analytics consent */
/* Cookie notice (site.dart _consentBanner, /assets/consent.js): a small
   card in the bottom corner, both choices styled alike. Only rendered
   when brand.json has a siteAnalyticsId. */

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: min(380px, calc(100% - 32px));
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent p {
  margin: 0 0 12px;
}

.consent a {
  color: var(--accent-text);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-actions .btn {
  /* Equal halves; a label that does not fit (e.g. "Akzeptieren" at 320px)
     wraps the buttons onto two rows instead of breaking the word. */
  flex: 1 1 0;
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
}

.consent-btn {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}

.consent-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

@media (max-width: 520px) {
  .consent {
    left: 16px;
    width: auto;
  }
}

/* ---------------------------------------------------------------- portal */

.portal-grid .pcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-grid .pcard-actions .btn {
  position: relative;
  z-index: 1;
}

.portal-legal {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  margin-left: auto;
  font-size: 0.82rem;
}

.portal-legal a {
  color: var(--text-3);
}

@media (max-width: 520px) {
  .portal-company {
    display: none;
  }
}

/* ------------------------------------------- brand motion (intro, loader)
   Site versions of Brand/Foxper Splash v3.html and Foxper Loaders.html 2a.
   Markup: lib/src/brand_motion.dart. The intro shows only while
   html.fx-play is set by /assets/intro.js (first page of a visit, motion
   allowed); every animation ends in the normal page state, so the page is
   usable even if a script fails. SVG parts are moved through wrapper <g>s
   (their paths keep their own transform attribute). */

.fx-ink {
  fill: var(--text);
}

.fx-blue {
  fill: #0050ff;
}

.fx-intro {
  display: none;
}

html.fx-play .fx-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: fx-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) 2.15s forwards;
}

html.fx-play.fx-skip .fx-intro {
  animation: fx-out 0.25s ease forwards;
}

.fx-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 40% at 50% 60%, rgba(0, 80, 255, 0.22), transparent 70%);
  opacity: 0;
  animation: fx-fade-in 0.9s ease 1.3s forwards;
}

.fx-word {
  position: relative;
  width: min(72vw, 520px);
  height: auto;
  overflow: visible;
  transform-origin: 29.2% 48.5%;
  animation:
    fx-camera 0.75s cubic-bezier(0.65, 0, 0.35, 1) 1.1s both,
    fx-word-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) 2.15s forwards;
}

.fx-tail-orbit {
  transform-box: view-box;
  transform-origin: 451px 466.6px;
  animation:
    fx-orbit 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both,
    fx-fade-in 0.2s ease both;
}

.fx-intro .fx-tail {
  animation: fx-glow 1.5s ease 0.2s both;
}

.fx-ring-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: fx-draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}

.fx-arm {
  opacity: 0;
  animation: fx-arm 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.fx-arm-2 {
  --fx-dx: 170px;
  --fx-dy: -120px;
}

.fx-arm-1 {
  --fx-dx: -170px;
  --fx-dy: 120px;
}

.fx-arm .fx-part {
  animation: fx-glow 0.9s ease 1.1s both;
}

.fx-xk-wrap {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 678px 480px;
  animation: fx-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 1.08s forwards;
}

.fx-wave {
  stroke: #78aaff;
  stroke-width: 4;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 678px 480px;
  animation: fx-wave 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.18s;
}

.fx-letter {
  opacity: 0;
  animation: fx-slide 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fx-l-f {
  --fx-from: 70px;
  animation-delay: 1.3s;
}

.fx-l-p {
  --fx-from: -70px;
  animation-delay: 1.36s;
}

.fx-l-e {
  --fx-from: -70px;
  animation-delay: 1.43s;
}

.fx-l-r {
  --fx-from: -70px;
  animation-delay: 1.5s;
}

.fx-sweep {
  opacity: 0;
  animation: fx-sweep 0.75s cubic-bezier(0.65, 0, 0.35, 1) 1.25s;
}

/* The page rises in as the overlay leaves. */
html.fx-play .hero-copy > * {
  animation: fx-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.25s both;
}

html.fx-play .hero-copy > :nth-child(2) {
  animation-delay: 2.32s;
}

html.fx-play .hero-copy > :nth-child(3) {
  animation-delay: 2.39s;
}

html.fx-play .hero-copy > :nth-child(n + 4) {
  animation-delay: 2.46s;
}

html.fx-play .hero-art {
  animation: fx-fade-in 0.9s ease 2.3s both;
}

@keyframes fx-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fx-word-out {
  to {
    transform: scale(1.05);
  }
}

@keyframes fx-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fx-camera {
  from {
    transform: translateX(20.8%) scale(1.3);
  }

  to {
    transform: none;
  }
}

@keyframes fx-orbit {
  from {
    transform: rotate(-360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes fx-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fx-glow {
  0% {
    filter: none;
  }

  35% {
    filter: drop-shadow(0 0 14px rgba(0, 80, 255, 0.95)) drop-shadow(0 0 40px rgba(0, 80, 255, 0.6));
  }

  100% {
    filter: drop-shadow(0 0 8px rgba(0, 80, 255, 0.45));
  }
}

@keyframes fx-arm {
  from {
    opacity: 0;
    transform: translate(var(--fx-dx), var(--fx-dy));
  }

  30% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fx-pop {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-24deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fx-wave {
  from {
    opacity: 0.8;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(6);
  }
}

@keyframes fx-slide {
  from {
    opacity: 0;
    transform: translateX(var(--fx-from));
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fx-sweep {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  20%,
  80% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateX(1560px);
  }
}

@keyframes fx-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Reload (F5) veil: the loader for a moment, then the page (intro.js). */
.fx-veil {
  display: none;
}

html.fx-reload .fx-veil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-size: 56px;
  pointer-events: none;
  animation: fx-out 0.3s ease 0.6s forwards;
}

/* Header logo: the tail runs a lap and the x turns on hover / focus. */
.brand-mark {
  display: block;
  width: auto;
  height: 34px;
  overflow: visible;
}

.brand-mark .lg-tail {
  transform-box: view-box;
  transform-origin: 451px 466.6px;
}

.brand-mark .lg-x {
  transform-box: view-box;
  transform-origin: 678px 480px;
}

.brand-mark .fx-blue {
  transition: filter 0.3s ease;
}

.brand:hover .lg-tail,
.brand:focus-visible .lg-tail {
  animation: lg-orbit 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.brand:hover .lg-x,
.brand:focus-visible .lg-x {
  animation: lg-spin 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.12s;
}

.brand:hover .brand-mark .fx-blue,
.brand:focus-visible .brand-mark .fx-blue {
  filter: drop-shadow(0 0 6px rgba(0, 80, 255, 0.75));
}

@keyframes lg-orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes lg-spin {
  0% {
    transform: none;
  }

  60% {
    transform: rotate(180deg) scale(0.86);
  }

  100% {
    transform: rotate(180deg);
  }
}

/* Loader 2a: the tail draws the ring on one lap and erases it on the next. */
.fx-loader {
  --fx-lap: 1.1s;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  overflow: visible;
}

.fx-loader-track {
  stroke: currentColor;
  opacity: 0.14;
}

.fx-loader-ring {
  stroke: currentColor;
  stroke-dasharray: 0 100;
  animation: fx-loader-ring calc(var(--fx-lap) * 2) linear infinite;
}

.fx-loader-tail {
  transform-box: view-box;
  transform-origin: 451px 466.6px;
  animation: fx-loader-orbit calc(var(--fx-lap) * 2) linear infinite;
}

.fx-loader .fx-tail {
  fill: #0050ff;
}

@keyframes fx-loader-ring {
  0% {
    stroke-dasharray: 0 100;
    stroke-dashoffset: 0;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }

  50% {
    stroke-dasharray: 100 100;
    stroke-dashoffset: 0;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }

  100% {
    stroke-dasharray: 0 100;
    stroke-dashoffset: -100;
  }
}

@keyframes fx-loader-orbit {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }

  50% {
    transform: rotate(360deg);
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }

  100% {
    transform: rotate(720deg);
  }
}

/* Busy submit buttons swap their icon for the loader. */
.btn .fx-loader {
  display: none;
}

.btn.is-loading .fx-loader {
  display: block;
}

.btn.is-loading > .ico {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-intro {
    display: none !important;
  }

  .fx-loader-ring {
    stroke-dasharray: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------- product legal pages (apps.) */

.legal-langs {
  display: flex;
  gap: 4px;
}

.legal-langs a {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-2);
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-langs a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.legal-langs a[aria-current="true"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.legal {
  padding-top: 36px;
  padding-bottom: 24px;
}

.legal section + section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* portal.js shows one language: no separator above it. */
.legal section[hidden] + section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
}

.legal dt {
  font-weight: 650;
}

.legal dd {
  margin: 0;
}

.legal .todo {
  margin: 16px 0;
  padding: 12px 16px;
  border: 2px solid var(--warning);
  border-radius: 14px;
  background: rgba(255, 191, 94, 0.12);
}

@media (max-width: 520px) {
  .legal dl {
    grid-template-columns: 1fr;
  }

  .legal dd {
    margin-bottom: 8px;
  }
}

/* ------------------------------------------------------------------ team */

/* Centred rows of equal cards: five in one row on wide screens, an
   incomplete last row stays in the middle instead of hanging left. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-card {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 264px;
  padding: 28px 20px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Round portraits (Brand/kit/site/team/<slug>.jpg, colour, no filter);
   initials when a photo is missing. */
.team-avatar,
.team-photo {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
}

.team-photo {
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--bg-soft), 0 0 0 5px var(--line);
}

.team-avatar {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #0050ff, #0b1f4d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.team-avatar-2 {
  background: linear-gradient(135deg, #2b6bff, #050814);
}

.team-avatar-3 {
  background: linear-gradient(160deg, #0b1f4d, #0050ff);
}

.team-avatar-4 {
  background: linear-gradient(200deg, #0050ff, #050814);
}

.team-avatar-5 {
  background: linear-gradient(120deg, #0b1f4d, #2b6bff);
}

/* The info column fills the card, so the LinkedIn links line up across a
   row even when a name, title or bio wraps. */
.team-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.team-name {
  margin: 0;
  font-size: 1.08rem;
}

.team-role {
  margin: 0;
  color: var(--accent-text);
  font-size: 0.92rem;
  font-weight: 650;
  text-wrap: balance;
}

.team-bio {
  margin: 6px 0 14px;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
}

.team-link {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.team-link:hover {
  text-decoration: underline;
}

/* StarHack'21 note under the team (four members, not the studio). */
.team-award {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 820px;
  margin: 24px auto 0;
  padding: 16px 20px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-award > .ico {
  flex: none;
  margin-top: 2px;
  color: var(--accent-text);
}

.team-award a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}

/* Card layout: reserve two lines for the title, so the bios start at the
   same height when one title wraps. */
@media (min-width: 561px) {
  .team-role {
    min-height: 3em;
    min-height: 2lh;
  }
}

/* Phones: compact rows (photo left, text right) instead of tall stacked
   cards. */
@media (max-width: 560px) {
  .team-grid {
    gap: 12px;
  }

  .team-card {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    max-width: none;
    padding: 16px;
    text-align: left;
  }

  .team-info {
    align-items: flex-start;
  }

  .team-avatar,
  .team-photo {
    width: 72px;
    height: 72px;
  }

  .team-avatar {
    font-size: 1.2rem;
  }

  .team-bio {
    margin: 4px 0 8px;
  }

  .team-award {
    padding: 14px 16px;
  }
}

/* --------------------------------------------------------- contact facts */

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
}

.meta-list li > .ico {
  flex: none;
  margin-top: 3px;
  color: var(--accent-text);
}

.meta-list .muted {
  display: block;
  font-size: 0.85rem;
}
