/* Kuumba Work desktop download page (Stage B download page v2, approved 2026-11-10; Paper "Kuumba Work · Stage B",
   page 04, boards D1–D7b). The look is kuumba.dev's: tokens, type and components copied from
   kuumba-industrial-site/styles/main.css and pages.css (that repo is not edited). Light only: kuumba.dev has no dark
   mode. The install line uses the computer's own monospace face (ruling Q1). */

@font-face {
  font-family: "Onest";
  src: url("assets/Onest-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (kuumba.dev main.css :root) ---------- */
:root {
  --ground: #FBFBFA;
  --rail: #F4F4F2;
  --surface: #FFFFFF;
  --sunken: #F3F3F1;
  --line: #EAEAE7;
  --ink: #1C1A18;
  --ink-hover: #2E2B28;
  --muted: #6A6A67;
  --accent-soft: #EEEAFF;
  --soon-ink: #4B33D6;
  --success: #2F7D55;
  --n-ground: #1A1918;
  --n-text: #D8D5CF;
  --n-muted: #9E9A93;
  --n-light: #E8E5DF;

  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --gutter: clamp(20px, 5.56vw, 80px);
  --max: 1280px;
  --section: clamp(72px, 10.5vw, 152px);
  --nav-h: 72px;

  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "Liberation Mono", monospace;
  --track-display: -0.035em;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-float: 0 1px 2px rgba(28, 26, 24, .04), 0 12px 32px -8px rgba(28, 26, 24, .14), 0 40px 80px -24px rgba(28, 26, 24, .18);
  --shadow-card: 0 1px 2px rgba(28, 26, 24, .04), 0 8px 24px -12px rgba(28, 26, 24, .12);
  --shadow-app: 0 0 0 1px rgba(28, 26, 24, .06), 0 40px 100px -30px rgba(40, 20, 10, .45);
}
@media (max-width: 960px) { :root { --nav-h: 64px; } }
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 500; color: var(--ink); }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font-size: 14px; transition: top .2s; }
.skip:focus { top: 16px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* One state at a time: body[data-os] is win, mac, macsoon or other; [data-for] lists the states an element belongs to. */
body[data-os="win"] [data-for]:not([data-for~="win"]),
body[data-os="mac"] [data-for]:not([data-for~="mac"]),
body[data-os="macsoon"] [data-for]:not([data-for~="macsoon"]),
body[data-os="other"] [data-for]:not([data-for~="other"]) { display: none !important; }

/* ---------- Type (kuumba.dev scale; headings wrap as drawn on the Paper boards, without balancing) ---------- */
.display { font-size: clamp(46px, 5vw, 72px); line-height: 1.06; font-weight: 300; letter-spacing: var(--track-display); }
.h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.11; font-weight: 300; letter-spacing: -0.03em; }
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 28px; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .eyebrow { font-size: 12px; } }
.eyebrow__tile { width: 18px; height: 18px; }

/* ---------- Buttons and tags (main.css §3) ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding-inline: 22px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s, box-shadow .35s var(--ease-out);
}
.btn .ic { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-hover); }
.btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--line:hover .ic { transform: translateX(3px); }
.tag { display: inline-flex; align-items: center; height: 24px; padding-inline: 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.tag--soon { background: var(--accent-soft); color: var(--soon-ink); }

/* ---------- Nav: brand and company, no marketing links (ruling Q2) ---------- */
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__tile { width: 30px; height: 30px; }
.brand__word { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; }
.company { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding-inline: 14px; border-radius: var(--r-pill); background: rgba(28, 26, 24, .06); font-size: 15px; line-height: 20px; font-weight: 500; min-width: 0; }
.company .ic { width: 16px; height: 16px; }
.company span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .company { font-size: 14px; } }

/* ---------- Page head (.phero copy) ---------- */
.phead { display: flex; align-items: flex-end; gap: 64px; padding-top: calc(clamp(112px, 12vw, 152px) - var(--nav-h)); }
.phead__title { display: flex; flex-direction: column; gap: 20px; flex: 1.3 1 0; min-width: 0; }
.phead__sub { flex: .7 1 0; padding-bottom: 8px; font-size: 19px; line-height: 30px; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
@media (max-width: 900px) {
  .phead { flex-direction: column; align-items: stretch; gap: 24px; }
  .phead__sub { padding-bottom: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 27px; }
}

/* ---------- Stage: the photo frame with the floating install card (main.css §11) ---------- */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  margin-top: 56px;
  border-radius: var(--r-xl);
  padding: clamp(12px, 4.4vw, 64px) clamp(12px, 5vw, 72px) 0;
}
body[data-os="macsoon"] .stage, body[data-os="other"] .stage { padding-bottom: clamp(12px, 4.4vw, 64px); }
.stage__bg { position: absolute; inset: 0; z-index: -1; background: #B9AFB5; }
.stage__bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; }
.stage__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 251, 250, 0) 60%, rgba(251, 251, 250, .25)); }
@media (max-width: 900px) { .stage { margin-top: 32px; } }
@media (max-width: 760px) { .stage { border-radius: var(--r-lg); } }
@media (max-width: 600px) { .stage { padding-inline: 12px; } }

.card { position: relative; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 880px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-float); }
@media (max-width: 600px) { .card { gap: 16px; padding: 16px; } }

.picker { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.picker__hint { font-size: 14px; line-height: 20px; color: var(--muted); }
@media (max-width: 600px) { .picker { flex-direction: column; align-items: flex-start; gap: 10px; } }

.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--sunken); }
.seg__item { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 18px; border-radius: var(--r-pill); font-size: 15px; line-height: 20px; color: var(--muted); transition: background-color .25s var(--ease-out), color .25s, box-shadow .25s; }
.seg__item .ic { width: 18px; height: 18px; }
.seg__item:hover { color: var(--ink); }
.seg__item[aria-checked="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-card); }
.seg__item:focus-visible { outline-offset: 1px; border-radius: var(--r-pill); }
@media (max-width: 600px) { .seg__item { height: 36px; padding-inline: 14px; font-size: 14px; } }

.line { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 8px 8px 22px; border-radius: var(--r-md); background: var(--sunken); }
.line__text { flex: 1 1 0; min-width: 0; margin: 0; font-family: var(--mono); font-size: 15px; line-height: 24px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.line .btn { flex: none; }
@media (max-width: 600px) {
  .line { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .line__text { font-size: 13.5px; line-height: 22px; }
}
.note { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--muted); }
.note .ic { width: 18px; height: 18px; margin-top: 2px; }
.note--done { color: var(--ink); }
.note--done .ic { color: var(--success); }

.soon { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 8px 8px 8px 22px; border-radius: var(--r-md); background: var(--sunken); }
.soon__what { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 15px; line-height: 22px; }
.soon .btn { flex: none; }
@media (max-width: 600px) { .soon { flex-direction: column; align-items: flex-start; padding: 16px; } }
.none { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 22px; border-radius: var(--r-md); background: var(--sunken); font-size: 15px; line-height: 22px; color: var(--muted); }
.none .ic { width: 18px; height: 18px; }

/* The installer window: what the person will see (N+ dark, as kuumba.dev's own dark band). */
.term { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 880px; margin-top: 24px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--n-ground); box-shadow: var(--shadow-app); overflow: hidden; }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding-inline: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.term__name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--n-light); }
.term__name .ic { width: 16px; height: 16px; color: var(--n-muted); }
.term__tag { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--n-muted); }
.term__out { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 48px; font-family: var(--mono); font-size: 14px; line-height: 24px; color: var(--n-text); }
.term__out p { overflow-wrap: anywhere; }
.term__prompt { color: var(--n-muted); }
.term__last { color: var(--n-light); }
@media (max-width: 600px) {
  .term { margin-top: 16px; }
  .term__bar { padding-inline: 14px; }
  .term__out { padding: 14px 14px 36px; font-size: 12.5px; line-height: 20px; }
}

/* ---------- Facts strip (pages.css §2) ---------- */
.facts { display: grid; grid-template-columns: repeat(var(--facts, 3), minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.facts--two { --facts: 2; }
.fact { display: grid; gap: 10px; align-content: start; padding: 22px 20px 0 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact__label { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact__value { font-size: 26px; line-height: 1.15; font-weight: 300; letter-spacing: -0.02em; }
.fact__note { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 30ch; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; margin-top: 36px; }
  .fact, .fact + .fact { padding: 22px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .fact__value { font-size: 22px; }
}

/* ---------- Steps (pages.css §5, finished state) ---------- */
.section--rail { margin-top: var(--section); padding-block: var(--section); background: var(--rail); }
.shead { display: flex; align-items: flex-end; gap: 64px; margin-bottom: clamp(48px, 6vw, 88px); }
.shead__title { display: flex; flex-direction: column; gap: 20px; flex: 1.3 1 0; }
.shead__lede { flex: .7 1 0; }
@media (max-width: 900px) { .shead { flex-direction: column; align-items: stretch; gap: 24px; } }

.steps { --time-w: 112px; position: relative; max-width: 1040px; }
.steps__list { display: grid; }
.steps__rail { position: absolute; left: calc(var(--time-w) + 28px + 11px); top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--ink); }
.step { position: relative; display: grid; grid-template-columns: var(--time-w) 24px minmax(0, 1fr); gap: 0 28px; padding-bottom: 48px; }
.step:last-child { padding-bottom: 0; }
.step__time { padding-top: 2px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); text-align: right; }
.step__time small { display: block; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); }
.step__dot { position: relative; z-index: 1; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--rail); }
.step__dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.step__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step__eyebrow { display: none; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.step__body h3 { font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; }
.step__body p { color: var(--muted); max-width: 60ch; text-wrap: pretty; }
@media (max-width: 900px) { .step__body h3 { font-size: 24px; } }
@media (max-width: 600px) {
  .steps__rail { left: 11px; }
  .step { grid-template-columns: 24px minmax(0, 1fr); gap: 0 16px; padding-bottom: 32px; }
  .step__time { display: none; }
  .step__eyebrow { display: block; }
  .step__body h3 { font-size: 22px; }
}

/* ---------- If it doesn't work (pages.css .faq) ---------- */
.help { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 96px; align-items: start; padding-block: var(--section); }
.help__head { display: flex; flex-direction: column; gap: 20px; }
.help__title { font-size: 46px; line-height: 1.11; font-weight: 300; letter-spacing: -0.03em; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 20px; line-height: 27px; font-weight: 400; letter-spacing: -0.01em; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:focus-visible { outline-offset: 2px; }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 1px; background: var(--ink); transition: transform .5s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--ink); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__q:hover .faq__icon { background: var(--sunken); }
.faq__item[open] .faq__q:hover .faq__icon { background: var(--ink-hover); }
.faq__a { padding: 0 56px 24px 0; color: var(--muted); max-width: 64ch; text-wrap: pretty; }
@media (max-width: 900px) {
  .help { grid-template-columns: 1fr; gap: 32px; }
  .help__title { font-size: 32px; }
  .faq__q { font-size: 17px; line-height: 23px; }
}
@media (max-width: 600px) { .faq__a { padding-right: 0; } }

/* ---------- On your phone ---------- */
.phone { display: flex; flex-direction: column; gap: 10px; padding-block: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body[data-os="macsoon"] .phone, body[data-os="other"] .phone { margin-top: 96px; }
.phone__title { font-size: clamp(36px, 5vw, 72px); line-height: 1.04; font-weight: 300; letter-spacing: -0.04em; }
.phone__line { color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.phone__line a { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.phone__line a:hover { text-decoration-color: var(--ink); }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) {
  .phone { padding-block: 32px; }
  body[data-os="macsoon"] .phone, body[data-os="other"] .phone { margin-top: 48px; }
}

/* ---------- Footer: bottom bar only (ruling Q3) ---------- */
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 96px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--muted); }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.footer__brand svg { width: 22px; height: 22px; }
.footer__link { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-weight: 500; }
.footer__link .ic { width: 14px; height: 14px; }
.footer__link:hover { color: var(--ink); }
@media (max-width: 900px) { .footer__bottom { margin-top: 56px; } }
@media (max-width: 600px) { .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
