/* CVCA Apps: the app store page. Same navy, royal blue and gold tokens as
   the CVCA apps (see CVCA-THRIVE/public/css/base.css), so dark mode is the
   two token blocks below. */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --canvas: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf1f6;
  --ink: #18283d;
  --slate: #596a7e;
  --muted: #6f7f93;
  --line: #e2e7ee;
  --line-strong: #cdd6e1;

  --accent: #285da1;
  --accent-ink: #214f89;
  --accent-soft: #edf3fb;
  --accent-rgb: 40, 93, 161;
  --button: #19395b;
  --button-hover: #10243a;

  --gold: #c6a45c;
  --gold-bright: #e8c77d;
  --gold-rgb: 232, 199, 125;
  --gold-ink: #86661c;
  --gold-soft: #fbf4e5;
  --gold-line: #ecdcb4;

  --red: #bf4540;
  --red-soft: #fcebea;
  --green: #2c7a5e;
  --green-soft: #e9f4ef;

  --hero: radial-gradient(ellipse 70% 60% at 12% 16%, rgba(74, 158, 240, .42), transparent 70%),
          radial-gradient(ellipse 65% 55% at 96% 104%, rgba(0, 30, 76, .55), transparent 70%),
          linear-gradient(155deg, #0966bd 0%, #00549e 48%, #003f7e 100%);

  --shadow-1: 0 1px 2px rgba(16, 36, 58, .05), 0 1px 3px rgba(16, 36, 58, .04);
  --shadow-2: 0 2px 4px rgba(16, 36, 58, .04), 0 6px 16px rgba(16, 36, 58, .06);
  --shadow-3: 0 10px 20px rgba(16, 36, 58, .08), 0 24px 56px rgba(16, 36, 58, .16);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --spot-ms: 7000ms;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #0d1521;
  --surface: #152130;
  --surface-2: #1b2b3e;
  --surface-3: #22344a;
  --ink: #edf2fa;
  --slate: #b5c2d2;
  --muted: #8fa2ba;
  --line: #2a3a4d;
  --line-strong: #40536a;
  --accent: #4b9cff;
  --accent-ink: #91c2ff;
  --accent-soft: #102f57;
  --accent-rgb: 75, 156, 255;
  --button: #1768c5;
  --button-hover: #0f58ad;
  --gold-ink: #e8c77d;
  --gold-soft: #3b2e17;
  --gold-line: #5e4a22;
  --red: #ef817c;
  --red-soft: #3d2024;
  --green: #6ac9a6;
  --green-soft: #17382f;
  --hero: radial-gradient(ellipse 70% 60% at 12% 16%, rgba(60, 130, 210, .30), transparent 70%),
          radial-gradient(ellipse 65% 55% at 96% 104%, rgba(0, 10, 30, .6), transparent 70%),
          linear-gradient(155deg, #0a4f96 0%, #073d78 48%, #04264c 100%);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-3: 0 16px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0d1521;
    --surface: #152130;
    --surface-2: #1b2b3e;
    --surface-3: #22344a;
    --ink: #edf2fa;
    --slate: #b5c2d2;
    --muted: #8fa2ba;
    --line: #2a3a4d;
    --line-strong: #40536a;
    --accent: #4b9cff;
    --accent-ink: #91c2ff;
    --accent-soft: #102f57;
    --accent-rgb: 75, 156, 255;
    --button: #1768c5;
    --button-hover: #0f58ad;
    --gold-ink: #e8c77d;
    --gold-soft: #3b2e17;
    --gold-line: #5e4a22;
    --red: #ef817c;
    --red-soft: #3d2024;
    --green: #6ac9a6;
    --green-soft: #17382f;
    --hero: radial-gradient(ellipse 70% 60% at 12% 16%, rgba(60, 130, 210, .30), transparent 70%),
            radial-gradient(ellipse 65% 55% at 96% 104%, rgba(0, 10, 30, .6), transparent 70%),
            linear-gradient(155deg, #0a4f96 0%, #073d78 48%, #04264c 100%);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .35);
    --shadow-3: 0 16px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; background: var(--canvas); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--gold-bright); }
.ui-icon { width: 18px; height: 18px; flex: none; }
.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, kbd { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .2s, filter .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn .ui-icon { width: 17px; height: 17px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.gold { background: linear-gradient(180deg, #f2d48f, #dcb562); color: #2b1f03; box-shadow: 0 10px 24px -10px rgba(var(--gold-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.gold:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgba(var(--gold-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #fff; }
.btn.glass:hover { background: rgba(255, 255, 255, .18); }
.btn.primary { background: var(--button); color: #fff; }
.btn.primary:hover { background: var(--button-hover); }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; transition: background .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }

/* ---------- App icons ---------- */
.app-icon { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px rgba(0, 20, 50, .55); }
.app-icon svg { width: 52%; height: 52%; stroke-width: 2.1; }
.app-icon.md { width: 58px; height: 58px; border-radius: 17px; }
.app-icon.lg { width: 64px; height: 64px; border-radius: 18px; }
.app-icon.xl { width: 96px; height: 96px; border-radius: 26px; }
.app-icon.tone-blue { background: linear-gradient(145deg, #4a9cf0, #0b4f9c); }
.app-icon.tone-gold { background: linear-gradient(145deg, #f6dc9f, #c6973c); color: #3a2a07; }
.app-icon.tone-green { background: linear-gradient(145deg, #4cbc93, #1b664c); }

/* ---------- Status ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--surface-3); color: var(--slate); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.up { background: var(--green-soft); color: var(--green); }
.status.up::before { animation: pulse 2.4s infinite; }
.status.down { background: var(--red-soft); color: var(--red); }
.on-dark .status { background: rgba(255, 255, 255, .1); color: #cfe0f5; }
.on-dark .status.up { background: rgba(106, 201, 166, .16); color: #97e6c8; }
.on-dark .status.down { background: rgba(239, 129, 124, .18); color: #ffb3ae; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .25s, box-shadow .25s; }
.topbar.solid { background: rgba(6, 30, 58, .88); box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -14px rgba(0, 0, 0, .5); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.brand span { min-width: 0; }
.brand strong { display: block; font-size: 17px; letter-spacing: .01em; }
.brand small { display: block; overflow: hidden; color: #bcdcff; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 14px; font-weight: 650; }
.top-link:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 116px 0 64px; background: var(--hero); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, #000, transparent 65%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 65%); }
.hero::after, .app-hero-bg::after { content: ""; position: absolute; z-index: -1; right: -2%; top: 60px; width: min(46%, 600px); aspect-ratio: 1173 / 1417; background: url("/assets/cvca-lion.png") center / contain no-repeat; opacity: .07; mask-image: linear-gradient(to right, transparent, #000 70%); -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); }
.hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.eyebrow { margin-bottom: 14px; color: var(--gold-bright); font-size: 12px; font-weight: 750; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow.small { margin-bottom: 6px; font-size: 11px; letter-spacing: .2em; }
.hero h1 { font-size: clamp(42px, 5.4vw, 70px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; text-shadow: 0 2px 30px rgba(0, 24, 64, .25); }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.rule { display: block; width: 72px; height: 3px; margin: 26px 0 20px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-bright), rgba(var(--gold-rgb), .12)); }
.lede { max-width: 540px; color: #d4e5fa; font-size: 17px; }

.today { display: inline-flex; align-items: center; gap: 18px; padding: 14px 24px 14px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.today-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--gold-rgb), .14); color: var(--gold-bright); }
.today-time { font-size: clamp(26px, 2.4vw, 36px); font-weight: 650; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.today-div { align-self: stretch; width: 1px; background: rgba(255, 255, 255, .18); }
.today-date strong, .today-date span { display: block; white-space: nowrap; }
.today-date strong { font-size: 15px; }
.today-date span { margin-top: 3px; color: #bcdcff; font-size: 12px; }

/* Spotlight: one app at a time, picked with the tabs under it. */
.spotlight { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 44px; align-items: center; margin-top: 14px; padding: 36px 36px 36px 40px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)); box-shadow: 0 40px 80px -40px rgba(0, 16, 40, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.spot-top { display: flex; align-items: center; gap: 16px; }
.spot-name { margin-top: 18px; font-size: clamp(34px, 3.8vw, 50px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.spot-tagline { margin-top: 8px; font-size: 19px; font-weight: 650; }
.spot-summary { margin-top: 10px; color: #c9dcf3; }
.spot-for { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: #bcd3ee; font-size: 13.5px; }
.spot-for .ui-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--gold-bright); }
.spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.spot-visual { display: block; perspective: 1800px; text-decoration: none; }

.browser { overflow: hidden; border-radius: 14px; background: #0b1d33; box-shadow: 0 30px 60px -22px rgba(0, 10, 30, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.spot-visual .browser { transform: rotateY(-8deg) rotateX(3deg); transform-origin: left center; transition: transform .7s var(--ease); }
.spot-visual:hover .browser, .spot-visual:focus-visible .browser { transform: none; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #13263d; }
.browser-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b63; }
.browser-bar > i:nth-child(2) { background: #f6c045; }
.browser-bar > i:nth-child(3) { background: #3ccf5a; }
.browser-url { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 22px; margin-left: 10px; padding: 0 10px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #a9c1dd; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.browser-url .ui-icon { width: 11px; height: 11px; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #e9eef5; }

.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 40px; }
.pick { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(255, 255, 255, .06); color: #fff; text-align: left; transition: background .2s, box-shadow .2s, transform .2s var(--ease); }
.pick:hover { background: rgba(255, 255, 255, .13); }
.pick[aria-selected="true"] { border-color: transparent; background: #fff; color: #18283d; box-shadow: 0 16px 34px -18px rgba(0, 10, 30, .8); }
.pick strong, .pick small { display: block; }
.pick strong { font-size: 15.5px; }
.pick small { font-size: 12.5px; opacity: .72; }
.pick .bar { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.pick .bar.run { animation: fill var(--spot-ms) linear forwards; }
.hero:has(.spotlight:hover, .picker:hover, .spotlight:focus-within, .picker:focus-within) .bar.run { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

.swap-in { animation: swapIn .55s var(--ease) both; }
.swap-img { animation: imgIn .7s var(--ease) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes imgIn { from { opacity: 0; transform: rotateY(-14deg) rotateX(4deg) translateX(20px); } }

/* ---------- Browse ---------- */
.browse { padding: 72px 0 12px; scroll-margin-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.kicker { margin-bottom: 8px; color: var(--accent-ink); font-size: 12px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.section-head p { margin-top: 6px; color: var(--slate); }
.search { display: flex; align-items: center; gap: 10px; width: min(100%, 360px); height: 48px; padding: 0 8px 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { display: grid; place-items: center; min-width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.clear-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.clear-btn:hover { background: var(--surface-3); color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 16px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--slate); font-size: 14px; font-weight: 650; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip .n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); font-size: 12px; }
.chip[aria-pressed="true"] { border-color: var(--button); background: var(--button); color: #fff; }
.chip[aria-pressed="true"] .n { background: rgba(255, 255, 255, .2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-3); }
.card-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .7s var(--ease); }
.card:hover .card-shot img { transform: scale(1.05); }
.card-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 24, 44, .4), transparent 50%); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 0 22px 22px; }
.card-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: -29px; }
.card-top .app-icon { z-index: 1; box-shadow: 0 0 0 4px var(--surface), 0 10px 20px -8px rgba(0, 20, 50, .5); }
.card-cat { margin-top: 16px; color: var(--accent-ink); font-size: 11.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.card h3 { margin-top: 4px; font-size: 24px; letter-spacing: -.025em; line-height: 1.15; }
.card h3 a { text-decoration: none; }
.card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-tag { margin-top: 8px; font-weight: 650; }
.card-sum { margin-top: 6px; color: var(--slate); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 650; }
.card-actions { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.card-actions .btn { flex: 1; }

.card.soon { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; padding: 22px 26px; border: 2px dashed var(--line-strong); background: transparent; box-shadow: none; }
.card.soon:hover { transform: none; box-shadow: none; }
.soon-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: var(--surface-3); color: var(--muted); }
.soon-icon .ui-icon { width: 26px; height: 26px; }
.card.soon h3 { font-size: 18px; }
.card.soon p { margin-top: 2px; color: var(--slate); font-size: 14px; }

.empty { grid-column: 1 / -1; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: 22px; color: var(--slate); text-align: center; }
.empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }
.empty .btn { margin-top: 16px; }

/* ---------- Good to know ---------- */
.notes { padding: 64px 0 80px; }
.notes h2 { margin-bottom: 18px; font-size: 22px; letter-spacing: -.02em; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.note { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.note-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); }
.note h3 { font-size: 16px; }
.note p { margin-top: 4px; color: var(--slate); font-size: 14px; }
.note code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink); font-size: 13px; font-weight: 600; }

/* ---------- App page ---------- */
.app-hero { position: relative; isolation: isolate; padding-top: 96px; color: #fff; }
.app-hero-bg { position: absolute; inset: 0 0 190px; z-index: -1; overflow: hidden; background: var(--hero); }
.app-hero-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, #000, transparent 80%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.app-hero-bg::after { top: 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: #cfe2f8; font-size: 14px; font-weight: 650; text-decoration: none; }
.back:hover { color: #fff; }
.back .ui-icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.back:hover .ui-icon { transform: translateX(-3px); }
.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; margin-top: 22px; }
.app-head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.app-head .lede { margin-top: 8px; font-size: 18px; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tag-dark { padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #dbe9fa; font-size: 12px; font-weight: 650; }
.app-cta { display: flex; flex-direction: column; gap: 10px; }

.gallery { max-width: 1040px; margin: 40px auto 0; }
.stage { position: relative; }
.stage-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.stage .browser { box-shadow: 0 40px 80px -30px rgba(0, 10, 30, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.stage-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); transform: translateY(-50%); transition: transform .2s var(--ease), background .15s; }
.stage-nav:hover { transform: translateY(-50%) scale(1.07); }
.stage-nav.prev { left: -24px; }
.stage-nav.next { right: -24px; }
.stage-nav .ui-icon { width: 22px; height: 22px; }
.caption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: var(--slate); font-size: 14px; text-align: center; }
.cap-n { padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; padding: 4px; overflow-x: auto; scrollbar-width: thin; }
.thumb { flex: none; width: 124px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--surface-3); opacity: .6; transition: opacity .15s, border-color .15s, transform .2s var(--ease); }
.thumb:hover { opacity: .9; }
.thumb[aria-selected="true"] { border-color: var(--accent); opacity: 1; transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 56px 0 16px; }
.app-body h2 { margin-bottom: 14px; font-size: 24px; letter-spacing: -.02em; }
.app-body h2.mt { margin-top: 40px; }
.about p { color: var(--slate); font-size: 16px; line-height: 1.7; }
.about p + p { margin-top: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14.5px; }
.check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.check .ui-icon { width: 14px; height: 14px; stroke-width: 3; }

.app-side { display: grid; gap: 16px; align-content: start; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.panel h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 16px; }
.panel h3 .ui-icon { color: var(--accent-ink); }
.panel > p { color: var(--slate); font-size: 13.5px; }
.roles { margin: 0; padding: 0; list-style: none; }
.roles li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.roles li:first-child { padding-top: 2px; border-top: 0; }
.role-mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.roles strong { display: block; font-size: 14px; }
.roles span { color: var(--slate); font-size: 13.5px; }

.accounts { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.acct span { min-width: 0; }
.acct strong { display: block; font-size: 13.5px; }
.acct small { display: block; overflow: hidden; color: var(--slate); font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--muted); }
.copy-btn:hover { border-color: var(--line-strong); background: var(--surface); color: var(--accent-ink); }
.copy-btn .ui-icon { width: 16px; height: 16px; }
.pw { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13.5px; font-weight: 650; }
.pw code { flex: 1; font-size: 14px; font-weight: 700; }
.pw .copy-btn { color: var(--gold-ink); }
.tip { display: flex; gap: 8px; margin-top: 14px; color: var(--slate); font-size: 13px; }
.tip .ui-icon { width: 16px; height: 16px; margin-top: 1px; color: var(--gold-ink); }
.extras { display: grid; gap: 8px; }
.extra { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s, background .15s; }
.extra:hover { border-color: var(--accent); background: var(--accent-soft); }
.extra span { flex: 1; min-width: 0; }
.extra strong { display: block; font-size: 14px; }
.extra small { display: block; color: var(--slate); font-size: 12.5px; }
.extra .ui-icon { width: 16px; height: 16px; color: var(--muted); }

.more { padding: 40px 0 80px; }
.more h2 { margin-bottom: 16px; font-size: 22px; letter-spacing: -.02em; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.mini { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.mini:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.mini-text { flex: 1; min-width: 0; }
.mini strong { display: block; font-size: 16px; }
.mini small { display: block; color: var(--slate); font-size: 13.5px; }
.mini > .ui-icon { color: var(--muted); transition: transform .2s var(--ease); }
.mini:hover > .ui-icon { color: var(--accent-ink); transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 32px; }
/* Fine print: mycampus.watch is not associated with Campus Watch LLC. */
.fine-print { margin-top: -18px; padding-bottom: 24px; font-size: 11.5px; line-height: 1.5; opacity: .8; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand strong { display: block; color: var(--ink); font-size: 14px; }
.cw-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .02em; text-transform: none; }
.cw-badge img { width: 17px; height: auto; }

/* ---------- Lightbox and toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 16px; background: rgba(4, 12, 24, .94); color: #fff; animation: fadeIn .2s both; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-top p { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lb-top .cap-n { background: rgba(255, 255, 255, .14); color: #fff; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); object-fit: contain; }
.lb-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(10, 25, 45, .75); color: #fff; transform: translateY(-50%); }
.lb-nav:hover { background: rgba(30, 60, 100, .9); }
.lb-nav.prev { left: 8px; }
.lb-nav.next { right: 8px; }
.lb-nav .ui-icon { width: 24px; height: 24px; }
@keyframes fadeIn { from { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: #10243a; color: #fff; font-weight: 650; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ui-icon { color: #97e6c8; }

.page-in { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

.noscript { padding: 120px 0 60px; }
.noscript a { display: block; margin-top: 10px; color: var(--accent-ink); font-weight: 650; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .spotlight { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .spot-visual .browser { transform: none; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-head { grid-template-columns: auto minmax(0, 1fr); }
  .app-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .stage-nav.prev { left: 8px; }
  .stage-nav.next { right: 8px; }
}

@media (max-width: 640px) {
  .topbar-inner { height: 60px; }
  .brand small { display: none; }
  .top-link span { display: none; }
  .top-link { width: 40px; padding: 0; justify-content: center; }
  .hero { padding: 92px 0 44px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 42px); }
  .hero-head { gap: 24px; }
  .lede { font-size: 16px; }
  .today { width: 100%; gap: 14px; padding: 12px 16px 12px 12px; }
  .today-icon { width: 38px; height: 38px; }
  .today-date { min-width: 0; }
  .today-date strong, .today-date span { white-space: normal; }
  .picker { margin-top: 28px; }
  .spotlight { padding: 22px 18px; border-radius: 22px; }
  .spot-name { margin-top: 14px; }
  .spot-tagline { font-size: 17px; }
  .spot-actions .btn { flex: 1 1 100%; }
  .picker { display: flex; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .picker::-webkit-scrollbar { display: none; }
  .pick { flex: 0 0 76%; scroll-snap-align: start; }
  .browse { padding-top: 52px; }
  .search { width: 100%; }
  .chips { flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .app-hero { padding-top: 80px; }
  .app-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-icon.xl { width: 72px; height: 72px; border-radius: 20px; }
  .app-head .lede { font-size: 16px; }
  .app-cta .btn { flex: 1 1 100%; }
  .gallery { margin-top: 28px; }
  .stage-nav { width: 40px; height: 40px; }
  .thumbs { justify-content: flex-start; }
  .thumb { width: 96px; }
  .app-body { padding-top: 40px; }
  .lb-nav { top: auto; bottom: 8px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spot-visual .browser { transform: none; }
}

@media print {
  .topbar, .picker, .search, .chips, .stage-nav, .thumbs, .toast { display: none !important; }
  .hero, .app-hero-bg { background: #0b4f9c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
