/* ================= switch to MacPip (functions/_switch.js, public/switch.js) =================
   "Have a Mac app? Launch it on MacPip": one liquid glass card on home, /submit and the maker dashboard.
   Its own file so CSS sweeps of ipip.css and site.css never touch it. Tokens come from ipip.css. */
.sw{--sw-alu:#dfe1e7;--sw-alu2:#c6c9d1;--sw-scr:#15161c;--sw-tile:linear-gradient(160deg,#fff,#eef0f4);
  display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:16px;
  padding:16px 18px;border-radius:26px;text-align:left;min-width:0;transition:transform .3s var(--spring-soft)}
[data-theme="dark"] .sw,[data-theme="dark"].sw{--sw-alu:#4a4b53;--sw-alu2:#393a41;--sw-scr:#050507;--sw-tile:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05))}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]) .sw{--sw-alu:#4a4b53;--sw-alu2:#393a41;--sw-scr:#050507;--sw-tile:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05))}
}
.sw-ic{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:var(--sw-tile);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 6px 14px -8px rgba(16,20,36,.35)}
.sw-mac{width:42px;height:auto;display:block;transition:transform .45s var(--spring)}
.sw-body,.sw-base{fill:var(--sw-alu)}
.sw-stand{fill:var(--sw-alu2)}
.sw-screen{fill:var(--sw-scr)}
.sw-win{fill:rgba(255,255,255,.88)}
.sw-win2{fill:rgba(255,255,255,.5)}
.sw-tx{display:grid;gap:3px;min-width:0}
.sw-k{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink3)}
.sw .sw-t{margin:0;font-family:var(--font-display);font-size:17px;font-weight:750;letter-spacing:-.02em;line-height:1.25;color:var(--ink)}
.sw .sw-p,.sw .sw-in{margin:0;font-size:14px;line-height:1.4;color:var(--ink2)}
.sw .sw-in{font-size:13px;color:var(--ink3)}
.sw-acts{display:grid;gap:8px;justify-items:center}
.sw-go{height:44px;padding:0 18px 0 20px;border-radius:99px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  font-weight:700;font-size:15px;background:var(--ink);color:var(--wall-base);
  box-shadow:0 10px 20px -12px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.2);transition:transform .3s var(--spring)}
.sw-go svg{width:17px;height:17px;transition:transform .3s var(--spring)}
.sw-sub{font-size:13px;font-weight:600;color:var(--ink2);text-decoration:underline;text-underline-offset:3px}
.sw-sub:hover{color:var(--ink)}
.sw:hover .sw-mac,.sw:focus-within .sw-mac{transform:translateY(-2px)}
.sw-go:hover{transform:translateY(-2px)}
.sw-go:hover svg{transform:translateX(3px)}
.sw-go:active{transform:scale(.95,.92)}

/* the Mac link state on /submit: the rim turns into the six Pip stripes */
.sw.sw-mac-on::before{background:var(--rb);padding:2px}
.sw.sw-mac-on .sw-k{color:var(--ink2)}

/* the home card: one row under today's launches (the narrow Today column on desktop, full width on phones) */
.sw-row{grid-template-columns:44px minmax(0,1fr);gap:12px 12px;padding:14px;margin-top:16px;border-radius:24px}
.sw-row .sw-ic{width:44px;height:44px;border-radius:13px;align-self:start}
.sw-row .sw-mac{width:30px}
.sw-row .sw-p{font-size:14px;line-height:1.4;color:var(--ink2)}
.sw-row .sw-p b{color:var(--ink);font-weight:700}
.sw-row .sw-go{grid-column:1/-1;height:44px;width:100%;justify-content:center}
@media (min-width:621px) and (max-width:999px){
  .sw-row{grid-template-columns:44px minmax(0,1fr) auto;align-items:center}
  .sw-row .sw-ic{align-self:center}
  .sw-row .sw-go{grid-column:auto;width:auto}
}

/* where it sits */
.sw-home{margin-top:16px}
.sf-v-paste:has(.sw-submit){align-content:center}
.sf-v-paste .sw-submit{width:100%;max-width:560px;margin:30px auto 0}

/* phones, and the narrow Today column on home: icon and words side by side, the button full width under them */
.sw-home{grid-template-columns:52px minmax(0,1fr);gap:12px 14px;padding:16px}
.sw-home .sw-ic{width:52px;height:52px;border-radius:16px;align-self:start}
.sw-home .sw-mac{width:36px}
.sw-home .sw-acts{grid-column:1/-1}
.sw-home .sw-go{width:100%;justify-content:center}

@media (max-width:620px){
  .sw{grid-template-columns:52px minmax(0,1fr);gap:12px 14px;padding:16px}
  .sw-ic{width:52px;height:52px;border-radius:16px;align-self:start}
  .sw-mac{width:36px}
  .sw-acts{grid-column:1/-1}
  .sw-go{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .sw,.sw-mac,.sw-go,.sw-go svg{transition:none}
  .sw:hover .sw-mac,.sw:focus-within .sw-mac,.sw-go:hover,.sw-go:hover svg{transform:none}
}

/* ---------- the MacPip button, "stripes B" (MacPip's mockup docs/mockups/ipip-logo-switch, the same sizes) ----------
   MacPip's logo and its name, right before Submit. Hover: the Mac hops and tilts, a stripe line runs under it.
   Phones: the logo only, a 40px square. MacPip has the mirror before its own Submit. */
.sisbtn{position:relative;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px 0 8px;margin-inline-start:8px;border-radius:10px;
  border:1.5px solid var(--line);background:var(--paper);color:var(--ink);font:700 13.5px/1 var(--sans);text-decoration:none;white-space:nowrap;
  overflow:hidden;flex:none;cursor:pointer;box-shadow:0 1px 2px rgba(16,20,36,.08);transition:transform .25s cubic-bezier(.3,1.5,.5,1),border-color .2s}
.sisbtn .sbmark{width:16px;height:21px;display:block;flex:none;transform-origin:50% 90%}
.sisbtn:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
  background:linear-gradient(90deg,#4fb06a 0 16.6%,#f2c53d 0 33.3%,#f28b30 0 50%,#ea4b41 0 66.6%,#8c5cb8 0 83.3%,#3f8fd9 0);
  transform:translateX(-101%);transition:transform .35s cubic-bezier(.6,0,.3,1)}
.sisbtn:hover{text-decoration:none;transform:translateY(-1px);border-color:var(--ink)}
.sisbtn:hover:after,.sisbtn:focus-visible:after{transform:none}
.sisbtn:hover .sbmark{animation:sbhop .55s cubic-bezier(.3,1.5,.5,1)}
@keyframes sbhop{0%{transform:none}35%{transform:translateY(-4px) rotate(-12deg)}65%{transform:translateY(0) rotate(6deg)}100%{transform:none}}
.sisbtn:focus-visible{outline:3px solid #3f8fd9;outline-offset:2px}
/* up to 1100px the logo alone, a 34px square, as on MacPip (its ac79783d: the name pushed MacPip's right-hand links under the
   notch at 1024; iPip had room, 16px at 961px, but both sites behave alike) */
@media (max-width:1100px){
  .sisbtn{width:34px;padding:0;justify-content:center}
  .sisbtn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media (max-width:760px){
  /* between the logo and the island: the logo's 12px margin and the bar's 8px gap would push it into the island at 375px,
     so it pulls back to 6px from the logo (6px clear of the island at 360px) */
  .sisbtn{width:40px;height:40px;padding:0;justify-content:center;margin-inline-start:-14px}
  .sisbtn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .sisbtn .sbmark{width:17px;height:23px}
}
@media (max-width:374px){ .sisbtn{width:36px;height:36px} }

/* ---------- the stripes between the two sites (public/switch.js) ----------
   Six full-width stripes, one per colour, top to bottom, and the other site's logo popping in the middle. */
.sw-fx{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;pointer-events:none;overflow:hidden}
.sw-fx i{flex:1;transform:translateX(101%)}
.sw-pop{position:absolute;left:50%;top:50%;width:84px;margin:-58px 0 0 -42px;transform:scale(0)}
.sw-pop svg{width:100%;height:auto;display:block}

/* Arriving from MacPip (?sw=macpip): the router puts .sw-arrive on <html> (functions/_switch.js), so the first paint is
   already the six stripes with the iPip logo in the middle, the way MacPip's stripes left the screen. public/switch.js
   puts real stripes in its place and slides them off to the right. If it never runs, they slide off by themselves at 1.2s.
   Never with reduced motion. MacPip's html.ipsw-arrive:after is the same, with its own logo, sliding off to the left. */
html.sw-arrive:after{content:"";position:fixed;inset:0;z-index:2147483000;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttp%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2021%22%3E%3Crect%20x%3D%22.75%22%20y%3D%22.75%22%20width%3D%2213.5%22%20height%3D%2219.5%22%20rx%3D%223%22%20fill%3D%22%23e6dfcd%22%20stroke%3D%22%231d1b17%22%20stroke-width%3D%221.1%22%2F%3E%3Crect%20x%3D%222.25%22%20y%3D%222.25%22%20width%3D%2210.5%22%20height%3D%2216.5%22%20rx%3D%221.8%22%20fill%3D%22%23faf6ec%22%20stroke%3D%22%231d1b17%22%20stroke-width%3D%22.8%22%2F%3E%3Crect%20x%3D%225.5%22%20y%3D%223.4%22%20width%3D%224%22%20height%3D%221.3%22%20rx%3D%22.65%22%20fill%3D%22%231d1b17%22%2F%3E%3Cg%20transform%3D%22translate%282.75%207.6%29%20scale%28.86%29%22%20fill%3D%22%231d1b17%22%3E%3Crect%20x%3D%222%22%20y%3D%221%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%221%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%222%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%225%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%226%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%227%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%221.02%22%20height%3D%221.02%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/84px auto no-repeat,linear-gradient(#4fb06a 0 16.67%,#f2c53d 0 33.33%,#f28b30 0 50%,#ea4b41 0 66.67%,#8c5cb8 0 83.33%,#3f8fd9 0);
  animation:sw-off .16s cubic-bezier(.4,0,.2,1) forwards}
@keyframes sw-off{to{transform:translateX(101%)}}
@media (prefers-reduced-motion:reduce){ html.sw-arrive:after,.sw-fx{display:none} .sisbtn,.sisbtn:after{transition:none} .sisbtn:hover .sbmark{animation:none} }
html[data-motion=reduce].sw-arrive:after{display:none}

/* The sister-site card in submit (MacPip's ipsw-submit, Justinas's pick A, 15 Nov 2026): a bright white card that stands out,
   on the form, in the pop-up and on the done step; it opens in a new tab so the draft stays. */
.sw.sw-submit{background:#fff;border:1.5px solid var(--ink);border-radius:14px;padding:16px 20px;box-shadow:0 0 0 6px rgba(255,255,255,.85),0 12px 40px rgba(255,255,255,.95),4px 4px 0 var(--ink)}
:root[data-theme=dark] .sw.sw-submit,:root[data-theme=crt] .sw.sw-submit{background:var(--paper);box-shadow:4px 4px 0 var(--ink)}

/* ================= The sister card, direction B "Mini window" (Justinas, 19 Nov 2026) =================
   The iPip mirror of MacPip's card, from ipip-card/mockups.html (hiB): a little retro window with a title bar, the six
   stripes, iPip's smiley phone and a little Mac on their stage under a "Hi!" tag, then the words and the button. It plays
   once as it appears (the stripes draw in, Pip waves and blinks, "Hi!" pops, the Mac hops); with reduced motion it just
   shows. On phones the stage sits on top and the button goes full width. Overrides the older glass card (.sw) above. */
.sw.swb,.sw.swb.sw-submit{display:block;padding:0;max-width:560px;margin:22px 0 0;background:var(--paper);border:2px solid var(--ink);border-radius:10px;box-shadow:4px 4px 0 var(--ink);overflow:hidden;text-align:left}
.swb-bar{display:flex;align-items:center;gap:8px;height:24px;padding:0 7px;border-bottom:2px solid var(--ink);background:repeating-linear-gradient(var(--ink) 0 1px,var(--paper) 1px 3px)}
.swb-bar i{width:11px;height:11px;background:var(--paper);border:1.5px solid var(--ink)}
.swb-bar b{margin:0 auto;padding:0 8px;background:var(--paper);font:400 9.5px var(--pixel);text-transform:uppercase;letter-spacing:.04em;color:var(--ink)}
.swb-bow{display:flex;height:5px}.swb-bow i{flex:1;transform-origin:left}
.swb-bow i:nth-child(1){background:#4fb06a}.swb-bow i:nth-child(2){background:#f2c53d}.swb-bow i:nth-child(3){background:#f28b30}.swb-bow i:nth-child(4){background:#ea4b41}.swb-bow i:nth-child(5){background:#8c5cb8}.swb-bow i:nth-child(6){background:#3f8fd9}
.swb-in{display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px 20px;align-items:center;padding:16px 18px 18px}
.swb-duo{position:relative;height:96px;border:1.5px solid var(--ink);border-radius:10px;background:var(--box);box-shadow:inset 0 2px 0 rgba(255,255,255,.5);display:flex;align-items:flex-end;justify-content:center;gap:12px;padding:0 10px 12px}
.swb-pp{display:block;width:34px}
.swb-pp svg,.swb-mac svg{display:block;width:100%;height:auto;overflow:visible}
.swb-pp svg{shape-rendering:crispEdges}
.swb-mac{display:block;width:44px;transform-origin:50% 100%}
.swb-blink{opacity:0}
.swb-hey{position:absolute;top:8px;left:50%;transform:translateX(-50%);font:9px var(--pixel);text-transform:uppercase;background:var(--paper);color:var(--ink);border:1.5px solid var(--ink);border-radius:6px;padding:2px 5px;white-space:nowrap}
.swb-tx{display:grid;gap:5px;min-width:0}
.sw.swb .sw-t{margin:0;font:500 21px/1.2 var(--serif);letter-spacing:0;color:var(--ink)}
.sw.swb .sw-p{margin:0;font-size:14px;line-height:1.45;color:var(--mute)}
.sw.swb .sw-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-items:start;margin-top:8px}
.sw.swb .sw-go{background:var(--ink);color:var(--paper)}
@keyframes swbSlide{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes swbWave{0%,100%{transform:rotate(0)}20%{transform:rotate(-16deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-12deg)}80%{transform:rotate(6deg)}}
@keyframes swbHop{0%,100%{transform:none}40%{transform:translateY(-5px)}}
@keyframes swbPop{0%{opacity:0;transform:translateX(-50%) scale(.86) translateY(4px)}70%{opacity:1;transform:translateX(-50%) scale(1.03)}100%{opacity:1;transform:translateX(-50%)}}
@keyframes swbBlinkO{0%,92%{opacity:1}94%,97%{opacity:0}100%{opacity:1}}
@keyframes swbBlinkC{0%,92%{opacity:0}94%,97%{opacity:1}100%{opacity:0}}
.swb-bow i{animation:swbSlide .35s ease both}
.swb-bow i:nth-child(2){animation-delay:.06s}.swb-bow i:nth-child(3){animation-delay:.12s}.swb-bow i:nth-child(4){animation-delay:.18s}.swb-bow i:nth-child(5){animation-delay:.24s}.swb-bow i:nth-child(6){animation-delay:.3s}
.swb-pp svg{animation:swbWave 1s ease-in-out .45s 1;transform-origin:50% 100%}
.swb-open{animation:swbBlinkO 2.4s ease 1}.swb-blink{animation:swbBlinkC 2.4s ease 1}
.swb-mac{animation:swbHop .5s ease 1.3s 1}
.swb-hey{animation:swbPop .45s cubic-bezier(.3,1.45,.45,1) 1s both}
/* Phones (520px and under) and the Your apps column: one column, the stage on top, the button full width. */
@media (max-width:520px){
  .swb-in{grid-template-columns:minmax(0,1fr)}
  .swb-duo{height:88px}
  .sw.swb .sw-acts{display:grid}
  .sw.swb .sw-go{justify-content:center;width:100%}
}
.sw.swb.sw-maker .swb-in{grid-template-columns:minmax(0,1fr)}
.sw.swb.sw-maker .swb-duo{height:88px}
.sw.swb.sw-maker .sw-acts{display:grid}
.sw.swb.sw-maker .sw-go{justify-content:center;width:100%}
@media (prefers-reduced-motion:reduce){
  .swb-bow i,.swb-pp svg,.swb-open,.swb-blink,.swb-mac,.swb-hey{animation:none!important}
  .sw.swb .sw-go,.sw.swb .sw-go svg{transition:none}.sw.swb .sw-go:hover,.sw.swb .sw-go:hover svg{transform:none}
}
