/* Shared by the Ears (/) and Mind (/mind/) pages: the cards and their little tricks. */

  .shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tool {
    display: flex; flex-direction: column; background: var(--card); border-radius: var(--r);
    padding: 10px; text-decoration: none;
    transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .25s;
  }
  a.tool:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgb(0 0 0 / .2); }
  .look {
    border-radius: 20px; aspect-ratio: 1 / .62; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  }
  .look .num { font-weight: 800; font-size: clamp(56px, 7vw, 84px); line-height: 1; letter-spacing: -.05em; }
  .look .small { font-weight: 600; font-size: 16px; opacity: .7; }
  .about { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 12px 10px; }
  .about h3 { margin: 0; font-size: 26px; letter-spacing: -.035em; line-height: 1.1; font-weight: 800; }
  .about p { margin: 3px 0 0; color: var(--dim); font-size: 16px; }

  /* Varispeed: colour says up or down */
  .v { background: var(--c01); color: #fff; transition: background .5s; }
  .v.down { background: #408cff; }
  .v.up { background: #2ecc96; }

  .t { background: var(--c02); color: var(--ink); }

  /* Noted!: a file with a sticky note */
  .n { background: var(--c03); }

  /* In Time, In Key: big BPM, tempo over time, the key as a small label */
  .t .status { position: absolute; left: 16px; top: 14px; font-weight: 700; font-size: 14px; opacity: .65; }
  .t .tkey { position: absolute; right: 16px; top: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
  .t .num { margin-top: 14px; font-size: clamp(64px, 8.6vw, 104px); }
  .t .small { margin-top: -2px; font-weight: 700; }
  .t .curve { position: absolute; left: 16px; right: 16px; bottom: 14px; width: calc(100% - 32px); height: 20%; overflow: visible; }
  .t .curve path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

  /* the one tool you can try today gets the full row */
  .tool.wide { grid-column: 1 / -1; }
  .tool.wide .look { aspect-ratio: 1 / .34; }
  @media (max-width: 600px) { .tool.wide .look { aspect-ratio: 1 / .62; } }

  /* Smart Rename: one name typed, the rest follow */
  .r { background: var(--c04); gap: 8px; }
  .r .f { width: 62%; display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; background: rgb(255 255 255 / .35); border-radius: 10px; font-weight: 600; font-size: 15px; color: rgb(17 17 16 / .55); white-space: nowrap; }
  .r .f b { color: var(--ink); }
  .r .f.typed { background: #fff; box-shadow: 0 8px 20px -10px rgb(0 0 0 / .35); }

  /* Flip: a wave you can turn by 90, 180 or 270 degrees */
  .p { background: var(--c06); color: var(--ink); }
  .p svg { width: 70%; height: 46%; overflow: visible; }
  .p .ghost { fill: none; stroke: rgb(17 17 16 / .22); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
  .p .wave { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
  .p .deg { position: absolute; right: 18px; top: 14px; font-weight: 800; font-size: 34px; letter-spacing: -.04em; }

  /* little "do it" chips on the previews */
  .hint { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .55); color: var(--ink); font-weight: 600; font-size: 13px; pointer-events: none; transition: opacity .3s; }
  .poke { cursor: pointer; user-select: none; -webkit-user-select: none; }
  .poke:active .num { transform: scale(.96); }
  .look .num { transition: transform .1s; }
  .key-swap { transition: opacity .25s, transform .25s; }
  .key-swap.out { opacity: 0; transform: translateY(8px); }

  /* Noted!: hover shows the note, like the app does in Finder */
  .n .pop { position: absolute; left: 54%; top: 18%; width: 38%; padding: 12px 13px; background: #fff7c2; border-radius: 6px 6px 14px 6px; rotate: -4deg; font-weight: 600; font-size: 15px; line-height: 1.25; box-shadow: 0 14px 28px -10px rgb(0 0 0 / .35); opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .25s, transform .3s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
  .n:hover .pop, .n.open .pop { opacity: 1; transform: none; }
  .n:hover .hint, .n.open .hint { opacity: 0; }

  /* Smart Rename: new names arrive one by one */
  .r .f b { transition: opacity .3s; }
  .r .f b.hide { opacity: 0; }

  /* Lookalikes: a row of near-identical shots, tap and only the best stays */
  .l { background: var(--c09); flex-direction: row; gap: 12px; }
  .l .shot { position: relative; width: 17%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden;
    background: linear-gradient(#9fd6ff 0 55%, #2f8fd0 55% 75%, #f2e3b3 75%);
    box-shadow: 0 10px 20px -12px rgb(0 0 0 / .4); transition: opacity .4s, transform .45s cubic-bezier(.3,1.4,.5,1), width .45s; }
  .l .shot::after { content: ""; position: absolute; left: 44%; top: 38%; width: 9%; height: 32%; border-radius: 6px; background: #1e2a3a; }
  .l .shot.turned { width: 8%; aspect-ratio: 2 / 3; }
  .l .shot.best { outline: 3px solid var(--ink); }
  .l .shot.best::before { content: "BEST"; position: absolute; left: 6px; top: 6px; z-index: 1; padding: 2px 6px; border-radius: 999px; background: var(--ink); color: var(--c09); font-weight: 800; font-size: 10px; letter-spacing: .06em; }
  .l.clean .shot:not(.best) { opacity: 0; transform: scale(.6); width: 0; margin: 0 -6px; }
  .l.clean .shot.best { transform: scale(1.5); }

  /* GFM: copies of one project; tap and the clutter goes */
  .g { background: var(--c08); color: #fff; gap: 8px; }
  .g .f { width: 66%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; background: rgb(255 255 255 / .12); color: rgb(255 255 255 / .8); border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: opacity .35s, transform .35s, max-height .35s, padding .35s, margin .35s; max-height: 44px; overflow: hidden; }
  .g .f.keep { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .35); }
  .g .f em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: rgb(255 255 255 / .14); }
  .g .f.keep em { background: var(--c02); color: var(--ink); }
  .g.clean .f:not(.keep) { opacity: 0; transform: translateX(30px); max-height: 0; padding-block: 0; margin-block: -4px; }
  .g .freed { font-weight: 800; font-size: 18px; letter-spacing: -.02em; max-height: 0; opacity: 0; transition: opacity .35s, max-height .35s; }
  .g.clean .freed { max-height: 30px; opacity: 1; }
  .g.clean .hint { opacity: 0; }


  /* Copy That!: two folders side by side; tap and the gaps fill in */
  .c { background: var(--c10); flex-direction: row; gap: 10px; padding: 0 6%; }
  .c .pane { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .c .pane b { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: rgb(17 17 16 / .55); padding-left: 4px; }
  .c .row { height: 30px; display: flex; align-items: center; padding: 0 10px; background: rgb(255 255 255 / .85); border-radius: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; transition: background .35s, color .35s; }
  .c .row.gap { background: repeating-linear-gradient(135deg, rgb(255 255 255 / .25) 0 6px, rgb(255 255 255 / .1) 6px 12px); color: transparent; }
  .c .row.new { box-shadow: inset 4px 0 0 #2ecc96; }
  .c .mid { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-top: 18px; }
  .c.done .row.gap { background: #fff; color: var(--ink); box-shadow: inset 4px 0 0 #2ecc96; }
  .c.done .hint { opacity: 0; }


  @media (max-width: 600px) { .shelf { grid-template-columns: 1fr; } }

  @media (max-width: 600px) { #t { aspect-ratio: 1 / .9; justify-content: flex-start; padding-top: 38px; gap: 2px; } .t .num { margin-top: 0; } .t .curve { height: 18%; } }

  @media (max-width: 380px) { .c { gap: 6px; } .c .mid { width: 32px; height: 32px; font-size: 16px; } .c .row { padding: 0 7px; font-size: 12px; } }

  /* Mapped!: a real screenshot of the map on its own pink */
  .m { background: var(--c11); }
  .m img { position: absolute; left: 12px; top: 14px; width: calc(100% - 12px); height: calc(100% - 26px); object-fit: cover; object-position: left top; }

  /* product page with real screenshots */
  .shots { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .shots img { display: block; width: 100%; height: auto; }
  .shots div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }

  /* the mini intro and the closing line */
  .hero { padding: 64px 0 48px; }
  .hero h1 { margin: 0; font-size: clamp(52px, 9.5vw, 120px); line-height: .9; letter-spacing: -.06em; font-weight: 800; }
  .hero p { margin: 24px 0 0; font-size: 20px; color: var(--dim); }
  .big-line { margin-top: 110px; font-size: clamp(38px, 6vw, 76px); line-height: 1; letter-spacing: -.055em; font-weight: 800; }
  @media (max-width: 600px) { .hero { padding: 32px 0 32px; } .big-line { margin-top: 72px; } }

  /* Ears and Mind: nothing but the products */
  .listing .shelf { margin-top: 24px; }
  .listing .hero + .shelf { margin-top: 0; }
  .listing .about { padding: 16px 12px 8px; }
  .about h3.named { display: flex; align-items: center; gap: 12px; }
  .app-icon { width: 40px; height: 40px; flex: none; border-radius: 22.5%; display: block; }

  /* single product page */
  .product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 32px; }
  .product .tool { padding: 10px; }
  .product .look { aspect-ratio: 1 / .8; }
  .product h1 { margin: 0 0 14px; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
  @media (max-width: 820px) { .product { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 8px; } }

  /* 404 */
  .lost { padding: 12vh 0; }
  .lost h1 { margin: 0; font-size: clamp(48px, 9vw, 112px); line-height: .95; letter-spacing: -.055em; font-weight: 800; }
  .lost p { margin: 20px 0 0; font-size: 20px; color: var(--dim); }
