/* Hoops Career site. Palette is the game's own: ink, card, raised, line, one text colour.
   Blue = pick / needs you. Orange = the leather ball button only. Green = money. Red = danger. */
:root {
  --base: #0A0C10;
  --card: #13171D;
  --raised: #1C222A;
  --line: #2B3440;
  --text: #F1F4F8;
  --soft: #C3CBD6;      /* body copy, still readable on --base (about 11:1) */
  --pick: #2F7BFF;
  --call: #62A3FF;
  --ball: #FF6B3D;
  --ball-ink: #1A0E09;
  --cash: #46D39A;
  --foul: #FF5C7C;
  --cut: 18px;
  --wrap: 1120px;
  --display: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--base);
  color: var(--soft);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--call); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--pick); outline-offset: 3px; }

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

/* The cut-corner shape from the app: top right and bottom left are clipped. */
.cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.display {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--text);
  line-height: 0.95;
  margin: 0;
}
h1.display { font-size: clamp(52px, 7.4vw, 88px); }
h2.display { font-size: clamp(38px, 6vw, 68px); }
h3.display { font-size: 28px; line-height: 1; }

.label {
  font: 800 14px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--call);
  margin: 0 0 14px;
}

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10,12,16,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { font: 900 24px/1 var(--display); font-style: italic; text-transform: uppercase; color: var(--text); }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--soft); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); border-bottom-color: var(--pick); }

/* ---------- ball button: leather, with the seams ---------- */
.ball {
  --seams: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 64' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%231A0E09' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M30 0 Q58 32 30 64'/%3E%3Cpath d='M290 0 Q262 32 290 64'/%3E%3Cpath d='M0 32 H20' /%3E%3Cpath d='M300 32 H320'/%3E%3C/g%3E%3C/svg%3E");
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 64px;
  background: var(--seams) center / 100% 100% no-repeat, var(--ball);
  color: var(--ball-ink);
  font: 900 24px/1 var(--display); font-style: italic; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; border: 0; cursor: pointer;
}
.ballwrap { display: inline-block; filter: drop-shadow(0 6px 0 #B4421F); transition: transform .12s ease, filter .12s ease; }
.ballwrap:hover { transform: translateY(2px); filter: drop-shadow(0 4px 0 #B4421F); }
.ballwrap:active { transform: translateY(6px); filter: drop-shadow(0 0 0 #B4421F); }
.ball:hover { color: var(--ball-ink); }

.chip {
  display: inline-block; padding: 9px 16px; background: var(--raised); color: var(--text);
  font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  --cut: 10px;
}
.chip.blue { background: var(--pick); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 760'%3E%3Cg fill='none' stroke='%232B3440' stroke-width='3'%3E%3Crect x='60' y='40' width='680' height='700'/%3E%3Crect x='250' y='40' width='300' height='330'/%3E%3Ccircle cx='400' cy='370' r='110'/%3E%3Cpath d='M130 40 V150 A290 290 0 0 0 670 150 V40'/%3E%3Cpath d='M350 90 H450'/%3E%3Ccircle cx='400' cy='112' r='18'/%3E%3C/g%3E%3C/svg%3E") right -120px top 0 / 760px no-repeat;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero p.lede { font-size: 20px; max-width: 34em; margin: 24px 0 32px; color: var(--soft); }
.hero .row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero .fine { margin-top: 26px; font-size: 15px; color: var(--soft); max-width: 32em; }
.hero .fine b { color: var(--text); font-weight: 600; }

.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 270px; border-radius: 38px; border: 1px solid var(--line); background: var(--base);
  box-shadow: 0 2px 6px rgba(2,6,14,.6), 0 28px 60px rgba(2,10,30,.55); overflow: hidden; }
.phone img { width: 100%; }
.phone.a { left: 0; top: 0; z-index: 2; width: 260px; }
.phone.b { right: 0; top: 90px; width: 240px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--card); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .shot { order: -1; }
.split p { max-width: 32em; }
.shot { display: flex; justify-content: center; }
.shot .phone { position: relative; width: min(300px, 100%); }

/* the seven weekly choices, set big */
.week { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; }
.week span { font: 900 clamp(34px, 5.4vw, 64px)/1.02 var(--display); font-style: italic; text-transform: uppercase; color: var(--text); }
.week span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

/* where you start */
.starts { margin-top: 40px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tabs { display: grid; gap: 8px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; padding: 16px 18px; background: var(--raised); color: var(--soft);
  font: 800 22px/1 var(--display); font-style: italic; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; --cut: 12px; }
.tab small { font: 700 15px/1 var(--body); font-style: normal; text-transform: none; color: var(--soft); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--pick); color: var(--text); }
.tab[aria-selected="true"] small { color: var(--text); }
.tab:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
.panel { background: var(--base); padding: 30px 32px 34px; min-height: 100%; --cut: 22px; }
.panel[hidden] { display: none; }
.panel h3 { margin-bottom: 4px; }
.panel .age { color: var(--call); font-weight: 700; margin: 0 0 18px; }
.panel ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.panel li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.panel li.up::before { content: "+"; color: var(--cash); font-weight: 900; }
.panel li.down::before { content: "\2212"; color: var(--foul); font-weight: 900; }
.panel .tag { margin-top: 20px; font-size: 15px; }

/* off the court */
.list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list b { font: 800 22px/1.1 var(--display); font-style: italic; text-transform: uppercase; color: var(--text); }
.money { color: var(--cash); font-weight: 700; }

/* ads and purchases */
.honest { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.honest .big { font: 900 clamp(34px, 4.6vw, 54px)/1 var(--display); font-style: italic; text-transform: uppercase; color: var(--text); margin: 0 0 18px; }
.honest .big em { font-style: italic; color: var(--ball); }
.never { padding: 28px 30px; background: var(--base); --cut: 22px; }
.never h3 { margin-bottom: 14px; }
.never p { margin: 0 0 12px; }

/* end band */
.end { text-align: left; padding: 96px 0; position: relative; overflow: hidden; }
.end::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: repeating-linear-gradient(90deg, #12161C 0 220px, #151A21 220px 410px, #10141A 410px 640px, #181E26 640px 810px); opacity: .9; }
.end .wrap { position: relative; }

/* ---------- article pages ---------- */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: 8px; }
.doc .meta { color: var(--soft); margin: 0 0 40px; }
.doc h2 { font: 900 32px/1 var(--display); font-style: italic; text-transform: uppercase; color: var(--text); margin: 48px 0 12px; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 700; }
.callout { background: var(--card); padding: 20px 24px; margin: 24px 0; border-left: 4px solid var(--pick); }
.callout p { margin: 0; }

details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; color: var(--text); font-weight: 650; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 28px/1 var(--body); color: var(--call); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; }

form { display: grid; gap: 16px; margin-top: 20px; }
label { color: var(--text); font-weight: 600; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pick); outline-offset: 0; border-color: var(--pick); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; background: var(--base); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--soft); }
footer a:hover { color: var(--text); }
footer p { margin: 0; font-size: 15px; max-width: 38em; }

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .hero .wrap, .split, .honest, .starts { grid-template-columns: 1fr; }
  .split.flip .shot { order: 0; }
  .phones { height: 520px; max-width: 460px; margin: 8px auto 0; width: 100%; }
  .phone { width: 220px; border-radius: 32px; }
  .phone.b { width: 204px; top: 70px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab { font-size: 19px; flex-direction: column; gap: 6px; }
  .list li { grid-template-columns: 1fr; gap: 2px; }
  section { padding: 60px 0; }
  .top nav { gap: 16px; }
  .hero::before { background-position: right -260px top 120px; }
}
@media (max-width: 480px) {
  .top nav a:nth-child(1) { display: none; }
  .ball { padding: 0 44px; font-size: 22px; }
}
