/* getflit.net — shared styles for the brand and player pages.
 * Colours come only from flit-colours.css (generated from docs/design/brand/colours.json);
 * this file writes none. Design reference: docs/design/site/onizleme.html (SITE-ALIGN-01). */

:root {
  --link: var(--focal);
  --bezel: color-mix(in srgb, var(--text-primary) 88%, black);
  --shadow: 0 30px 60px -28px color-mix(in srgb, var(--text-primary) 45%, transparent);
}
@media (prefers-color-scheme: dark) {
  /* colours.json: the dark focal is for fills, not text, so links use the focus ring. */
  :root {
    --link: var(--focus-ring);
    --bezel: color-mix(in srgb, var(--canvas) 45%, black);
    --shadow: 0 30px 60px -28px color-mix(in srgb, black 80%, transparent);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text-primary); font: 17px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--link); }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .display { font-family: "Archivo Black", Inter, sans-serif; font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.2; }
.eyebrow { font: 700 13px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--text-secondary); max-width: 38em; }
.muted { color: var(--text-secondary); }
.small { font-size: 14px; color: var(--text-tertiary); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* logo: blue wordmark on light, yellow on dark (docs/design/brand/logo, K16d) */
.logo { height: 34px; width: auto; display: block; }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { .on-light { display: none; } .on-dark { display: block; } }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.site-head nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.site-head nav a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-head nav a:hover { color: var(--text-primary); }
.site-head nav a.btn-primary, .site-head nav a.btn-primary:hover { color: var(--on-primary-action); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; font: 700 16px/1 Inter, sans-serif; border: 0; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--primary-action); color: var(--on-primary-action); font-family: "Archivo Black", Inter, sans-serif; font-weight: 400; letter-spacing: .02em; }
.btn-primary:hover { filter: brightness(.97); }
.btn-brand { background: var(--focal); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--focus-ring); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.focal { background: var(--focal); }
.dot.tournament { background: var(--format-tournament); }
.dot.live { background: var(--format-live-tournament); }
.dot.survey { background: var(--format-survey); }
.dot.prediction { background: var(--format-prediction); }
.tick { width: 18px; height: 18px; flex: none; color: var(--success); }

/* hero */
.hero { padding: 72px 0 56px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero .chips { margin-top: 28px; }
.stage { position: relative; display: flex; justify-content: center; min-height: 560px; }
.stage::before { content: ""; position: absolute; inset: 6% 4% 10% 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--focal) 26%, transparent), transparent); filter: blur(10px); }
.stage .phone.back { position: absolute; left: 2%; top: 46px; transform: rotate(-7deg) scale(.86); }
.stage .phone.front { position: relative; margin-left: 24%; }

/* phone frame around a B · Bahçe screen */
.phone { width: 300px; max-width: 78vw; padding: 10px; border-radius: 46px; background: var(--bezel); box-shadow: var(--shadow); }
.screen { border-radius: 36px; overflow: hidden; aspect-ratio: 390 / 844; background: var(--canvas); }
.screen img { display: block; width: 100%; height: auto; }
.screen.short { aspect-ratio: 390 / 560; }
/* The tournament screen is framed from its "what this event gives you" block down, so the
 * sample participant count above and below it stays off a sales page (meta §8). */
.screen.event { aspect-ratio: 390 / 720; }
.screen.event img { margin-top: calc(-305 / 390 * 100%); }
.shot { margin: 0 auto; width: fit-content; max-width: 100%; }
.shot figcaption { font-size: 14px; color: var(--text-tertiary); text-align: center; margin-top: 16px; }

/* sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stack { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.card h3 { margin: 18px 0 10px; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--focal) 14%, var(--surface)); color: var(--link); flex: none; }
.icon svg { width: 26px; height: 26px; }
.icon.yellow { background: var(--primary-action); color: var(--on-primary-action); }
.icon.green { background: color-mix(in srgb, var(--success) 18%, var(--surface)); color: var(--success); }
.list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-secondary); }
.list li .dot { margin-top: 9px; }
.list b { color: var(--text-primary); }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 700 12px/1.2 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.pill.free { background: color-mix(in srgb, var(--success) 16%, var(--surface)); color: var(--success); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.split.center { align-items: center; }
.split > * { min-width: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { padding: 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.step .num { font-family: "Archivo Black", sans-serif; font-size: 15px; color: var(--link); letter-spacing: .06em; }
.step h3 { margin: 12px 0 10px; }

/* pricing */
.price .label { font-weight: 700; color: var(--text-tertiary); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.price .big { font-family: "Archivo Black", sans-serif; font-size: 30px; line-height: 1.1; margin: 14px 0 12px; }
.price.accent { background: var(--focal); border-color: var(--focal); color: var(--on-brand); }
.price.accent .label, .price.accent p { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.paynote { margin-top: 20px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: 22px; background: var(--surface-raised); color: var(--text-secondary); font-size: 15.5px; }

/* the player loop, as chips */
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 30px; }
.loop .chip { font-size: 15px; color: var(--text-primary); }
.loop .arrow { color: var(--text-tertiary); }

/* closing band */
.band { background: var(--focal); color: var(--on-brand); border-radius: 36px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.band p { color: color-mix(in srgb, var(--on-brand) 84%, transparent); margin-top: 12px; font-size: 18px; }
.band .btn-ghost { color: var(--on-brand); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-brand) 55%, transparent); }

/* official store badges, unmodified (Apple and Google artwork). Apple: black badge whenever another store's
 * badge is beside it, at least 40 px tall, clear space a quarter of its height. Google: never smaller than
 * the other badges; its file carries transparent padding, so it is set taller to match visibly. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.badge { display: block; line-height: 0; }
.badge img { display: block; height: 48px; width: auto; }
.badge.gp img { height: 63px; margin: -7px 0; }

/* footer */
footer { padding: 64px 0 56px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--text-primary); text-decoration: underline; }
.fine { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-tertiary); display: grid; gap: 8px; }
.fine button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* cookie consent — ids and classes are what site.js reads */
.cookie-banner { display: none; position: fixed; left: 20px; bottom: 20px; z-index: 40; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); font-size: 14px; color: var(--text-secondary); }
.cookie-banner.is-visible { display: block; }
.cookie-banner .btns { margin-top: 12px; align-items: center; }
.cookie-banner a { font-weight: 600; }

/* responsive */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .stage { min-height: auto; padding-top: 10px; }
  .stage .phone.back { display: none; }
  .stage .phone.front { margin: 0 auto; }
  .grid3, .steps, .steps.four { grid-template-columns: 1fr 1fr; }
  .site-head nav a:not(.btn) { display: none; }
  .band { grid-template-columns: 1fr; padding: 36px 28px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 44px 0 32px; }
  .grid3, .grid2, .steps, .steps.four { grid-template-columns: 1fr; }
  .site-head .wrap { gap: 12px; }
  .site-head .btn { padding: 0 14px; font-size: 13px; }
  .card, .step { padding: 24px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
