/* Product pages (Platform, Deployment). Shares tokens and the closing band with home.css. */
/* Emails */
/* Plan: a real sequence, so it reads top to bottom with a state per step */
/* Stage: one panel at a time */
/* The outgoing panel clears before the next arrives, so their text never overlaps */
.fw-replay { position: absolute; right: 0; bottom: -40px; padding: 6px 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .12); color: var(--on-dark); font-size: 12.5px; cursor: pointer; transition: background .2s; }
.fw-replay:hover { background: rgb(255 255 255 / .2); }
.fw-replay:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
/* Hero on paper, the demo on the same framed landscape as the homepage */
.fn-hero { padding-block: 132px 24px; }
.fn-head, .fn-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: end; }
.fn-head h1 { font: 400 clamp(44px, 5vw, 68px)/1.02 "Libre Caslon Display", Georgia, serif; letter-spacing: -.03em; }
.fn-split h2 { max-width: 16ch; font: var(--display); letter-spacing: -.02em; }
.fn-head p, .fn-split p { max-width: 56ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.fn-frame { position: relative; margin-top: 48px; padding: 48px 48px 64px; border-radius: 8px; background: var(--frame); }
.fn-frame .fw-replay { bottom: -44px; }
/* Shared by the channel demos and the app previews */
.fc, .fd { --line: #e7e9e4; --soft: #f6f7f4; --ok: #2f6b45; --ok-bg: #e6f0e8; --amber: #b4541f; --amber-bg: #fbefe7; }
.av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #dfe5dc; color: var(--ink); font-size: 11px; font-weight: 600; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
/* Channels: a switch on the left, the app it happens in on the right. Each pane plays once when it opens. */
.fc { padding-block: 128px 0; }
.fc-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; margin-top: 52px; }
.fc-switch { display: grid; gap: 4px; }
.fc-switch button { position: relative; display: grid; gap: 6px; overflow: hidden; padding: 16px 20px; border: 0; border-radius: 8px; background: none; color: var(--muted); text-align: left; cursor: pointer; transition: background .25s, box-shadow .25s; }
.fc-switch strong { color: var(--ink); font: 400 22px/1.2 "Libre Caslon Display", Georgia, serif; opacity: .45; transition: opacity .25s; }
.fc-switch span { display: none; font-size: 15px; line-height: 1.55; }
.fc-switch button:hover strong { opacity: .8; }
.fc-switch [aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 12px 30px rgb(24 38 30 / .06); }
.fc-switch [aria-pressed="true"] strong { opacity: 1; }
.fc-switch [aria-pressed="true"] span { display: block; }
.fc-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* While the demos advance on their own, the open tab shows how long until the next */
.fc-bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; }
.fc.is-live:not(.is-picked) [aria-pressed="true"] .fc-bar::after { content: ""; display: block; height: 100%; background: var(--accent); transform-origin: left; animation: fc-grow var(--ms) linear both; }
.fc-stage { padding: 40px; border-radius: 8px; background: var(--frame); }
.app { display: flex; flex-direction: column; height: 540px; overflow: hidden; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13.5px; box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 50px 110px rgb(0 0 0 / .45); }
.fc-pane:not([hidden]) .app { animation: fc-in .45s cubic-bezier(.16,1,.3,1); }
.app-top { display: flex; align-items: baseline; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.app-top b { font: 400 19px/1.2 "Libre Caslon Display", Georgia, serif; }
.app-top small { color: var(--muted); font-size: 12px; }
/* Feeds sit at the bottom like a real chat: each new message opens up and pushes the older ones up and out */
:is(.app-feed > *, .mini > div, .flags li, .file, .transcript p) { flex: none; max-height: 520px; overflow: hidden; }
:is(.app-feed, .transcript) { -webkit-mask-image: linear-gradient(transparent, #000 32px); mask-image: linear-gradient(transparent, #000 32px); }
.msg { display: flex; gap: 12px; }
.msg-body { flex: 1; min-width: 0; }
.who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.who b { font-weight: 600; }
.who small, .who time { color: var(--muted); font-size: 11.5px; }
.msg-body > p:not(.who) { color: #3d463f; line-height: 1.55; }
/* Channel panes: the app panels animate in as each step plays */
/* A ring shows who is talking; the boardroom tile lights for both Fiona and Tom */
/* Timed entrances. The resting state is the finished one, so with motion off everything simply shows. */
.fc:not(.is-live) :is(.app-parent, .msg, .draft, .transcript p, .heard-item, .prog em, .mini > div, .flags li, .file, .mail-rail em) { opacity: 0; }
.fc.is-live .fc-pane:not([hidden]) :is(.msg, .draft, .transcript p, .mini > div, .flags li, .file) { animation: fc-open .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--d) * 1ms); }
.fc.is-live .fc-pane:not([hidden]) :is(.prog em, .mail-rail em) { animation: fc-fade .4s both; animation-delay: calc(var(--d) * 1ms + var(--ms, 0) * 1ms); }
@keyframes fc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fc-open { from { opacity: 0; max-height: 0; padding-top: 0; margin-top: 0; transform: translateY(10px); } }
@keyframes fc-fade { from { opacity: 0; } }
@keyframes fc-grow { from { transform: scaleX(0); } }
/* App previews */
.fd { padding-block: 136px 0; }
.fd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 20px; margin-top: 52px; }
.panel { margin: 0; padding: 22px 24px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 13.5px; box-shadow: 0 0 0 1px var(--rule), 0 24px 60px rgb(24 38 30 / .08); }
.panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel > header b { font: 400 20px/1.2 "Libre Caslon Display", Georgia, serif; }
.panel > header small { color: var(--muted); font-size: 12px; }
.fd-desk { grid-row: span 2; align-self: start; }
.fd-links { display: grid; margin: 0; padding: 0; list-style: none; }
.fd-links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fd-links b { display: block; font-weight: 600; }
.fd-links small { color: var(--muted); font-size: 12px; }
.toggle { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--accent); }
.toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
/* Ledger rows */
@media (prefers-reduced-motion: reduce) {
  .fc *, .fc *::before, .fc *::after, .fd *, .fd *::before, .fd *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1100px) {
  .fd-grid { grid-template-columns: 1fr; }
  .fd-desk { grid-row: auto; }
}
@media (max-width: 900px) {
  .fn-head, .fn-split { grid-template-columns: 1fr; gap: 20px; }
  .fn-frame, .fc-stage { padding: 20px 20px 56px; }
  .fc-stage { padding-bottom: 20px; }
  .fc-body { grid-template-columns: 1fr; gap: 20px; }
  .fc-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-switch button { padding: 12px 14px; }
  .fc-switch strong { font-size: 18px; }
  .fc-switch [aria-pressed="true"] span { display: none; }
  .app { height: auto; min-height: 480px; }
}
@media (max-width: 560px) {
  .fn-hero { padding-top: 112px; }
  .fn-head h1 { font-size: 44px; }
  .fn-split h2 { font-size: 36px; }
  .fn-frame { margin-left: -12px; margin-right: -12px; padding: 12px 12px 52px; }
  .fc-stage { margin-left: -12px; margin-right: -12px; padding: 12px; }
  .app-top { flex-wrap: wrap; padding: 14px 16px; }
  .fc, .fd, .fn-ex { padding-top: 88px; }
}
