/* The Awareful Desk download page (/desk, /en/desk). Built on /landing-v1.css; only what this page adds lives here.
   Which download block shows is set by desk.js on <html data-platform="mac|ios|other">; without JS the Mac block shows. */
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { border-radius: 12px; }

/* Platform blocks */
.for-ios, .for-other { display: none; }
html[data-platform="ios"] .for-ios { display: block; }
html[data-platform="other"] .for-other { display: block; }
html[data-platform="ios"] .for-mac, html[data-platform="other"] .for-mac { display: none; }
html[data-platform="ios"] .not-ios { display: none; }

/* Hero: one action */
.dl h1 { margin-bottom: 12px; }
.dl .lede { margin-bottom: 28px; }
.get { max-width: 560px; }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 12px; }
.btn.big { padding: 15px 26px; font-size: 17px; border-radius: 14px; min-height: 52px; justify-content: center; }
.btn.primary:hover { opacity: .9; }
.btn:not(.primary):hover { background: var(--card); }
.ver { font: 500 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink2); white-space: nowrap; }
.req { margin: 0 0 6px; font-size: 14.5px; color: var(--ink2); }
.req b { color: var(--ink); font-weight: 600; }
.then { margin: 14px 0 0; font-size: 15px; color: var(--ink2); }
.note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border-left: 3px solid var(--todo); font-size: 14.5px; background: var(--todo-bg); color: var(--ink); }
.status { margin: 12px 0 0; font-size: 14.5px; color: var(--ink); min-height: 0; }
.status:empty { display: none; }
.alt { margin: 18px 0 0; font-size: 14px; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.alt a { color: var(--ink2); }
@media (max-width: 479px) {
  .get-row .btn.big { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* iPhone / other device: the page link to take to the Mac */
.get-head { font-size: 17px; margin: 0 0 12px; }
.link-box { display: inline-block; margin: 0 0 16px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font: 500 16px/1.4 ui-monospace, "SF Mono", Menlo, monospace; }

/* After download: the three steps as Desk's own board shows them */
.steps { list-style: none; padding: 0; margin: 24px 0 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px 64px; background: var(--card); }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; font-size: 15px; border: 1.5px solid var(--ink); color: var(--ink); }
.steps h3 { font-size: 18px; margin: 2px 0 8px; }
.steps p { margin: 0 0 8px; color: var(--ink2); font-size: 15px; }
.steps p:last-child { margin-bottom: 0; }
.steps .aside { font-size: 13.5px; color: var(--ink3); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
@media (max-width: 379px) { .steps > li { padding-left: 20px; padding-top: 60px; } }

/* Names of Desk's own controls, so the page and the app read the same */
.ui { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink);
  font-size: .94em; line-height: 1.5; white-space: nowrap; }
kbd { font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); color: var(--ink); white-space: nowrap; }

/* The phone app, inside step 1 where it is needed */
.phone-app { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.phone-app h4 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.phone-app p { margin: 0; }
/* Long store labels (English) wrap inside the card instead of widening the steps grid. */
.phone-app .btn { white-space: normal; text-align: left; }
/* Disabled store button: .btn.soon from landing-v1.css, as on the home page. */
.qr { display: none; align-items: center; gap: 12px; }
html[data-platform="mac"] .qr.on { display: flex; }
.qr img { width: 112px; height: 112px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.qr span { font-size: 13.5px; color: var(--ink3); }

/* Progressive disclosure: agent route, verification, requirements and updates */
.more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.more details { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.more summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; color: var(--ink3); }
.more details[open] summary::after { content: "−"; }
.more summary small { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink3); }
.more .body { padding: 0 20px 18px; color: var(--ink2); font-size: 15px; }
.more .body p { margin: 0 0 10px; }
.more .body a { overflow-wrap: anywhere; }
.more dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: 14.5px; }
.more dt { color: var(--ink3); }
.more dd { margin: 0; color: var(--ink); min-width: 0; }
@media (max-width: 479px) { .more dl { grid-template-columns: 1fr; gap: 0; } .more dd { margin-bottom: 8px; } }

.copyline { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.copyline code { flex: 1; min-width: 0; font: 13.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.copyline .btn { flex: none; }
.hash { word-break: break-all; }
/* Shown under a copy line or link when the copy fell back to selecting the text. */
.copy-hint { margin: -4px 0 12px; font-size: 14px; color: var(--ink); }
.cta-row + .copy-hint { margin-top: -6px; }
/* Small text that carries information reads in --ink2 (AA on --bg and --card); --ink3 stays for decorative labels. */
.get .micro, .steps .aside, .qr span, .more summary small, .more .body .aside { color: var(--ink2); }

.steps code, .more .body p code { font: .9em/1.5 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .more summary::after { transition: opacity .15s, background-color .15s; }
}
