/* The Lab's fresh layer (Alex, 29 Oct 2026: "refresh every app page, a fresher design, the new icons, the new features").
   Shared by every app page on top of its own styles: the app's icon in the hero, a What's new section as a bento of
   glass cards with line icons in the icons' red, a light that follows the pointer on the cards, a reading line at the
   top. Plain CSS, no library; motion stays off for whoever asks the system for less. */
:root { --f-red: #ec1a0c; --f-red-hi: #ff5a4b; --f-red-lo: #b80000; --f-glass: rgba(255,255,255,.05); --f-edge: rgba(255,255,255,.11); --f-ease: cubic-bezier(.16, 1, .3, 1); }

/* the reading line: how far down the page you are */
.f-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--f-read, 0)); background: linear-gradient(90deg, var(--f-red-lo), var(--f-red-hi)); box-shadow: 0 0 12px rgba(255, 74, 61, .55); }

/* the app's icon, as on the Dock: the tile, a soft red halo under it, floating a little */
.f-icon { width: clamp(92px, 11vw, 164px); aspect-ratio: 1; height: auto; border-radius: 22.5%; display: block; position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 26px 60px rgba(0,0,0,.5), 0 18px 70px -10px rgba(212,0,0,.45);
  animation: f-float 6s var(--f-ease) infinite alternate; transform-style: preserve-3d; transition: transform .5s var(--f-ease); }
.f-icon-wrap { position: relative; display: inline-grid; place-items: center; perspective: 700px; }
.f-icon-wrap::before { content: ''; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(212,0,0,.28), transparent 70%); filter: blur(10px); z-index: -1; }
@keyframes f-float { from { translate: 0 0; } to { translate: 0 -10px; } }

/* a version chip: the version and what it is */
.f-ver { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--text, #eef0f3); background: var(--f-glass); border: 1px solid var(--f-edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-decoration: none; }
.f-ver b { display: inline-grid; place-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, var(--f-red-hi), var(--f-red-lo)); }
.f-ver:hover { border-color: rgba(255, 90, 75, .5); }

/* What's new: a bento of glass cards */
.f-new { padding: clamp(56px, 9vw, 120px) var(--pad, 24px) clamp(40px, 6vw, 80px); }
.f-new-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 30px; max-width: 1240px; margin: 0 auto clamp(22px, 3vw, 36px); }
.f-new-head h2 { margin: 0; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.02em; font-weight: 700; }
.f-new-head h2 b { color: var(--f-red-hi); font-weight: 800; }
.f-new-head p:not(.idx) { margin: 0; max-width: 460px; color: var(--muted, rgba(214,220,228,.6)); font-size: 16px; line-height: 1.55; }
.f-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); max-width: 1240px; margin: 0 auto; }
.f-card { --mx: 50%; --my: 0%; position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: clamp(18px, 2vw, 26px); border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); border: 1px solid var(--f-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 44px rgba(0,0,0,.28); transition: transform .45s var(--f-ease), border-color .3s, box-shadow .45s var(--f-ease); }
.f-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 74, 61, .16), transparent 60%); }
.f-card:hover { transform: translateY(-4px); border-color: rgba(255, 90, 75, .34); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 26px 60px rgba(0,0,0,.36); }
.f-card:hover::before { opacity: 1; }
.f-card.wide { grid-column: span 3; }
.f-card.tall { grid-row: span 2; }
.f-card.full { grid-column: 1 / -1; }
.f-card h3 { margin: 4px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.f-card p { margin: 0; color: var(--muted, rgba(214,220,228,.6)); font-size: 15px; line-height: 1.55; }
.f-card .f-tag { align-self: flex-start; margin-top: auto; font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 143, 134, .9); }
.f-card img.f-shot { width: 100%; height: auto; border-radius: 14px; margin-top: 6px; border: 1px solid var(--f-edge); }
/* a line icon in the icons' red: draw it in a 24 box with stroke="currentColor" */
.f-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--f-red-hi); background: rgba(212, 0, 0, .1); border: 1px solid rgba(255, 90, 75, .24); }
.f-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 60, 45, .35)); }
@media (max-width: 900px) { .f-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-card, .f-card.wide { grid-column: span 1; } .f-card.full { grid-column: 1 / -1; } .f-card.tall { grid-row: auto; } }
@media (max-width: 560px) { .f-bento { grid-template-columns: 1fr; } .f-card, .f-card.wide { grid-column: 1 / -1; min-height: 0; } }

/* the glass of any card already on a page, freshened: add f-glass to it */
.f-glass { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)) !important; border: 1px solid var(--f-edge) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 44px rgba(0,0,0,.26); border-radius: 24px; }

/* a soft line between sections */
.f-sep { height: 1px; max-width: 1240px; margin: 0 auto; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); }

@media (prefers-reduced-motion: reduce) { .f-icon { animation: none; } .f-card, .f-card:hover { transition: none; transform: none; } }

/* the way around: the apps button in the top bar and its menu (fresh.js) */
.f-apps-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--f-edge); background: var(--f-glass); color: var(--text, #eef0f3); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.f-apps-btn:hover, .f-apps-btn.on { background: rgba(255,255,255,.1); border-color: rgba(255, 90, 75, .45); }
.f-apps-btn:active { transform: scale(.94); }
.f-apps-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.f-apps { position: fixed; z-index: 70; top: calc(66px + env(safe-area-inset-top)); right: max(12px, var(--pad, 24px)); width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 90px); overflow: auto; padding: 10px; border-radius: 24px;
  background: rgba(24, 26, 31, .92); border: 1px solid var(--f-edge); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 30px 80px rgba(0,0,0,.55); color: var(--text, #eef0f3); animation: f-pop .25s var(--f-ease); }
.f-apps[hidden] { display: none; }
@keyframes f-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.f-apps-top { display: flex; gap: 8px; padding: 2px 2px 10px; border-bottom: 1px solid var(--f-edge); margin-bottom: 8px; }
.f-apps-top a { flex: 1; display: grid; place-items: center; height: 40px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: inherit; background: var(--f-glass); border: 1px solid var(--f-edge); }
.f-apps-top a:hover { background: rgba(255,255,255,.1); }
.f-apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.f-apps-grid a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; text-decoration: none; color: inherit; transition: background .2s; }
.f-apps-grid a:hover { background: rgba(255,255,255,.07); }
.f-apps-grid a.on { background: rgba(212, 0, 0, .14); box-shadow: inset 0 0 0 1px rgba(255, 90, 75, .35); }
.f-apps-grid img { width: 40px; height: 40px; border-radius: 22.5%; flex: none; }
.f-apps-grid span { display: flex; flex-direction: column; min-width: 0; }
.f-apps-grid b { font-size: 14px; font-weight: 700; }
.f-apps-grid small { font-size: 12px; color: var(--muted, rgba(214,220,228,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .f-apps-grid { grid-template-columns: 1fr; } }
