/* JSX in, widget out, six platforms: the hero sequence and the platform gallery.
   Everything is visible without JavaScript; showcase.js adds .flow-live to animate. */

.hero{align-items:start;padding-bottom:40px}
.flow{margin:0;min-width:0;position:relative}
.flow-code{margin:0;background:var(--code);color:#d7dce6;border-radius:20px;padding:22px 22px 86px;font:12.5px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-x:auto;box-shadow:0 18px 50px #17202a1f;tab-size:2}
.flow-code .ln{display:block;white-space:pre;border-radius:4px;margin-inline:-8px;padding-inline:8px}
.flow-code .k{color:#ad9cff}.flow-code .s{color:#ff8aae}.flow-code .t{color:#7fd1ff}.flow-code .a{color:#f2c879}
.flow-file{display:flex;align-items:center;gap:8px;font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:#8c95a6;margin-bottom:14px}
.flow-file i{width:9px;height:9px;border-radius:50%;background:#3a4152}
.flow-out{position:relative;display:flex;align-items:flex-end;gap:14px;margin:-64px 18px 0 auto;width:min(340px,82%)}
.flow-arrow{flex:none;font:700 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 10px;margin-bottom:22px;box-shadow:0 6px 18px #17202a14}
.flow figcaption{font-size:12px;color:var(--muted);margin-top:14px;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.flow-toggle{font:600 12px/1 inherit;font-family:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:999px;padding:8px 12px;cursor:pointer}
.flow-toggle:hover{border-color:var(--ink)}
.flow-toggle:focus-visible,.pf-tabs button:focus-visible,.pf-copy a:focus-visible{outline:3px solid #0a84ff;outline-offset:3px}

/* The widget the code describes, drawn in CSS at any size through --u. */
.w{--u:10px;flex:1;min-width:0;font-size:var(--u);background:#2563eb;color:#fff;border-radius:2.2em;padding:1.5em 1.6em 1.4em;aspect-ratio:2.13;display:flex;flex-direction:column;gap:.75em;box-shadow:0 1.6em 3.6em #1d3fa84d;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif}
.w-head{display:flex;align-items:baseline;justify-content:space-between;gap:1em}
.w-title{font-size:2em;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.w-date{font-size:1.15em;color:#dbeafe;white-space:nowrap}
.w-row{display:flex;align-items:center;gap:.8em;font-size:1.55em;line-height:1.1}
.w-row b{flex:none;width:1.35em;height:1.35em;border-radius:.35em;background:#172554;color:#bfdbfe;font-size:.72em;font-weight:600;display:grid;place-items:center}

/* Six platforms: one row on a wide screen, then three by two, then two by three. */
.rail{padding:8px 0 72px}
.rail-line{height:2px;background:linear-gradient(90deg,var(--accent),#2563eb);border-radius:2px;transform-origin:left;margin-bottom:26px;opacity:.55}
.rail-row{display:grid;grid-template-columns:auto repeat(6,auto);justify-content:space-between;gap:20px;align-items:end}
.rail-say{font-size:15px;font-weight:700;letter-spacing:-.02em;max-width:150px;line-height:1.3;align-self:center}
.rail-say span{display:block;font-weight:500;font-size:13px;color:var(--muted);margin-top:4px;letter-spacing:0}
.dev{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0;min-width:0;text-decoration:none}
.dev-body{position:relative;border:3px solid var(--ink);background:var(--wall);display:flex;flex-direction:column;box-shadow:0 12px 28px #17202a1a}
.dev figcaption,.dev-name{font:700 12px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dev:hover .dev-name{color:var(--accent)}
.dev-iphone .dev-body,.dev-android .dev-body{width:78px;aspect-ratio:9/18.5;border-radius:17px;padding:24px 7px 0}
.dev-iphone .dev-body::before{content:"";position:absolute;top:6px;left:50%;width:24px;height:7px;margin-left:-12px;border-radius:7px;background:var(--ink)}
.dev-android .dev-body::before{content:"";position:absolute;top:7px;left:50%;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--ink)}
.dev-ipad .dev-body{width:136px;aspect-ratio:4/3;border-width:5px;border-radius:13px;padding:14px 14px 0}
.dev-mac .dev-body{width:164px;aspect-ratio:16/10;border-width:4px;border-radius:9px 9px 0 0;padding:12px 12px 0;align-items:flex-end;margin-bottom:7px}
.dev-mac .dev-body::after{content:"";position:absolute;left:-12%;right:-12%;bottom:-11px;height:7px;border-radius:0 0 9px 9px;background:#c5cad3}
.dev-mac .mini{width:46%}
/* Windows and Linux are drawn as monitors on a stand: a taskbar below on one, the shell's bar above on the other. */
.dev-windows .dev-body,.dev-linux .dev-body{width:150px;aspect-ratio:16/10;border-width:4px;border-radius:8px;padding:10px 10px 0;margin-bottom:13px}
.dev-windows .dev-body::before,.dev-linux .dev-body::before{content:"";position:absolute;left:50%;bottom:-13px;width:16px;height:9px;margin-left:-8px;background:#c5cad3}
.dev-windows .dev-body::after,.dev-linux .dev-body::after{content:"";position:absolute;left:50%;bottom:-17px;width:58px;height:4px;margin-left:-29px;border-radius:3px;background:#c5cad3}
.dev-windows .dev-body{background:linear-gradient(#ffffffd9,#ffffffd9) bottom/100% 9px no-repeat,var(--wall)}
.dev-linux .dev-body{align-items:center;padding-top:17px;background:linear-gradient(var(--ink),var(--ink)) top/100% 7px no-repeat,var(--wall)}
.dev-windows .mini,.dev-linux .mini{width:50%}
.dev-ipad .mini{width:58%}
.mini{display:block;width:100%;aspect-ratio:2.13;border-radius:22%/46%;background-color:#2563eb;background-repeat:no-repeat;box-shadow:0 4px 10px #1d3fa840;
  background-image:linear-gradient(#fff,#fff),linear-gradient(#bfdbfe,#bfdbfe),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);
  background-size:30% 11%,22% 6%,46% 7%,38% 7%,42% 7%;
  background-position:14% 20%,88% 22%,26% 48%,24% 66%,25% 84%}

/* Real screenshots, one platform at a time. */
.pf-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.pf-tabs button{font:700 14px/1 inherit;font-family:inherit;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:999px;padding:12px 18px;cursor:pointer;transition:.2s}
.pf-tabs button:hover{color:var(--ink);border-color:var(--ink)}
.pf-tabs button[aria-selected=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.pf-panel{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:48px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:26px;padding:44px;overflow:hidden}
.pf-panel+.pf-panel{margin-top:16px}
.pf-copy h3{font-size:28px;letter-spacing:-.035em;line-height:1.15;margin:0 0 12px}
.pf-copy p{color:var(--muted);font-size:16px;margin:0 0 10px}
.pf-copy .pf-req{font:600 12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted)}
.pf-copy a{display:inline-block;margin-top:14px;font-weight:700;font-size:14px;text-underline-offset:4px;color:var(--accent)}
.pf-shots{display:flex;justify-content:center;align-items:center;gap:22px;min-width:0}
.shot{margin:0;min-width:0;flex:0 1 auto}
.shot img{display:block;width:100%;height:auto}
.shot figcaption{font-size:12px;color:var(--muted);text-align:center;margin-top:10px}
.shot.phone{width:216px}
.shot.phone img{border:7px solid var(--ink);border-radius:34px;box-shadow:0 22px 50px #17202a26}
.shot.tablet{width:360px}
.shot.tablet img{border:10px solid var(--ink);border-radius:26px;box-shadow:0 22px 50px #17202a26}
.shot.window{width:100%}
.shot.window img,.shot.crop img{border:1px solid var(--line);border-radius:14px;box-shadow:0 22px 60px #17202a26}
/* A tall crop beside a window, and one wide picture above two smaller ones. */
.shot.crop{flex:0 0 30%}
.pf-shots.wrap{flex-wrap:wrap;gap:18px 22px}
.shot.half{width:calc(50% - 11px)}

@media(max-width:1100px) and (min-width:821px){.flow{max-width:720px}}
@media(max-width:1100px){
  .rail-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 12px}
  .rail-say{grid-column:1/-1;max-width:none}
}
@media(max-width:820px){
  .pf-panel{grid-template-columns:1fr;gap:28px;padding:28px}
}
@media(max-width:620px){
  .flow-code{font-size:11px;padding:18px 16px 78px}
  .flow-out{width:min(300px,92%);margin-right:10px}
  .w{--u:8.4px}
  .rail-row{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:28px}
  .dev-mac .dev-body{width:150px}.dev-ipad .dev-body{width:128px}.dev-windows .dev-body,.dev-linux .dev-body{width:138px}
  .pf-tabs button{padding:10px 14px;font-size:13px}
  .pf-panel{padding:22px 18px;border-radius:20px}
  .pf-copy h3{font-size:23px}
  .pf-shots{gap:12px}
  .shot.phone{width:46%}.shot.tablet{width:86%}
  .pf-shots.mix{flex-direction:column}.shot.crop{flex:none;width:64%}.shot.half{width:100%}
}

/* Motion. Only when showcase.js is running and the visitor has not asked for less. */
.flow-live .ln,.flow-live [data-at]{transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1),clip-path .5s steps(26),background-color .3s}
.flow-live .ln{clip-path:inset(0 100% 0 0);opacity:.001}
.flow-live .ln.on{clip-path:inset(0 0 0 0);opacity:1}
.flow-live .ln.now{background:#ffffff14}
.flow-live .w[data-at],.flow-live .flow-arrow[data-at]{opacity:0;transform:translateY(14px) scale(.94)}
.flow-live .w [data-at]{opacity:0;transform:translateX(-8px)}
.flow-live .dev[data-at]{opacity:0;transform:translateY(18px) scale(.9)}
.flow-live .rail-line[data-at]{transform:scaleX(0);transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.flow-live .rail-say[data-at]{opacity:0}
.flow-live [data-at].on{opacity:1;transform:none}
.flow-live .dev.on .mini{animation:mini-pop .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes mini-pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.pf-ready .pf-panel[hidden]{display:none}
.pf-ready .pf-panel{animation:pf-in .45s cubic-bezier(.2,.8,.2,1) both}
.pf-ready .pf-panel .shot{animation:shot-in .6s cubic-bezier(.2,.8,.2,1) both}
.pf-ready .pf-panel .shot:nth-child(2){animation-delay:.09s}
.pf-ready .pf-panel .shot:nth-child(3){animation-delay:.18s}
@keyframes pf-in{from{opacity:0}to{opacity:1}}
@keyframes shot-in{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .flow-live .ln,.flow-live [data-at],.flow-live .rail-line[data-at]{transition:none}
  .flow-live .dev.on .mini,.pf-ready .pf-panel,.pf-ready .pf-panel .shot{animation:none}
  .pf-tabs button{transition:none}
}
