/* The pages for one feature: /compass/ and /face-to-face/ (owner, 29 Nov 2026).
   Every class starts fp- so none can clash with site.css. No script.

   - .fp-hero: the words and the example side by side where there is room,
     stacked on a phone.
   - .fp-shots: real screenshots of KhuHu, each in a light and a dark copy
     (<picture> follows the visitor's setting), with a caption under it.
   - .fp-ph: a staged phone that plays the face-to-face flow in four states,
     the same way the Compass card does (compass-demo.css): the states sit on
     top of each other and only opacity changes, so nothing is laid out again
     while it plays. Without motion (the visitor asked for less, or an old
     browser) the finished transcript shows and nothing moves. A looping
     example needs a way to stop it: the "Pause the example" box. */

.fp-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.fp-hero .fp-demo { justify-self: center; }
.fp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.fp-cta .btn { border-radius: 999px; padding: 13px 24px; font-family: var(--sans); font-size: 1.02rem; font-weight: 600; }
.fp-small { margin-top: 12px; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) {
  .fp-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- screenshots ---------- */
.fp-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.fp-shots li { margin: 0; }
.fp-shot { margin: 0; }
.fp-shot img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 10px 28px rgba(27, 36, 64, .10); }
.fp-shot.card img { max-width: 340px; border-radius: 14px; }
.fp-shot figcaption { max-width: 300px; margin: 12px auto 0; font-size: .95rem; color: var(--muted); }
.fp-shot figcaption b { display: block; margin-bottom: 2px; color: var(--fg); font-weight: 650; }
@media (prefers-color-scheme: dark) { .fp-shot img { box-shadow: none; } }

/* ---------- the staged phone ---------- */
.fp-ph-wrap { margin: 0; width: min(100%, 290px); }
.fp-ph-wrap figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: center; }
.fp-ph {
  --ph-accent: #6941c6; --ph-accent-soft: #eee8fb;
  --ph-surface: #ffffff; --ph-surface-2: #f3f1f8; --ph-line: #e0d9f0;
  --ph-fg: #17202e; --ph-muted: #5b6676; --ph-live: #1a8f5a;
  --ph-dark: #0b0f1c; --ph-dark-2: #1b2133; --ph-dark-fg: #eef0f5; --ph-dark-muted: #9aa3b5;
  --ph-loop: 20s;
  position: relative; aspect-ratio: 9 / 17.5; padding: 10px; border-radius: 36px;
  background: #1c1f26; box-shadow: 0 1px 2px rgba(20, 30, 25, .08), 0 14px 34px rgba(27, 36, 64, .16);
  font: 13px/1.4 var(--sans);
}
@media (prefers-color-scheme: dark) {
  .fp-ph {
    --ph-accent: #a48bf0; --ph-accent-soft: #2f2650;
    --ph-surface: #141a2b; --ph-surface-2: #1d2438; --ph-line: #2b3348;
    --ph-fg: #e9eaee; --ph-muted: #a0a7b6; --ph-live: #4cc38a;
    background: #2a2e37; box-shadow: none;
  }
}
.fp-screen { position: relative; display: grid; grid-template-rows: 100%; height: 100%; overflow: hidden; border-radius: 27px; background: var(--ph-surface); color: var(--ph-fg); }
.fp-ph p, .fp-ph ul { margin: 0; padding: 0; list-style: none; }
.fp-ph svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* The four states share one cell. The last (the transcript) shows when nothing moves. */
.fp-s { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 16px 16px; opacity: 0; }
.fp-s.s4 { opacity: 1; }
.fp-step { font-size: .78rem; font-weight: 700; color: var(--ph-accent); }
.fp-h { font-size: 1.12rem; font-weight: 750; line-height: 1.25; }
.fp-sub { color: var(--ph-muted); font-size: .85rem; }
.fp-tick { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--ph-accent); border-radius: 12px; }
.fp-box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--ph-accent); color: #fff; }
.fp-box svg { width: 14px; height: 14px; stroke-width: 2.6; }
.fp-tick b { font-weight: 650; font-size: .9rem; line-height: 1.35; }
.fp-s .fp-note { margin-top: auto; text-align: center; color: var(--ph-muted); font-size: .78rem; }
.fp-btn { display: grid; place-items: center; height: 40px; border-radius: 11px; background: var(--ph-accent); color: #fff; font-weight: 650; }

/* Recording and finishing are dark, as on KhuHu's own screen. */
.fp-s.s2, .fp-s.s3 { background: var(--ph-dark); color: var(--ph-dark-fg); }
.fp-top { padding-bottom: 10px; border-bottom: 1px solid var(--ph-dark-2); text-align: center; font-weight: 650; font-size: .85rem; }
.fp-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.fp-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: #3b1a22; color: #ffb3b0; font-weight: 600; font-size: .82rem; }
.fp-pill i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.fp-clock { font-size: 2.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.fp-quiet { color: var(--ph-dark-muted); font-size: .78rem; }
.fp-level { width: 74%; height: 5px; border-radius: 999px; background: var(--ph-dark-2); overflow: hidden; }
.fp-level i { display: block; width: 100%; height: 100%; border-radius: 999px; background: #3fbf7f; transform: scaleX(.55); transform-origin: left center; }
.fp-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.fp-row span { display: grid; place-items: center; height: 40px; border-radius: 11px; font-weight: 650; font-size: .85rem; }
.fp-pause { background: var(--ph-dark-2); }
.fp-stop { background: #ffaaa3; color: #1b0d0d; }
.fp-discard { text-align: center; color: var(--ph-dark-muted); font-size: .75rem; text-decoration: underline; }

.fp-anim { display: flex; align-items: center; gap: 12px; }
.fp-wave { display: flex; align-items: center; gap: 4px; height: 38px; }
.fp-wave i { width: 5px; border-radius: 3px; background: #8b6cf0; }
.fp-wave i:nth-child(1) { height: 14px; } .fp-wave i:nth-child(2) { height: 26px; } .fp-wave i:nth-child(3) { height: 36px; } .fp-wave i:nth-child(4) { height: 22px; } .fp-wave i:nth-child(5) { height: 12px; }
.fp-arrow { width: 18px; height: 18px; color: var(--ph-dark-muted); }
.fp-dots { display: grid; gap: 5px; }
.fp-dots i { width: 9px; height: 9px; border-radius: 50%; }
.fp-dots i:nth-child(1) { background: #2bb5a0; } .fp-dots i:nth-child(2) { background: #e2742e; } .fp-dots i:nth-child(3) { background: #2bb5a0; }
.fp-steps3 { display: flex; gap: 10px; font-size: .76rem; color: var(--ph-dark-muted); }
.fp-steps3 span { display: inline-flex; align-items: center; gap: 4px; }
.fp-steps3 svg { width: 12px; height: 12px; color: #4cc38a; stroke-width: 2.6; }
.fp-work { width: 80%; height: 5px; border-radius: 999px; background: var(--ph-dark-2); overflow: hidden; }
.fp-work i { display: block; width: 100%; height: 100%; background: #8b6cf0; transform: scaleX(.7); transform-origin: left center; }

/* The meeting, with its speakers. */
.fp-title { font-size: 1.02rem; font-weight: 750; }
.fp-meta { color: var(--ph-muted); font-size: .76rem; }
.fp-who { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-who span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--ph-surface-2); font-size: .76rem; font-weight: 600; }
.fp-who svg { width: 11px; height: 11px; color: var(--ph-muted); }
.fp-lines { display: grid; gap: 9px; }
.fp-lines li { display: grid; gap: 1px; padding-top: 9px; border-top: 1px solid var(--ph-line); }
.fp-lines b { font-size: .78rem; font-weight: 700; }
.fp-lines b.a { color: #1f8a78; } .fp-lines b.b { color: #b4581f; }
.fp-lines time { margin-left: 6px; font-weight: 500; color: var(--ph-muted); }
.fp-lines p { font-size: .84rem; }
@media (prefers-color-scheme: dark) { .fp-lines b.a { color: #59d1bc; } .fp-lines b.b { color: #f0a06b; } }

/* Shown only where the loop runs. */
.fp-pausebox { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .fp-ph.playing .fp-s.s1 { animation: fp-s1 var(--ph-loop) ease-in-out infinite; }
  .fp-ph.playing .fp-s.s2 { animation: fp-s2 var(--ph-loop) ease-in-out infinite; }
  .fp-ph.playing .fp-s.s3 { animation: fp-s3 var(--ph-loop) ease-in-out infinite; }
  .fp-ph.playing .fp-s.s4 { animation: fp-s4 var(--ph-loop) ease-in-out infinite; }
  .fp-ph.playing .fp-box { animation: fp-box var(--ph-loop) ease-out infinite; }
  .fp-ph.playing .fp-level i { animation: fp-level 1.1s ease-in-out infinite alternate; }
  .fp-ph.playing .fp-work i { animation: fp-work var(--ph-loop) linear infinite; }
  .fp-pausebox { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-size: .9rem; color: var(--muted); cursor: pointer; }
  .fp-pausebox input { width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
  .fp-ph-wrap:has(.fp-pausebox input:checked) .fp-ph.playing * { animation-play-state: paused; }
}
/* 0-22%: tick and continue; 25-47%: recording; 50-68%: finishing; 71-97%: the transcript. */
@keyframes fp-s1 { 0%, 22% { opacity: 1; } 25%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fp-s2 { 0%, 22% { opacity: 0; } 25%, 47% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fp-s3 { 0%, 47% { opacity: 0; } 50%, 68% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes fp-s4 { 0%, 68% { opacity: 0; } 71%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fp-box { 0%, 6% { opacity: 0; transform: scale(.6); } 10%, 100% { opacity: 1; transform: none; } }
@keyframes fp-level { from { transform: scaleX(.25); } to { transform: scaleX(.8); } }
@keyframes fp-work { 0%, 50% { transform: scaleX(.05); } 66%, 100% { transform: scaleX(1); } }

/* ---------- the face-to-face block (partials/face-to-face-block.html) ----------
   On the features page and the home page: the staged phone (partials/face-to-face-demo.html) next to its points, like the Compass demo. */
.ff-demo { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px 48px; align-items: start; max-width: 880px; }
.ff-demo .points3 { margin-top: 6px; }
.ff-demo .fp-ph-wrap { width: min(100%, 260px); }
@media (max-width: 600px) { .ff-demo { grid-template-columns: 1fr; } .ff-demo .fp-ph-wrap { justify-self: center; } }
.ff-note { margin-top: 18px; }
