/* The front page (site.php). Its own file: nothing of the app's look is shared, so neither can break the other.
   Colours of a padel court: the blue of the floor, the white of the lines, the yellow of the ball. */
:root {
  --ink: #0a1b33;
  --court: #1c56c9;
  --court-deep: #174ea6;
  --ball: #d8f24a;
  --paper: #f3f6fb;
  --card: #fff;
  --line: #d3dcea;
  --muted: #50617a;
  --danger: #b3261e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--court); outline-offset: 2px; }
[hidden] { display: none !important; }
.in { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 10px 14px; border-radius: 8px; }
.fine { font-size: .9rem; color: var(--muted); }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 18px; border: 2px solid transparent; border-radius: 10px;
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; background: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.b.big { min-height: 54px; padding: 12px 24px; font-size: 1.05rem; }
.b.full { width: 100%; }
.b.ball { background: var(--ball); color: var(--ink); }
.b.ball:hover { background: #e6fb6f; }
.b.line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.b.line:hover { border-color: #fff; }
.b.line.dark { border-color: var(--court); color: var(--court-deep); }
.b.line.dark:hover { background: #e8effb; }
.b.clear { color: #fff; border-color: rgba(255, 255, 255, .55); }
.b.clear:hover { border-color: #fff; }
.b.court-b { background: var(--court); color: #fff; }
.b.court-b:hover { background: var(--court-deep); }
.b:disabled { opacity: .6; cursor: default; }
.hero :focus-visible, .bar :focus-visible, .foot :focus-visible, .demo :focus-visible { outline-color: var(--ball); }

/* bar */
.bar { position: sticky; top: 0; z-index: 10; background: var(--court-deep); color: #fff; }
.bar-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.name { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.name svg { flex: none; }
.links { display: flex; gap: 22px; font-size: .95rem; }
.links a { text-decoration: none; opacity: .9; padding: 8px 0; }
.links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.bar-end { margin-left: auto; display: flex; gap: 10px; }
.small-only { display: none; }

/* hero: the court from above, with the club's day laid over it */
.hero { position: relative; background: var(--court); color: #fff; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 0; }
.court { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .1; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero-text { padding-bottom: clamp(48px, 7vw, 100px); align-self: center; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); line-height: 1.06; letter-spacing: -.032em; font-weight: 800; }
.lead { margin-top: 22px; font-size: 1.16rem; max-width: 34em; }
.go { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
.hero .fine { color: #dbe6fb; }
.hero-pics { position: relative; min-height: 460px; align-self: end; }
.hero-pics .cal { position: absolute; left: 12%; bottom: 0; width: 860px; max-width: none; border-radius: 14px 0 0 0; box-shadow: 0 24px 60px rgba(6, 20, 46, .45); }
.phone { width: 252px; border: 7px solid #06142a; border-bottom-width: 7px; border-radius: 30px; box-shadow: 0 24px 50px rgba(6, 20, 46, .38); background: #06142a; }
.hero-pics .phone { position: absolute; left: -10px; bottom: -70px; }

/* for whom */
.who { padding: clamp(64px, 8vw, 108px) 0; }
.cols { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.cols > div { padding: 22px 28px 0; border-left: 1px solid var(--line); }
.cols > div:first-child { padding-left: 0; border-left: 0; }
.cols p { margin-top: 8px; color: var(--muted); }

/* a day, on the same grid as the app's calendar */
.day { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 108px) 0; }
.day-head p { margin-top: 10px; color: #a9bad4; font-size: 1.1rem; }
.day-in { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 90px); align-items: start; }
.hours { list-style: none; padding: 0; }
.hours li { display: grid; grid-template-columns: 78px minmax(0, 1fr); border-top: 1px solid #24395a; padding: 14px 0; }
.hours li:last-child { border-bottom: 1px solid #24395a; }
.hours time { padding-top: 14px; font-variant-numeric: tabular-nums; color: #8fa5c6; font-size: .98rem; }
.slot { background: #12294a; border-left: 5px solid var(--ball); border-radius: 4px 10px 10px 4px; padding: 14px 20px 16px; }
.slot h3 { font-size: 1.2rem; }
.slot p { margin-top: 5px; color: #b9c8df; }
.slot span { display: inline-block; margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--ball); }
.side { position: sticky; top: 96px; width: 290px; border-color: #2b4a75; }

/* their own look */
.yours { padding: clamp(64px, 8vw, 108px) 0 0; overflow: hidden; }
.yours-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.yours p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 32em; }
.brands { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.brands img { width: min(46%, 270px); border: 7px solid #06142a; border-bottom: 0; border-radius: 28px 28px 0 0; }
.brands img:first-child { margin-bottom: 0; }
.brands img:last-child { margin-bottom: -46px; }

/* players */
.players { background: #e3ecfb; padding: clamp(56px, 7vw, 92px) 0; border-top: 1px solid var(--line); }
.players-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.players p { margin-top: 16px; font-size: 1.1rem; color: #33445e; max-width: 34em; }
.players .phone { width: 270px; height: 470px; object-fit: cover; object-position: top; }

/* what it costs */
.price { padding: clamp(64px, 8vw, 108px) 0; background: var(--card); }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 44em; }
.price-in { margin-top: 38px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.plans { display: grid; gap: 12px; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; padding: 20px 24px; border: 2px solid var(--line); border-radius: 12px; align-content: center; transition: border-color .2s, background-color .2s; }
.plan .sum b { font-size: 2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .fine { grid-column: 1 / -1; }
.plan.on { border-color: var(--court); background: #eef4ff; }
.calc { background: var(--court); color: #fff; border-radius: 12px; padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.calc h3 { font-size: 1.35rem; }
.calc fieldset { border: 0; padding: 0; margin: 0; }
.calc legend { padding: 0; font-weight: 700; margin-bottom: 4px; }
.courts { display: grid; grid-template-columns: 1fr auto; font-weight: 700; align-items: baseline; }
.courts output { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.courts input { grid-column: 1 / -1; width: 100%; height: 32px; accent-color: var(--ball); cursor: pointer; }
.pick { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; }
.pick input { width: 21px; height: 21px; flex: none; accent-color: var(--ball); }
.pick b { margin-left: auto; font-variant-numeric: tabular-nums; }
.total { margin-top: auto; border-top: 2px solid rgba(255, 255, 255, .45); padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.total b { font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc :focus-visible { outline-color: var(--ball); }
.lists { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.lists h3 { font-size: 1.35rem; }
.lists ul { list-style: none; padding: 0; margin-top: 18px; columns: 2; column-gap: 40px; }
.lists .ex { columns: 1; }
.lists li { break-inside: avoid; padding: 12px 0 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .97rem; }
.lists li b { display: block; color: var(--ink); font-size: 1.02rem; }
.lists li i { font-style: normal; font-weight: 600; color: var(--court-deep); white-space: nowrap; }

/* questions */
.faq { padding: clamp(64px, 8vw, 108px) 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 17px 40px 17px 0; font-weight: 700; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 11px; font-size: 1.6rem; line-height: 1.3; font-weight: 400; color: var(--court); }
details[open] summary::after { content: "–"; }
details p { padding: 0 40px 20px 0; color: var(--muted); max-width: 46em; }

/* trial */
.demo { background: var(--court-deep); color: #fff; padding: clamp(64px, 8vw, 108px) 0; }
.demo-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.demo-in > div > p { margin-top: 16px; font-size: 1.1rem; color: #dbe6fb; }
.steps { margin-top: 26px; padding-left: 1.3em; }
.steps li { padding: 7px 0 7px 6px; }
.steps li::marker { font-weight: 800; color: var(--ball); }
form label { display: block; font-weight: 600; font-size: .95rem; }
form label > input:not([type=checkbox], [type=range]), form textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; min-height: 46px; border: 1px solid #9db0cc; border-radius: 8px; background: #fff; color: var(--ink); font-size: 1rem; }
form textarea { resize: vertical; }
#demoForm { display: grid; gap: 16px; background: #fff; color: var(--ink); padding: clamp(20px, 3vw, 34px); border-radius: 14px; }
#demoForm :focus-visible { outline-color: var(--court); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.types { border: 0; margin: 0; padding: 0; display: flex; gap: 0 32px; flex-wrap: wrap; }
.types legend { padding: 0; float: left; width: 100%; font-weight: 600; font-size: .95rem; }
.types .pick { font-size: 1rem; font-weight: 500; min-height: 44px; }
.num input { max-width: 8em; }
.types .pick input { accent-color: var(--court); }
.hp { position: absolute; left: -9999px; }
.err { color: var(--danger); font-weight: 600; }
.done { background: #fff; color: var(--ink); border-radius: 14px; padding: 34px; }
.done h3 { font-size: 1.6rem; }
.demo-in > .done p { color: var(--muted); }

.foot { background: var(--ink); color: #b9c8df; padding: 30px 0; font-size: .95rem; }
.foot-in { display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; }

/* sign in */
dialog { border: 0; padding: 0; border-radius: 16px; width: min(420px, 100% - 32px); color: var(--ink); box-shadow: 0 30px 80px rgba(6, 20, 46, .45); }
dialog::backdrop { background: rgba(6, 20, 46, .6); }
.login-in { position: relative; padding: 28px; display: grid; gap: 16px; }
dialog h2 { font-size: 1.6rem; }
dialog form { display: grid; gap: 14px; }
.x { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border: 0; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.x:hover { background: var(--paper); }
.or { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.text { border: 0; background: none; padding: 8px; cursor: pointer; color: var(--court-deep); text-decoration: underline; text-underline-offset: 3px; justify-self: center; }
#clubPick { display: grid; gap: 10px; }

@media (max-width: 1020px) {
  .links { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-pics { min-height: 560px; }
  .hero-pics .cal { left: 120px; width: 740px; }
  .hero-pics .phone { left: 0; }
  .lists { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wide-only { display: none; }
  .small-only { display: inline-flex; }
  .cols, .day-in, .yours-in, .players-in, .price-in, .faq-in, .demo-in { grid-template-columns: 1fr; }
  .cols { border-top: 0; }
  .cols > div, .cols > div:first-child { padding: 18px 0; border: 0; border-top: 1px solid var(--line); }
  .day .side { display: none; }
  .hours li { grid-template-columns: 58px minmax(0, 1fr); }
  .slot { padding: 12px 15px 14px; }
  .players .phone { order: 2; justify-self: center; }
  .calc { order: -1; }
}
@media (max-width: 560px) {
  .in { width: calc(100% - 32px); }
  .bar-in { gap: 10px; min-height: 58px; }
  .name { font-size: .95rem; line-height: 1.15; }
  .bar .b { padding: 8px 12px; font-size: .88rem; }
  .go .b { width: 100%; }
  .hero-pics { min-height: 440px; }
  .hero-pics .phone { width: 206px; }
  .hero-pics .cal { width: 560px; left: 92px; }
  .lists ul { columns: 1; }
  .two { grid-template-columns: 1fr; }
  .brands { gap: 14px; }
  .plan { padding: 16px 18px; }
}
@media (max-width: 372px) {
  .name svg { display: none; }
  .bar-in { gap: 6px; }
  .bar-end { gap: 6px; }
  .name { font-size: .85rem; }
  .bar .b { padding: 8px 9px; font-size: .82rem; }
  .b.big { white-space: normal; padding-inline: 14px; }
  .brands img { border-width: 5px 5px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
