/* Gapper landing page. Carbon and alloy: the look of a composite slow-pitch bat. Same tokens as the app
   (src/app/globals.css): carbon #0b0c0e, graphite panels, brushed alloy accents, one electric lime for the ball. */

@font-face { font-family: "Chivo"; src: url("/site/fonts/chivo-normal-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Chivo"; src: url("/site/fonts/chivo-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --carbon: #0b0c0e;
  --graphite: #141619;
  --graphite-2: #1b1e22;
  --graphite-3: #262a2f;
  --line: #212429;
  --line-2: #30353b;
  --white: #ffffff;
  --text-2: #c6cace;
  --steel: #8d939a;
  --alloy: #b9bfc5;
  --lime: #c4f135;
  --lime-2: #d3f76a;
  --red: #ef4b47;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--carbon); scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--white);
  font-family: "Chivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--carbon); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--carbon); }

/* ------------------------------------------------------------ shared pieces */
.carbon {
  background:
    radial-gradient(80% 60% at 18% -12%, rgb(230 236 242 / 0.09), transparent 60%),
    radial-gradient(60% 50% at 92% -10%, rgb(230 236 242 / 0.05), transparent 60%),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.022) 0 3px, rgb(255 255 255 / 0) 3px 6px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 0.28) 0 3px, rgb(0 0 0 / 0) 3px 6px),
    linear-gradient(180deg, #17191c 0%, #0b0c0e 100%);
}
.alloy-text {
  background: linear-gradient(100deg, #9ba2a9 0%, #f1f3f5 40%, #a9b0b7 60%, #e2e5e8 82%, #8d949b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 8px;
  background: var(--lime); color: var(--carbon);
  font-weight: 850; font-style: italic; text-transform: uppercase; letter-spacing: 0.03em; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 30px -16px rgb(196 241 53 / 0.6);
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--lime-2); }
.btn:active { transform: scale(0.98); }
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.04); border-color: rgb(185 191 197 / 0.6); }
.btn-ghost:hover span { transform: translateY(3px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 16px; }
.ball { display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--lime); margin-left: 0.06em; vertical-align: baseline; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-lime { background: var(--lime); }
.dot-white { background: var(--white); }
.dot-red { background: var(--red); }
.dot-alloy { background: var(--alloy); }
.dot-ring { border: 1.5px solid var(--text-2); }
.muted { color: var(--steel); }
/* "Built for slowpitch." is always lime so it stands out. */
.lime { color: var(--lime); }
.h2 { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.98; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); max-width: 18ch; }
.lede { margin-top: 18px; max-width: 60ch; color: var(--text-2); font-size: 17px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .reduce .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------ top bar */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  background: rgb(11 12 14 / 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(214 220 226 / 0.25) 30%, rgb(214 220 226 / 0.08) 80%, transparent); }
.bar-logo img { height: 30px; width: auto; }
.bar-nav { display: none; gap: 24px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.bar-nav a { text-decoration: none; }
.bar-nav a:hover { color: var(--white); }
.bar .btn { margin-left: auto; }
@media (min-width: 860px) { .bar-nav { display: flex; } .bar .btn { margin-left: 8px; } }
@media (max-width: 380px) { .bar .btn { font-size: 12px; padding: 0 10px; } .bar-logo img { height: 26px; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 28px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; min-height: min(78vh, 760px); padding-top: 20px; } }
.sport { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-2); background: rgb(20 22 25 / 0.7); }
.hero-h1 {
  margin-top: 18px;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(3rem, 1.3rem + 6.2vw, 6.1rem); line-height: 0.88; letter-spacing: -0.025em;
}
.hero-h1 span { display: block; }
.hero-h1 .l2 { color: var(--white); }
.hero-h1 .l1 { color: #9a9fa5; }
.hero-sub { margin-top: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem); letter-spacing: 0.01em; line-height: 1; }
.hero-p { margin-top: 16px; max-width: 46ch; color: var(--text-2); font-size: 17px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 520px) { .ctas .btn { flex: 1 1 100%; } }
.not { margin-top: 18px; font-size: 13px; color: var(--steel); max-width: 52ch; }
.not b { color: var(--text-2); font-weight: 700; }

.stage {
  position: relative; margin: 0; width: 100%;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #15171a, #0d0e10);
  border: 1px solid rgb(255 255 255 / 0.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 40px 80px -40px rgb(0 0 0 / 0.9);
}
.stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, rgb(214 220 226 / 0.5), rgb(214 220 226 / 0.05) 60%, transparent); z-index: 2; }
.stage-art { position: relative; width: 100%; aspect-ratio: 400 / 420; max-height: 70vh; overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .swing { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-cap { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.stage-cap span { display: inline-flex; align-items: center; gap: 6px; }
.stage-cap .muted { flex-basis: 100%; }

.leagues { margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(11 12 14 / 0.7); }
.leagues-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 14px; padding-bottom: 14px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 14px; letter-spacing: 0.02em; color: var(--text-2); }
.leagues-k { color: var(--steel); font-weight: 600; font-style: normal; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ------------------------------------------------------------ slow pitch is its own swing */
.own { padding-top: 96px; padding-bottom: 40px; }
.ledger { list-style: none; margin: 44px 0 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .ledger li { grid-template-columns: 260px 1fr; gap: 32px; align-items: baseline; } }
.ledger .big { font-weight: 900; font-style: italic; font-size: clamp(3.2rem, 2.4rem + 3vw, 5rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ledger .big small { font-size: 0.32em; letter-spacing: 0; margin-left: 6px; color: var(--steel); font-style: normal; font-weight: 700; text-transform: uppercase; }
.ledger h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.ledger p { margin-top: 6px; color: var(--text-2); max-width: 58ch; }
.ledger li:nth-child(3) .big { color: var(--lime); }

/* ------------------------------------------------------------ record analyze improve */
.loop { padding: 80px 0 40px; }
.loop-title { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.86; font-size: clamp(3rem, 1rem + 9vw, 9rem); }
.loop-title span { display: block; }
.loop-title span:nth-child(1) { color: #5d6268; }
.loop-title span:nth-child(2) { color: #9a9fa5; }
.pillar { display: grid; gap: 18px; padding-top: 56px; padding-bottom: 20px; }
@media (min-width: 900px) { .pillar { grid-template-columns: 320px 1fr; gap: 48px; padding-top: 80px; } }
.pillar-word { position: relative; }
@media (min-width: 900px) { .pillar-word { position: sticky; top: 90px; align-self: start; } }
.pillar-word h3 { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4rem); line-height: 0.9; letter-spacing: -0.02em; }
.pillar-word h3::after { content: ""; display: block; margin-top: 14px; height: 4px; width: 64px; border-radius: 2px; background: var(--lime); }
.pillar-lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.4; max-width: 40ch; font-weight: 500; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; max-width: 62ch; }
.ticks li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 3px; background: var(--alloy); opacity: 0.6; }
.ticks b { color: var(--white); font-weight: 800; }
.cage { margin-top: 26px; width: 100%; max-width: 560px; height: auto; }

.read {
  margin-top: 24px; border-radius: 14px; padding: 18px;
  background: linear-gradient(180deg, #181a1e, #121417) padding-box,
              linear-gradient(180deg, rgb(214 220 226 / 0.42), rgb(255 255 255 / 0.07) 22%, rgb(255 255 255 / 0.04)) border-box;
  border: 1px solid transparent;
}
@media (min-width: 720px) { .read { padding: 24px; } }
.read-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.read-k { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 18px; }
.read-note { margin-top: 4px; font-size: 13px; color: var(--steel); max-width: 30ch; }
.score { display: flex; align-items: flex-end; gap: 8px; }
.score span:last-child { font-size: 12px; line-height: 1.15; color: var(--steel); font-weight: 700; padding-bottom: 6px; }
.jumbo { font-weight: 900; font-style: italic; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: 0.86; font-size: clamp(3.4rem, 2.6rem + 3vw, 5rem); }
.jumbo.sm { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); color: var(--lime); }
.read-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 640px) { .read-grid { grid-template-columns: minmax(150px, 0.7fr) 1.3fr; align-items: start; } }
.swing-sm { width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; background: #0d0e10; border: 1px solid var(--line); }
.gapline { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.gapline > span:last-child { font-size: 15px; font-weight: 700; }
.gapline em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--steel); margin-top: 3px; }
.bars { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 112px 1fr 38px; align-items: center; gap: 10px; font-size: 14px; }
.bars li > span { color: var(--text-2); }
.bars i { height: 6px; border-radius: 3px; background: var(--graphite-3); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v, 0) * 1%); background: var(--white); border-radius: 3px; transform-origin: left; transform: scaleX(var(--grow, 1)); transition: transform 1.1s cubic-bezier(.3,.7,.2,1); }
.bars li:first-child i::after { background: var(--lime); }
.bars .low i::after { background: var(--red); }
.bars .na i { background-image: repeating-linear-gradient(135deg, rgb(198 202 206 / 0.14) 0 2px, transparent 2px 7px); }
.bars .na i::after { display: none; }
.bars b { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.bars .na b { color: var(--steel); font-weight: 600; }
.bars em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--steel); margin-top: -4px; }
.reveal:not(.in) .bars i::after { --grow: 0; }

.fix { margin-top: 24px; padding: 18px 18px 18px 22px; border-radius: 12px; background: var(--graphite); border: 1px solid var(--line); position: relative; max-width: 640px; }
.fix::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 2px 2px 0; background: var(--red); }
.fix-k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--steel); font-weight: 700; }
.fix-t { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.fix-d { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.fix-d b { color: var(--white); }

/* ------------------------------------------------------------ measures */
.measures { padding-top: 96px; padding-bottom: 96px; }
.table-wrap { margin-top: 36px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line-2); }
.mtable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 0; }
.mtable th, .mtable td { text-align: left; vertical-align: top; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.mtable thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); font-weight: 700; padding-top: 12px; padding-bottom: 12px; }
.mtable tbody th { font-weight: 800; width: 30%; }
.mtable td { color: var(--text-2); }
.mtable td:last-child { white-space: nowrap; width: 1%; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12.5px; font-weight: 700; color: var(--white); }
@media (max-width: 640px) {
  .mtable thead { display: none; }
  .mtable, .mtable tbody, .mtable tr, .mtable th, .mtable td { display: block; width: 100%; }
  .mtable tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mtable th, .mtable td { border: 0; padding: 0; }
  .mtable tbody th { width: 100%; }
  .mtable td { margin-top: 6px; }
  .mtable td:last-child { width: auto; margin-top: 10px; }
}

/* ------------------------------------------------------------ close + footer */
.close { padding: 88px 0; border-top: 1px solid var(--line); }
.close-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 820px) { .close-grid { grid-template-columns: auto 1fr; gap: 64px; } }
.tag-img { width: 180px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.6)); }
@media (min-width: 820px) { .tag-img { width: 230px; } }
.close-h { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(3rem, 1.4rem + 6.6vw, 7rem); line-height: 0.88; letter-spacing: -0.03em; }
.close-sub { margin-top: 14px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1; }
.close-p { margin-top: 18px; color: var(--text-2); font-size: 17px; max-width: 46ch; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); color: var(--steel); font-size: 13px; }
.foot img { height: 26px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }
@media (max-width: 639px) { .swing-sm { aspect-ratio: auto; height: 260px; } }
