/* ClubTools marketing site. Colors are a pickleball court: green surround, blue court, lighter kitchen, white lines, optic-yellow ball. */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-wdth.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/atkinson-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/atkinson-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/atkinson-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --surround: #2F6B4F;
  --surround-deep: #234F3B;
  --court: #2A5FA8;
  --kitchen: #3E7CC9;
  --ball: #E2EE4C;
  --ball-press: #CEDB2E;
  --ink: #17304F;
  --ink-soft: #4A5D75;
  --paper: #F5F7F2;
  --card: #FFFFFF;
  --rule: #D6DDD3;
  --line: #FFFFFF;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--court); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 6px var(--ink); }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.1vw, 3.5rem); font-weight: 850; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 105%; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ball); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-block; font: 700 1.05rem/1 var(--body); text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer;
}
.btn:hover { background: var(--court); border-color: var(--court); color: #fff; }
.btn-small { padding: 10px 18px; font-size: .95rem; }
.btn-ball { background: var(--ball); color: var(--ink); border-color: var(--ink); }
.btn-ball:hover { background: var(--ball-press); color: var(--ink); border-color: var(--ink); }

/* Nav */
.nav { background: var(--surround); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.35rem/1 var(--display); font-stretch: 115%; }
.logo:hover { color: #fff; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav-links a:hover { text-decoration: underline; color: #fff; }
.nav .btn-small { background: var(--ball); color: var(--ink); border-color: var(--ball); }
.nav .btn-small:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn-small { margin-left: auto; } }

/* Hero: the page opens on a court seen from above */
.hero { background: var(--surround); padding: 28px 0 72px; }
.court {
  display: grid;
  grid-template-columns: minmax(0, 16fr) minmax(0, 5fr) minmax(0, 5fr) minmax(0, 16fr);
  border: 4px solid var(--line);
  background: var(--court);
  color: #fff;
  position: relative;
}
.court-half { position: relative; padding: clamp(28px, 4vw, 56px); display: flex; align-items: center; }
/* the centerline runs from the baseline to the kitchen line */
.court-half::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: var(--line); transform: translateY(-50%); }
.court-copy, .board { position: relative; }
.court-copy { max-width: 34rem; }
/* in the left court the centerline only shows at the baseline and kitchen ends, so it never crosses the copy */
.court-left::before { background: linear-gradient(90deg, var(--line) 0 28px, transparent 28px calc(100% - 28px), var(--line) calc(100% - 28px)); }
.kitchen { background: var(--kitchen); border-left: 3px solid var(--line); }
.court-left + .kitchen { border-left: 3px solid var(--line); }
.net { display: none; }
.kitchen + .net + .kitchen { border-left: 0; box-shadow: inset 6px 0 0 #0E1E33; }
.court-right { border-left: 3px solid var(--line); }
/* net posts sit just outside the sidelines */
.court::before, .court::after { content: ""; position: absolute; left: calc(50% - 5px); width: 10px; height: 10px; background: #0E1E33; border-radius: 50%; }
.court::before { top: -14px; }
.court::after { bottom: -14px; }

.status { display: inline-block; font-size: .95rem; font-weight: 700; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lede { font-size: 1.2rem; max-width: 33rem; color: #E9F0FA; }
.fine { font-size: .95rem; color: inherit; opacity: .85; margin: 12px 0 0; }

/* Open-play board inside the right service court */
.board { margin: 0; width: 100%; max-width: 25rem; margin-inline: auto; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 20px 22px; box-shadow: 0 18px 40px rgba(10, 30, 55, .35); }
.board figcaption { display: flex; flex-direction: column; border-bottom: 2px solid var(--rule); padding-bottom: 12px; margin-bottom: 8px; }
.board-title { font: 800 1.25rem/1.15 var(--display); font-stretch: 108%; }
.board-meta { font-size: .95rem; color: var(--ink-soft); }
.board-courts { list-style: none; margin: 0; padding: 0; }
.board-courts li { display: grid; grid-template-columns: 4.8rem 1fr; column-gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cn { font-weight: 700; color: var(--court); font-size: .95rem; }
.players { transition: opacity .35s ease; }
.score { grid-column: 2; font-size: .9rem; font-weight: 700; color: var(--surround); }
.stack { display: grid; grid-template-columns: 4.8rem 1fr; column-gap: 10px; padding: 12px 0 4px; font-size: .98rem; align-items: baseline; }
.stack-label { font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.stack-names { transition: opacity .35s ease; }
.board-rsvp { margin: 10px 0 0; font-size: .95rem; background: #EEF5D0; padding: 8px 12px; border-radius: 4px; }
.is-swapping { opacity: 0; }

/* On phones the court turns to portrait, the way you'd see it standing at the baseline */
@media (max-width: 900px) {
  .hero { padding: 20px 0 48px; }
  .court { grid-template-columns: 1fr; grid-template-rows: auto 44px 44px auto; }
  .court-half { padding: 28px 20px; }
  .court-half::before { top: 0; bottom: 0; left: 50%; right: auto; width: 3px; height: auto; transform: translateX(-50%); }
  .kitchen, .court-left + .kitchen, .court-right { border-left: 0; }
  .kitchen { border-top: 3px solid var(--line); }
  .kitchen + .net + .kitchen { box-shadow: inset 0 6px 0 #0E1E33; }
  .court-right { border-top: 3px solid var(--line); }
  .court::before, .court::after { display: none; }
  .court-left::before { background: linear-gradient(180deg, var(--line) 0 18px, transparent 18px calc(100% - 18px), var(--line) calc(100% - 18px)); }
}

/* The routine */
.pain { padding: 88px 0 72px; }
.pain-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.pain-list li { padding: 20px 28px 8px 0; font-size: 1.08rem; }
.pain-list li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.pain-list strong { display: block; font-family: var(--display); font-stretch: 105%; font-size: 1.2rem; margin-bottom: 6px; }
.pain-turn { font: 750 clamp(1.3rem, 2.2vw, 1.6rem)/1.3 var(--display); font-stretch: 105%; max-width: 36ch; color: var(--court); }
@media (max-width: 800px) {
  .pain { padding: 64px 0 48px; }
  .pain-list { grid-template-columns: 1fr; }
  .pain-list li, .pain-list li + li { padding: 18px 0; border-left: 0; }
  .pain-list li + li { border-top: 1px solid var(--rule); }
}

/* How it works: a real sequence, so it is numbered */
.how { background: var(--ink); color: #fff; padding: 84px 0; }
.how h2 { color: #fff; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 3px solid var(--ball); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 850 2.6rem/1 var(--display); font-stretch: 120%; color: var(--ball); margin-bottom: 12px; }
.steps h3 { color: #fff; }
.steps p { color: #C9D5E4; font-size: 1.02rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how { padding: 60px 0; } .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Plans */
.plans { padding: 88px 0; }
.plan-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 28px; margin-top: 32px; align-items: start; }
.plan { border-radius: var(--r); padding: 30px 32px 24px; }
.plan header { border-bottom: 2px solid currentColor; margin-bottom: 18px; padding-bottom: 12px; }
.plan h3 { font-size: 1.8rem; margin-bottom: 4px; }
.plan-for { margin: 0; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 9px 0 9px 30px; position: relative; font-size: 1.05rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--ball); border: 2px solid var(--ink); }
.plan-free { background: var(--card); border: 2px solid var(--ink); }
.plan-club { background: var(--court); color: #fff; }
.plan-club li::before { border-color: #fff; }
.plan-note { margin: 18px 0 0; font-size: .98rem; background: rgba(255,255,255,.12); padding: 12px 14px; border-radius: 4px; }
@media (max-width: 800px) { .plans { padding: 64px 0; } .plan-grid { grid-template-columns: 1fr; } .plan { padding: 24px 20px 18px; } }

/* Who it's for */
.who { padding: 8px 0 88px; }
.who-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0 0; }
.who-list div { padding: 4px 24px 4px 0; }
.who-list div + div { padding-left: 24px; border-left: 3px solid var(--surround); }
.who-list dt { font: 800 1.3rem/1.2 var(--display); font-stretch: 108%; margin-bottom: 6px; color: var(--surround); }
.who-list dd { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .who { padding-bottom: 64px; }
  .who-list { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .who-list div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .who-list { grid-template-columns: 1fr; }
  .who-list div, .who-list div + div { padding: 0 0 0 16px; border-left: 3px solid var(--surround); }
  .who-list div:nth-child(odd) { padding-left: 16px; border-left: 3px solid var(--surround); }
}

/* Waitlist */
.waitlist { background: var(--surround); color: #fff; padding: 84px 0; }
.wl-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.waitlist h2 { color: #fff; }
.wl-copy p { font-size: 1.15rem; color: #E3EEE7; max-width: 32rem; }
.wl-form { background: var(--paper); color: var(--ink); padding: 28px; border-radius: var(--r); display: flex; flex-direction: column; }
.wl-form label { font-weight: 700; margin: 0 0 6px; }
.wl-form .opt { font-weight: 400; color: var(--ink-soft); }
.wl-form input, .wl-form select {
  font: inherit; font-size: 1.05rem; padding: 12px 14px; margin-bottom: 18px;
  border: 2px solid #9AA8B6; border-radius: 4px; background: #fff; color: var(--ink); width: 100%;
}
.wl-form input:focus, .wl-form select:focus { border-color: var(--court); }
.wl-form input[aria-invalid="true"] { border-color: #B3261E; }
.wl-form .btn { align-self: flex-start; margin-top: 4px; }
.wl-form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { margin: 14px 0 0; font-weight: 700; min-height: 1.6em; }
.wl-msg.err { color: #B3261E; }
.wl-msg.ok { color: var(--surround); }
.wl-done { padding: 8px 0; }
.wl-done h3 { font-size: 1.5rem; }
@media (max-width: 860px) { .waitlist { padding: 60px 0; } .wl-inner { grid-template-columns: 1fr; gap: 24px; } .wl-form { padding: 22px 18px; } }

/* FAQ */
.faq { padding: 84px 0 96px; max-width: 820px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 750 1.2rem/1.3 var(--display); font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.7rem; font-weight: 500; color: var(--court); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; max-width: 64ch; color: var(--ink-soft); }
@media (max-width: 600px) { .faq { padding: 60px 0 72px; } }

/* Plain pages */
.plain { padding: 64px 0 96px; max-width: 720px; }
.plain h1 { font-size: clamp(2rem, 4vw, 3rem); }
.plain h2 { font-size: 1.5rem; margin-top: 1.6em; }
.plain .fine { opacity: 1; color: var(--ink-soft); margin: 0 0 1.5em; }

/* Footer */
.foot { background: var(--ink); color: #C9D5E4; padding: 44px 0; font-size: 1rem; }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; align-items: center; }
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: #fff; font: 800 1.15rem/1 var(--display); font-stretch: 112%; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: #fff; }
.foot-copy { grid-column: 1 / -1; font-size: .92rem; opacity: .8; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; } }
