/* kadrospor.com ana sayfası (site/home.html → public/index.html). Kadro tahtası: /app/board.css. */

:root {
  --navy: #12284a;
  --lime: #c5f05a;
  --ground: #f3f4ef;
  --ink: #12284a;
  --muted: #566274;
  --line: #d4d9cd;
  --band: #12284a;
  /* Yatay iPhone'da çentik payı */
  --gutter: max(clamp(20px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1d35;
    --ink: #eef1e8;
    --muted: #a3adbd;
    --line: #2b3f60;
    --band: #142a4b;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

h1, h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* Üst çubuk */

.top {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px var(--gutter);
  background: var(--navy);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font: 800 24px/1 "Bricolage Grotesque", Figtree, sans-serif;
  letter-spacing: -0.02em;
}
.brand svg { width: 32px; height: 32px; }
.brand.small { font-size: 20px; }
.brand.small svg { width: 26px; height: 26px; }

.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 500; font-size: 16px; }
.top nav a:hover { color: #fff; }

.login {
  padding: 9px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.login:hover { border-color: var(--lime); }

/* Açılış */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: min(760px, calc(100svh - 76px));
  background: var(--navy);
  color: #fff;
}

.hero-text {
  align-self: center;
  padding: 56px 0 72px var(--gutter);
  max-width: 640px;
}

.hero h1 { font-size: clamp(44px, 5.2vw, 80px); line-height: 0.98; max-width: 13ch; text-wrap: balance; }

.lead { margin: 24px 0 40px; max-width: 34em; color: rgba(255, 255, 255, 0.76); font-size: 19px; }


.hero-board { min-height: 420px; }

/* Bölümler */

main { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

main > section { padding: clamp(72px, 10vw, 136px) 0 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 19px; max-width: 40em; }

/* Kulüpte bir gün: saat solda, çizgi ve nokta ortada, ne olduğu sağda. Ekranın ortasındaki adım etkin. */

.steps {
  --time-col: clamp(150px, 19vw, 250px);
  --rail: calc(var(--time-col) + clamp(24px, 3vw, 44px));
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 0.6em;
  bottom: 0;
  left: var(--rail);
  width: 2px;
  background: var(--line);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-col) minmax(0, 1fr) minmax(260px, 320px);
  column-gap: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
/* Etkin olmayan adımda yalnızca büyük saat solar (metin hep okunur). */
.js .step .time { opacity: 0.35; transition: opacity 0.35s; }
.js .step.active .time { opacity: 1; }

.step::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 7px);
  top: clamp(18px, 2.2vw, 30px);
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--ground);
  transition: background-color 0.3s, border-color 0.3s;
}
.step.active::before { background: var(--lime); border-color: var(--ink); }

.time { margin: 0; text-align: right; }
.time time {
  font: 800 clamp(48px, 5.6vw, 84px)/0.9 "Bricolage Grotesque", Figtree, sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.role { margin: 4px 0 6px; color: var(--muted); font-weight: 600; font-size: 16px; }
.step > div h3 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.step > div p:not(.role) { margin: 0; max-width: 36em; color: var(--muted); font-size: 18px; }

/* Özellikler */

.feature-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
}
.feature-cols h3 { margin: 0 0 16px; padding-top: 16px; border-top: 2px solid var(--ink); font-size: 19px; }
.feature-cols ul { margin: 0; padding: 0; list-style: none; }
.feature-cols li { position: relative; margin-bottom: 12px; padding-left: 18px; color: var(--muted); font-size: 16px; }
.feature-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}


/* Fiyat */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(72px, 10vw, 136px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background: var(--band);
  color: #fff;
}
.price h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }
.price p { margin: 14px 0 0; max-width: 36em; color: rgba(255, 255, 255, 0.76); font-size: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn:hover { background: #d4f57f; }

/* Alt bilgi */

.bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 15px;
}
.bottom .brand { color: var(--ink); }
.bottom p { margin: 14px 0 0; }
.bottom .links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Dar ekran */

@media (max-width: 900px) {
  .top { gap: 16px; }
  .top nav { display: none; }
  .login { margin-left: auto; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 40px var(--gutter) 36px; }
  .hero-board { min-height: 0; height: clamp(220px, 34svh, 320px); }

  .steps::before { left: 7px; top: 0.4em; }
  .step { grid-template-columns: 1fr; padding: 0 0 52px 40px; }
  .step::before { left: 0; top: 0.9em; }
  .time { text-align: left; }
  .time time { font-size: 48px; }
}

/* ── Kulüpte bir gün: her adımın çizimi ──────────────────────────────────────────────────────────────
   Uygulama ekranlarını anımsatan beyaz kartlar (her temada açık; durum renkleri bu zeminde doğrulandı ve hep
   simgeyle: ✓ geldi/ödedi, ✗ gelmedi/ödemedi, İ izinli). Adım ilk görüldüğünde (.seen) bir kez oynar. */

.viz {
  --v-ink: #12284a;
  --v-muted: #566274;
  --v-line: #e3e6de;
  --v-ok: #16794f;
  --v-no: #c43a2c;
  --v-ex: #9c8a00;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding: 20px 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--v-ink);
  box-shadow: 0 1px 0 rgba(18, 40, 74, 0.06), 0 24px 48px -32px rgba(18, 40, 74, 0.45);
  font-size: 14px;
}
.viz p { margin: 0; }

/* Ortak giriş hareketi: öğe --i sırasıyla belirir. */
.js .step:not(.seen) .viz [style*="--i"] { opacity: 0; transform: translateY(8px); }
.viz [style*="--i"] { transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s, color 0.3s, border-color 0.3s; transition-delay: calc(var(--i) * 70ms + 150ms); }

/* 08:30 devam oranı: haftalık katılım çubukları, sıfırdan */
.v-num { font: 800 44px/1 "Bricolage Grotesque", Figtree, sans-serif; letter-spacing: -0.03em; }
.v-cap { color: var(--v-muted); font-weight: 500; }
.v-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 16px; border-bottom: 1px solid var(--v-line); }
.v-bars span {
  flex: 1;
  height: calc(var(--v) / 70 * 100%);
  border-radius: 4px 4px 0 0;
  background: rgba(18, 40, 74, 0.22);
  transform-origin: bottom;
}
.v-bars span:last-child { background: var(--v-ink); }
.js .step:not(.seen) .viz .v-bars span { opacity: 1; transform: scaleY(0); }
.v-axis { display: flex; justify-content: space-between; margin-top: 6px !important; color: var(--v-muted); font-size: 12px; }

/* 11:00 başvuru aşamaları */
.v-who { font-size: 15px; }
.v-who b { margin-right: 6px; }
.v-stages { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 0; padding: 0; list-style: none; }
.v-stages li { position: relative; padding-top: 22px; color: var(--v-muted); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.v-stages li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--v-ink);
  border-radius: 50%;
  background: var(--v-ink);
}
.v-stages li:last-child::before { border-color: var(--v-ok); background: var(--v-ok); }
.v-stages li::after { content: ""; position: absolute; top: 7px; left: 16px; right: 2px; height: 2px; background: var(--v-ink); }
.v-stages li:last-child::after { display: none; }
.v-stages li:last-child { color: var(--v-ok); }
.v-note { margin-top: 18px !important; padding: 8px 12px; border-radius: 10px; background: #e8f3ec; color: var(--v-ok); font-weight: 600; }
.v-note::before { content: "✓ "; }
.js .step:not(.seen) .v-note { opacity: 0; }
.v-note { transition: opacity 0.4s 0.6s; }

/* 17:30 antrenörün günü: saat şeridi */
.v-hours, .v-track { display: grid; grid-template-columns: repeat(5, 1fr); }
.v-hours { margin: 16px 0 8px; color: var(--v-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.v-hours span { border-left: 1px solid var(--v-line); padding-left: 4px; }
.v-track { position: relative; height: 34px; margin-bottom: 6px; }
.v-slot {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--from) * 20%);
  width: calc(var(--len) * 20% - 3px);
  display: flex;
  align-items: center;
  padding: 0 10px;
  /* Ad şeritten uzunsa boş saatlere taşar (kesilmez). */
  overflow: visible;
  border-left: 3px solid var(--v-ink);
  border-radius: 4px 8px 8px 4px;
  background: rgba(18, 40, 74, 0.08);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}

/* 18:05 yoklama: sporcular sırayla işaretlenir */
.v-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.v-dots span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.v-dots .ok, .v-legend .ok { background: var(--v-ok); }
.v-dots .no, .v-legend .no { background: var(--v-no); }
.v-dots .ex, .v-legend .ex { background: var(--v-ex); }
.js .step:not(.seen) .viz .v-dots span { opacity: 1; transform: none; background: transparent; color: transparent; box-shadow: inset 0 0 0 2px var(--v-line); }
.v-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 16px !important; color: var(--v-ink); font-weight: 600; }
.v-legend span { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; color: #fff; font-size: 11px; }
.v-legend span:first-child { margin-left: 0; }
.v-sync { position: relative; margin-top: 12px !important; height: 20px; color: var(--v-muted); font-size: 13px; }
.v-sync span { position: absolute; inset: 0; transition: opacity 0.4s; }
.v-sync .on { color: var(--v-ok); font-weight: 600; opacity: 0; transition-delay: 1.4s; }
.v-sync .off { transition-delay: 1.3s; }
.step.seen .v-sync .on { opacity: 1; }
.step.seen .v-sync .off { opacity: 0; }

/* 20:00 veliye gelen bildirimler */
.v-notes { display: grid; gap: 10px; padding: 14px; background: #e9ece4; }
.v-note-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px 12px 50px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px -10px rgba(18, 40, 74, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' rx='30' fill='%2312284a'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='36' cy='30' r='9'/%3E%3Ccircle cx='36' cy='60' r='9'/%3E%3Ccircle cx='36' cy='90' r='9'/%3E%3Ccircle cx='62' cy='47' r='9'/%3E%3Ccircle cx='62' cy='73' r='9'/%3E%3Ccircle cx='86' cy='90' r='9'/%3E%3C/g%3E%3Ccircle cx='86' cy='30' r='9' fill='%23c5f05a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 14px;
  background-size: 26px 26px;
}
.v-note-card span { color: var(--v-muted); line-height: 1.4; }

/* 22:00 kasa: toplamlar ve aidat şeridi */
.v-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.v-totals p { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.v-totals small { display: block; color: var(--v-muted); font-weight: 500; font-size: 12px; }
.v-months, .v-row { display: grid; grid-template-columns: 30px repeat(6, 1fr); gap: 4px; align-items: center; }
.v-months { color: var(--v-muted); font-size: 11.5px; text-align: center; }
.v-row { margin-top: 4px; }
.v-row b { font-size: 12px; color: var(--v-muted); }
.v-row span { display: grid; place-items: center; height: 24px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.v-row .ok { background: #e8f3ec; color: var(--v-ok); }
.v-row .no { background: #f9e7e4; color: var(--v-no); }

@media (max-width: 1100px) {
  .step { grid-template-columns: var(--time-col) minmax(0, 1fr); }
  .viz { grid-column: 2; grid-row: 2; max-width: 360px; margin-top: 24px; }
}

@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; }
  .viz { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .viz [style*="--i"], .v-note, .v-sync span { transition: none; }
}
