/* Members app. Colours and type come from the landing site's tokens (ottawasoccerfitness-landing/css/tokens.css). */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500 800; font-display: swap; src: url(fonts/display.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 400 700; font-display: swap; src: url(fonts/body.woff2) format('woff2'); }

:root {
  --pine-900: #0F2A20; --pine-800: #16392B; --pine-700: #1E4D3A; --pine-500: #2F6B52;
  --sun-600: #E39A23; --sun-500: #FFB547; --sun-400: #FFC46A; --sun-100: #FFEBC7; --sun-50: #FFF7EA;
  --ember-700: #B54A1F; --mint-500: #7FD1A8;
  --frost-50: #F5F8F8; --frost-100: #EEF3F4;
  --ink-900: #18221D; --ink-600: #4B5853; --ink-400: #6F7C75; --ink-200: #D6DEDA; --ink-150: #C9D4CF;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--frost-100); color: var(--ink-900); font: 17px/1.45 var(--body); min-height: 100dvh; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 14px) 20px 14px; background: var(--pine-800); color: #fff; }
.mark { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; font: 700 16px/1 var(--display); letter-spacing: .01em; }
.mark img { width: 40px; height: 40px; border-radius: 50%; flex: none; }

main { max-width: 460px; margin: 0 auto; padding: 28px 20px calc(env(safe-area-inset-bottom) + 40px); }
h1 { font: 800 34px/1.08 var(--display); letter-spacing: -.02em; margin: 6px 0 8px; color: var(--pine-800); }
h2 { font: 700 20px/1.2 var(--display); margin: 0; }
.lede { color: var(--ink-600); margin: 0 0 26px; }
.aside { text-align: center; color: var(--ink-600); font-size: 15px; margin-top: 22px; }
.aside a { color: var(--pine-700); font-weight: 600; }

.field { display: block; }
.field span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid var(--ink-150); border-radius: 12px;
  background: #fff; font: 500 18px var(--body); color: var(--ink-900); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--pine-700); box-shadow: 0 0 0 4px rgba(255, 181, 71, .45); }
.field .is-empty, .field .is-empty:focus { border-color: var(--ember-700); border-width: 2px; }

.btn { display: block; width: 100%; height: 56px; margin-top: 14px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--sun-500); color: var(--ink-900); font: 700 18px var(--display); letter-spacing: .01em;
  box-shadow: 0 10px 24px -12px rgba(227, 154, 35, .9); transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn--quiet { background: #fff; border: 1.5px solid var(--ink-150); box-shadow: none; font-size: 16px; height: 48px; }
.btn--danger { background: var(--ember-700); color: #fff; box-shadow: none; }
.link { background: none; border: 0; padding: 6px 2px; color: var(--pine-700); font: 600 15px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link[disabled] { color: var(--ink-400); text-decoration: none; cursor: default; }
.link--light { color: #D9E3DD; }
.link--block { display: block; width: 100%; margin-top: 8px; padding: 12px; text-align: center; }
.back { margin: 0 0 4px -2px; text-decoration: none; }
#f-add .field + .field, #f-add .row2, #f-add .row2 + .field { margin-top: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#f-add .row2 .field + .field { margin-top: 0; }
.hint { margin: 12px 0 0; color: var(--pine-700); font-weight: 600; font-size: 15px; }
#open-add { margin: 4px 0 16px; }
.waiver-due { display: block; margin: 0 0 14px; padding: 14px 16px; background: #FFF1EC; border: 1.5px solid var(--ember-700); border-radius: 16px; color: var(--ink-900); text-decoration: none; }
.waiver-due b { display: block; font: 700 18px var(--display); color: var(--ember-700); }
.waiver-due span { font-size: 15px; color: var(--ink-600); }
.list-title { margin: 28px 0 10px; }
.members { list-style: none; margin: 0; padding: 0; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 12px; margin-bottom: 8px; }
.members small { display: block; color: var(--ink-600); font-size: 13px; }
.waiver-text { max-height: 42vh; overflow: auto; background: #fff; border: 1.5px solid var(--ink-200); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.waiver-text h3 { font: 700 17px var(--display); margin: 10px 0 6px; }
.waiver-text p { margin: 0 0 10px; }
#f-waiver .field + .field, #f-waiver .row2 + .field, #f-waiver .initials + .choice, #f-waiver .choice + .field { margin-top: 14px; }
#f-waiver .row2 .field + .field, #f-waiver .initials .field + .field { margin-top: 0; }
.w-label { font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.dob { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.dob legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.dob .field, #f-waiver .dob .field + .field { margin: 0; align-self: end; }
.dob select { width: 100%; }
.initials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.initials .field span { font-weight: 500; }
.choice { border: 0; padding: 0; margin: 14px 0 0; }
.choice legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.choice label { display: flex; gap: 10px; align-items: center; padding: 10px 0; font-size: 16px; }
.choice input { width: 22px; height: 22px; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.members li > button.who { all: unset; cursor: pointer; flex: 1; min-width: 0; }
.members li > button.who b { display: block; font-size: 16px; }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #C5D0D3; display: grid; place-items: center; font: 700 16px/1 var(--display); color: #fff; }
.legend { display: flex; align-items: center; gap: 10px; }
.tick--on { background: #1f9d55; border-color: #1f9d55; }
.members .btn-sm { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--sun-500); font: 700 15px var(--display); color: var(--ink-900); cursor: pointer; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 14px; font-size: 16px; }
.facts dt { color: var(--ink-600); }
.facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border: 1.5px solid var(--ink-150); border-radius: 12px; font-size: 16px; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 0; }
.err { min-height: 22px; margin: 10px 0 0; color: var(--ember-700); font-weight: 600; font-size: 15px; }
:focus-visible { outline: 3px solid var(--pine-700); outline-offset: 2px; }

/* One real input under six drawn boxes, so paste and phone autofill both work. */
.otp { position: relative; display: block; height: 64px; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; caret-color: transparent; }
.otp__boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 100%; pointer-events: none; }
.otp__boxes i { display: grid; place-items: center; border: 1.5px solid var(--ink-150); border-radius: 12px; background: #fff;
  font: 700 28px var(--display); font-style: normal; color: var(--pine-800); }
.otp--focus .otp__boxes i.on { border-color: var(--pine-700); box-shadow: 0 0 0 4px rgba(255, 181, 71, .45); }
.otp--bad .otp__boxes i { border-color: var(--ember-700); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.hello { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.hello h1 { margin: 0; }
.credits { flex: none; display: grid; justify-items: center; padding: 10px 14px 9px; border-radius: 16px; background: var(--pine-800); color: #fff; min-width: 112px; }
.credits b { font: 800 34px/1 var(--display); color: var(--sun-500); }
.credits span { font-size: 13px; color: #D9E3DD; }
.dots { display: flex; gap: 3px; margin-top: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dots i.on { background: var(--sun-500); }
.credits--zero b { color: #fff; }

.card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 1px 2px rgba(12,20,15,.08), 0 14px 34px -22px rgba(12,20,15,.45); }
.next { margin-bottom: 16px; background: var(--sun-50); border: 1.5px solid var(--sun-400); }
.next small { display: block; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7A4E0E; }
.next h2 { font-size: 22px; margin: 4px 0 2px; }
.next p { margin: 0; color: var(--ink-600); font-size: 15px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__nav { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--frost-100); font: 600 24px/1 var(--body); color: var(--pine-800); cursor: pointer; }
.cal__nav[disabled] { opacity: .35; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow span { font-size: 12px; font-weight: 700; color: var(--ink-400); padding-bottom: 4px; }
.day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 12px; background: none;
  font: 600 16px var(--body); color: var(--ink-400); }
.day--blank { visibility: hidden; }
.day--open { background: var(--sun-100); color: var(--pine-900); cursor: pointer; }
.day--open::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--sun-600); }
.day--mine { background: var(--pine-700); color: #fff; }
.day--mine::after { background: var(--sun-500); }
.day--full { background: var(--frost-100); color: var(--ink-400); cursor: pointer; text-decoration: line-through; }
.day--sel { box-shadow: 0 0 0 2.5px var(--pine-800); }
.day--today { font-weight: 800; }

.slots { margin-top: 16px; }
.place { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 1px 0 var(--ink-200); }
.place img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.place__text { padding: 12px 16px 14px; }
.place__text b { display: block; font: 700 17px/1.25 var(--display); color: var(--pine-800); }
.place__text span { display: block; font-size: 14px; color: var(--ink-600); margin-top: 2px; }
.place__text a { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--pine-700); text-underline-offset: 3px; }
.place--sheet { box-shadow: none; border: 1.5px solid var(--ink-200); margin: 12px 0 4px; }
.place--sheet img { aspect-ratio: 2 / 1; }
.next a { color: var(--pine-700); font-weight: 600; text-underline-offset: 3px; }
.slots h3 { font: 700 18px var(--display); margin: 0 0 10px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 10px; }
.slot b { display: block; font: 700 20px/1.1 var(--display); color: var(--pine-800); }
.slot span { font-size: 14px; color: var(--ink-600); }
.slot .low { color: var(--ember-700); font-weight: 700; }
.slot .btn { width: auto; height: 44px; margin: 0; padding: 0 20px; font-size: 16px; flex: none; }
.pill { flex: none; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.pill--in { background: var(--pine-700); color: #fff; }
.pill--full { background: var(--frost-100); color: var(--ink-600); }

.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet__back { position: absolute; inset: 0; background: rgba(12,20,15,.5); animation: fade .2s; }
.sheet__card { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(env(safe-area-inset-bottom) + 18px); animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet__card h2 { font-size: 24px; margin-bottom: 8px; }
.sheet__card p { color: var(--ink-600); margin: 0 0 8px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translate(-50%, 30px); opacity: 0; z-index: 30;
  width: max-content; max-width: calc(100% - 32px); text-align: center; padding: 14px 18px; border-radius: 14px; background: var(--pine-800); color: #fff; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(12,20,15,.6); transition: transform .25s, opacity .25s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

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

.next__cancel { margin: 12px 0 0; font-size: 15px; color: var(--ink-600); }
.next__cancel a { font-weight: 700; }

.games__title { margin: 18px 0 8px; font: 700 15px var(--display); color: var(--ink-900); }
.games { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.games li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #E5ECE9); border-radius: 12px; }
.games li span:first-child { display: grid; font-weight: 600; }
.games small { font-weight: 400; color: var(--ink-600); }
.games .btn-sm { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--sun-500); font: 700 15px var(--display); color: var(--ink-900); cursor: pointer; }
