/*
 * drilldownsports.com -- the public site. Served by Cloudflare Pages from this
 * folder; nothing here is the application, which is app.drilldownsports.com.
 *
 * Drilldown's own crimson and inks, the app's palette, so a coach who arrives
 * here and signs in does not feel they have changed companies.
 */
:root {
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #14181f;
  --ink-2: #4a5563;
  --ink-3: #6b7480;
  --line: #e2e5ea;
  --field: #1b2230;
  --field-ink: #eef1f5;
  --field-line: rgba(238, 241, 245, 0.18);
  --chalk: #eef1f5;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151c;
    --surface: #181e27;
    --ink: #eef1f5;
    --ink-2: #b7c0cc;
    --ink-3: #8b95a3;
    --line: #2a323e;
    --field: #0b0f15;
  }
}
:root[data-theme="dark"] {
  --bg: #11151c;
  --surface: #181e27;
  --ink: #eef1f5;
  --ink-2: #b7c0cc;
  --ink-3: #8b95a3;
  --line: #2a323e;
  --field: #0b0f15;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }

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

/* ---------- Top bar ---------- */
.top { background: var(--field); color: var(--field-ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
/* The name: DRILL in the ground's colour, DOWN in the brand red, as in the app. */
.brand .wordmark { font: 800 26px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.brand .wordmark span { color: #c8102e; }
/*
 * The Drilldown Sports lockup, the home page's: as the app's sidebar (its
 * styles.css, .brand-lockup.has-sports). All in em of the name's type size:
 * the tile 1em square, its top level with the top of DRILLDOWN's line, which at
 * line-height .9 centres it on the capitals; SPORTS under DRILL at a third of
 * the size, spread from the D to the second L.
 */
.brand.has-sports { align-items: flex-start; gap: 0.21em; font-size: 30px; }
.brand.has-sports svg { width: 1em; height: 1em; }
.brand.has-sports .wordmark {
  display: inline-grid; grid-template-columns: auto auto; row-gap: 0.096em;
  font-size: 1em; line-height: 0.9; letter-spacing: 0.03em; white-space: nowrap;
}
.brand.has-sports .wordmark b { font-weight: inherit; }
/* DRILL's box ends with the tracking after its L; the margin takes it back so SPORTS ends at the L. */
.brand.has-sports .wordmark .wm-sports {
  grid-column: 1; display: flex; justify-content: space-between; margin-right: 0.03em;
  line-height: 1; color: color-mix(in srgb, currentColor 72%, transparent);
}
.wm-sports i { font: normal 600 0.327em/1 var(--display); letter-spacing: 0; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: var(--field-ink); text-decoration: none; opacity: 0.85; }
.top nav a:hover { opacity: 1; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1 var(--body); text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.top .button { padding: 9px 16px; font-size: 15px; opacity: 1; }

/* ---------- Hero: the chalkboard ---------- */
.hero { background: var(--field); color: var(--field-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 56px 72px; }
.hero h1 {
  margin: 0 0 18px;
  font: 700 clamp(44px, 7vw, 76px)/0.95 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0 0 28px; max-width: 34em; font-size: 19px; color: rgba(238, 241, 245, 0.82); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* The trial's terms, under its button. */
.hero .trial-terms { margin: 14px 0 0; font-size: 15px; color: rgba(238, 241, 245, 0.7); }
.hero .trial-terms a { color: inherit; }
.board { width: 100%; height: auto; }
.board .chalk { stroke: var(--chalk); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.board .route { stroke: var(--accent); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.board .yard { stroke: var(--field-line); stroke-width: 1.5; }
.board text { fill: var(--chalk); font: 700 15px var(--display); letter-spacing: 0.04em; }
@media (prefers-reduced-motion: no-preference) {
  .board .route { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.6s 0.3s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* The hero's picture: a week of one team's calendar, for any sport. */
.hero .eyebrow { margin-bottom: 14px; }
.week {
  background: rgba(238, 241, 245, 0.06); border: 1px solid var(--field-line); border-radius: 12px;
  padding: 6px 0 0; font-size: 15px; color: var(--field-ink);
}
.week-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px 12px;
  font: 700 14px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(238, 241, 245, 0.6);
}
.week-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--field-line);
}
.week-row.game { background: rgba(200, 16, 46, 0.12); box-shadow: inset 3px 0 0 var(--accent); }
.week .when { font-size: 13.5px; color: rgba(238, 241, 245, 0.7); line-height: 1.25; }
.week .when b { display: block; font: 700 20px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--field-ink); }
.week .what { font-weight: 600; line-height: 1.3; min-width: 0; }
.week .what small { display: block; font-weight: 400; font-size: 13.5px; color: rgba(238, 241, 245, 0.62); }
.week .repeat { font-weight: 400; font-size: 13px; color: rgba(238, 241, 245, 0.6); margin-left: 4px; }
.week .who { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.rsvp, .att { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.rsvp.go { background: rgba(76, 193, 119, 0.18); color: #7ddf9e; }
.rsvp.maybe { background: rgba(233, 184, 98, 0.18); color: #f0c97e; }
.rsvp.no { background: rgba(242, 133, 122, 0.18); color: #f6a197; }
.att { background: rgba(238, 241, 245, 0.1); color: var(--field-ink); }
.week-sent {
  margin-top: 0; padding: 12px 18px; border-top: 1px solid var(--field-line);
  font-size: 14px; color: rgba(238, 241, 245, 0.75); border-radius: 0 0 12px 12px;
}

/* Every sport, by name. */
.sports { padding-block: 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sports .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; }
.sports p { margin: 0; font: 700 14px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.sports ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.sports li { display: flex; align-items: center; font: 700 21px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Sections ---------- */
section { padding-block: 64px; }
.eyebrow { margin: 0 0 6px; font: 700 14px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 0 0 14px; font: 700 clamp(32px, 4.4vw, 46px)/1.02 var(--display); text-transform: uppercase; text-wrap: balance; }
.lead { margin: 0 0 32px; max-width: 40em; color: var(--ink-2); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features.four { grid-template-columns: repeat(4, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 18px; }
.feature h3 { margin: 0 0 8px; font: 700 23px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.feature p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; }
.feature li { margin-bottom: 4px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .feature { background: var(--bg); }
.price-line { margin: 22px 0 0; font-size: 17px; color: var(--ink-2); }
.price-line strong { color: var(--ink); }

/* Football: the pitch beside the chalkboard, then what the film plans add. */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 28px; }
.split .lead { margin-bottom: 0; }
h2 em { font-style: normal; color: var(--accent); }
#film .board { background: var(--field); border-radius: 12px; padding: 10px; }

/* Plans: a depth chart, best read top to bottom. */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
/* A column, so each plan's off-season rate sits on one line across the bottom. */
.plan { padding: 22px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan h3 { margin: 0; font: 700 26px/1 var(--display); text-transform: uppercase; }
.plan .price { margin: 10px 0 0; font-size: 15px; color: var(--ink-3); }
.plan .price span { font: 700 34px/1 var(--display); color: var(--ink); letter-spacing: 0.01em; }
.plan .yearly { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.plan .yearly strong { color: var(--ink); }
.plan .adds { margin: 6px 0 12px; font-size: 14px; color: var(--ink-3); }
.plan .off { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.plan ul { margin: 0 0 14px; padding-left: 18px; font-size: 15.5px; color: var(--ink-2); }
/* The plan the page points people to. */
.plan.featured h3 { color: var(--accent); }
/* Each plan's trial button, across the bottom under its off-season rate. */
.plan .plan-go { margin-top: 14px; justify-content: center; }
.plan .plan-go.ghost { color: var(--ink); }
/* Basic: the plan for every sport, so it says so. */
.plan.every h3 { color: var(--accent); }
.plan.every .adds { color: var(--accent); font-weight: 600; }
/* And the sport the film plans are for, in the same red. */
.plan .adds .sport { color: var(--accent); font-weight: 600; }
/* Who pays: the subscriber only; everyone they add is free. */
.free-team { margin: 18px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; }
.free-team h3 { margin: 0 0 8px; font: 700 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.free-team h3 em { font-style: normal; color: var(--accent); }
.free-team p { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.free-team ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.free-team li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 600; color: var(--ink); }
.free-team .fine { font-size: 15px; color: var(--ink-3); }
.note { margin: 14px 0 0; font-size: 15px; color: var(--ink-3); }
.note + .note { margin-top: 6px; }

.cta { text-align: center; }
.cta .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
footer { background: var(--field); color: rgba(238, 241, 245, 0.75); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; }
footer a { color: var(--field-ink); }

/* ---------- The privacy policy: a document, read top to bottom ---------- */
.doc { background: var(--surface); }
.doc .wrap { max-width: 760px; padding-block: 48px 72px; }
.doc h1 { margin: 0 0 6px; font: 700 clamp(38px, 6vw, 54px)/1 var(--display); text-transform: uppercase; }
.doc .updated { margin: 0 0 32px; color: var(--ink-3); font-size: 15px; }
.doc h2 { margin: 40px 0 10px; font-size: 28px; }
.doc h3 { margin: 22px 0 6px; font: 600 18px/1.3 var(--body); }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 8px 0 18px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink); }
.doc .table-wrap { overflow-x: auto; }

@media (max-width: 1000px) {
  .features.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 48px; }
  .board { max-width: 460px; }
  .features, .features.four { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
  .top nav .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
}
