/* routes.css: "Four ways to make a video with AI". The four cards are always in view: how it looks,
   and the tools it uses. Compare opens a chart above them and each card's details, staggered.
   Radii are concentric: the frame is 28px with 14px around the cards, so the cards are 14px. */

.routes { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); background: var(--dark); color: var(--on-dark-2); }
.rx { padding: 0 14px 14px; border-radius: 28px; background: var(--dark-2); box-shadow: 0 0 0 1px oklch(1 0 0 / .08), 0 1px 0 oklch(1 0 0 / .05) inset, 0 30px 60px -34px oklch(0 0 0 / .7); }

/* head: the question on the left, the one action on the right */
.rx-top { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 16px 28px; padding: 26px 14px 20px; }
.rx-head { display: grid; gap: 6px; min-width: 0; }
.rx-k { margin: 0; font: 500 var(--t-label)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.rx-t { margin: 0; font: 500 var(--t-h3)/1.15 var(--display); letter-spacing: -0.01em; color: var(--on-dark); text-wrap: balance; }
.rx-sub { margin: 0; font-size: var(--t-small); line-height: 1.45; color: var(--on-dark-soft); }
.rx-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 20px; border: 0; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; transition-property: background-color, color, scale; transition-duration: .2s, .2s, .15s; transition-timing-function: cubic-bezier(.2, 0, 0, 1); }
.rx-toggle:active { scale: .96; }
.rx-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.rx-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .25s cubic-bezier(.2, 0, 0, 1); }
.rx-hide { display: none; }
.rx.is-open .rx-show { display: none; }
.rx.is-open .rx-hide { display: inline; }
.rx.is-open .rx-toggle { background: oklch(1 0 0 / .1); color: var(--on-dark); }
.rx.is-open .rx-toggle svg { rotate: 180deg; }
@media (hover: hover) and (pointer: fine) {
  .rx-toggle:hover { background: var(--card); color: var(--ink); }
  .rx.is-open .rx-toggle:hover { background: oklch(1 0 0 / .16); }
}

/* at a glance: five questions, four ways, a dot each */
.rx-glance { margin: 0 0 14px; padding: 6px 18px 12px; border-radius: 14px; background: oklch(1 0 0 / .03); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .07); }
.rg-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(0, 1fr)); align-items: center; min-height: 40px; }
.rg-row + .rg-row { box-shadow: inset 0 1px 0 oklch(1 0 0 / .07); }
.rg-row > span { display: flex; justify-content: center; align-items: center; height: 100%; font-size: var(--t-small); color: var(--on-dark-2); }
.rg-row > span[role="rowheader"] { justify-content: flex-start; color: var(--on-dark); font-weight: 500; }
.rg-row > span.is-us { background: oklch(0.86 0.165 92 / .08); }
.rg-headrow > span { font: 500 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-soft); text-align: center; }
.rg-headrow > span[role="columnheader"]:first-child { justify-content: flex-start; color: var(--signal); }
.rg-headrow > span.is-us { color: var(--on-dark); border-radius: 8px 8px 0 0; }
.rg-headrow b { font-weight: 500; margin-right: 6px; color: var(--on-dark-2); }
.rg-headrow .is-us b { color: var(--signal); }
.rd { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; }
.rd-y { background: var(--signal); }
.rd-p { background: linear-gradient(90deg, var(--signal) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--signal); }
.rd-n { box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / .3); }
.rg-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px 0 0; font: 500 12px/1.3 var(--mono); letter-spacing: .03em; color: var(--on-dark-soft); }
.rg-key > span { display: inline-flex; align-items: center; gap: 7px; }
.rg-key .rd { width: 11px; height: 11px; }
.rg-key .rg-take { margin-left: auto; font-family: var(--sans); letter-spacing: 0; }

/* the four cards */
.rx-cards { list-style: none; margin: 0; padding: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rx-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; border-radius: 14px; background: oklch(1 0 0 / .035); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .07); }
.rx-card.is-us { background: oklch(0.86 0.165 92 / .07); box-shadow: inset 0 0 0 1.5px oklch(0.86 0.165 92 / .55); }
.rx-us { position: absolute; top: -10px; right: 14px; z-index: 1; padding: 4px 9px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font: 600 11px/1.2 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.rx-art { display: block; width: 100%; height: auto; color: oklch(1 0 0 / .42); }
.rx-card.is-us .rx-art { color: oklch(0.86 0.165 92 / .7); }
.ra-panel { fill: oklch(1 0 0 / .04); stroke: oklch(1 0 0 / .14); stroke-width: 1.2; }
.ra-clip { fill: oklch(1 0 0 / .16); }
.ra-clip.ra-b { fill: oklch(1 0 0 / .1); }
.ra-wave, .ra-arrow, .ra-rule { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ra-head { stroke: var(--signal); stroke-width: 2; }
.ra-cursor { fill: var(--on-dark); stroke: var(--dark); stroke-width: 1.2; stroke-linejoin: round; }
.ra-noise circle { fill: currentColor; }
.ra-sun, .ra-spark, .ra-play { fill: var(--signal); }
.ra-hill { fill: oklch(1 0 0 / .22); }
.ra-code { fill: oklch(1 0 0 / .22); }
.ra-code.ra-hot { fill: var(--signal); }
.ra-frame { fill: oklch(0.17 0.01 70); stroke: oklch(1 0 0 / .2); stroke-width: 1.2; }
.ra-photo { fill: oklch(1 0 0 / .2); }
.ra-dot { fill: oklch(1 0 0 / .22); }
.ra-ring { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: .8; }
.ra-ring2 { opacity: .35; }
.ra-plug rect { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ra-plug path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ra-plug text { fill: var(--on-dark-2); font: 600 10px var(--mono); letter-spacing: .04em; }
.rx-card h3 { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; font: 600 17px/1.25 var(--sans); letter-spacing: -0.01em; color: var(--on-dark); }
.rx-n { flex: none; font: 500 14px/1 var(--mono); color: var(--on-dark-soft); }
.rx-card.is-us .rx-n { color: var(--signal); }

/* the tools, as their own icons: one size, one radius, a faint outline on every picture */
.rx-apps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ra { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; overflow: hidden; background: oklch(0.27 0.01 70); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .1); }
.ra img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ra svg { width: 16px; height: 16px; fill: currentColor; }
.ra-pr { background: #00005b; color: #9999ff; }
.ra-dv { background: #233a51; color: #ffffff; }
.ra-g { background: #ffffff; color: #4285f4; }
.ra-bd { background: #ffffff; color: #3c8cff; }
.ra-ff { background: #0b3d0b; color: #5cd65c; }
.ra-mcp { background: #111111; color: #ffffff; }
.ra-light { background: #ffffff; }
.ra-light img { width: 80%; height: 80%; object-fit: contain; }

/* details, when compared */
.rx-more[hidden], .rx-card .rx-more[hidden] { display: none; }
.rx-card .rx-more:not([hidden]) { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rx.is-open .rx-more { animation: rx-in .4s cubic-bezier(.2, 0, 0, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
.rx.is-open .rx-glance { animation-delay: 0ms; }
@keyframes rx-in { from { opacity: 0; translate: 0 8px; } }
.rx-how { margin: 0; font-size: var(--t-small); line-height: 1.45; color: var(--on-dark-2); }
.rx-tools { margin: 0; font: 500 11.5px/1.45 var(--mono); color: var(--on-dark-soft); }
.rx-pc { list-style: none; display: grid; gap: 7px; margin: auto 0 0; padding: 10px 0 0; box-shadow: inset 0 1px 0 oklch(1 0 0 / .08); }
.rx-pc li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: var(--t-small); line-height: 1.4; color: var(--on-dark-2); }
.rx-mk { width: 18px; height: 18px; padding: 2px; margin-top: 1px; border-radius: 50%; box-sizing: border-box; background: oklch(0.86 0.165 92 / .18); fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rx-mk.rx-no { background: oklch(1 0 0 / .08); stroke: oklch(1 0 0 / .55); }
.rx-best { margin: auto 0 0; padding-top: 6px; font-size: 13px; line-height: 1.4; color: var(--on-dark-soft); }
.rx-best b { margin-right: 4px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); }
.rx-card.is-us .rx-best b { color: var(--signal); }

@media (max-width: 760px) {
  .rx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 620px) {
  .rx { padding: 0 10px 10px; border-radius: 22px; }
  .rx-top { grid-template-columns: minmax(0, 1fr); padding: 20px 8px 16px; }
  .rx-toggle { justify-self: start; }
  .rx-cards { grid-template-columns: minmax(0, 1fr); }
  .rx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rx-card { padding: 10px 10px 12px; gap: 8px; }
  .rx-card h3 { font-size: 14.5px; }
  .ra { width: 24px; height: 24px; border-radius: 6px; }
  .ra svg { width: 14px; height: 14px; }
  .rx-card { border-radius: 12px; }
  .rx-pc li { grid-template-columns: 16px minmax(0, 1fr); gap: 6px; font-size: 13px; }
  .rx-mk { width: 16px; height: 16px; }
  .rx-art { max-width: 250px; }
  .rx-glance { padding: 4px 10px 10px; border-radius: 12px; }
  .rg-row { grid-template-columns: minmax(0, 1fr) repeat(4, 38px); column-gap: 2px; }
  .rg-headrow .rg-l { display: none; }
  .rg-headrow b { margin: 0; font-size: 13px; }
  .rg-key .rg-take { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rx.is-open .rx-more { animation: none; } .rx-toggle svg { transition: none; } .rx-toggle:active { scale: 1; } }

/* the four cards share their rows: titles, icons and the good/hard lines line up across the row */
.rx-cards { grid-auto-rows: auto; }
.rx-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
.rx-card .rx-apps { align-self: start; }
.rx-card .rx-pc { margin: 0; align-self: start; }
