/* ==========================================================================
   Diski: diski.app
   Tokens → base → components → sections → responsive
   ========================================================================== */

:root {
  /* colour */
  --pitch: #111111;      /* deep field charcoal */
  --pitch-2: #1a1a1a;    /* raised surface on dark */
  --line-dark: #2c2c2c;
  --chalk: #f5f6f4;      /* crisp white surface */
  --chalk-2: #e6e8e4;
  --line-light: #cfd3cc;
  --ink: #111111;
  --ink-muted: #5c615a;
  --fog: #a3a8a0;        /* muted text on dark */
  --green: #00d06b;      /* pitch green, matches the app's brand colour */
  --green-deep: #0e7c4b;
  --yellow: #f2e205;     /* tactical hi-vis, used sparingly */
  --red: #ff4d3d;

  /* type */
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, Consolas, monospace;

  /* space + shape */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --tap: 48px;           /* minimum touch target */
  --r-sm: 4px;
  --r-md: 8px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pitch);
  color: var(--chalk);
  font: 500 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 16px; }

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

/* ---------- buttons + chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px;
  border: 2px solid transparent; border-radius: var(--r-sm);
  font: 800 16px/1 var(--ui); text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--sm { min-height: var(--tap); padding: 0 16px; font-size: 15px; }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: #24e381; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--ghost { border-color: var(--chalk); color: var(--chalk); }
.btn--ghost:hover { background: var(--chalk); color: var(--ink); }

.chip {
  min-height: 44px; padding: 0 16px;
  border: 2px solid var(--line-light); border-radius: 999px;
  background: transparent; font-weight: 700; font-size: 14px;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.chip--dark { border-color: var(--line-dark); color: var(--fog); }
.chip--dark[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ink); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; color: var(--green);
}
.kicker--yellow { color: var(--yellow); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 8px var(--gutter);
  background: rgba(17, 17, 17, .92);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: saturate(140%) blur(8px);
}
.nav__brand img { width: 62px; height: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--fog);
}
.nav__links a:hover { color: var(--chalk); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100svh - 77px);
  padding: 64px var(--gutter) 80px;
}
.hero__photo {
  position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background:
    linear-gradient(90deg, var(--pitch) 25%, rgba(17,17,17,.35) 65%, rgba(17,17,17,.6)),
    linear-gradient(0deg, var(--pitch) 0%, transparent 35%),
    url("assets/arena.jpg") center 40% / cover no-repeat;
  filter: grayscale(1) contrast(1.5) brightness(1.15);
}
.hero__title {
  font: 400 clamp(42px, 6vw, 80px)/.92 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  margin: 20px 0 24px;
}
.hl { color: var(--green); }
.hero__lede { max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: #d8dbd5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--fog); }
.hero__device { display: flex; justify-content: center; }

/* ---------- phone mockup ---------- */
.phone {
  position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 19;
  padding: 12px; border-radius: 44px;
  background: #050505; border: 2px solid #333;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 8px #0b0b0b;
}
.phone__notch {
  position: absolute; top: 22px; left: 50%; translate: -50% 0; z-index: 2;
  width: 92px; height: 26px; border-radius: 20px; background: #050505;
}
.phone__screen {
  height: 100%; padding: 0; border-radius: 34px; overflow: hidden;
  background: var(--chalk); color: var(--ink);
}
.phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) var(--gutter); scroll-margin-top: 64px; }
.section > * { max-width: var(--max); margin-inline: auto; }
.section--light { background: var(--chalk); color: var(--ink); }
.section__head { margin-bottom: 32px; }
.section__title {
  font: 400 clamp(36px, 5.4vw, 68px)/.95 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
}
.section__sub { max-width: 52ch; margin-top: 16px; font-size: 18px; color: var(--fog); }
.section--light .section__sub { color: var(--ink-muted); }
.sample-note { margin-top: 16px; font-size: 13px; color: var(--fog); }
.section--light .sample-note { color: var(--ink-muted); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--flip { grid-template-columns: 1fr 1.1fr; }
.split__copy .kicker { margin-bottom: 16px; }

.ticks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .25em;
  width: 18px; height: 10px; border: solid var(--green-deep); border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
}

/* photography: always graded the same way so mixed sources read as one set */
.shot { margin: 32px 0 0; overflow: hidden; border-radius: var(--r-sm); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.3); }
.section--photo { position: relative; isolation: isolate; }
.section--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--pitch) 20%, rgba(17,17,17,.7) 55%, rgba(17,17,17,.55)),
    url("assets/night-pitch.webp") center 70% / cover no-repeat;
  filter: grayscale(1) contrast(1.4);
}

.empty { padding: 32px 0; color: var(--fog); }

/* ---------- join-a-match board ---------- */
.board {
  background: var(--pitch); color: var(--chalk);
  border-radius: var(--r-md); overflow: hidden;
  border-top: 6px solid var(--yellow);
}
.board__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-dark);
  font: 400 18px var(--display); text-transform: uppercase;
}
.board__filter { display: flex; flex-wrap: wrap; gap: 6px; }
.board__list { list-style: none; padding: 0; }
.match {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line-dark);
}
.match:last-child { border-bottom: 0; }
.match__time { font: 700 20px var(--mono); color: var(--green); }
.match__venue { font-weight: 800; }
.match__meta { font-size: 13px; color: var(--fog); }
.bar { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.match > div { min-width: 0; }
.bar i { width: 12px; height: 6px; border-radius: 1px; background: var(--green); }
.bar i.open { background: transparent; box-shadow: inset 0 0 0 1px var(--fog); }
.match__join {
  min-height: var(--tap); min-width: 96px; padding: 0 14px;
  border: 2px solid var(--green); border-radius: var(--r-sm);
  background: transparent; font-weight: 800; color: var(--green);
}
.match__join[aria-pressed="true"] { background: var(--green); color: var(--ink); }

/* ---------- inside the app: screenshot reel + features ---------- */
.reel {
  list-style: none; padding: 0 0 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.reel__item { scroll-snap-align: start; }
.reel__item img {
  width: 100%; height: auto; aspect-ratio: 9 / 16;
  border-radius: 22px; border: 6px solid #050505;
  box-shadow: 0 0 0 1px #333, 0 24px 48px -16px rgba(0,0,0,.8);
  background: var(--chalk);
}
.reel__item p { margin-top: 14px; font-size: 14px; color: var(--fog); max-width: 30ch; }
.reel__item strong { color: var(--chalk); }

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px;
  margin-top: clamp(48px, 7vw, 80px);
}
.features div { border-top: 2px solid var(--green); padding-top: 14px; }
.features dt { font-weight: 800; font-size: 17px; }
.features dd { margin-top: 6px; font-size: 15px; color: var(--fog); }

/* ---------- venue manager dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stats div { border-top: 2px solid var(--line-dark); padding-top: 12px; }
.stats dt { font-size: 13px; color: var(--fog); }
.stats dd { font-weight: 800; }

.dash {
  background: var(--chalk); color: var(--ink);
  border-radius: var(--r-md); padding: 20px;
  box-shadow: 12px 12px 0 var(--yellow);
}
.dash__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dash__title { font: 400 20px var(--display); text-transform: uppercase; }
.dash__week { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.dash__kpis div {
  padding: 10px 12px; background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-muted);
}
.dash__kpis .mono { display: block; font-size: 22px; font-weight: 700; color: var(--ink); }

.cal { display: grid; grid-template-columns: 52px repeat(4, 1fr); gap: 4px; font-size: 12px; }
.cal__h { padding: 6px 4px; font-weight: 800; text-align: center; }
.cal__t { padding: 0 4px; align-self: center; font: 700 12px var(--mono); color: var(--ink-muted); }
.cal__c {
  min-height: 34px; padding: 6px 8px; border-radius: var(--r-sm);
  font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.cal__c--booked { background: var(--ink); color: var(--chalk); }
.cal__c--weekly { background: var(--green); color: var(--ink); }
.cal__c--open { background: transparent; border: 2px dashed var(--line-light); color: var(--ink-muted); }
.dash__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--ink-muted); }
.dash__legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 3px; }
.sw--booked { background: var(--ink); }
.sw--weekly { background: var(--green); }
.sw--open { border: 2px dashed var(--line-light); }

/* ---------- closer + footer ---------- */
.closer {
  position: relative; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  min-height: 420px; padding: 56px var(--gutter);
}
.closer__photo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.2) 70%),
    url("assets/floodlight-match.jpg") center 60% / cover no-repeat;
  filter: grayscale(1) contrast(1.35);
}
.closer__title { font: 400 clamp(32px, 5vw, 60px)/.95 var(--display); text-transform: uppercase; }
.closer__title::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 16px; background: var(--green); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 32px var(--gutter); font-size: 14px; color: var(--fog);
}
.foot strong { color: var(--chalk); }
.foot a { color: var(--chalk); }
.foot__small { margin-left: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- about page ---------- */
.page { padding: clamp(48px, 8vw, 96px) var(--gutter); }
.page > * { max-width: 760px; margin-inline: auto; }
.page h1 { font: 400 clamp(36px, 6vw, 64px)/.95 var(--display); text-transform: uppercase; }
.page h2 { font: 400 clamp(22px, 3vw, 28px)/1.05 var(--display); text-transform: uppercase; margin-top: 48px; }
.page p, .page li { color: var(--fog); font-size: 17px; line-height: 1.6; margin-top: 14px; }
.page ul { padding-left: 20px; }
.page a { color: var(--green); }
.page strong { color: var(--chalk); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin-top: 18px; font-size: 16px; }
.facts dt { color: var(--fog); }
.facts dd { margin: 0; color: var(--chalk); }
.legal h2 { font-size: clamp(18px, 2.4vw, 22px); margin-top: 40px; scroll-margin-top: 80px; }
.legal__toc { columns: 2 220px; margin-top: 24px; padding: 16px 16px 16px 36px; border: 1px solid var(--line-dark); border-radius: var(--r-md); }
.legal__toc li { margin-top: 6px; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero__photo {
    background:
      linear-gradient(0deg, var(--pitch) 10%, rgba(17,17,17,.6) 60%, rgba(17,17,17,.85)),
      url("assets/arena.jpg") center / cover no-repeat;
  }
  .split, .split--flip { grid-template-columns: 1fr; }
  .reel { grid-auto-columns: 46%; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__cta .btn { flex: 1 1 100%; }
  .match { grid-template-columns: 1fr auto; padding: 16px; }
  .match__time { grid-column: 1 / -1; font-size: 18px; }
  .reel { grid-auto-columns: 72%; }
  .features { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stats div { display: flex; justify-content: space-between; padding: 12px 0; }
  .dash { padding: 14px; box-shadow: 8px 8px 0 var(--yellow); }
  .cal { grid-template-columns: 44px repeat(4, minmax(0, 1fr)); }
  .cal__c { padding: 6px 4px; font-size: 11px; }
  .foot__small { margin-left: 0; }
}
