/* Visual tokens and featured/card composition from the demo launcher (port 8090).
   This client-facing variant has links only: no health claims or machine controls. */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/display.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font-display: 'Schibsted Grotesk', sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #f2f4f8;
  --surface: #fff;
  --sunken: #eef1f5;
  --ink: #141925;
  --ink-2: #474f60;
  --ink-3: #5f6777;
  --accent: #23468c;
  --accent-hover: #1b3770;
  --feature: #3e1e6a;
  --glass: rgba(255, 255, 255, .7);
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-2: 0 2px 6px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .13);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.012em; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 12px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 12px; }
.bar { position: sticky; top: 0; z-index: 10; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgba(20, 25, 37, .09); }
.bar-in { max-width: 1240px; margin: auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; font: 700 19px/1.2 var(--font-display); white-space: nowrap; }
.brand img { height: auto; }
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(20, 25, 37, .055); }
.tabs a { padding: 10px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tabs a:hover, .tabs a:focus-visible { background: var(--surface); color: var(--ink); }
#box { margin-left: auto; background: var(--surface); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
main, footer { max-width: 1240px; margin: auto; padding: 28px 24px; }
.section-title { font-size: 24px; font-weight: 700; margin: 40px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
@media (hover: hover) { a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
.art { position: relative; aspect-ratio: 16 / 9; background: var(--sunken); }
.app-cover { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card h3 { font-size: 19px; font-weight: 700; }
.foot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 22px; }
.open-button { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
a.card:hover .open-button { background: var(--accent-hover); }
.destination { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; max-width: 100%; }
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); min-height: 340px; background: var(--feature); color: #fff; }
.featured .app-card-body { grid-column: 1; grid-row: 1; justify-content: center; align-items: flex-start; gap: 16px; padding: 40px 8px 36px 44px; }
.featured h1 { font-size: 38px; font-weight: 750; letter-spacing: -.022em; }
.eyebrow { font-size: 11px; letter-spacing: .14em; color: #ddd3f7; font-weight: 600; }
.tagline { font-size: 19px; max-width: 30ch; color: #ddd3f7; }
.featured .foot { margin-top: 0; padding-top: 10px; }
.featured .open-button { background: #fff; color: #2a0f4e; }
.featured:hover .open-button { background: #ece6fb; }
.featured .destination { color: #ddd3f7; }
.featured .art { grid-column: 2; grid-row: 1; aspect-ratio: auto; min-height: 220px; background: var(--feature); }
.featured .app-cover { position: absolute; inset: 0; mask-image: linear-gradient(to right, transparent, #000 24%); -webkit-mask-image: linear-gradient(to right, transparent, #000 24%); }
.featured:focus-visible { outline-color: var(--feature); }
.unconfigured .open-button { background: var(--sunken); color: var(--ink-2); }
.featured.unconfigured .open-button { background: rgba(255, 255, 255, .14); color: #fff; }
#notice { padding: 18px 22px; border-radius: 14px; background: #e6ecf8; color: var(--accent); margin-bottom: 24px; }
.demo { margin-top: 40px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
summary { cursor: pointer; padding: 22px 26px; font-weight: 600; }
summary span { font-size: 14px; font-weight: 400; color: var(--ink-2); margin-left: 16px; }
.demo > div { padding: 0 26px 26px; }
blockquote { margin: 22px 0; padding: 22px; border-radius: 14px; background: var(--sunken); font: 600 24px/1.4 var(--font-display); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 14px; color: var(--ink-2); }
strong { color: var(--ink); }
.small { margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.admin > p { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
#admin-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#admin-apps .destination { min-height: 3em; }
footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 32px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1050px) {
  .bar-in { flex-wrap: wrap; gap: 12px; }
  .tabs { order: 3; width: 100%; justify-content: center; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .bar-in { padding: 12px 16px; }
  .brand { gap: 12px; font-size: 16px; }
  .brand img { width: 100px; }
  .tabs a { padding: 10px 12px; font-size: 13px; }
  main, footer { padding-left: 16px; padding-right: 16px; }
  .grid, #admin-apps, .roles { grid-template-columns: 1fr; }
  .featured { display: flex; flex-direction: column; }
  .featured .art { aspect-ratio: 16 / 9; min-height: 0; }
  .featured .app-cover { position: static; mask-image: none; -webkit-mask-image: none; }
  .featured .app-card-body { padding: 24px; }
  .featured h1 { font-size: 32px; }
  .tagline { font-size: 17px; }
  summary span { display: block; margin-left: 18px; margin-top: 4px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } a.card:hover { transform: none; } }
