/* PerfectRep site: AnalytiTech brand, dark. Colors match the app (contrast-checked). */
:root {
  /* FormForward: deep navy, electric blue, fresh green (brand mood board). */
  --bg: #0a1422;
  --surface: #121f33;
  --surface-high: #1b2b46;
  --primary: #1683f2;
  --action: #0e6fd8;      /* filled buttons: white text passes 4.5:1 */
  --on-action: #ffffff;
  --accent: #3daeff;      /* sky blue: links and highlights on navy */
  --green: #47d98a;
  --purple: #8b7cff;
  --spark: #ff7a45;
  --gold: #f5b935;
  --text: #f3f6fb;
  --muted: #9fb0c6;
  --outline: #2c3f60;
  --radius: 18px;
  --max: 1120px;
  --heading: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
section.alt { background: var(--surface); }
.eyebrow {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .8em;
}
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 14, 21, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-high);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--heading); font-weight: 800; font-size: 1.3rem; }
.brand span b { color: var(--accent); font-weight: 800; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-action); }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } }
@media (max-width: 480px) { .nav a.hide-xs { display: none; } .brand span { font-size: 1.2rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: var(--body);
}
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .btn-row { justify-content: center; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 12px; background: var(--surface-high); color: var(--muted); font-size: .9rem;
}

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.hero .phones .phone:nth-child(2) { transform: translateY(40px); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phones .phone:nth-child(2) { display: none; }
}

/* Phone frame around screenshots */
.phone {
  width: 260px; max-width: 100%;
  border-radius: 38px; padding: 10px;
  background: #050509;
  box-shadow: 0 0 0 2px var(--surface-high), 0 30px 60px rgba(0, 0, 0, .55);
  flex: none;
}
.phone img { border-radius: 30px; width: 100%; }
.phone.sm { width: 220px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px; }
section.alt .step { background: var(--surface-high); }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); font-family: var(--heading); font-weight: 800; margin-bottom: 14px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Sports grid */
.sports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.sport { background: var(--surface-high); border-radius: var(--radius); padding: 20px; }
.sport h3 { margin-bottom: .3em; }
.sport p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .sports { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sports { grid-template-columns: 1fr; } }

/* Feature rows: text + phone */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.flip .text { order: 2; }
.feature .media { display: flex; justify-content: center; gap: 16px; }
.feature ul { padding-left: 1.1em; color: var(--muted); }
.feature li { margin-bottom: .4em; }
.feature li strong { color: var(--text); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .feature .media .phone:nth-child(2) { display: none; }
}

/* Quote / coach callout */
.callout {
  border-left: 4px solid var(--accent); background: var(--surface-high);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0;
  font-size: 1.1rem;
}
.callout b { color: var(--accent); font-family: var(--heading); font-weight: 800; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 36px auto 0; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 2px solid var(--surface-high); }
.plan.pro { border-color: var(--primary); }
.plan .price { font-family: var(--heading); font-weight: 800; font-size: 2.4rem; }
.plan .price small { font-family: var(--body); font-size: 1rem; color: var(--muted); }
.plan ul { padding-left: 1.1em; color: var(--muted); }
.plan .tag {
  display: inline-block; background: var(--spark); color: var(--bg);
  font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Cards (partners, support) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--surface-high); }
.card p { color: var(--muted); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 800px; margin: 32px auto 0; }
.faq details { background: var(--surface); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
section.alt .faq details { background: var(--surface-high); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Legal pages */
.doc { max-width: 780px; margin: 0 auto; padding: 60px 20px 80px; }
.doc h1 { font-size: 2.4rem; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--surface-high); padding: 40px 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Hero glow and tagline */
.hero { background: radial-gradient(900px 520px at 85% 10%, rgba(22,131,242,.28), transparent 60%), radial-gradient(700px 420px at 10% 90%, rgba(71,217,138,.12), transparent 60%); }
.tagline { font-family: var(--heading); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--muted); margin-top: 22px; }
.hero h1 { text-transform: none; }

/* Category band (mood board) */
.band { background: #08101c; border-block: 1px solid var(--surface-high); padding: 34px 0; }
.band .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.cat { text-align: center; padding: 6px 12px; border-left: 1px solid var(--surface-high); }
.cat:first-child { border-left: 0; }
.cat img { width: 52px; height: 52px; display: block; margin: 0 auto 10px; }
.cat b { display: block; font-family: var(--heading); font-weight: 700; letter-spacing: .08em; color: var(--text); font-size: .95rem; }
.cat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .band .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .cat { border-left: 0; }
  .cat:last-child { grid-column: span 2; }
}

/* Footer company mark */
.company { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.company img { height: 26px; width: auto; }

/* Final call to action over the glowing logo art */
section.glow-cta { background: linear-gradient(rgba(10,20,34,.55), rgba(10,20,34,.85)), url(/assets/img/logo-glow.jpg) center / cover no-repeat; padding: 120px 0; }

/* Photography */
.photo-hero { position: relative; isolation: isolate; min-height: 640px; display: flex; align-items: center; padding: 96px 0 72px; }
.photo-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/assets/img/hero-yoga.jpg) right 30% / cover no-repeat; }
.photo-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,20,34,.97) 0%, rgba(10,20,34,.9) 34%, rgba(10,20,34,.45) 55%, rgba(10,20,34,.05) 75%, rgba(10,20,34,0) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(10,20,34,0) 28%); }
.photo-hero .wrap { width: 100%; grid-template-columns: minmax(0, 540px); justify-content: start; }
@media (max-width: 760px) {
  .photo-hero { min-height: 0; padding: 300px 0 40px; }
  .photo-hero::before { background-position: 72% 0; background-size: auto 420px; background-color: var(--bg); }
  .photo-hero::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 52%, rgba(10,20,34,0) 78%); }
}
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; text-align: left; }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .cap { position: absolute; inset: auto 0 0 0; padding: 70px 16px 16px; background: linear-gradient(0deg, rgba(10,20,34,.95) 0%, rgba(10,20,34,.75) 55%, rgba(10,20,34,0) 100%); }
.photo-card h3 { margin: 0 0 .25em; color: #fff; }
.photo-card p { margin: 0; color: #d5deea; font-size: .86rem; line-height: 1.4; }
.sports.more { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
@media (max-width: 960px) { .photo-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .photo-cards { grid-template-columns: 1fr; } .sports.more { grid-template-columns: 1fr; } }
.feature .media.photo-stack { position: relative; display: block; padding: 0 0 40px 40px; }
.photo-frame { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.photo-stack .phone { position: absolute; left: 0; bottom: 0; width: 30%; min-width: 120px; }

.sports.nine { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .sports.nine { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sports.nine { grid-template-columns: 1fr; } }
.feature.mac { margin-top: 56px; padding: 32px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(139,124,255,.18), rgba(22,131,242,.08)); border: 1px solid rgba(139,124,255,.45); }
@media (max-width: 760px) { .feature.mac { padding: 20px; } }

/* ---------- CPPLL field scheduler pages ---------- */
.ll { --gold: #c9a75a; }
.ll .brand img.ll-logo { background: #fff; border-radius: 50%; padding: 2px; }
.ll .brand span b { color: var(--gold); }
.ll .eyebrow { color: var(--gold); }
.ll .hero h1 span { color: var(--gold); }
.ll .hero { background: radial-gradient(900px 520px at 85% 10%, rgba(201,167,90,.22), transparent 60%), radial-gradient(700px 420px at 10% 90%, rgba(22,131,242,.16), transparent 60%); }
.ll-badge { width: 96px; height: 96px; background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 22px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* Mock week calendar in the hero */
.cal { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); max-width: 460px; width: 100%; min-width: 0; justify-self: center; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cal-head b { font-family: var(--heading); }
.cal-head span { color: var(--muted); font-size: .9rem; }
.cal-grid { display: grid; grid-template-columns: 44px repeat(5, 1fr); gap: 4px; font-size: .78rem; }
.cal-grid .d { text-align: center; color: var(--muted); padding-bottom: 4px; }
.cal-grid .t { color: var(--muted); text-align: right; padding-right: 6px; }
.cal-grid .c { background: var(--surface-high); border-radius: 6px; min-height: 34px; }
.cal-grid .ev { border-radius: 6px; padding: 4px 6px; min-height: 34px; color: #0a1422; font-weight: 600; line-height: 1.2; overflow: hidden; }
.ev.ok { background: var(--green); }
.ev.gold { background: var(--gold); }
.ev.wait { background: transparent; border: 1.5px dashed var(--gold); color: var(--gold); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.roles .card h3 { color: var(--gold); }
.ll .step .num { background: var(--gold); color: #0a1422; }
.notice { background: var(--surface); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin: 22px 0; }
.notice p { margin: 0; }
@media (max-width: 900px) { .cal-grid { font-size: .7rem; } }
