/* Palette taken from the Squad Vision app (Styles/Controls.xaml) */
:root {
  --backdrop: #0B0F1A;
  --card: #141B2E;
  --card-2: #1A2236;
  --border: #232B40;
  --border-2: #2A3350;
  --text: #E8ECF4;
  --label: #AEB4C2;
  --muted: #8A93A6;
  --dim: #5A6688;
  --accent: #2D7DFB;
  --accent-light: #5B9CFF;
  --success: #5DCAA5;
  --warning: #FFC53D;
  --danger: #E24B4A;
  --youth: #B79CFF;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--backdrop);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-light); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.accent { color: var(--accent-light); }
.fine { font-size: .85rem; color: var(--dim); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(93,202,165,.18); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.4em; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--card-2); border-color: var(--dim); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,15,26,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a:not(.btn) { color: var(--label); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(45,125,251,.22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(183,156,255,.10), transparent 70%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.lede { font-size: 1.15rem; color: var(--label); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* Hero card: a real Player evolution summary card, rebuilt from the app */
.hero-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.shot-label { font-size: .8rem; color: var(--muted); margin: 0 0 10px 4px; }
.shot-label b { color: var(--label); font-weight: 600; }
.sv-card {
  padding: 18px 20px 14px; border-color: rgba(93,202,165,.45);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(93,202,165,.08);
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  font-size: .82rem; font-weight: 700; padding: .25em .8em; border-radius: 999px;
  background: var(--success); color: #0B2A20;
}
.chips-note { font-size: .78rem; color: var(--dim); }
.net { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; }
.net-n { font-size: 2.1rem; font-weight: 800; color: var(--success); line-height: 1; }
.net-t { font-weight: 700; font-size: 1.05rem; }
.net-s { color: var(--muted); font-size: .9rem; }
.attr-groups { display: grid; grid-template-columns: 88px 1fr; gap: 10px 8px; margin: 0; }
.attr-groups dt { color: var(--dim); font-size: .85rem; padding-top: 3px; }
.attr-groups dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.attr {
  font-size: .82rem; padding: .2em .7em; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(93,202,165,.35); color: var(--success);
}
.attr b { color: var(--text); font-weight: 700; margin-left: 2px; }
.sv-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--dim);
}
.sv-open { color: var(--accent-light); font-weight: 600; }
@media (max-width: 420px) { .attr-groups { grid-template-columns: 1fr; gap: 4px; } .attr-groups dd { margin-bottom: 6px; } }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, rgba(20,27,46,.55), rgba(20,27,46,.2)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lede { color: var(--label); font-size: 1.1rem; max-width: 40em; margin-bottom: 40px; }

.grid-3 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.problem { padding: 28px; }
.problem p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.icon-amber { color: var(--warning); background: rgba(255,197,61,.12); }
.icon-red { color: var(--danger); background: rgba(226,75,74,.12); }
.icon-green { color: var(--success); background: rgba(93,202,165,.12); }

/* Feature tour: the app's tab bar, one panel per tab.
   Without JS every panel shows, stacked; main.js turns it into tabs. */
.tour { margin-top: 40px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tour-tabs {
  position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 0 8px;
  border-bottom: 1px solid var(--border); background: var(--backdrop);
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.tour-group { display: flex; flex-direction: column; flex: 0 0 auto; }
.tour-glabel { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 12px 10px 0; }
.tour-row { display: flex; }
.tour-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font: inherit; font-size: .9rem; padding: 6px 10px 12px; cursor: pointer; white-space: nowrap;
}
.tour-tab:hover { color: var(--text); }
.tour-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tour-tab:focus-visible, .tour-panel:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 16px; align-items: center; }
.tour-panel + .tour-panel { border-top: 1px solid var(--border); }
.tour.js .tour-panel { border-top: 0; }
.tour.js .tour-panel[hidden] { display: none; }
.tour.js .tour-name { display: none; }
@media (min-width: 860px) { .tour-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 40px; } }
.tour-name { font-size: .8rem; font-weight: 600; color: var(--accent-light); margin-bottom: .5em; }
.tour-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; }
.tour-copy ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tour-copy li { color: var(--label); padding-left: 22px; position: relative; }
.tour-copy li::before { content: "▲"; position: absolute; left: 0; top: .2em; font-size: .65rem; color: var(--success); }

.tour-intro { color: var(--label); margin: 0; }

/* Summary panel: three of the app's summary cards, rebuilt */
.sum-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .sum-grid { grid-template-columns: 1fr 1fr; } .sum-card.form { grid-column: 1 / -1; } }
.sum-card { background: var(--backdrop); border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 14px; font-size: .85rem; }
.sum-card.up { border-color: rgba(93,202,165,.6); }
.sum-card.down { border-color: rgba(226,75,74,.6); }
.sum-card.form { border-color: rgba(255,197,61,.55); }
.sum-head { margin-bottom: 6px; }
.sum-head b { display: block; font-weight: 600; }
.sum-head span { color: var(--dim); font-size: .75rem; }
.sum-row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.sum-row em { font-style: normal; font-weight: 700; min-width: 2.6em; }
.sum-row strong { font-weight: 600; }
.sum-row small { color: var(--muted); font-size: .8rem; margin-left: auto; white-space: nowrap; }
.n-up { color: var(--success); }
.n-down { color: var(--danger); }
.gold { color: var(--warning); }
.sum-more { color: var(--dim); font-size: .78rem; padding-top: 6px; border-top: 1px solid var(--border); }

.tour-copy li b { color: var(--text); font-weight: 600; }

/* Player evolution panel: the screen's header, tabs and summary cards, rebuilt */
.pe-screen { background: var(--backdrop); border: 1px solid var(--border-2); border-radius: 12px; padding: 14px; }
.pe-head { margin-bottom: 10px; }
.pe-head > b { font-size: 1.05rem; margin-right: 8px; }
.pe-loan { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--warning); background: rgba(255,197,61,.12); border: 1px solid rgba(255,197,61,.4); border-radius: 6px; padding: 1px 8px; }
.pe-meta { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.pe-tabs { display: flex; gap: 14px; overflow: hidden; white-space: nowrap; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.pe-tabs span { padding-bottom: 6px; }
.pe-tabs .on { color: var(--text); border-bottom: 2px solid var(--accent); }
.pe-screen .sum-card { background: var(--card); }
.sum-card.move { border-color: rgba(59,159,232,.6); grid-column: 1 / -1; }
.pe-big { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.pe-big em { font-style: normal; font-size: 1.5rem; font-weight: 800; }
.pe-big span { font-weight: 600; line-height: 1.25; }
.pe-big small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.pe-fig { padding: 6px 0; border-top: 1px solid var(--border); color: var(--label); font-size: .82rem; line-height: 1.45; }
.pe-fig b { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Squad comparison panel: the shape radar, redrawn from the app's figures */
.sq-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--label); }
.sq-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.sq-legend .p1, .sq-radar .p1 { color: #3B82F6; }
.sq-legend .p2, .sq-radar .p2 { color: #7F77DD; }
.sq-legend .p3, .sq-radar .p3 { color: #22B07D; }
.sq-legend .p4, .sq-radar .p4 { color: #22B8D9; }
.sq-legend .p5, .sq-radar .p5 { color: #E8673A; }
.sq-radar { display: block; width: 100%; max-width: 400px; margin: 4px auto 0; }
.sq-grid polygon, .sq-grid path { fill: none; stroke: var(--border-2); stroke-width: 1; }
.sq-radar polygon[class^="p"] { fill: currentColor; fill-opacity: .07; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.sq-labels text { fill: var(--muted); font-size: 12px; font-family: inherit; }
.sq-note { margin: 0; font-size: .75rem; color: var(--dim); text-align: center; }

/* Youth intakes panel: the intake header, tiles and player list, rebuilt */
.yi-sprout { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: var(--youth); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yi-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.yi-tile { background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--border-2); border-radius: 8px; padding: 8px 10px; font-size: .72rem; color: var(--dim); line-height: 1.3; }
.yi-tile b { display: block; font-size: 1.15rem; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.yi-tile.blue { border-top-color: var(--accent); }
.yi-tile.amber { border-top-color: var(--warning); }
.yi-row { display: grid; grid-template-columns: minmax(0, 1fr) 3.9rem 7.5rem; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: .82rem; }
.yi-row strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yi-row small { display: block; color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yi-th { border-top: 0; color: var(--dim); font-size: .72rem; padding-top: 0; }
.yi-pill { font-size: .72rem; font-weight: 600; color: var(--accent-light); background: rgba(45,125,251,.15); border-radius: 999px; padding: 1px 8px; }
.yi-th span:nth-child(2) { padding: 0; }
.yi-pot { white-space: nowrap; }
.yi-pot i { font-style: normal; color: #E5C07B; }

/* Squad depth panel: the depth board, rebuilt */
.sd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; font-size: .75rem; }
.sd-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.sd-toggle span { padding: 3px 10px; border-radius: 6px; color: var(--dim); }
.sd-toggle .on { background: rgba(45,125,251,.18); color: var(--accent-light); font-weight: 600; }
.sd-progress { display: inline-flex; align-items: center; gap: 8px; color: var(--label); }
.sd-progress i { display: block; width: 60px; height: 4px; border-radius: 2px; background: var(--success); }
.sd-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .sd-grid { grid-template-columns: 1fr 1fr; } }
.sd-card { background: var(--card); border: 1px solid rgba(93,202,165,.5); border-radius: 10px; padding: 10px 12px; font-size: .78rem; }
.sd-card > b { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.sd-settled { color: var(--success); }
.sd-newer { color: var(--warning); margin-bottom: 8px; }
.sd-slot { display: flex; align-items: center; gap: 10px; background: var(--backdrop); border-radius: 8px; padding: 6px 10px; }
.sd-n { color: var(--dim); }
.sd-slot strong { display: block; font-weight: 600; font-size: .82rem; }
.sd-slot small { display: block; color: var(--muted); font-size: .72rem; }
.sd-more { color: var(--accent-light); margin-top: 6px; }

/* Player comparison panel: the ranked Order tab, rebuilt */
.pc-role { font-size: .78rem; font-weight: 600; background: var(--card); border: 1px solid var(--border-2); border-radius: 6px; padding: 3px 10px; }
.pc-row {
  display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) 2.6rem 3.4rem 2.8rem; gap: 8px; align-items: center;
  background: var(--card); border-radius: 8px; padding: 7px 10px; margin-top: 6px; font-size: .95rem; font-weight: 700; text-align: right;
}
.pc-row > span:nth-child(2) { text-align: left; font-weight: 400; }
.pc-row strong { display: block; font-weight: 600; font-size: .85rem; }
.pc-row small { display: block; font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-row small.n-down { color: var(--danger); }
.pc-rank { color: var(--dim); text-align: left; font-weight: 600; font-size: .85rem; }
.pc-score { color: var(--text); }
.pc-th { background: none; padding-top: 0; padding-bottom: 0; font-size: .7rem; font-weight: 400; color: var(--dim); }
.pc-unranked { margin-top: 10px; font-size: .72rem; color: var(--dim); }
.pc-unranked b { color: var(--danger); font-weight: 600; text-transform: uppercase; margin-right: 6px; }

/* Data capture panel: a capture session step, rebuilt */
.dc-step { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: .85rem; }
.dc-n { color: var(--dim); font-size: .75rem; }
.dc-step b { font-weight: 600; }
.dc-step code { font: 600 .7rem/1.4 ui-monospace, Consolas, monospace; color: var(--warning); background: rgba(255,197,61,.1); border: 1px solid rgba(255,197,61,.35); border-radius: 5px; padding: 1px 6px; }
.dc-banner { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--card); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: .78rem; }
.dc-banner b { display: block; font-weight: 600; }
.dc-banner small { display: block; color: var(--muted); font-size: .72rem; }
.dc-btn { flex: 0 0 auto; font-size: .72rem; color: var(--label); border: 1px solid var(--border-2); border-radius: 6px; padding: 3px 10px; white-space: nowrap; }
.dc-btn.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.dc-row { display: grid; grid-template-columns: minmax(0, 1fr) 1.8rem 6.6rem 3.1rem 3.9rem; gap: 8px; align-items: center; padding: 5px 2px; border-top: 1px solid var(--border); font-size: .78rem; }
.dc-row > span:nth-child(2), .dc-row > span:nth-child(4), .dc-row > span:nth-child(5) { text-align: right; }
.dc-row strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-row small { display: block; font-size: .7rem; }
.dc-row .dc-pos { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-th { border-top: 0; color: var(--dim); font-weight: 600; }
.dc-th .dc-pos { color: var(--dim); }
.loan-in { color: #3B9FE8; }
.dc-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 480px) { .dc-row { grid-template-columns: minmax(0, 1fr) 1.8rem 3.1rem 3.9rem; } .dc-row .dc-pos { display: none; } }

/* League comparison panel: a player's dials against the league, redrawn */
.lc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.lc-chips span { font-size: .7rem; color: var(--label); background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
.lc-chips .on { color: var(--accent-light); border-color: var(--accent); background: rgba(45,125,251,.15); }
.lc-player { font-size: .75rem; color: var(--muted); margin-bottom: 10px; }
.lc-player b { color: var(--text); font-size: .9rem; margin-right: 4px; }
.lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc-dial { background: var(--card); border-radius: 8px; padding: 8px 10px 4px; }
.lc-dial b { display: block; font-size: .75rem; font-weight: 600; }
.lc-dial span { display: block; font-size: .68rem; color: var(--dim); }
.lc-dial svg { display: block; width: 100%; max-width: 170px; margin: 2px auto 0; }
.d-ring { fill: none; stroke: var(--border-2); stroke-width: 1.5; }
.d-guide { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.d-hole { fill: var(--backdrop); stroke: var(--border-2); stroke-width: 3; }
.d-g { fill: #2E9E78; }
.d-lg { fill: #6FA352; }
.d-y { fill: #C9A13B; }
.d-o { fill: #D2733A; }
.d-r { fill: #C2413A; }


.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 28px; }
.step p { color: var(--muted); margin: 0; }
.step-n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(45,125,251,.15); color: var(--accent-light); font-weight: 700; margin-bottom: 16px;
}

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
details:first-of-type { margin-top: 32px; border-top: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--accent-light); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-right: 32px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 12px; }
.footer .fine { max-width: 60em; margin: 0; }

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