/* FC Fans — site styles (shared by every page) */

:root {
  color-scheme: dark;
  --bg: #0a0c0b;
  --bg-raised: #0f1311;
  --surface: #141917;
  --surface-2: #1b211e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5f3;
  --body: #c9d2cd;
  --muted: #9aa8a0;
  --accent: #3ddc84;
  --accent-soft: rgba(61, 220, 132, 0.12);
  --accent-ink: #04210f;
  --warn: #f2b84b;
  --radius: 20px;
  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 11, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }

.site-nav {
  display: none;
  margin-left: auto;
  gap: 28px;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }

.site-header .btn--small { margin-left: auto; }

@media (min-width: 760px) {
  .site-nav { display: flex; }
  .site-header .btn--small { margin-left: 0; }
}

/* ── Buttons & App Store badge ──────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 600 0.975rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px); }

.btn--small {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 0.875rem;
  gap: 8px;
}
.btn--small .icon { width: 16px; height: 16px; }

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { background: #5be59a; border-color: #5be59a; }

.btn__play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.btn__play .icon { width: 12px; height: 12px; margin-left: 2px; }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #000;
  border: 1px solid #a6a6a6;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.appstore:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.appstore:active { transform: translateY(1px); }
.appstore .icon { width: 28px; height: 28px; }
.appstore span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore small { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em; }
.appstore strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }

/* ── Phone frame ────────────────────────────────────── */

.phone {
  --w: 280px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(160deg, #2a302d, #151917 45%, #1f2422);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone__screen {
  position: relative;
  aspect-ratio: 600 / 1304;
  border-radius: calc(var(--w) * 0.128);
  overflow: hidden;
  background: #000;
  transform: translateZ(0);
}
.phone__screen img,
.phone__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* video play/pause control (shown once JS is running) */
.vid-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(10, 12, 11, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s;
}
.vid-toggle:hover { background: rgba(10, 12, 11, 0.85); }
.vid-toggle .icon { width: 14px; height: 14px; }
.vid-toggle .i-play { margin-left: 2px; }
.vid-toggle[data-state="playing"] .i-play,
.vid-toggle:not([data-state="playing"]) .i-pause { display: none; }
.js .vid-toggle { display: grid; }

/* ── Sections ───────────────────────────────────────── */

.section { padding-block: 88px; }
@media (min-width: 900px) { .section { padding-block: 120px; } }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-head p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: 48px 72px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(61, 220, 132, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(61, 220, 132, 0.06), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero__copy { max-width: 600px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero__lead {
  margin-top: 22px;
  color: var(--body);
  font-size: clamp(1.075rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.hero__actions .btn { min-height: 56px; }

.hero__note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Three phones: the chat in front, two screens peeking out behind it */
.hero__visual {
  --front: min(300px, 64cqi);
  --back: calc(var(--front) * 0.82);
  --peek: calc(var(--front) * 0.36);
  position: relative;
  display: flex;
  justify-content: center;
  container-type: inline-size;
}
@supports not (container-type: inline-size) {
  .hero__visual { --front: min(260px, 58vw); }
}
.hero__visual .phone--front { --w: var(--front); z-index: 1; }
.hero__visual .phone--back {
  --w: var(--back);
  position: absolute;
  top: 9%;
  filter: brightness(0.75);
}
.hero__visual .phone--left { left: calc(50% - var(--front) / 2 - var(--peek)); }
.hero__visual .phone--right { right: calc(50% - var(--front) / 2 - var(--peek)); }

@media (min-width: 900px) {
  .hero { padding-block: 72px 112px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
}

/* ── How it works (story rows) ──────────────────────── */

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

.stories {
  display: grid;
  gap: 88px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story {
  display: grid;
  gap: 36px;
  align-items: center;
}

.story__media {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}
.story__media::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 220, 132, 0.18), transparent);
}
.story__media .phone { --w: min(270px, 70vw); }

.story__step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.story__step b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.story h3 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
.story__copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.075rem;
  max-width: 30em;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--body);
}
.ticks .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 2.6;
}

@media (min-width: 900px) {
  .stories { gap: 128px; }
  .story { grid-template-columns: 1fr 1fr; gap: 80px; }
  .story__media .phone { --w: 290px; }
  .story:nth-child(even) .story__media { order: -1; }
  .story__copy { max-width: 480px; }
}

/* ── Live data: chips + screenshot rail ─────────────── */

.data { background: var(--bg-raised); border-block: 1px solid var(--line); }

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--body);
  font-size: 0.85rem;
}

.rail-nav { display: none; gap: 10px; }
.js .rail-nav { display: flex; }
@media (max-width: 719px) { .js .rail-nav { display: none; } }

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.rail {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 8px max(var(--gutter), (100% - var(--wrap)) / 2) 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  list-style: none;
}
.rail li { flex: none; scroll-snap-align: start; }
.rail figure { margin: 0; }
.rail .phone { --w: 210px; }
.rail figcaption {
  margin-top: 16px;
  color: var(--body);
  font-size: 0.925rem;
  font-weight: 500;
  text-align: center;
}
@media (min-width: 720px) { .rail .phone { --w: 236px; } .rail { gap: 28px; } }

/* ── More features ──────────────────────────────────── */

.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card__icon .icon { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ── Download CTA ───────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  padding: 64px 24px;
  border: 1px solid rgba(61, 220, 132, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(61, 220, 132, 0.16), transparent 70%),
    var(--surface);
  text-align: center;
}
.cta__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cta h2 { font-size: clamp(2rem, 5vw, 3rem); max-width: 14em; margin-inline: auto; }
.cta p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.cta .appstore { margin-top: 32px; }
.cta__meta { margin-top: 18px !important; font-size: 0.875rem !important; }

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer__tag { margin-top: 10px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ── Promo film dialog ──────────────────────────────── */

.film {
  width: min(420px, 92vw, calc((100vh - 150px) * 9 / 16));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #000;
  overflow: visible;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
.film::backdrop {
  background: rgba(4, 6, 5, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.film video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: #000;
}
.film .icon-btn {
  position: absolute;
  top: -56px;
  right: 0;
  background: rgba(20, 25, 23, 0.9);
}

/* ── Document pages (privacy, terms, support, 404) ──── */

.page { padding-block: 48px 96px; }
@media (min-width: 720px) { .page { padding-block: 72px 120px; } }

.doc {
  max-width: 760px;
  margin-inline: auto;
}
.doc h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
  letter-spacing: -0.03em;
}
.doc h2 {
  margin: 2.6em 0 0.8em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}
.doc h3 {
  margin: 1.8em 0 0.6em;
  font-size: 1.075rem;
  letter-spacing: -0.01em;
}
.doc p, .doc li { color: var(--body); }
.doc p { margin-bottom: 1em; }
.doc ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.doc li { margin-bottom: 0.5em; padding-left: 0.2em; }
.doc li::marker { color: var(--accent); }
.doc ul ul { margin-top: 0.5em; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(61, 220, 132, 0.4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.doc a:not(.btn):hover { text-decoration-color: currentColor; }
.doc .updated {
  margin-top: 12px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.925rem;
}
.doc .highlight,
.doc .contact-box {
  margin: 1.4em 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}
.doc .highlight { border-left-color: var(--warn); }
.doc .highlight strong:first-child { color: var(--warn); }
.doc .contact-box p:last-child { margin-bottom: 0; }

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.doc-back:hover { color: var(--text); }
.doc-back .icon { width: 16px; height: 16px; }

/* Support page */
.support-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 12px;
  padding: 28px;
  border: 1px solid rgba(61, 220, 132, 0.22);
  border-radius: var(--radius);
  background: radial-gradient(90% 120% at 0% 0%, rgba(61, 220, 132, 0.12), transparent 60%), var(--surface);
}
.support-card h2 { margin: 0; padding: 0; border: 0; font-size: 1.25rem; }
.support-card p { margin: 6px 0 0; color: var(--muted); }
.support-card .btn { flex: none; }

.faq { margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > p { margin: -4px 0 20px; color: var(--muted); }

/* 404 */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  text-align: center;
}
.not-found .code {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.not-found h1 { margin-top: 12px; font-size: clamp(2rem, 6vw, 2.75rem); }
.not-found p { margin: 14px auto 28px; max-width: 26em; color: var(--muted); }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

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

.section--flush-top { padding-top: 0; }

.doc .doc-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.125rem;
}
