/* Colourpig consult funnel. Fonts are self-hosted (no font CDN: GDPR, Ireland later). */
@font-face { font-family: 'Agrandir'; src: url('/assets/fonts/PPAgrandir-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montreal'; src: url('/assets/fonts/PPNeueMontreal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montreal'; src: url('/assets/fonts/PPNeueMontreal-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IntelMono'; src: url('/assets/fonts/IntelOneMono-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --obsidian: #0D151C; --midnight: #13212E; --steel: #253744; --graphite: #495B69; --ash: #949FA3;
  --platinum: #CED1D0; --paleash: #EAECEB; --tile: #E2E5E4; --white: #FFFFFF;
  --yellow: #FFC72C; --pink: #F59BBB; --sky: #00A3E0; --orange: #FF671F; --green: #97D700; --violet: #C98BDB;
  --error: #B42318;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Montreal', -apple-system, system-ui, sans-serif; font-size: 18px; line-height: 1.45; color: var(--midnight); background: var(--paleash); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.dark { background: var(--obsidian); color: var(--white); }
.panel { background: var(--white); border-radius: var(--radius); padding: 22px 20px; margin: 16px 0; }
.dark .panel { background: var(--midnight); }

header.top { padding: 22px 0 8px; }
header.top img { width: 100%; max-width: 520px; height: auto; }

h1, h2, h3 { font-family: 'Agrandir', 'Montreal', sans-serif; font-weight: 700; line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 8.4vw, 42px); }
h2 { font-size: clamp(24px, 6.6vw, 32px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; }
.muted { color: var(--graphite); }
.dark .muted { color: var(--platinum); }
.small { font-size: 15px; }

.eyebrow { font-family: 'IntelMono', ui-monospace, monospace; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; color: var(--graphite); margin: 0 0 12px; }
.dark .eyebrow { color: var(--yellow); }
.eyebrow .dot { color: var(--sky); padding: 0 4px; }

.dots { display: flex; gap: 7px; margin: 10px 0 0; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--yellow); } .dots i:nth-child(2) { background: var(--pink); } .dots i:nth-child(3) { background: var(--sky); }
.dots i:nth-child(4) { background: var(--orange); } .dots i:nth-child(5) { background: var(--green); } .dots i:nth-child(6) { background: var(--violet); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 60px; padding: 14px 22px; border: 0; border-radius: 999px;
  font-family: 'IntelMono', ui-monospace, monospace; font-weight: 500; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  background: var(--midnight); color: var(--white); -webkit-tap-highlight-color: transparent; }
.dark .btn { background: var(--yellow); color: var(--midnight); }
.btn.secondary { background: var(--white); color: var(--midnight); border: 2px solid var(--platinum); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn:active { transform: scale(0.99); }

.choice { display: block; width: 100%; text-align: left; padding: 20px 20px; margin: 0 0 12px; border-radius: var(--radius); border: 2px solid var(--platinum); background: var(--white);
  font: inherit; font-size: 19px; color: var(--midnight); cursor: pointer; }
.choice strong { font-family: 'Agrandir', sans-serif; font-size: 22px; display: block; margin-bottom: 4px; }
.choice:active, .choice:focus-visible { border-color: var(--midnight); outline: none; }

.video { position: relative; aspect-ratio: 9 / 16; height: 52vh; max-width: 100%; margin: 6px auto 18px; border-radius: var(--radius); overflow: hidden; background: var(--midnight); }
.video video, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video .poster { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: radial-gradient(120% 80% at 50% 25%, #1d3244 0%, var(--midnight) 55%, var(--obsidian) 100%); }
.video .poster img { position: absolute; left: 50%; top: 10%; height: 58%; width: auto; transform: translateX(-50%); }
.video .poster .tag { position: relative; font-family: 'IntelMono', monospace; font-size: 13px; text-transform: uppercase; color: var(--yellow); }

.next { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 16px; }
.next .live { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(151, 215, 0, 0.18); flex: none; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 6px; }
ul.ticks li { position: relative; padding-left: 28px; margin: 0 0 10px; }
ul.ticks li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
ul.ticks li:nth-child(2)::before { background: var(--pink); } ul.ticks li:nth-child(3)::before { background: var(--green); } ul.ticks li:nth-child(4)::before { background: var(--orange); }

label.field { display: block; margin: 0 0 16px; }
label.field span { display: block; font-weight: 500; margin: 0 0 6px; }
label.field em { font-style: normal; color: var(--graphite); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select {
  width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 18px; color: var(--midnight); background: var(--white);
  border: 2px solid var(--platinum); border-radius: 14px; -webkit-appearance: none; appearance: none; }
input, select { min-width: 0; max-width: 100%; }
input[type=time], input[type=date] { padding: 12px 10px; }
#join { word-break: break-all; }
input:focus, select:focus { outline: none; border-color: var(--sky); }
.err { color: var(--error); font-size: 15px; margin: 6px 0 0; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-size: 16px; }
.check input { width: 26px; height: 26px; flex: none; margin: 1px 0 0; accent-color: var(--midnight); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--platinum); background: var(--white); font: inherit; font-size: 16px; color: var(--midnight); cursor: pointer; }
.day[aria-pressed=true] { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 4px; }
.slot { padding: 14px 8px; border-radius: 14px; border: 2px solid var(--platinum); background: var(--white); font: inherit; font-size: 17px; color: var(--midnight); cursor: pointer; text-align: center; }
.slot small { display: block; font-size: 13px; color: var(--graphite); }
.slot[aria-pressed=true] { border-color: var(--midnight); background: var(--midnight); color: var(--white); }
.slot[aria-pressed=true] small { color: var(--platinum); }
.more { background: none; border: 0; font: inherit; font-size: 16px; text-decoration: underline; color: var(--graphite); padding: 8px 0; cursor: pointer; }

.ticket { border-radius: var(--radius); padding: 22px 20px; background: var(--midnight); color: var(--white); margin: 16px 0; }
.ticket .when { font-family: 'Agrandir', sans-serif; font-size: 26px; line-height: 1.12; margin: 6px 0 10px; }
.ticket .ref { font-family: 'IntelMono', monospace; font-size: 14px; color: var(--platinum); }

.notice { font-size: 15px; background: var(--tile); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.banner { background: var(--yellow); color: var(--midnight); font-family: 'IntelMono', monospace; font-size: 13px; text-transform: uppercase; text-align: center; padding: 6px 12px; }
.price { font-family: 'Agrandir', sans-serif; font-size: 30px; }
footer.foot { padding: 30px 0 40px; font-size: 14px; color: var(--graphite); }
.dark footer.foot { color: var(--ash); }
.spacer { height: 10px; }
.hidden { display: none !important; }
.center { text-align: center; }

/* admin */
.admin body, body.admin { font-size: 16px; }
.admin .wrap { max-width: 760px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin td, .admin th { padding: 10px 6px; border-bottom: 1px solid var(--tile); text-align: left; vertical-align: middle; }
.admin .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.admin .toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tile); }
.admin .toggle input { width: 28px; height: 28px; accent-color: var(--midnight); }
.admin .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-family: 'IntelMono', monospace; }
.admin .pill.ian { background: rgba(0,163,224,.15); color: #006c95; } .admin .pill.john { background: rgba(255,103,31,.15); color: #a63d0a; }
.admin .pill.ok { background: rgba(151,215,0,.2); color: #476600; } .admin .pill.todo { background: var(--tile); color: var(--graphite); }
.admin .x { background: none; border: 0; color: var(--error); font: inherit; cursor: pointer; padding: 6px; }
.admin .btn { min-height: 50px; font-size: 15px; }
.admin .week { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.admin .week button { width: auto; min-height: 44px; padding: 8px 16px; }

/* ---------- build 2: waiting room, call, shade buttons ---------- */
.shades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 4px; }
.shade { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 12px; background: var(--white); color: var(--midnight); border-radius: 16px; border: 2px solid var(--platinum); text-decoration: none; text-align: center; min-height: 128px; -webkit-tap-highlight-color: transparent; }
.shade img { width: 64px; height: 64px; border-radius: 50%; }
.shade .noswatch { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed var(--platinum); display: block; }
.shade .sl { font-size: 14px; line-height: 1.2; }
.shade .sl b { display: block; font-family: 'Agrandir', sans-serif; font-size: 19px; }
.shade .oosl { font-family: 'IntelMono', monospace; font-size: 11px; text-transform: uppercase; color: var(--graphite); }
.shade:active { border-color: var(--midnight); transform: scale(0.98); }
.shade.oos { opacity: 0.75; }
.shadepanel { background: var(--white); color: var(--midnight); border-radius: var(--radius); padding: 18px 14px 14px; margin: 14px 0; }
.shadepanel h3 { margin: 0 0 4px; }
.shadepanel p { margin: 0 0 6px; font-size: 16px; color: var(--graphite); }

.place { font-family: 'Agrandir', sans-serif; font-size: clamp(40px, 12vw, 58px); line-height: 1; margin: 6px 0 8px; }
.cam { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 46vh; background: var(--midnight); border-radius: var(--radius); overflow: hidden; margin: 8px 0 10px; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam .camtag, .callbox .camtag { position: absolute; left: 10px; bottom: 10px; right: 10px; font-family: 'IntelMono', monospace; font-size: 12px; text-transform: uppercase; color: var(--white); background: rgba(13,21,28,.6); padding: 6px 10px; border-radius: 10px; }
.status-ok { color: var(--green); } .status-bad { color: var(--pink); }

.callbox { position: relative; width: 100%; height: 62vh; min-height: 340px; background: var(--midnight); border-radius: var(--radius); overflow: hidden; margin: 8px 0 0; }
.callbox iframe, .callbox video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.callbox video { transform: scaleX(-1); }
.clock { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: 'IntelMono', monospace; font-weight: 500; font-size: 26px; padding: 6px 14px; border-radius: 999px; background: rgba(13,21,28,.75); color: var(--white); pointer-events: none; }
.clock.amber { background: var(--yellow); color: var(--midnight); }
.clock.red { background: var(--error); color: var(--white); }
.clock.wait { font-size: 14px; }

/* ---------- host iPhone ---------- */
body.host { background: var(--obsidian); color: var(--white); padding-bottom: env(safe-area-inset-bottom); }
.host .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; }
.host .bar h2 { margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: 'IntelMono', monospace; text-transform: uppercase; font-size: 15px; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
.switch .track { width: 66px; height: 38px; border-radius: 999px; background: var(--steel); position: relative; transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--white); transition: left .15s; }
.switch[aria-pressed=true] .track { background: var(--green); }
.switch[aria-pressed=true] .track::after { left: 32px; }
.host .who { font-family: 'Agrandir', sans-serif; font-size: 34px; margin: 4px 0 0; }
.host .callbox { height: 56vh; }
.host .clock { font-size: 34px; top: 12px; right: 12px; }
.host .endbtn { position: sticky; bottom: 10px; margin-top: 12px; background: var(--error); color: var(--white); min-height: 72px; font-size: 20px; }
.host .meta { font-size: 16px; color: var(--platinum); margin: 8px 0 0; }
.host .idle { padding: 40px 0; text-align: center; }
.host .idle .big { font-family: 'Agrandir', sans-serif; font-size: 30px; margin-bottom: 8px; }
.host .alert { background: var(--yellow); color: var(--midnight); border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: 16px; }

/* ---------- iPad board ---------- */
body.board { background: var(--paleash); font-size: 17px; }
.board .wrap { max-width: 1180px; }
.board .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.board .card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; }
.board .card h3 { display: flex; justify-content: space-between; align-items: center; }
.board .big { font-family: 'Agrandir', sans-serif; font-size: 44px; line-height: 1; }
.board .lbl { font-family: 'IntelMono', monospace; font-size: 12px; text-transform: uppercase; color: var(--graphite); }
.board .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.board .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: var(--ash); margin-right: 6px; }
.board .dot.on { background: var(--green); }
.board ol { margin: 0; padding-left: 22px; } .board li { margin: 4px 0; }
.board .t { font-family: 'IntelMono', monospace; font-size: 15px; }
.board .t.amber { color: #9a6b00; } .board .t.red { color: var(--error); }
