/* #247 v3 (Nicolas's review #3, OBS 09-45-59): a divider between every section, Ask and No MCP side by side,
   an old app being recorded (not a terminal), the phone and the bank as work in progress, the agents' waiting hand,
   a rounded break into the dark use cases, the shield, a lock that opens and closes for Fig 0.1. Tokens from styles.css. */

/* every section gets its hairline (Nicolas: "il manque un divider") */
.sd { display: block; height: 1px; border: 0; margin: 0 auto; width: calc(100% - 80px); max-width: 1200px; background: var(--line2); }
.lx + .lx::before { display: none; }
.fx + .sd, .sd + .lx, .sd + .sx { margin-top: 0; }
.fx { padding-bottom: 120px; }
.sd + .lx { padding-top: 120px; }
#window { padding-bottom: 120px; }
.lx-head p { font-size: 20px; }   /* one point smaller (side texts) */

/* ───── side by side: text on one side, the picture on the other (Ask, then No MCP flipped) ───── */
.sx { max-width: 1280px; margin: 0 auto; padding: 120px 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.sx-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sx-flip .sx-text { order: 2; }
.sx-text h2 { font: 560 48px/1.02 var(--display); letter-spacing: -.028em; text-wrap: balance; }
.sx-text > p { margin-top: 20px; font-size: 20px; line-height: 1.42; letter-spacing: -.012em; color: color-mix(in srgb, var(--fg) 66%, var(--bg)); max-width: 26em; text-wrap: pretty; }
.sx-vis { position: relative; margin: 0; }
#ask .vid-frame { margin-top: 0; }
.sx .vid-frame { overflow: visible; }
.sx .vid-frame video { border-radius: 18px; }
.sx .nm-facts { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; margin-top: 28px; font-size: 15px; }

/* No MCP: the old app, recorded (a REC light that blinks), and what Pullback hands your agent */
.sx .nm-vis { display: block; margin: 0; padding: 48px 40px 56px; min-height: 420px; text-align: left; }
.nm-old { position: relative; width: 74%; background: #c9c6bd; color: #111; border-radius: 3px; font: 12.5px/1.3 Tahoma, Verdana, "Segoe UI", sans-serif;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #6e6b64, 0 30px 60px -24px rgba(0,0,0,.45); padding: 3px; }
.nm-oldbar { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 4px 0 7px; color: #fff; font-weight: 700; font-size: 12px; background: linear-gradient(90deg, #0a246a, #3a6ea5); }
.nm-x { display: grid; place-items: center; width: 16px; height: 14px; font: 700 11px/1 Tahoma, sans-serif; color: #111; background: #c9c6bd; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #6e6b64; }
.nm-oldmenu { padding: 4px 6px; font-size: 12px; word-spacing: 8px; }
.nm-oldbody { margin: 2px 4px 6px; padding: 8px; background: #fff; box-shadow: inset 1px 1px 0 #6e6b64, inset -1px -1px 0 #fff; }
.nm-oldrow { display: grid; grid-template-columns: 44px 1fr 56px 52px; gap: 6px; padding: 3px 4px; font-variant-numeric: tabular-nums; }
.nm-oldrow.h { font-weight: 700; border-bottom: 1px solid #b9b6ad; }
.nm-oldrow.sel { background: #0a246a; color: #fff; }
.nm-oldbtns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.nm-oldbtns i { font-style: normal; min-width: 64px; text-align: center; padding: 3px 0; background: #c9c6bd; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #6e6b64; }
.nm-rec { position: absolute; top: -12px; left: -12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 12px;
  font: 700 11px/1 var(--font); letter-spacing: .06em; color: #fff; background: rgba(20,20,22,.82); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.nm-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: nmrec 1.2s steps(1) infinite; }
@keyframes nmrec { 50% { opacity: .15; box-shadow: none; } }
.nm-old .nm-lock { left: 4px; bottom: -38px; font-family: var(--font); color: var(--fg2); background: var(--card); }
.sx .nm-ctx { position: absolute; right: 32px; bottom: 36px; width: 52%; }
.nm-key { flex-wrap: wrap; }

.nm-more { max-width: 1280px; margin: 0 auto; padding: 0 40px 120px; }
.nm-more .nm-cases { margin-top: 0; }
.nm-wip-h { margin-top: 40px; }
.wip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font: 600 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  color: #8a5300; background: color-mix(in srgb, #ff9f0a 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff9f0a 30%, transparent); vertical-align: 1px; }
.nm-wip { grid-template-columns: repeat(2, 1fr); margin-top: 14px !important; }
.nm-more .nm-fine { margin-top: 36px; text-align: center; }

/* agents: progress + the waiting hand (the menu bar's yellow-orange hand, #268) */
.ag-facts { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--fg); }
.ag-facts li { display: flex; align-items: center; gap: 10px; }
.ag-facts .wip { margin-left: 2px; }
.ag-hand, .ag-hand-s { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: #ff9f0a; }
.ag-hand svg, .ag-hand-s svg { width: 18px; height: 18px; fill: currentColor; }
.ag-hand { width: 14px; transform-origin: 50% 90%; animation: aghand 2.4s ease-in-out infinite; }
@keyframes aghand { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-14deg); } 72% { transform: rotate(12deg); } 78% { transform: rotate(-9deg); } 84% { transform: rotate(6deg); } }
.ag-row.wait small { color: #8a5300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ag-row.wait small, :root:not([data-theme="light"]) .wip { color: #ffb340; } }
:root[data-theme="dark"] .ag-row.wait small, :root[data-theme="dark"] .wip { color: #ffb340; }
.ag-sec { padding-top: 120px; }

/* a rounded break into the dark use cases, and out of them (Nicolas: "comme un arrondi, une rupture") */
.ux { padding: 112px 0 96px; margin: 120px 12px 0; border-radius: 48px; box-shadow: 0 0 0 1px var(--line2); }
.ux + .pf { padding-top: 96px; }
.ux-bot { justify-content: flex-end; }

/* privacy: the shield on top */
.pf-eye { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pf-shield { color: var(--fg); }

/* Fig 0.1: a lock that opens and closes (your history, locked on your Mac) */
.lk { width: 150px; height: 150px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lk .d { stroke-dasharray: 2 3; }
.lk-b { fill: var(--bg); }
.lk-b2 { fill: var(--bg); }
.lk-k { stroke: var(--fg); }
.lk-sh { transform-box: fill-box; }
.fx-col.in .lk-sh { animation: lkopen 4.2s cubic-bezier(.3,.7,.2,1) .6s infinite; }
.fx-col.in .lk-k { animation: lkkey 4.2s ease .6s infinite; }
@keyframes lkopen { 0%, 18% { transform: translateY(0); } 34%, 62% { transform: translateY(-16px); } 76%, 100% { transform: translateY(0); } }
@keyframes lkkey { 0%, 74% { stroke: var(--fg); } 80% { stroke: var(--accent); } 92%, 100% { stroke: var(--fg); } }
.fx-col:hover .lk-sh { animation-play-state: paused; }

@media (max-width: 900px) {
  .sd { width: calc(100% - 48px); }
  .sx, .sx-flip { grid-template-columns: 1fr; gap: 36px; padding: 88px 24px; }
  .sx-flip .sx-text { order: 0; }
  .sx-text h2 { font-size: 38px; }
  .sx-text > p { font-size: 18px; }
  .sx .nm-vis { padding: 28px 16px 24px; min-height: 0; }
  .nm-old { width: 100%; }
  .sx .nm-ctx { position: relative; right: auto; bottom: auto; width: auto; margin-top: 52px; }
  .nm-more { padding: 0 24px 88px; }
  .nm-wip { grid-template-columns: 1fr; }
  .fx { padding-bottom: 88px; }
  .sd + .lx { padding-top: 88px; }
  #window { padding-bottom: 88px; }
  .ux { margin: 88px 8px 0; border-radius: 32px; }
}
@media (max-width: 640px) {
  .sd { width: calc(100% - 32px); }
  .sx, .sx-flip { padding: 72px 16px; }
  .sx-text h2 { font-size: 31px; letter-spacing: -.025em; }
  .sx-text > p { font-size: 16px; }
  .lx-head p { font-size: 16px; }
  .nm-more { padding: 0 16px 72px; }
  .nm-oldrow { grid-template-columns: 32px 1fr 44px 40px; font-size: 11.5px; }
  .ux { margin: 72px 6px 0; border-radius: 28px; }
  .ux + .pf { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-rec i, .ag-hand, .fx-col.in .lk-sh, .fx-col.in .lk-k { animation: none !important; }
}
.uc-name .tag { margin-left: 6px; vertical-align: 2px; }
#ask .vid-frame video { aspect-ratio: 1600 / 1012; }

/* ───── #247 v4 (Nicolas's review #4) ───── */
/* the page sits on black in dark mode; the use cases are a full-width rounded block on top; the footer keeps the lighter tone */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #000; } }
:root[data-theme="dark"] { --bg: #000; }
.ux { margin: 120px 0 0; border-radius: 56px; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ux { --ux-bg: #111114; } }
:root[data-theme="dark"] .ux { --ux-bg: #111114; }
@media (max-width: 900px) { .ux { margin: 88px 0 0; border-radius: 36px; } }
@media (max-width: 640px) { .ux { margin: 72px 0 0; border-radius: 28px; } }

/* the lead below the hero is now just the statement */
.fx-lead { font-size: 40px; }

/* agents: static bullets (the motion stays in the pictures) */
.ag-dot { width: 10px; height: 10px; flex: none; margin: 0 4px; border-radius: 50%; background: var(--agent); }

/* agents: find anything your agents made (real footage) */
.af { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 96px; }
.af h3 { font: 560 32px/1.08 var(--display); letter-spacing: -.025em; }
.af-text > p { margin-top: 14px; font-size: 19px; line-height: 1.45; color: color-mix(in srgb, var(--fg) 66%, var(--bg)); }
.af-q { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.af-q > span:first-child { font-size: 17px; color: var(--fg); }
.af-a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); }
.af-a kbd { font: 600 11px/1 var(--font); min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line2); }
.af-text > p.af-note { font-size: 13px; color: var(--fg2); }
.af-vis { position: relative; margin: 0; }
.af-vis video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 964; border-radius: 18px; }

/* No MCP: a light, numbered row of cards (linear.app feature cards), scrolls sideways */
.uk { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; }
.uk::-webkit-scrollbar { display: none; }
.uk-c { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); min-height: 196px; }
.uk-n { font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--fg3); }
.uk-c h3 { margin-top: auto; font-size: 16px; font-weight: 560; letter-spacing: -.01em; }
.uk-c p { font-size: 14px; line-height: 1.45; color: var(--fg2); }
.uk-c .wip { align-self: flex-start; }
@media (max-width: 900px) {
  .af { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .af h3 { font-size: 26px; }
  .uk { grid-auto-columns: 78%; }
  .fx-lead { font-size: 30px; }
}
@media (max-width: 640px) { .af-text > p { font-size: 16px; } .af-q > span:first-child { font-size: 16px; } }
/* review (#275): the row says it scrolls (a fade on the right edge, the next card peeks) */
@media (min-width: 901px) { .uk { grid-auto-columns: 250px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 120px; } }
.nm-more .nm-fine { margin-top: 20px; text-align: left; }

/* ───── #247 v5: a macOS-like wallpaper behind every product picture (our own SVG, media/wall-*.svg, not Apple's) ───── */
.sc-wall { background: #2b3f9e url(/media/wall-dark.svg) center / cover no-repeat; }
.sc-wall::before { display: none; }
.scene.light .sc-wall { background: #8fa6f0 url(/media/wall-light.svg) center / cover no-repeat; }
.wx-desk { background: #2b3f9e url(/media/wall-dark.svg) center / cover no-repeat; }
:root[data-theme="light"] .wx-desk { background-image: url(/media/wall-light.svg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .wx-desk { background-image: url(/media/wall-light.svg); } }

/* #247 v5: the No MCP cards: a small cluster of the apps it's about on top, fixed height, everything top-aligned, the badge small in the corner */
.uk-c { position: relative; height: 236px; min-height: 0; justify-content: flex-start; gap: 0; padding: 18px 18px 18px; }
.uk-c h3 { margin-top: 16px; }
.uk-c p { margin-top: 6px; }
.uk-ic { display: flex; align-items: center; height: 28px; }
.uk-ic > * { width: 28px; height: 28px; flex: none; border-radius: 8px; background: #fff; box-shadow: 0 0 0 2px var(--card), inset 0 0 0 .5px rgba(0,0,0,.12); object-fit: contain; padding: 3px; }
.uk-ic > * + * { margin-left: -6px; }
.uk-ic .gl { display: grid; place-items: center; background: var(--card2); color: var(--fg2); box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1px var(--line2); }
.uk-ic .gl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.uk-ic .tx { font: 700 13px/1 var(--font); }
.uk-w { position: absolute; top: 14px; right: 14px; height: 18px; padding: 0 7px; border-radius: 9px; display: inline-flex; align-items: center; font: 600 9.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase;
  color: #8a5300; background: color-mix(in srgb, #ff9f0a 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff9f0a 30%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .uk-w { color: #ffb340; } }
:root[data-theme="dark"] .uk-w { color: #ffb340; }
.uk-n { position: absolute; left: 18px; bottom: 14px; }
@media (max-width: 640px) { .uk-c { height: 248px; } }
/* review (#287): equal heights from the grid, the number back in the flow (no overlap with a longer text) */
.uk-c { height: auto; min-height: 236px; }
.uk-n { position: static; margin-top: auto; padding-top: 14px; }
@media (max-width: 640px) { .uk-c { height: auto; min-height: 248px; } }
