/* Capta — showcase site (capta.soccer). Tokens from docs/design/web/capta-tokens.css. */

@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url(/fonts/Sora-400.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url(/fonts/Sora-600.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url(/fonts/Sora-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/Inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/fonts/Inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/Inter-600.woff2) format("woff2"); }

:root {
  --ink-50: #EEF1F6; --ink-100: #D9DFEA; --ink-200: #B8C2D6; --ink-400: #6B7A99; --ink-600: #2E3F63;
  --ink-700: #1B2A4A; --ink: #0F1E3D; --ink-950: #0A142A;
  --pitch-50: #E8F7EF; --pitch-300: #3DDC97; --pitch: #0E9F5E; --pitch-700: #0B7A48; --pitch-900: #075232;
  --white: #FFFFFF; --paper: #F6F7F4; --line: #E3E6E0; --text-2: #4A5468;
  --st-flagged-bg: #ECEEF2; --st-flagged: #454D5C;
  --st-review-bg: #E3ECFB; --st-review: #1A4FB0;
  --st-short-bg: #FDF3DC; --st-short: #8A5306;
  --st-called-bg: #E8F7EF; --st-called: #0B7A48;
  --display: "Sora", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --r-chip: 8px; --r-field: 12px; --r-card: 16px; --r-panel: 20px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--text); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--pitch-700); }
a:hover { color: var(--pitch-900); }
:focus-visible { outline: 3px solid var(--pitch-300); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* type */
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; text-wrap: balance; }
.display { font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--text-2); max-width: 62ch; }
.label { font: 600 .75rem/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.label--light { color: var(--ink-100); }
.small { font-size: .875rem; color: var(--text-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-field); background: var(--ink); color: #fff; font: 600 15px/1 var(--text); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--ink-950); color: #fff; transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--wide { width: 100%; }

/* status chips: dot + word */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font: 600 12px/1 var(--text); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--flagged { background: var(--st-flagged-bg); color: var(--st-flagged); }
.chip--review { background: var(--st-review-bg); color: var(--st-review); }
.chip--shortlisted { background: var(--st-short-bg); color: var(--st-short); }
.chip--calledup { background: var(--st-called-bg); color: var(--st-called); }

.card { background: var(--white); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); padding: 24px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { font: 700 1.55rem/1 var(--display); letter-spacing: -.04em; }
.logo i { font-style: normal; color: var(--pitch); }
.logo:hover { color: var(--ink); }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light i { color: var(--pitch-300); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow .25s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--pitch); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav__menu span:first-child, .nav__menu span:first-child::before, .nav__menu span:first-child::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__menu span:first-child { top: 21px; }
.nav__menu span:first-child::before { left: 0; top: -7px; }
.nav__menu span:first-child::after { left: 0; top: 7px; }
.nav__menu[aria-expanded="true"] span:first-child { background: transparent; }
.nav__menu[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 28px; background: radial-gradient(1100px 520px at 85% 10%, var(--pitch-50), transparent 60%), var(--white); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__text { display: grid; gap: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips .chip { animation: chip 6s infinite; opacity: .45; }
.hero__chips .chip:nth-child(2) { animation-delay: 1.5s; }
.hero__chips .chip:nth-child(3) { animation-delay: 3s; }
.hero__chips .chip:nth-child(4) { animation-delay: 4.5s; }
@keyframes chip { 0%, 30% { opacity: 1; transform: translateY(-2px); } 40%, 100% { opacity: .45; transform: none; } }
.hero__visual { position: relative; min-height: 420px; }
.hero__visual .browser { width: 100%; }
.phone--hero { position: absolute; width: 31%; right: -3%; bottom: -14%; }
.float { position: absolute; display: grid; gap: 2px; background: var(--white); border-radius: 14px; padding: 10px 14px; box-shadow: 0 18px 40px -18px rgba(15, 30, 61, .35), inset 0 0 0 1px var(--line); font-size: .8rem; }
.float__k { color: var(--text-2); }
.float__v { font: 600 1rem/1.2 var(--text); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.float--a { left: -4%; top: 58%; animation: bob 5s ease-in-out infinite; }
.float--b { left: 30%; bottom: -10%; animation: bob 6s ease-in-out infinite .8s; }
.float--a .float__v { color: #B26B00; }
.dot5 { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px; background: #2E86DE; color: #fff; font-size: .78rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.note { margin-top: clamp(48px, 8vw, 96px); font-size: .8rem; color: var(--ink-400); }

/* device frames */
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -28px rgba(15, 30, 61, .4), 0 0 0 1px rgba(15, 30, 61, .08); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-100); }
.browser__bar span { margin-left: 10px; font-size: .72rem; color: var(--ink-400); letter-spacing: .02em; }
.phone { margin: 0; border-radius: 34px; padding: 9px; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(10, 20, 42, .55); }
.phone img { border-radius: 26px; }

/* band of numbers */
.band { background: var(--ink); color: #fff; padding: 44px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { display: grid; gap: 6px; }
.stat__n { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.04em; color: var(--pitch-300); font-variant-numeric: tabular-nums; }
.stat__k { color: var(--ink-100); font-size: .95rem; max-width: 28ch; }

/* sections */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .lead { color: var(--ink-100); }
.head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vw, 64px); max-width: 760px; }

/* pathway */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: p; position: relative; z-index: 1; }
.path__step { display: grid; gap: 10px; align-content: start; background: var(--white); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; transition: transform .3s var(--ease), box-shadow .3s; }
.path__step:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--ink-200), 0 20px 40px -26px rgba(15, 30, 61, .4); }
.path__step .chip { justify-self: start; }
.path__step p { color: var(--text-2); font-size: .95rem; }
.path__line { height: 4px; border-radius: 2px; background: var(--line); margin-top: 28px; overflow: hidden; }
.path__line span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--st-flagged), var(--st-review), #C98A1A, var(--pitch)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); }
.path__line.is-in span { transform: scaleX(1); }

/* features */
.feat { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feat + .feat { margin-top: clamp(64px, 10vw, 120px); }
.feat--flip .feat__text { order: 2; }
.feat__text { display: grid; gap: 16px; }
.feat__text > p:not(.label) { color: var(--text-2); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--pitch-50); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 5px; height: 9px; border: solid var(--pitch-700); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.feat .browser { transition: transform .5s var(--ease); }
.feat .browser:hover { transform: translateY(-6px) scale(1.01); }

/* charts */
.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.chart { margin: 0; display: grid; gap: 14px; }
.chart figcaption { display: grid; gap: 4px; }
.chart figcaption b { font: 600 1.1rem/1.3 var(--display); letter-spacing: -.01em; }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__svg text { font: 500 11px var(--text); fill: var(--ink-400); font-variant-numeric: tabular-nums; }
.chart__svg .val { font: 600 11px var(--text); fill: var(--ink); }
.chart__legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); }
.sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-left: 6px; }
.sw:first-child { margin-left: 0; }
.sw--ink { background: var(--ink); }
.sw--pitch { background: var(--pitch); height: 10px; }
.sw--band { background: var(--pitch-50); height: 10px; box-shadow: inset 0 0 0 1px var(--pitch); }
.donut { position: relative; width: min(240px, 70%); margin: 4px auto 6px; }
.donut__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__n { font: 700 2.4rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.donut__k { font-size: .8rem; color: var(--text-2); margin-top: 4px; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app { background: var(--ink-700); border-radius: var(--r-card); padding: 24px; display: grid; gap: 12px; align-content: start; box-shadow: inset 0 0 0 1px var(--ink-600); transition: transform .3s var(--ease), background .3s; }
.app:hover { transform: translateY(-4px); background: #22335A; }
.app img { border-radius: 14px; }
.app h3 { font: 700 1.25rem/1 var(--display); letter-spacing: -.03em; }
.app h3 span { font-weight: 400; }
.app p { color: var(--ink-100); font-size: .95rem; }
.phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); margin-top: clamp(48px, 8vw, 88px); }
.phones .phone { width: min(280px, 30%); }
.phones .phone--up { transform: translateY(-36px); }

/* security */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: grid; gap: 10px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ink-200); }
.feature p { color: var(--text-2); font-size: .95rem; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--pitch-50); color: var(--pitch-700); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* cta */
.cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta > div:first-child { display: grid; gap: 14px; }
.cta__box { display: grid; gap: 14px; padding: 28px; }

/* footer */
.foot { background: var(--ink); color: var(--ink-100); padding: 48px 0; }
.foot__in { display: grid; gap: 12px; }
.foot .small { color: var(--ink-400); max-width: 70ch; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv--right { transform: translateX(40px); }
.js .rv--left { transform: translateX(-40px); }
.js .rv--up { transform: translateY(60px); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .phones .phone--up.rv.is-in { transform: translateY(-36px); }

/* charts animation */
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s var(--ease); }
.is-in .draw { stroke-dashoffset: 0; }
.grow { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.growx { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .grow, .is-in .growx { transform: none; }
.fade { opacity: 0; transition: opacity .6s var(--ease) 1.2s; }
.is-in .fade { opacity: 1; }

/* tablet */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; margin: 10px 4% 40px 0; }
  .feat, .feat--flip { grid-template-columns: 1fr; }
  .feat--flip .feat__text { order: 0; }
  .path { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
}

/* phone */
@media (max-width: 720px) {
  .nav__menu { display: block; }
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--white); box-shadow: 0 20px 30px -20px rgba(15, 30, 61, .3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .25s; }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; min-height: 48px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .phone--hero { width: 36%; right: -6%; bottom: -16%; }
  .float { font-size: .72rem; padding: 8px 10px; }
  .float__v { font-size: .88rem; }
  .float--a { left: -2%; top: 52%; }
  .float--b { left: 6%; bottom: -14%; }
  .path, .charts, .grid3, .apps { grid-template-columns: 1fr; }
  .path__line { display: none; }
  .stats { gap: 24px 16px; }
  .phones { gap: 10px; }
  .phones .phone { width: 32%; padding: 5px; border-radius: 20px; }
  .phones .phone img { border-radius: 16px; }
  .phones .phone--up, .js .phones .phone--up.rv.is-in { transform: translateY(-18px); }
  .card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .grow, .growx { transform: none; }
  .fade { opacity: 1; }
  .hero__chips .chip { opacity: 1; }
}

/* on ink the phone frame is lighter, so the app header stays visible */
.section--ink .phone { background: var(--ink-600); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* national teams emphasis */
.badge { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .82rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pitch-300); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.teams { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.teams li { padding: 8px 14px; border-radius: var(--r-field); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; color: var(--text-2); }
.teams b { color: var(--ink); font-weight: 600; }
.section--tight { padding-bottom: clamp(24px, 4vw, 48px); }
.num { font: 700 1.6rem/1 var(--display); letter-spacing: -.03em; color: var(--pitch-700); }
@media (max-width: 720px) { .teams li { padding: 7px 12px; font-size: .86rem; } }
