@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&display=swap');

:root {
  --ink: #151513;
  --ink-2: #23231f;
  --bone: #f1ece3;
  --chalk: #faf8f4;
  --rust: #c4532d;
  --rust-dark: #a5421f;
  --moss: #2f3a2e;
  --steel: #6a6a63;
  --line: #ddd5c7;
  --ok: #2f6b3a;
  --warn: #b7791f;
  --radius: 6px;
  --wrap: 1120px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--chalk); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3, .display { font-stretch: 68%; font-weight: 850; text-transform: uppercase; line-height: .95; letter-spacing: -.005em; margin: 0 0 .4em; }
h1 { font-size: clamp(3.2rem, 9vw, 7.4rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h3 { font-size: 1.7rem; line-height: 1; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: 1rem; display: block; }
.lead { font-size: 1.25rem; max-width: 36em; }
.muted { color: var(--steel); }
.rust { color: var(--rust); }

.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.5em; border-radius: var(--radius); border: 2px solid var(--rust); background: var(--rust); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.small { padding: .5em .9em; font-size: .9rem; }
.btn.plain { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.plain:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(21,21,19,.94); backdrop-filter: blur(8px); color: var(--bone); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: 1.45rem; letter-spacing: .01em; }
.logo svg { width: 34px; height: 34px; }
.site-head nav { display: flex; gap: 26px; align-items: center; font-size: .95rem; }
.site-head nav a:not(.btn) { text-decoration: none; opacity: .85; }
.site-head nav a:not(.btn):hover { opacity: 1; }
@media (max-width: 860px) { .site-head nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .logo { font-size: 1.2rem; } .site-head .btn.small { padding: .5em .7em; } }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--bone); padding: clamp(60px, 10vw, 120px) 0 0; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: end; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--rust); }
.hero .lead { color: #d8d2c7; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }
.hero-art { align-self: center; opacity: .95; }
.hero-strip { margin-top: clamp(50px, 8vw, 90px); border-top: 1px solid #34342f; }
.hero-strip ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: .95rem; color: #bdb6aa; }
.hero-strip li { display: flex; align-items: center; gap: 10px; }
.hero-strip li::before { content: ''; width: 8px; height: 8px; background: var(--rust); border-radius: 50%; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* ---------- sections ---------- */
section { padding: clamp(70px, 10vw, 120px) 0; }
.alt { background: var(--bone); }
.dark { background: var(--ink); color: var(--bone); }
.dark h2 { color: #fff; }
.two > *, .hero .grid > *, .grid2 > * { min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pains li { padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.1rem; }
.pains li::before { content: '✕'; position: absolute; left: 4px; top: 18px; color: var(--rust); font-weight: 800; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); margin-top: 40px; }
.pillar { background: var(--chalk); padding: 30px 26px; }
.pillar .num { font-stretch: 68%; font-weight: 850; font-size: 3rem; color: var(--rust); line-height: 1; }
.pillar h3 { margin: 14px 0 10px; }
.pillar p { font-size: 1rem; color: #3d3d38; margin: 0; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.venue { background: var(--ink-2); border: 1px solid #34342f; border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 10px; }
.venue .tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); font-weight: 700; }
.venue h3 { color: #fff; font-size: 2.2rem; }
.venue ul { padding-left: 1.1em; margin: 6px 0 0; color: #cfc8bb; }
.venue .photo-slot { margin-top: auto; border: 1px dashed #4a4a43; border-radius: var(--radius); aspect-ratio: 16/9; display: grid; place-items: center; color: #77776f; font-size: .85rem; text-align: center; padding: 10px; }
@media (max-width: 760px) { .venues { grid-template-columns: 1fr; } }

.coach-quote { font-stretch: 75%; font-weight: 750; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; text-transform: uppercase; border-left: 6px solid var(--rust); padding-left: 24px; margin: 0 0 30px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.step { border-top: 4px solid var(--ink); padding-top: 22px; }
.step::before { counter-increment: step; content: '0' counter(step); font-stretch: 68%; font-weight: 850; font-size: 1.1rem; color: var(--rust); }
.step h3 { margin: 8px 0 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.video-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 40px; }
.price { border: 2px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; display: flex; flex-direction: column; gap: 8px; position: relative; }
.price.featured { border-color: var(--ink); box-shadow: 8px 8px 0 var(--rust); }
.price .badge { position: absolute; top: -13px; left: 24px; background: var(--rust); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; }
.price h3 { font-size: 1.9rem; margin: 0; }
.price .amount { font-stretch: 68%; font-weight: 850; font-size: 3.4rem; line-height: 1; }
.price .amount small { font-size: 1rem; font-weight: 600; font-stretch: 100%; color: var(--steel); }
.price .per { color: var(--steel); font-size: .95rem; }
.price p { font-size: 1rem; margin: 6px 0 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--rust); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: #3d3d38; }

/* ---------- booking widget ---------- */
.book-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.day { flex: 0 0 auto; min-width: 74px; border: 2px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 8px; text-align: center; cursor: pointer; font: inherit; line-height: 1.2; }
.day b { display: block; font-stretch: 68%; font-size: 1.7rem; font-weight: 850; }
.day span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.day[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.day[aria-pressed="true"] span { color: #bbb; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin: 18px 0; }
.time { border: 2px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 0; font: inherit; font-weight: 700; cursor: pointer; }
.time:hover { border-color: var(--ink); }
.time[aria-pressed="true"] { background: var(--rust); border-color: var(--rust); color: #fff; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: .9rem; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible, .day:focus-visible { outline: 3px solid rgba(196,83,45,.45); outline-offset: 1px; border-color: var(--rust); }
textarea { min-height: 96px; resize: vertical; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }
.radio-row input { width: auto; }
.radio-row label:has(input:checked) { border-color: var(--ink); background: var(--bone); }
.hp { position: absolute; left: -9999px; }
.msg { padding: 14px 16px; border-radius: var(--radius); margin-top: 16px; font-size: 1rem; }
.msg.err { background: #fbe9e4; color: #8a2d12; }
.msg.ok { background: #e7f1e8; color: #1f4d28; }
.success { text-align: center; padding: 20px 0; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--rust); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; }

/* ---------- footer ---------- */
.site-foot { background: #0e0e0d; color: #9d978c; padding: 50px 0; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot a { color: #d8d2c7; }

/* ---------- app pages (join / me / admin) ---------- */
.page { padding: 50px 0 80px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel h2 { font-size: 2rem; }
.parq { display: grid; gap: 0; }
.parq .q { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.parq .q p { margin: 0; font-size: 1rem; }
.yn { display: flex; gap: 6px; }
.yn label { margin: 0; border: 2px solid var(--line); border-radius: var(--radius); padding: 6px 14px; cursor: pointer; font-weight: 700; }
.yn input { position: absolute; opacity: 0; width: 1px; }
.yn label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.terms { white-space: pre-wrap; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-height: 360px; overflow: auto; font-size: .95rem; line-height: 1.55; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 auto; }

/* admin */
.admin body, body.admin { font-size: 16px; background: #f4f1ec; }
.admin-head { background: var(--ink); color: var(--bone); }
.admin-head .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.admin-head .logo { font-size: 1.2rem; }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tabs button { background: transparent; color: #bdb6aa; border: 0; font: inherit; font-weight: 600; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #2e2e29; color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-stretch: 68%; font-weight: 850; font-size: 2.4rem; line-height: 1; }
.stat span { font-size: .85rem; color: var(--steel); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid #eee8de; vertical-align: top; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #faf7f1; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #eee8de; color: #555; }
.pill.active, .pill.attended, .pill.signed { background: #dcecdf; color: var(--ok); }
.pill.lead, .pill.consult { background: #f8e3d9; color: var(--rust-dark); }
.pill.flag, .pill.no_show { background: #fbe9c8; color: #7a4f0d; }
.pill.cancelled, .pill.ended { background: #eee; color: #888; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr !important; } }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-size: .85rem; }
.empty { color: var(--steel); padding: 14px 0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; z-index: 50; }

/* ---------- phones: coach admin + client pages ---------- */
@media (max-width: 640px) {
  .admin-head .wrap { height: auto; flex-wrap: wrap; gap: 6px 12px; padding: 10px 0 0; }
  .tabs { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; }
  .panel { padding: 18px; }
  .panel h2 { font-size: 1.7rem; }
  .admin table, .admin tbody, .admin tr, .admin td { display: block; width: 100%; }
  .admin thead { display: none; }
  .admin tr { padding: 10px 0; border-bottom: 1px solid #eee8de; }
  .admin td { border: 0; padding: 3px 0; text-align: left !important; }
  .admin .actions { margin-top: 6px; }
  form .row { grid-template-columns: 1fr !important; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 2rem; }
  .linkbox { flex-direction: column; }
}
