/* REQ-130: the public front page at "/" for signed-out visitors. App tokens only (app.css), light and dark.
   index.html shows one of two views: the front page, or the sign-in view (today's screen). The view is chosen
   before the first paint (html[data-view]); without JavaScript the front page shows. */
html:not([data-view="entry"]) #entry,
html[data-view="entry"] #front,
html[data-view="entry"] .fp-top .fp-signin,
html[data-view="entry"] .fp-top .home,
html[data-view="entry"] .fp-top .test-site{display:none}
html[data-view="entry"] .fp-top{justify-content:flex-end;padding-bottom:0}
html:not([data-view="entry"]) #entry-home{display:none}

.fp-top{max-width:1120px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.fp-top a.home{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-decoration:none;color:var(--mark-x);font:800 24px var(--display);letter-spacing:-.015em}
.fp-top a.home svg{height:32px;width:auto}
.fp-top a.home .xo-x{fill:var(--mark-x)}
#entry-home{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);font-weight:600}

.btn.big{min-height:52px;font-size:16px;padding:12px 22px;justify-content:center;border-radius:12px}
.fp{max-width:1120px;margin:0 auto;padding:0 16px}
.fp h1,.fp h2{text-wrap:balance}
.fp .hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center;padding:40px 0 56px}
.fp .eyebrow{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.fp .hero h1{font-size:50px;line-height:1.06;letter-spacing:-.02em}
.fp .lede{margin:18px 0 0;font-size:19px;line-height:1.55;color:var(--muted);max-width:32em}
.fp .ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.fp .fine{margin:14px 0 0;font-size:14px;color:var(--muted)}

/* The drill card: a real library drill, drawn and played by the drill engine. */
.fp .phone{justify-self:center;width:100%;max-width:340px;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:32px;padding:14px;box-shadow:0 24px 60px -24px rgba(7,28,63,.35)}
.fp .board{position:relative;border-radius:16px;overflow:hidden;background:var(--pitch)}
.fp .board .field svg{display:block;width:100%;height:auto}
.fp .board .field:empty{aspect-ratio:2/3}
.fp .board .pp{position:absolute;right:8px;bottom:8px;min-height:44px;min-width:44px;justify-content:center;border-radius:999px;background:rgba(7,28,63,.72);border-color:transparent;color:#fff;font-size:13px}
.fp .board .pp:hover{border-color:#fff}
.fp .cap{padding:14px 6px 4px}
.fp .cap b{font:700 18px var(--display);display:block}
.fp .cap .meta{font-size:14px;color:var(--muted)}
/* REQ-148: the hero drill's steps. A plain list that follows the animation; the step playing is marked. */
.fp .fp-steps{list-style:none;margin:10px 0 0;padding:0 2px;display:grid;gap:4px}
.fp .fp-steps li{display:flex;align-items:center;gap:10px;min-height:34px;padding:5px 10px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font:500 14px/1.3 var(--body);color:var(--ink);transition:background .25s,border-color .25s}
.fp .fp-steps li b{flex:none;width:22px;height:22px;border-radius:50%;background:#16201A;color:#fff;display:inline-flex;align-items:center;justify-content:center;font:800 12px var(--body)}
.fp .fp-steps li[aria-current="step"]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--soft-accent)}
@media (prefers-reduced-motion:reduce){.fp .fp-steps li{transition:none}}
.fp .why{display:block;margin:10px 0 0;background:var(--soft-accent);border-radius:12px;padding:10px 12px;font-size:14px}

.fp section.band{padding:56px 0;border-top:1px solid var(--line)}
.fp .band h2{font-size:34px;letter-spacing:-.015em;max-width:20em}
.fp .sub{margin:10px 0 0;font-size:17px;color:var(--muted);max-width:40em}
.fp .loop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:32px 0 0;padding:0;list-style:none}
.fp .step{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px}
.fp .step .n{display:inline-flex;align-items:center;gap:8px;font:700 13px var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.fp .step .n i{font-style:normal;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--accent-ink);letter-spacing:0}
.fp .step h3{font-size:22px;margin:12px 0 8px}
.fp .step p{margin:0;color:var(--muted);font-size:16px}
/* REQ-148: the loop. A green arrow between steps, one app screen in each, and the "loop again" pill. */
.fp .loop{gap:28px}
.fp .loop .step{display:flex;flex-direction:column;position:relative}
.fp .loop .step + .step::before{content:"";position:absolute;left:-23px;top:44px;width:18px;height:18px;background:var(--accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
/* The three pictures are the same size and sit at the bottom of their cards, so they line up across the row. */
.fp .loop .step > p{margin-bottom:18px}
.fp .loop .step .shot{display:block;margin-top:auto;border-radius:18px;overflow:hidden;border:1px solid var(--line);box-shadow:0 14px 30px -20px rgba(7,28,63,.45);max-width:300px;width:100%;align-self:center}
.fp .loop .step .shot img{display:block;width:100%;height:auto}
.fp .loop-back{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px auto 0;padding:10px 16px;border:1px dashed var(--accent);border-radius:999px;width:max-content;max-width:100%;font-weight:600;color:var(--ink);font-size:15px;text-align:center}
.fp .loop-back svg{width:20px;height:20px;flex:none;stroke:var(--accent);fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.fp .libshot{margin:24px 0 0;display:grid;gap:10px}
.fp .libshot img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--line);box-shadow:0 14px 30px -22px rgba(7,28,63,.45)}
.fp .libshot figcaption{font-size:15px;color:var(--muted)}
.fp .feat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px;margin:32px 0 0;padding:0;list-style:none}
.fp .feat .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--chip);color:var(--ink);margin-bottom:12px}
.fp .feat .ic svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fp .feat h3{font-size:18px;margin:0 0 6px}
.fp .feat p{margin:0;color:var(--muted);font-size:15px}

/* Clubs: a navy band in both themes, with a lighter edge in dark mode so it doesn't melt into the page. */
.fp .club{background:var(--navy);color:#fff;border:1px solid var(--line);border-radius:24px;padding:40px;display:grid;grid-template-columns:minmax(0,1.4fr) auto;gap:24px;align-items:center;margin:56px 0}
.fp .club h2{color:#fff;font-size:30px}
.fp .club p{color:#C9D3E6;margin:10px 0 0;font-size:17px;max-width:36em}
.fp .club .btn{background:transparent;color:#fff;border-color:#fff}
.fp .club .btn:hover{background:rgba(255,255,255,.1)}
.fp .club :focus-visible{outline-color:#8DB4FF}
.fp .trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0 0;padding:0;list-style:none}
.fp .trust li{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;font-size:15px}
.fp .trust b{display:block;font:700 16px var(--display);margin-bottom:4px}
.fp .final{text-align:center;padding:64px 0}
.fp .final h2{font-size:34px;margin:0 auto;max-width:18em}
.fp .final .sub{margin:12px auto 0}
.fp .final .ctas{justify-content:center}
.fp .final .addr{margin:14px 0 0;font-size:14px;color:var(--muted)}
.fp-page .site-foot{max-width:1120px}
.fp-page .site-foot .copy{display:inline-flex;align-items:center;min-height:44px}

@media (max-width:900px){
  .fp .hero{grid-template-columns:1fr;gap:32px;padding:20px 0 40px}
  .fp .loop,.fp .trust{grid-template-columns:1fr}
  .fp .feat{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fp .club{grid-template-columns:1fr;padding:28px}
  .fp .loop .step + .step::before{left:50%;top:-24px;margin-left:-9px;transform:rotate(90deg)}
}
@media (max-width:560px){
  .fp .hero h1{font-size:36px}
  .fp .lede{font-size:17px}
  .fp .ctas .btn{width:100%}
  .fp .band h2,.fp .final h2{font-size:27px}
  .fp .feat{grid-template-columns:1fr}
  .fp .club h2{font-size:24px}
  .fp .phone{max-width:300px}
  .fp-top a.home{font-size:20px}
  .fp-top a.home svg{height:26px}
  .fp section.band{padding:40px 0}
  .fp .loop .step .shot{max-width:210px}
}
@media (max-width:340px){.fp .hero h1{font-size:31px}}
