/* Dualspace. Tokens first: colors, then the pieces. Each app tints its own tile and page with --app. */
:root {
  --bg: #f7f8fb; --surface: #ffffff; --ink: #0d1020; --muted: #5b6275; --line: #e4e7ef; --soft: #eef1f7;
  --brand-a: #4263eb; --brand-b: #12b886; --accent: #4263eb; --accent-ink: #ffffff; --amber: #b7791f;
  --shadow: 0 1px 2px rgba(13, 16, 32, .05), 0 10px 30px rgba(13, 16, 32, .07);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0e19; --surface: #131828; --ink: #eef0f7; --muted: #9aa3b8; --line: #232a3d; --soft: #1a2033;
          --brand-a: #5c7cfa; --brand-b: #20c997; --accent: #6d8bff; --accent-ink: #0b0e19; --amber: #f2b85b;
          --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
h3 { font-weight: 650; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header and footer */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a.btn { color: var(--accent-ink); }
.menu { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 720px) {
  .menu { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface);
         border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}
.site-foot { border-top: 1px solid var(--line); padding: 32px 0; }
.band.alt + .site-foot, main:has(> .band.alt:last-child) + .site-foot { border-top: 0; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; } .foot-nav a { color: var(--muted); text-decoration: none; } .foot-nav a:hover { color: var(--ink); }
.fine { color: var(--muted); font-size: 14px; }

/* buttons, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: var(--accent); color: var(--accent-ink);
       font-weight: 600; text-decoration: none; border: 1px solid var(--accent); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.small { padding: 8px 14px; border-radius: 10px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn.disabled { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: default; }
.btn.disabled:hover { transform: none; box-shadow: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.beta { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.badge.live { background: color-mix(in srgb, var(--brand-b) 16%, transparent); color: var(--brand-b); }
.badge.plain { background: transparent; border: 1px solid var(--line); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px;
        background: radial-gradient(600px 300px at 85% 10%, color-mix(in srgb, var(--brand-a) 16%, transparent), transparent 70%),
                    radial-gradient(500px 280px at 70% 90%, color-mix(in srgb, var(--brand-b) 14%, transparent), transparent 70%); }
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); }
.lede { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 46ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.launcher { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 14px 18px 22px; }
.launcher-bar { display: flex; gap: 6px; padding: 2px 0 14px; } .launcher-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 500; text-align: center; color: var(--ink); }
.mini .ico { width: 64px; height: 64px; border-radius: 18px; transition: transform .15s; }
.mini:hover .ico { transform: translateY(-3px) scale(1.04); }
@media (max-width: 880px) { .hero-row { grid-template-columns: 1fr; } .hero { padding: 48px 0 40px; } }

/* app icons: the app's color, tinted */
.ico { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px;
       background: color-mix(in srgb, var(--app, var(--accent)) 14%, var(--surface)); color: var(--app, var(--accent));
       border: 1px solid color-mix(in srgb, var(--app, var(--accent)) 22%, transparent); }
.ico svg { width: 55%; height: 55%; }
.ico.xl { width: 84px; height: 84px; border-radius: 22px; }

/* sections */
.band { padding: 56px 0; } .band.tight { padding: 24px 0 56px; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: 28px; }
.more { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
h2.sub { font-size: 20px; margin: 36px 0 14px; color: var(--muted); }

/* tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tile-link { position: relative; display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--surface);
             border: 1px solid var(--line); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.band.alt .tile-link { background: var(--bg); }
.tile-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--app) 45%, var(--line)); box-shadow: var(--shadow); }
.tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 64px; }
.tile-text b { font-size: 17px; letter-spacing: -.01em; } .tile-text span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.tile .badge { position: absolute; top: 14px; right: 14px; }
.tiles.dim .tile-link { opacity: .75; }

/* points */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.point { padding: 4px 0; } .point h3 { font-size: 19px; margin: 14px 0 8px; } .point p { color: var(--muted); }
.pt-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); }
.pt-ico svg { width: 24px; height: 24px; }
@media (max-width: 880px) { .points { grid-template-columns: 1fr; } }

/* page heads, app pages */
.page-head { padding: 56px 0 8px; } .page-head h1 { font-size: clamp(32px, 5vw, 48px); } .page-head.center { text-align: center; padding: 96px 0; }
.page-head.center .lede { margin-left: auto; margin-right: auto; } .page-head.center .ctas { justify-content: center; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.filters input { flex: 1 1 260px; max-width: 360px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.app-hero { padding: 48px 0 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--app) 10%, var(--bg)), var(--bg)); }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 22px; } .crumbs a { color: var(--accent); text-decoration: none; }
.app-row { display: flex; gap: 22px; align-items: center; } .app-row h1 { font-size: clamp(32px, 5vw, 46px); } .app-row .lede { margin-top: 6px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.app-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; } .app-body h2 { font-size: 22px; margin-bottom: 12px; } .app-body p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--brand-b) 18%, transparent); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--brand-b); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 720px) { .app-body { grid-template-columns: 1fr; gap: 28px; } .app-row { align-items: flex-start; } .ico.xl { width: 64px; height: 64px; } }

/* cards, tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.soft { box-shadow: none; } .card h3 { font-size: 20px; margin-bottom: 8px; } .card p { color: var(--muted); }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th { text-align: left; color: var(--muted); font-size: 14px; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.plain td { padding: 14px 12px; border-bottom: 1px solid var(--line); } table.plain td a { color: var(--accent); text-decoration: none; font-weight: 600; }
.notice { border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line)); background: color-mix(in srgb, var(--amber) 8%, var(--surface)); border-radius: var(--radius); padding: 18px 20px; }
.notice b { display: block; margin-bottom: 4px; } .notice p { color: var(--muted); }
