/* The website's look: the brand is the kit, so these are the kit's own values, copied.
   - The tokens: packages/ui/src/shell/shell.css, `:root` (the dark look) and `:root[data-theme="light"]` (the light
     look), only those the page uses, each by its own name; the look follows the visitor's setting.
   - The start screen's icon tile, name, line and presses: packages/parts/src/first-run/first-run.css (.appicon, .word,
     .welcome .sub, .b), as Welcome draws them.
   - The sheet: packages/ui/src/kit/kit.css (.k-sheet, .k-sh-hd, .k-sh-body, .k-sh-ft, .k-x, .k-btn); its body as the
     design page's FirstTimeSteps (apps/design/src/pages/website.proposed.tsx).
   No blue: what the page presses and lights is the ink. */
:root {
  --window: #0c0d0f;
  --card: #181b1f;
  --hover: #1f2328;
  --well: rgba(255, 255, 255, 0.045);
  --hair: #24282e;
  --hair-2: #30353c;
  --ink: #e9eaec;
  --ink-2: #8b919a;
  --ink-3: #5b616a;
  --ink-soft: rgba(233, 234, 236, 0.1);
  --font: -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;
  --text-size: 13px;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --floor: #060708;
  --surface: #0f1013;
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.055);
  --on-ink: #0c0d0f;
  --pop-line: rgba(255, 255, 255, 0.09);
  --sheet: #16181c;
  --scrim: rgba(5, 6, 8, 0.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --window: #ffffff;
    --card: #ffffff;
    --hover: #f0f2f4;
    --well: rgba(0, 0, 0, 0.045);
    --hair: #e6e8eb;
    --hair-2: #d8dce1;
    --ink: #16181b;
    --ink-2: #5d646e;
    --ink-3: #969da7;
    --ink-soft: rgba(22, 24, 27, 0.07);
    --floor: #eceef1;
    --surface: #ffffff;
    --ring: 0 0 0 1px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.05);
    --on-ink: #ffffff;
    --pop-line: #d8dce1;
    --sheet: #ffffff;
    --scrim: rgba(228, 231, 236, 0.6);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--surface); color: var(--ink); font: var(--text-size)/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* the kit's two-greys mark (shell.css .wsm) */
.wsm { display: block; flex: none; fill-rule: evenodd; }
.wsm .t1 { fill: var(--ink); }
.wsm .t2 { fill: var(--ink-2); }

/* ---------------------------------------------------------------- the page */
.lp { position: relative; isolation: isolate; min-height: 100%; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 0; }
/* the start screen's still light, where its silk goes (first-run.css .hero.nogl) */
.hero { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 40% 50% at 50% 42%, color-mix(in srgb, var(--ink) 16%, transparent), transparent 70%); }

/* The app's icon, as the Mac's and a phone's Home Screen draw it: the house mark on a black tile with macOS's corner,
   black in both looks (first-run.css .appicon). */
.appicon { width: 128px; height: 128px; border-radius: 22.5%; display: grid; place-items: center; flex: none;
  background: linear-gradient(var(--card), var(--window)); box-shadow: var(--ring), 0 18px 40px -14px color-mix(in srgb, var(--floor) 90%, transparent); }
@media (prefers-color-scheme: light) {
  .appicon { background: linear-gradient(color-mix(in srgb, var(--ink) 86%, var(--on-ink)), var(--ink)); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--ink) 45%, transparent); }
  .appicon .t1 { fill: var(--on-ink); }
  .appicon .t2 { fill: color-mix(in srgb, var(--on-ink) 55%, var(--ink)); }
}
/* the name and the line, as the start screen draws them: the name at 30 and medium, the line at 16 */
.word { margin: 26px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -0.015em; line-height: 1; }
.sub { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: color-mix(in srgb, var(--ink) 70%, var(--ink-2)); max-width: 520px; }

/* the presses of the start screen (first-run.css .b) */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 7px 16px; font-size: 13.5px; font-weight: 550; background: var(--card); border: 1px solid var(--hair-2); color: var(--ink); white-space: nowrap; cursor: pointer; user-select: none; }
.b.white { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 650; }
.b.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.b.big { padding: 11px 22px; font-size: 15px; border-radius: 11px; min-width: 300px; gap: 11px; }
.b:disabled { cursor: default; }
.b[data-done]::before { content: "✓"; }

.cta { display: grid; justify-items: center; gap: 10px; margin-top: 36px; }
.cta form { display: contents; }
.read { font: 12px var(--mono); color: var(--ink-3); letter-spacing: 0.02em; }
/* The press's mark: the visitor's system (Apple, Windows, Tux) in the press's own ink, one colour, one shown. */
.press .os { flex: none; fill: currentColor; margin-left: -4px; }
/* Under the press: how to open a build not signed yet, then the other kind, quiet. */
.open-line { font-size: 13px; color: var(--ink-2); max-width: 380px; }
.also { font-size: 12.5px; color: var(--ink-3); }
.also a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.also a:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
.soon { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }
/* The other downloads: one quiet row a system, its files as small presses with their sizes. */
.others { display: grid; gap: 8px; margin-top: 22px; width: 100%; max-width: 420px; }
.dl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 8px 12px; border-radius: 10px; background: var(--well); }
.dl > b { font-weight: 550; color: var(--ink-2); }
.dl-files { display: flex; gap: 6px; }
.dl-files .k-btn i { font-style: normal; color: var(--ink-3); font-size: 11.5px; margin-left: 4px; }
.dl > small { grid-column: 1 / -1; color: var(--ink-3); font-size: 11.5px; }

.foot { flex: none; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 24px 22px; font-size: 12.5px; color: var(--ink-3); }
.foot b { font-weight: 600; color: var(--ink-2); }
.foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); margin: 0 4px; }
.foot .src { color: var(--ink-2); text-decoration: none; }
.foot .src:hover { color: var(--ink); }

/* On a phone: the same page, told to go to a Mac; Copy link first, the press kept, quiet. What is for one or the other
   is marked .on-mac or .on-phone, here and in the sheet. */
.on-phone { display: none !important; }
.there { justify-items: center; gap: 6px; margin-top: 28px; }
.there b { font-size: 17px; font-weight: 650; color: var(--ink); }
.there span { font-size: 14px; color: var(--ink-2); max-width: 300px; line-height: 1.45; }
.pair { grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.pair:has(> [hidden]) { grid-template-columns: 1fr; }
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .on-mac { display: none !important; }
  .there.on-phone, .pair.on-phone, .lk.on-phone { display: grid !important; }
  .sh-hd .on-phone { display: block !important; }
  .mid { padding-top: 40px; }
  .appicon { width: 96px; height: 96px; }
  .lp > .mid > .appicon svg { width: 80px; height: 80px; }
  .cta { margin-top: 18px; width: 100%; max-width: 320px; }
  .cta .b { min-width: 0; width: 100%; }
  .cta .press:not(:disabled) { background: transparent; border-color: transparent; color: var(--ink-2); font-size: 13.5px; padding: 7px 16px; font-weight: 550; }
  .read { font-size: 10.5px; letter-spacing: 0; }
  .open-line, .also { display: none !important; }
}

/* ---------------------------------------------------------------- the sheet (the kit's Sheet) */
dialog.sheet { padding: 0; margin: auto; width: 440px; max-width: calc(100vw - 80px); max-height: calc(100vh - 100px); color: var(--ink); background: var(--sheet); border: 1px solid var(--pop-line); border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); text-align: left; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: rise 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); }
dialog.sheet::backdrop { background: var(--scrim, rgba(5, 6, 8, 0.55)); animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open], dialog.sheet::backdrop { animation: none; } }
.sh-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--hair); }
.sh-hd b { display: block; font-size: 15px; font-weight: 600; }
.sh-hd small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12.5px; }
.x { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: none; display: grid; place-items: center; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; }
.x:hover { background: var(--hover); color: var(--ink); }
.sh-body { padding: 16px 18px; overflow: auto; }
.sh-ft { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 14px; border-top: 1px solid var(--hair); }
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 9px; padding: 6px 14px; font-size: 13px; font-weight: 550; background: var(--card); border: 1px solid var(--hair-2); color: var(--ink); cursor: pointer; user-select: none; white-space: nowrap; text-decoration: none; }
.k-btn:hover { border-color: var(--ink-3); }
.k-btn.go { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 650; }
.k-btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.k-btn.quiet:hover { color: var(--ink); }
.k-btn[data-done]::before { content: "✓"; }

/* its body: macOS's alert, small; the three steps; one line after; on a phone the link first */
.steps { display: grid; gap: 14px; }
.al { justify-self: center; width: 208px; padding: 14px 12px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--ring); display: grid; justify-items: center; gap: 8px; text-align: center; }
.al .appicon { width: 44px; height: 44px; }
.al b { font-size: 11.5px; font-weight: 650; line-height: 1.3; color: var(--ink); }
.al .ps { display: grid; gap: 5px; width: 100%; }
.al .ps span { display: block; padding: 4px 0; border-radius: 6px; font-size: 11px; font-weight: 500; background: var(--well); color: var(--ink); }
.al .ps span.def { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.lk { gap: 8px; }
.lk b { padding: 11px 14px; border-radius: 12px; background: var(--well); font: 600 15px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.lk span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--ink); }
.steps li i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hair-2); font: 650 12px var(--mono); font-style: normal; color: var(--ink-2); }
.steps .after { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  dialog.sheet { width: 360px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); }
}
