@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Colours follow the app theme (fanflash_app/lib/core/theme/app_colors.dart). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f8f7;
  --ink: #111411;
  --ink-2: #4c534d;
  --ink-3: #687069;
  --line: #e8ebe9;
  --brand: #159a5b;
  --brand-text: #048842;
  --brand-soft: #eaf6ef;
  --mark-f: #111411;
  --mark-dot: #159a5b;

  --pitch-0: #050b08;
  --pitch-1: #0a1a12;
  --pitch-2: #0e3b24;
  --pitch-3: #18653d;
  --glow: linear-gradient(100deg, #6af0a8 0%, #2fd47c 55%, #1fbf6c 100%);

  --content: 1160px;
  --reading: 46rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d100e;
    --surface: #161a18;
    --ink: #f4f6f4;
    --ink-2: #b9bfbb;
    --ink-3: #8e958f;
    --line: #262c28;
    --brand: #25c870;
    --brand-text: #25c870;
    --brand-soft: #15291e;
    --mark-f: #f4f6f4;
    --mark-dot: #25c870;
  }
}

/* One page, two languages: <html lang> decides which half is shown. */
:root[lang="en"] [lang="de"],
:root[lang="de"] [lang="en"] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

::selection {
  background: #2fd47c;
  color: #06120c;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* Header */

.site-header {
  position: relative;
  z-index: 10;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  width: 1.75rem;
  height: auto;
}

.mark-f {
  fill: var(--mark-f);
}

.mark-dot {
  fill: var(--mark-dot);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch a {
  min-width: 2.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--ink-3);
  text-align: center;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}

.header-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #06120c;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.header-cta:hover {
  background: #d9f7e6;
}

/* Hero: always on the dark pitch, like the store graphics. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 88% 105%, var(--pitch-3) 0%, var(--pitch-2) 32%, var(--pitch-1) 62%, var(--pitch-0) 100%);
  color: #fff;
  color-scheme: dark;
  --line: rgba(255, 255, 255, 0.14);
  --ink: #fff;
  --ink-3: rgba(255, 255, 255, 0.62);
  --bg: #06120c;
  --mark-f: #f4f6f4;
  --mark-dot: #25c870;
}

/* Faint centre circle and halfway line of a pitch. */
.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 50%;
  right: -14rem;
  width: 46rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  transform: translateY(-38%);
}

.hero::after {
  top: 0;
  bottom: 0;
  right: 9rem;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.07) 30%, rgba(255, 255, 255, 0.07) 70%, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.hero-copy {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 200, 112, 0.14);
  color: #7ef0b0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.live-tag::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #25c870;
  box-shadow: 0 0 0 0 rgba(37, 200, 112, 0.6);
  content: "";
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.45rem rgba(37, 200, 112, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 200, 112, 0); }
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.glow {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 34ch;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.badges a {
  display: block;
  border-radius: 0.6rem;
  transition: transform 0.25s var(--ease);
}

.badges a:hover {
  transform: translateY(-2px);
}

.badges img {
  width: auto;
  height: 3rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.facts li::before {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #25c870;
  content: "";
}

.hero-visual {
  position: relative;
  align-self: end;
  min-height: 100%;
}

.hero-phones {
  position: relative;
  width: min(100%, 26rem);
  margin-inline: auto;
  translate: 0 0;
}

.hero-phones .phone--front {
  position: relative;
  z-index: 2;
  width: 78%;
  margin-bottom: -18%;
}

.hero-phones .phone--back {
  position: absolute;
  z-index: 1;
  top: 9%;
  right: -6%;
  width: 66%;
  opacity: 0.9;
}

/* Phone frame around a raw iOS screenshot (1320 x 2868). */
.phone {
  position: relative;
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: #121513;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 2.5rem 5rem -1rem rgba(0, 0, 0, 0.55);
}

.phone::after {
  position: absolute;
  top: 4.1%;
  left: 50%;
  width: 28%;
  height: 3.2%;
  border-radius: 999px;
  background: #000;
  content: "";
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 12.6% / 5.8%;
  background: #1a1f1c;
}

/* Screens */

.section {
  padding-block: clamp(4rem, 10vw, 7.5rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 38ch;
  margin-top: 0.75rem;
  color: var(--ink-3);
}

.rail-controls {
  display: flex;
  gap: 0.5rem;
}

.rail-controls button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  transition: background-color 0.2s, opacity 0.2s;
}

.rail-controls button:hover:not(:disabled) {
  background: var(--surface);
}

.rail-controls button:disabled {
  cursor: default;
  opacity: 0.35;
}

.rail-controls svg {
  width: 1.1rem;
  height: 1.1rem;
}

.rail {
  display: grid;
  grid-auto-columns: clamp(14rem, 62vw, 16.5rem);
  grid-auto-flow: column;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0.5rem max(var(--gutter), (100% - var(--content)) / 2) 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-padding-inline: max(var(--gutter), (100% - var(--content)) / 2);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > li {
  scroll-snap-align: start;
}

.rail .phone {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 1.5rem 3rem -1.25rem rgba(6, 18, 12, 0.35);
}

.screen-caption {
  margin-top: 1.5rem;
}

.screen-caption .num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-text);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.screen-caption h3 {
  font-size: 1.1875rem;
}

.screen-caption h3 em {
  color: var(--brand-text);
  font-style: normal;
}

.screen-caption p {
  margin-top: 0.4rem;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Download */

.download {
  padding-bottom: clamp(4rem, 10vw, 7.5rem);
}

.download-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
  border-radius: calc(var(--radius) * 1.6);
  background:
    radial-gradient(90% 120% at 50% 130%, var(--pitch-3) 0%, var(--pitch-2) 35%, var(--pitch-1) 70%, var(--pitch-0) 100%);
  color: #fff;
  text-align: center;
}

.download-card::before {
  position: absolute;
  z-index: -1;
  top: 100%;
  left: 50%;
  width: 34rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.download-card .app-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.75rem;
  border-radius: 22.5%;
  box-shadow: 0 1rem 2.5rem -0.75rem rgba(0, 0, 0, 0.6);
}

.download-card h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.download-card p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.download-card .badges {
  justify-content: center;
  margin-top: 2rem;
}

/* Footer */

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.875rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-grid .brand {
  color: var(--ink);
  font-size: 1.0625rem;
}

.footer-grid .brand svg {
  width: 1.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

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

.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 1.75rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

/* Legal and help pages */

.page .site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

.page .site-header .shell {
  min-height: 4rem;
}

.doc {
  width: min(100% - 2 * var(--gutter), var(--reading));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(4rem, 10vw, 6rem);
}

.doc-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--brand-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.doc h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: break-word;
  hyphens: auto;
}

.doc .intro {
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.updated {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.doc h2 {
  margin: 3rem 0 0.9rem;
  font-size: 1.375rem;
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
}

.doc p,
.doc ul,
.doc ol,
.doc dl {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.doc li::marker {
  color: var(--ink-3);
}

.doc a {
  color: var(--brand-text);
}

.doc address {
  font-style: normal;
}

.muted {
  color: var(--ink-3);
}

.summary {
  margin: 0 0 1rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.summary h2 {
  margin-top: 0;
  font-size: 1.0625rem;
}

.summary ul {
  margin-bottom: 0;
}

.basis {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.facts-table {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  margin: 0 0 1rem;
  border-top: 1px solid var(--line);
}

.facts-table dt,
.facts-table dd {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts-table dt {
  padding-right: 1rem;
  color: var(--ink-3);
}

/* App labels the user taps, e.g. "Delete account". */
.ui {
  padding: 0.05rem 0.3rem;
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  white-space: nowrap;
}

.steps {
  margin: 1.5rem 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 0 0 1.25rem 3rem;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: -0.05rem;
  left: 0;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  content: counter(step);
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  place-items: center;
}

.steps li:not(:last-child)::after {
  position: absolute;
  top: 2.1rem;
  bottom: 0.2rem;
  left: 0.95rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.callout p:last-child {
  margin-bottom: 0;
}

.doc .callout h2 {
  margin-top: 0;
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.3rem;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  content: "";
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(25%) rotate(-135deg);
}

.faq details > div {
  padding-bottom: 1.1rem;
  color: var(--ink-2);
}

.mail {
  font-weight: 600;
}

.not-found {
  display: grid;
  min-height: 60vh;
  place-content: center;
  text-align: center;
}

.not-found .score {
  color: var(--brand-text);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.not-found h1 {
  margin-top: 1rem;
}

.not-found p {
  margin: 0.75rem 0 1.75rem;
  color: var(--ink-3);
}

.button,
.doc .button {
  display: inline-block;
  justify-self: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* Small screens */

@media (max-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-phones {
    width: min(82%, 22rem);
  }

  .hero::after {
    display: none;
  }
}

@media (max-width: 40rem) {
  .header-cta {
    display: none;
  }

  .section-head {
    display: block;
  }

  .rail-controls {
    display: none;
  }

  .badges img {
    height: 2.75rem;
  }

  .facts-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts-table dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .facts-table dd {
    padding-top: 0.15rem;
  }

  .summary {
    padding: 1.25rem;
  }

  .download-card::before {
    display: none;
  }
}

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