/* Landing page. Colors and type follow the Switch app's ProfileStyle (sampled from Conductor). */
:root {
  --canvas: #141110; --sidebar: #1b1917; --field: #201e1c; --selected: #272523; --raised: #2b2826; --raised-hover: #33302e;
  --text: #eae8e6; --nav: #a9a8a7; --secondary: #a4a09d; --tertiary: #8e8b88; --dim: #7b7a78;
  --accent: #c6a797; --accent-soft: rgba(198, 167, 151, .16); --accent-line: rgba(198, 167, 151, .55);
  --line: #2b2826; --green: #77db89; --cta: #d2743f; --light: #f3f2f1;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.home { margin: 0; background: var(--canvas); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
.home a { color: var(--accent); text-decoration: none; }
.home a:hover { color: var(--text); }
/* Focus rings only while someone is using the keyboard (app.js sets .kbd on Tab, clears it on any pointer press). */
.home :focus-visible { outline: none; }
.kbd .home :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.home button { font: inherit; color: inherit; }
.home h1, .home h2, .home h3, .home p { margin: 0; }
.home svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home img { display: block; }
.home kbd { font: 500 11px var(--mono); color: var(--tertiary); }
.home code { font: 12px var(--mono); color: var(--text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.spacer { flex: 1; }
.muted { color: var(--tertiary); }
.small { font-size: 12px; }
.dim { color: var(--dim); }
.chip { font: 500 10px/18px var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--light); color: var(--canvas) !important; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 12px; }
section[id], main { scroll-margin-top: 64px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--sidebar); border-bottom: 1px solid var(--line); }
.top-row { height: 52px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text) !important; font-size: 15px; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
.top-nav { display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
.top-nav a { color: var(--nav); padding: 0 10px; line-height: 28px; border-radius: 6px; }
.top-nav a:hover { color: var(--text); background: var(--selected); }

.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px 0 7px; border-radius: 6px; color: var(--nav); font-size: 13px; font-weight: 500; white-space: nowrap; }
.lang-pick[hidden] { display: none; }
.lang-pick:hover { background: var(--selected); color: var(--text); }
.kbd .lang-pick:has(select:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-pick svg { width: 15px; height: 15px; flex: none; }
.lang-pick .lang-chev { width: 11px; height: 11px; stroke-width: 2.4; opacity: .8; }
/* The native menu sits invisibly over the globe, so the control stays icon-sized. */
.lang-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: 13px var(--sans); }

/* Language suggestion under the header (English page, mapped countries only). */
.lang-banner { border-top: 1px solid var(--line); background: var(--canvas); }
.lang-banner[hidden] { display: none; }
.lang-banner-row { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: var(--secondary); }
.lang-banner-row > span { min-width: 0; }
.lang-banner-yes { flex: none; white-space: nowrap; padding: 0 10px; line-height: 26px; border-radius: 6px; background: var(--raised); color: var(--text) !important; font-weight: 500; }
.lang-banner-yes:hover { background: var(--raised-hover); }
.lang-banner-close { flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--tertiary); cursor: pointer; }
.lang-banner-close:hover { background: var(--selected); color: var(--text); }
.lang-banner-close svg { width: 12px; height: 12px; stroke-width: 2.2; }

/* Buttons */
.btn-buy { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border: 0; border-radius: 8px; cursor: pointer; font-family: inherit; background: var(--cta); color: #fff !important; font-size: 15px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn-buy:hover { filter: brightness(1.07); }
/* The drawn Apple logo (non-Apple devices) is a filled shape: override the outline-only default for icons. */
.btn-buy svg { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-top: -2px; }
.apple-logo { font: 17px/1 -apple-system, BlinkMacSystemFont, sans-serif; position: relative; top: .5px; }
.btn-buy.small { height: 30px; padding: 0 12px; border-radius: 6px; font-size: 13px; }
.btn-quiet { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 8px; background: var(--sidebar); border: 1px solid var(--line); color: var(--secondary) !important; font-size: 15px; font-weight: 500; }
.btn-quiet:hover { color: var(--text) !important; background: var(--raised); }
.btn-quiet svg { width: 14px; height: 14px; stroke-width: 2; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding-top: 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12px; color: var(--tertiary); }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks svg { width: 16px; height: 16px; flex: none; }
.checks svg circle { fill: rgba(119, 219, 137, .14); stroke: rgba(119, 219, 137, .32); stroke-width: 1; }
.checks svg path { stroke: var(--green); stroke-width: 2.2; }
.checks .stripe { height: 14px; width: auto; margin-left: 1px; }

.signup { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.signup .cta-row { width: 100%; }
.signup-field { display: flex; align-items: center; gap: 4px; padding: 4px; width: min(100%, 460px); background: var(--sidebar); border: 1px solid var(--line); border-radius: 12px; }
.signup-field:has(input:focus) { border-color: var(--accent-line); }
.signup-field input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 0; background: transparent; color: var(--text); font: 15px var(--sans); }
.signup-field input::placeholder { color: var(--dim); }
.signup-field input:focus { outline: none; }
.signup-field .btn-buy { height: 42px; flex: none; }
.signup-field .btn-buy:disabled { opacity: .7; cursor: progress; }
.signup.is-done .signup-field { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-note { font-size: 12px; color: var(--tertiary); min-height: 18px; }
.signup-note[data-state="error"] { color: #e77a76; }
.signup-note[data-state="done"] { color: var(--green); font-size: 14px; font-weight: 500; }
.signup-msg { display: none; font-size: 14px; font-weight: 500; }
.signup-msg:target { display: block; }
.signup-msg.ok { color: var(--green); }
.signup-msg.bad { color: #e77a76; }
/* The button's shorter label (the header's "Early access" wording) is for phones only. */
.cta-short { display: none; }
/* Phones keep the field and button on one row, as on desktop, with a more compact button and shorter label. */
@media (max-width: 460px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .signup-field input { padding: 0 10px; font-size: 14px; }
  .signup-field .btn-buy { gap: 7px; padding: 0 13px; font-size: 14px; }
  .signup-field .btn-buy svg, .signup-field .apple-logo { width: 14px; height: 14px; font-size: 15px; }
}

/* Hero */
.hero { padding-top: 96px; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.hero-copy { max-width: 860px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 4px; font-size: 12px; font-weight: 500; color: var(--secondary); background: var(--sidebar); border: 1px solid var(--line); border-radius: 6px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: 16px; line-height: 1.6; color: var(--secondary); max-width: 560px; }

/* Manager demo */
.demo { width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mgr { width: 100%; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); }
.mgr-bar, .mgr-body { display: flex; }
.mgr-bar { background: var(--sidebar); border-bottom: 1px solid var(--line); font-size: 13px; }
.side-col { flex: 0 0 240px; border-right: 1px solid var(--line); min-width: 0; }
.main-col { flex: 1 1 320px; min-width: 0; }
.lights { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.lights i, .win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2), .win-bar i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3), .win-bar i:nth-child(3) { background: #28c840; }
.crumbs { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; white-space: nowrap; }
.crumbs strong { overflow: hidden; text-overflow: ellipsis; }
.chev { width: 9px; height: 9px; stroke: var(--tertiary) !important; stroke-width: 3 !important; flex: none; }
.quiet { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--nav) !important; font-size: 12px; font-weight: 500; cursor: pointer; }
.quiet:hover { background: var(--selected); color: var(--text) !important; }
.quiet svg { width: 12px; height: 12px; stroke-width: 2; }
.primary-mini { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--light); color: var(--canvas) !important; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.primary-mini:hover { background: #fff; }
.dimmer { opacity: .55; font-size: 11px; }
.mgr-side { background: var(--sidebar); display: flex; flex-direction: column; }
.side-top { padding: 8px 8px 10px; border-bottom: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; font-size: 14px; font-weight: 600; }
.side-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; color: var(--nav); font-size: 13px; }
.side-item svg, .side-foot svg { width: 14px; height: 14px; flex: none; }
.side-item span { flex: 1; }
.side-label { display: flex; justify-content: space-between; padding: 14px 18px 6px; font-size: 12px; color: var(--tertiary); }
.side-list { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.prow:hover, .prow.is-selected { background: var(--selected); }
.prow img { width: 32px; height: 32px; flex: none; }
.prow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prow-line { display: flex; align-items: center; gap: 6px; }
.prow-name { font-size: 14px; font-weight: 500; color: var(--nav); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow.is-selected .prow-name { color: var(--text); }
.prow-mail { font-size: 12px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
.run.is-off { opacity: 0; }
.run.is-idle { background: var(--dim); }
.side-foot { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px 0 12px; color: var(--nav); }
.mgr-main { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 20px; }
.detail-head { display: flex; align-items: center; gap: 14px; }
.detail-head img { width: 44px; height: 44px; flex: none; }
.detail-name { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary); margin-top: 3px; }
.status { display: inline-flex; align-items: center; gap: 5px; }
.card { background: var(--sidebar); border: 1px solid var(--line); border-radius: 8px; }
.shortcut-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.shortcut-card > div { flex: 1; min-width: 0; }
kbd.big { font-size: 13px; color: var(--text); background: var(--raised); border-radius: 6px; padding: 0 8px; line-height: 26px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 12px; color: var(--tertiary); }
.label.strong { color: var(--secondary); font-weight: 500; }
.rows { padding: 0 16px; }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.mid { align-items: center; padding: 12px 0; }
.row > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--nav); }
.row-body, .flex { flex: 1; min-width: 0; }
.row-title { font-size: 13px; font-weight: 500; }
.row-hint { font-size: 12px; color: var(--secondary); }
.row-value { font-size: 12px; color: var(--secondary); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.dock-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dock { display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px 6px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px; }
.dock-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.2,1); }
span.dock-item { cursor: default; }
button.dock-item:hover { transform: translateY(-3px); }
.dock-item img { width: 44px; height: 44px; }
.dock-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--nav); }
.dock-dot.is-off { opacity: 0; }
.dock-sep { width: 1px; height: 40px; background: var(--line); margin: 0 2px 10px; }
.caption { font-size: 12px; color: var(--tertiary); }

/* Sections */
.section { padding-top: 128px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--tertiary); }
.section h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.section h2.big { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.section-lead { font-size: 15px; line-height: 1.6; color: var(--secondary); max-width: 580px; text-wrap: pretty; }
.panel { margin-top: 28px; width: 100%; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-align: left; }
.w-860 { max-width: 860px; } .w-760 { max-width: 760px; } .w-720 { max-width: 720px; } .w-620 { max-width: 620px; } .w-520 { max-width: 520px; }
.panel-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--sidebar); border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.panel-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel-body.tight { padding: 6px; gap: 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acct { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.acct-head { display: flex; align-items: center; gap: 12px; }
.acct-head img { width: 40px; height: 40px; flex: none; }
.acct-name { font-size: 14px; font-weight: 600; }
.acct-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--secondary); padding-top: 12px; border-top: 1px solid var(--line); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 8px; background: var(--field); border: 1px solid var(--line); font-size: 12px; color: var(--secondary); }
.swatches li img { width: 48px; height: 48px; }
.swatches li.is-selected { background: var(--raised); border-color: var(--accent-line); color: var(--text); }
.swatches li.more { background: transparent; border-style: dashed; border-color: var(--raised-hover); justify-content: center; }
.swatches li.more span { height: 48px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--secondary); }
.keycaps { margin-top: 28px; display: flex; gap: 10px; font: 24px var(--mono); }
.keycaps span { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; color: var(--nav); background: var(--sidebar); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 10px; }
.keycaps .lit { color: var(--canvas); background: var(--light); border-color: var(--light); border-bottom-color: #bdb9b5; }
.keycaps + .panel { margin-top: 12px; }
.krow { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 6px; }
.krow img { width: 26px; height: 26px; }
.krow-name { flex: 1; font-size: 13px; font-weight: 500; color: var(--nav); }
.krow.is-active { background: var(--selected); }
.krow.is-active .krow-name { color: var(--text); }
.krow kbd { font-size: 12px; color: var(--secondary); background: var(--raised); border-radius: 6px; padding: 0 8px; line-height: 24px; }
.krow kbd.lit { color: var(--canvas); background: var(--light); }
.switching { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--green); margin-right: 6px; }
.screen { margin-top: 28px; width: 100%; background: #0f0d0c; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: left; }
.menubar { height: 20px; display: flex; align-items: center; gap: 14px; padding: 0 8px; font-size: 11px; color: var(--tertiary); white-space: nowrap; overflow: hidden; }
.menubar strong { color: var(--nav); }
.arranged { display: inline-flex; align-items: center; gap: 4px; color: var(--nav); }
.arranged svg { width: 12px; height: 12px; stroke-width: 2; }
.tiles { position: relative; margin: 4px -4px -4px; height: clamp(200px, 30vw, 380px); }
.tile { position: absolute; padding: 4px; transition: left .32s cubic-bezier(.2,.8,.2,1), top .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1), height .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease, transform .32s cubic-bezier(.2,.8,.2,1); }
.tile.is-hidden { opacity: 0; transform: scale(.94); }
.win { width: 100%; height: 100%; border: 2px solid var(--c); border-radius: 8px; background: var(--sidebar); display: flex; flex-direction: column; overflow: hidden; }
.win-bar { flex: none; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.win-bar i { width: 9px; height: 9px; flex: none; }
.win-bar span { margin-left: 8px; font-size: 11px; color: var(--secondary); }
.win-body { flex: 1; min-height: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.win-body b { flex: none; height: 7px; border-radius: 4px; background: var(--raised); }
.seg-row { margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; }
.seg-field { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: var(--tertiary); }
.seg-field[hidden] { display: none; }
.seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 8px; }
.seg button { min-width: 32px; height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--secondary); font-size: 12px; font-weight: 500; cursor: pointer; transition: background .14s ease, color .14s ease; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.split { display: flex; flex-wrap: wrap; }
.split-side { flex: 0 0 200px; background: var(--sidebar); border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--nav); }
.split-side .label { padding: 8px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 6px; }
.nav-item svg { width: 14px; height: 14px; flex: none; }
.nav-item.is-selected { background: var(--selected); color: var(--text); }
.split-main { flex: 1 1 320px; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.split-title { font-size: 16px; font-weight: 600; }
.split-main .rows { padding: 0 14px; }
.toggle { width: 34px; height: 20px; flex: none; border-radius: 10px; background: var(--raised); border: 1px solid var(--raised-hover); display: flex; align-items: center; padding: 2px; }
.toggle i { width: 14px; height: 14px; border-radius: 50%; background: var(--dim); }
.toggle.on { background: var(--light); border-color: var(--light); justify-content: flex-end; }
.toggle.on i { background: var(--canvas); }
.lock-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--secondary); }
.lock-note svg { width: 13px; height: 13px; stroke-width: 2; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--sidebar); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.steps li { padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 1px 0 0 var(--line); }
.steps h3 { font-size: 14px; font-weight: 600; }
.steps p { font-size: 12px; color: var(--secondary); }
.steps kbd { margin-top: 6px; color: var(--secondary); background: var(--raised); border-radius: 5px; padding: 0 6px; line-height: 20px; }
.step-num { font: 11px var(--mono); color: var(--tertiary); }

/* FAQ */
.faq { margin-top: 28px; width: 100%; background: var(--sidebar); border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary span { flex: none; width: 20px; text-align: center; font-size: 18px; font-weight: 400; color: var(--tertiary); transition: transform .16s ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding: 0 36px 18px 0; font-size: 13px; line-height: 1.65; color: var(--secondary); }

.closing { padding-top: 144px; padding-bottom: 128px; gap: 20px; }
.closing > img { width: 80px; height: 80px; }

/* Footer */
.foot { background: var(--sidebar); border-top: 1px solid var(--line); }
.foot-row { padding-top: 16px; padding-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-legal { flex: 1 1 420px; min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.foot-legal img { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.foot-legal p { max-width: 620px; font-size: 12px; line-height: 1.6; color: var(--tertiary); }
.foot-nav, .langs nav { display: flex; flex-wrap: wrap; gap: 2px; font-size: 12px; font-weight: 500; }
.foot-nav a, .langs a { color: var(--nav); padding: 0 8px; line-height: 26px; border-radius: 6px; }
.foot-nav a:hover, .langs a:hover { color: var(--text); background: var(--selected); }
.langs { padding-bottom: 16px; }
.langs nav { padding-left: 20px; }
.langs a[aria-current="page"] { color: var(--text); }

/* Phones and small tablets: same content, laid out for one hand and a narrow screen. */
@media (max-width: 720px) {
  .hero { padding-top: 48px; gap: 40px; }
  .hero-copy { gap: 16px; }
  .lead { font-size: 15px; }
  .section { padding-top: 88px; gap: 12px; }
  .section-lead { font-size: 14.5px; }
  .panel, .screen, .steps, .faq, .keycaps { margin-top: 20px; }
  /* Install instructions becomes a quiet text link under the form, not a second big button. */
  .cta-row .btn-quiet { height: 32px; padding: 0 4px; background: none; border: 0; font-size: 14px; }
  .checks { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; gap: 8px 16px; text-align: left; }
  .checks li { align-items: flex-start; }
  .checks svg { margin-top: 1px; }
  .pill { max-width: 100%; height: auto; min-height: 26px; padding-top: 3px; padding-bottom: 3px; text-align: left; }

  /* The manager demo drops its sidebar: the Dock right below it picks the profile. */
  .mgr-bar .side-col, .mgr-side { display: none; }
  .mgr-main { padding: 18px 16px; gap: 16px; }
  .mgr .row-hint { display: none; }
  .mgr .row { padding: 11px 0; align-items: center; }
  .mgr .row > svg { margin-top: 0; }
  .shortcut-card { padding: 12px 14px; }
  .crumbs { padding-left: 14px; }

  /* Accounts: one compact list instead of three tall cards. */
  .three { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 14px; }
  .acct { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .acct:last-child { border-bottom: 0; }
  .acct-head { min-width: 0; }
  .acct-head img { width: 36px; height: 36px; }
  .acct-foot { flex: none; padding-top: 0; border-top: 0; gap: 8px; }
  .acct-foot .spacer { display: none; }

  /* Colors: four to a row, smaller tiles. */
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swatches li { padding: 8px 2px 6px; font-size: 11px; }
  .swatches li img { width: 40px; height: 40px; }
  .swatches li.more span { height: 40px; }

  /* Arrange demo: shorter screen, and window titles end with an ellipsis instead of cutting off. */
  .tiles { height: 220px; }
  .win-bar > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .win-app { display: none; }
  .menubar span:nth-child(n+2):nth-child(-n+4) { display: none; }
  .seg-row { gap: 10px; }
  .seg-field > span { display: none; }

  /* Tools: the settings sidebar becomes a row of tabs. */
  .split-side { flex: 1 1 100%; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .split-side::-webkit-scrollbar { display: none; }
  .split-side .label { display: none; }
  .nav-item { flex: none; height: 30px; }
  .split-main { padding: 16px; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 16px; box-shadow: 0 1px 0 var(--line); }
  .closing { padding-top: 104px; padding-bottom: 88px; }
}
@media (max-width: 520px) {
  .top-nav { display: none; }
  .hide-narrow { display: none; }
  .keycaps span { width: 52px; height: 52px; font-size: 20px; }
  .faq { padding: 0 16px; }
  .faq summary { min-height: 52px; font-size: 13.5px; }
  .faq details p { padding-right: 0; }
  .langs nav { padding-left: 0; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}
/* Touch screens (iPad, phones): roomier tap targets for the small controls. */
@media (pointer: coarse) {
  .top-nav a { line-height: 36px; }
  .lang-pick { height: 36px; padding: 0 10px; }
  .btn-buy.small { height: 36px; }
  .seg button { height: 36px; min-width: 40px; }
  .quiet, .primary-mini { height: 32px; }
  .foot-nav a, .langs a { line-height: 34px; }
  .lang-banner-yes { line-height: 32px; }
  .lang-banner-close { width: 36px; height: 36px; }
  button.dock-item { padding: 2px; }
}
/* Large desktop displays: scale the whole page up a little so it doesn't sit small in the middle. */
@media (min-width: 1680px) { body.home { zoom: 1.1; } }
@media (min-width: 2200px) { body.home { zoom: 1.22; } }
@media (prefers-reduced-motion: reduce) {
  .tile, .dock-item, .seg button, .faq summary span { transition: none; }
}
