/* RMAC home page (/). Builds on console.css (tokens, buttons, inputs); see design/DESIGN.md. */
body.home {
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 600px at 78% -120px, rgba(50,210,122,.10), transparent 65%), radial-gradient(700px 500px at 10% 0, rgba(80,120,255,.05), transparent 70%), var(--bg);
}
.home main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 32px; }

/* Top bar */
.top { width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* Hero: headline on the left, sign-in on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; padding: 96px 0 72px; }
.hero-h { margin: 0; font-size: 52px; line-height: 1.05; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.hero-h { background: linear-gradient(180deg, #FFFFFF 0%, #C9D1DB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 18px 0 0; max-width: 460px; font-size: 17px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.hero-card { padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.02); }
.hero-card form, .hero-card .signed-in { display: flex; flex-direction: column; gap: 14px; }
.hero-card h2 { margin: 0 0 2px; font-size: 17px; font-weight: 600; }
.hero-card .signed-in p { margin: -6px 0 0; overflow-wrap: anywhere; }
.card-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.card-links a { color: var(--text-2); }
.card-links a:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Three facts under the hero */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--hairline); }
.facts svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--text); }
.facts span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* Plans: heading, cards and note centered on the page; the cards sit centered as one group, however many */
.plans-section { padding: 64px 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-h { margin: 0 0 12px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.plans-section .section-h { margin-bottom: 16px; }
.plans { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.plan { flex: 0 1 232px; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; }
.plan-name { font-size: 13px; font-weight: 500; color: var(--text-2); }
.plan-price { margin-top: 8px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.plan-price .amt { font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.plan-price .per { font-size: 13px; color: var(--text-2); }
.plan-limits { flex: 1 0 auto; align-self: stretch; list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.plan .btn { margin-top: 18px; align-self: stretch; }
.closed-note { margin: 16px 0 0; max-width: 480px; color: var(--text-2); text-wrap: pretty; }

/* Notice (back from an unfinished payment) */
.notice { margin: 24px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,179,64,.1); color: var(--text-2); font-size: 13px; }
.notice strong { color: var(--text); font-weight: 500; }

/* Create account */
.signup { width: 100%; max-width: 420px; margin: 0 auto; padding: 32px 0 48px; display: flex; flex-direction: column; gap: 16px; }
.signup h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; font-size: 13px; color: var(--text-2); }
.back:hover { color: var(--text); text-decoration: none; }
.plan-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.plan-pick legend { padding: 0; }
#planOptions { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); overflow: hidden; }
.opt { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 400; transition: background .12s ease-out; position: relative; }
.opt + .opt { border-top: 1px solid var(--hairline); }
.opt:hover { background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--hairline-strong); transition: border-color .12s, box-shadow .12s; }
.opt input:checked + .radio { border: 5px solid var(--accent); }
.opt input:focus-visible + .radio { box-shadow: var(--ring); }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-name { font-weight: 500; }
.opt .o-sub { font-size: 12px; color: var(--text-2); }
.opt .o-price { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.opt .o-price span { color: var(--text-2); }
.opt:has(input:checked) { background: var(--surface-2); }
.fields { display: flex; flex-direction: column; gap: 12px; }
.signup .fine { margin: -4px 0 0; }
.signup .signin-switch { margin: 0; }
.signup.closed p { margin: 0; }

/* Footer */
.foot { width: 100%; max-width: 1040px; margin: 0 auto; padding: 40px 32px 32px; display: flex; gap: 16px; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.foot a { color: var(--text-2); }

@media (max-width: 760px) {
  .top { padding: 14px 16px; }
  .top .brand img { width: 26px; height: 26px; }
  .top-actions .btn { height: 32px; padding: 0 12px; }
  .home main { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 40px; }
  .hero-h { font-size: 36px; }
  .hero-sub { font-size: 15.5px; margin-top: 12px; }
  .hero-card { padding: 20px; box-shadow: none; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { padding: 14px 0; }
  .plans-section { padding: 36px 0 8px; }
  /* Phones: one full-width card per plan; name and price on the left, Choose on the right, limits in one line under them */
  .plan { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 16px; text-align: left; }
  .plan-name { flex: 1 0 100%; }
  .plan-price { margin-top: 2px; justify-content: flex-start; }
  .plan-price .amt { font-size: 24px; }
  .plan-limits { order: 3; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; padding-top: 12px; font-size: 12.5px; }
  .plan-limits li { white-space: nowrap; }
  .plan-limits li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 7px 0 0; border-radius: 50%; background: var(--text-3); vertical-align: middle; }
  .plan .btn { order: 2; margin: 0 0 0 auto; align-self: center; }
  .signup { padding: 16px 0 32px; }
  .foot { padding: 32px 16px 24px; }
}
.notice:not(.hidden) + #homeView .hero { padding-top: 40px; }

/* Privacy and support pages */
.doc { max-width: 680px; margin: 0 auto; padding: 48px 0 32px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.doc h1 { margin: 0 0 6px; color: var(--text); font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.doc h2 { margin: 36px 0 8px; color: var(--text); font-size: 17px; font-weight: 600; }
.doc h3 { margin: 22px 0 4px; color: var(--text); font-size: 15px; font-weight: 500; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 500; }
.doc-meta { color: var(--text-3); font-size: 13px; }
.foot-links { display: flex; gap: 18px; }
@media (max-width: 760px) { .doc { padding: 24px 0 16px; font-size: 14.5px; } .doc h1 { font-size: 26px; } }
/* Support: contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 8px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form textarea.input { height: auto; min-height: 130px; padding: 10px 12px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.5; }
.contact-form .error { margin: 0; }
.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; justify-content: flex-end; }
.contact-done { margin: 14px 0 8px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); color: var(--text); }
.contact-done p { margin: 4px 0 0; color: var(--text-2); }
@media (max-width: 560px) { .contact-row { grid-template-columns: 1fr; } .contact-form { padding: 16px; } .contact-actions .btn { width: 100%; } }

/* Downloads: centered, one card per platform */
.downloads { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dl-h { margin: 0; font-size: 13px; font-weight: 500; color: var(--text-2); }
.dl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.dl {
  display: flex; align-items: center; gap: 14px; min-width: 290px; padding: 16px 22px 16px 18px;
  border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline-strong); color: var(--text); text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .14s ease-out, border-color .14s ease-out, box-shadow .14s ease-out;
}
.dl:hover { transform: translateY(-1px); border-color: rgba(50,210,122,.55); box-shadow: 0 14px 36px rgba(0,0,0,.32), 0 0 0 4px rgba(50,210,122,.08); }
.dl:active { transform: scale(.99); }
.dl svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dl-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.dl-label { font-size: 15px; font-weight: 600; }
.dl-sub { font-size: 12px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } }
@media (max-width: 760px) { .downloads { margin-top: 36px; } .dl { flex: 1 1 100%; min-width: 0; } }

/* Hero animation: on an iPhone, the RMAC app's Control button is tapped for "Office PC"; it
   connects, and a finger on the phone moves the pointer (trackpad style), then taps-and-holds to
   drag a window. One 12 s loop with a shared timeline. The phone's mirror uses the same screen
   markup and %-based keyframes as the monitor, and each screen is its own size container (cqw),
   so the two always match. Everything else is in cqw of .demo, so a phone shows a scaled copy. */
.demo { --t: 12s; --ease: cubic-bezier(.45, 0, .2, 1); container-type: inline-size; position: relative; width: 100%; max-width: 480px; aspect-ratio: 480 / 320; margin-top: 36px; }
.demo *, .demo *::before, .demo *::after { box-sizing: border-box; }
.demo i, .demo b, .demo u, .demo em { display: block; font-style: normal; text-decoration: none; }
.demo [class], .demo [class]::before, .demo [class]::after { animation-timing-function: var(--ease); }

/* Monitor */
.d-pc { position: absolute; right: 0; top: 0; width: 79%; }
.d-mon { position: relative; padding: 1.05cqw; border-radius: 1.9cqw; background: linear-gradient(180deg, #23272F, #0C0E12 40%); box-shadow: 0 0 0 .2cqw #2C313A, 0 5cqw 9cqw rgba(0,0,0,.55), inset 0 .2cqw 0 rgba(255,255,255,.06); animation: d-ring var(--t) infinite; }
.d-glass { aspect-ratio: 16 / 10; border-radius: .9cqw; overflow: hidden; background: #000; position: relative; }
.d-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 38%); }
.d-cam { position: absolute; left: 50%; top: .35cqw; width: .45cqw; height: .45cqw; margin-left: -.22cqw; border-radius: 50%; background: #1E2530; }
.d-neck { width: 9%; height: 6.5cqw; margin: -.2cqw auto 0; background: linear-gradient(90deg, #1A1D23, #3A404A 45%, #1A1D23); }
.d-base { width: 34%; height: 1.5cqw; margin: 0 auto; border-radius: 1cqw 1cqw .5cqw .5cqw; background: linear-gradient(180deg, #3B414B, #191C21); box-shadow: 0 2.5cqw 4cqw rgba(0,0,0,.6); }
.d-badge { position: absolute; left: 50%; top: -2.6cqw; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: 1.1cqw; padding: .8cqw 2.1cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 2.15cqw; font-weight: 600; white-space: nowrap; box-shadow: 0 1cqw 3cqw rgba(50,210,122,.35); opacity: 0; animation: d-badge var(--t) infinite; }
.d-badge span { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--accent-ink); animation: d-blink 1.6s ease-in-out infinite; }

/* The computer's screen (Windows-like), used on the monitor and mirrored on the phone */
.scr { container-type: inline-size; position: relative; width: 100%; height: 100%; overflow: hidden; color: #1B1B1B; font: 400 1.7cqw/1.2 "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(70% 90% at 72% 62%, #7FB2FF 0%, #2F6FE4 26%, #123C9C 52%, #0A1F55 78%, #071436 100%); }
.scr::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 70% 66%, rgba(255,255,255,.35), transparent 70%), conic-gradient(from 210deg at 72% 62%, rgba(255,255,255,0), rgba(130,190,255,.25), rgba(255,255,255,0) 30%); }
.win { position: absolute; display: flex; flex-direction: column; border-radius: 1.2cqw; overflow: hidden; background: #FFFFFF; box-shadow: 0 1.6cqw 4cqw rgba(0,0,0,.38), 0 0 0 .15cqw rgba(0,0,0,.18); }
.win .tb { flex: none; height: 6.2cqw; display: flex; align-items: center; gap: 1.2cqw; padding: 0 0 0 1.6cqw; background: #EEF2F7; }
.win .tt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1.65cqw; color: #222; }
.win .ico { flex: none; width: 2.1cqw; height: 1.7cqw; border-radius: .25cqw; }
.ico.fold { background: linear-gradient(180deg, #FFD978 30%, #F2B530 30%); }
.ico.xls { width: 1.9cqw; height: 1.9cqw; background: #107C41; }
.ctl { display: flex; height: 100%; }
.ctl i { width: 4.4cqw; height: 100%; position: relative; }
.ctl i::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ctl .mn::before { width: 1.3cqw; height: .14cqw; background: #333; }
.ctl .mx::before { width: 1.1cqw; height: 1.1cqw; border: .14cqw solid #333; border-radius: .15cqw; }
.ctl .cl::before { content: "×"; color: #333; font-size: 2.2cqw; line-height: 1; }
/* Explorer */
.w1 { left: 5%; top: 6%; width: 59%; height: 70%; }
.w1 .tool { flex: none; height: 5.4cqw; display: flex; align-items: center; gap: 1.2cqw; padding: 0 1.6cqw; border-bottom: .12cqw solid #E3E7EC; background: #F8FAFC; }
.w1 .tool i { width: 2.2cqw; height: 1.6cqw; border-radius: .3cqw; background: #C9D2DD; }
.w1 .tool .sep { width: .12cqw; height: 2.6cqw; background: #DDE2E8; }
.w1 .tool .addr { flex: 1; height: 2.8cqw; border-radius: .6cqw; background: #FFFFFF; box-shadow: inset 0 0 0 .12cqw #D7DEE6; }
.w1 .tool .srch { width: 12cqw; height: 2.8cqw; border-radius: .6cqw; background: #FFFFFF; box-shadow: inset 0 0 0 .12cqw #D7DEE6; }
.w1 .side { position: absolute; left: 0; top: 11.6cqw; bottom: 0; width: 22%; padding: 1.4cqw 1.4cqw; display: flex; flex-direction: column; gap: 1.5cqw; background: #F6F8FB; border-right: .12cqw solid #E7EBF0; }
.w1 .side i { height: 1.1cqw; border-radius: .5cqw; background: #CBD3DD; }
.w1 .side .s1 { width: 80%; background: #8FB4EA; } .w1 .side .s2 { width: 64%; } .w1 .side .s3 { width: 72%; } .w1 .side .s4 { width: 52%; } .w1 .side .s5 { width: 68%; }
.w1 .rows { position: absolute; left: 22%; right: 0; top: 11.6cqw; padding: .6cqw 1.6cqw; }
.w1 .r { display: flex; align-items: center; gap: 1.6cqw; height: 3.45cqw; border-bottom: .1cqw solid #F0F2F5; }
.w1 .r i { height: 1cqw; border-radius: .5cqw; background: #A9B3C0; }
.w1 .r .n { flex: 1; max-width: 42%; } .w1 .r .d { width: 18%; background: #CDD4DD; } .w1 .r .z { width: 9%; background: #CDD4DD; }
.w1 .r.hd i { background: #D6DCE4; height: .9cqw; }
.w1 .r .n2 { max-width: 30%; } .w1 .r .n3 { max-width: 48%; } .w1 .r .n4 { max-width: 26%; } .w1 .r .n5 { max-width: 38%; } .w1 .r .n6 { max-width: 33%; } .w1 .r .n7 { max-width: 44%; }
.w1 .r .f { flex: none; width: 2.2cqw; height: 1.8cqw; border-radius: .25cqw; background: linear-gradient(180deg, #FFD978 30%, #F2B530 30%); }
.w1 .r .f.fdoc { width: 1.7cqw; height: 2.1cqw; border-radius: .2cqw; background: linear-gradient(180deg, #4C8DF6 0 30%, #E8F0FE 30%); box-shadow: inset 0 0 0 .1cqw #A9C4F5; }
.w1 .r:nth-child(3) { background: #E5F0FF; border-radius: .4cqw; }
/* Spreadsheet: the window that gets dragged */
.w2 { left: 40%; top: 31%; width: 52%; height: 55%; animation: d-drag var(--t) infinite; }
.w2 .tb.xl { background: #107C41; }
.w2 .tb.xl .tt { color: #fff; }
.w2 .tb.xl .ico.xls { background: #fff; box-shadow: inset 0 0 0 .45cqw #107C41; }
.w2 .tb.xl .ctl .mn::before { background: #fff; }
.w2 .tb.xl .ctl .mx::before { border-color: #fff; }
.w2 .tb.xl .ctl .cl::before { color: #fff; }
.w2 .ribbon { flex: none; height: 5cqw; display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.6cqw; background: #F3F6F4; border-bottom: .12cqw solid #DDE3DF; }
.w2 .ribbon i { width: 3.4cqw; height: 2.2cqw; border-radius: .35cqw; background: #CFD9D3; }
.w2 .ribbon i:nth-child(2) { background: #B7D7C4; } .w2 .ribbon i:nth-child(5) { width: 6cqw; }
.w2 .sheet { flex: 1; position: relative;
  background-color: #fff;
  background-image: linear-gradient(#E3E6EA .12cqw, transparent .12cqw), linear-gradient(90deg, #E3E6EA .12cqw, transparent .12cqw), linear-gradient(90deg, #F3F4F6 4.5cqw, transparent 4.5cqw), linear-gradient(#F3F4F6 2.9cqw, transparent 2.9cqw);
  background-size: 100% 2.9cqw, 9cqw 100%, 100% 100%, 100% 100%; background-position: 0 0, 4.5cqw 0, 0 0, 0 0; }
.w2 .cell { position: absolute; height: 1cqw; border-radius: .5cqw; background: #8A939F; }
.w2 .c1 { left: 6.4cqw; top: 3.9cqw; width: 5.5cqw; background: #333A44; } .w2 .c2 { left: 15.4cqw; top: 3.9cqw; width: 4cqw; background: #333A44; }
.w2 .c3 { left: 6.4cqw; top: 6.8cqw; width: 4.8cqw; } .w2 .c4 { left: 15.4cqw; top: 6.8cqw; width: 3.4cqw; }
.w2 .sel { position: absolute; left: 13.5cqw; top: 8.7cqw; width: 9cqw; height: 2.9cqw; border: .3cqw solid #107C41; }
.w2 .chart { position: absolute; right: 2.6cqw; bottom: 2.4cqw; width: 42%; height: 52%; display: flex; align-items: flex-end; gap: 1cqw; padding: 1.4cqw 1.4cqw 1.2cqw; background: #fff; border-radius: .5cqw; box-shadow: 0 0 0 .12cqw #DADFE5, 0 .8cqw 1.8cqw rgba(0,0,0,.08); }
.w2 .chart i { flex: 1; border-radius: .3cqw .3cqw 0 0; background: #2E7BD6; }
.w2 .chart i:nth-child(1) { height: 38%; } .w2 .chart i:nth-child(2) { height: 55%; } .w2 .chart i:nth-child(3) { height: 47%; }
.w2 .chart i:nth-child(4) { height: 70%; } .w2 .chart i:nth-child(5) { height: 62%; } .w2 .chart i:nth-child(6) { height: 88%; background: #107C41; }
/* Taskbar */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 7.6%; display: flex; align-items: center; justify-content: center; background: rgba(32,38,48,.72); backdrop-filter: blur(8px); border-top: .12cqw solid rgba(255,255,255,.08); }
.taskbar .apps { display: flex; gap: 1.9cqw; }
.taskbar .apps i { width: 2.9cqw; height: 2.9cqw; border-radius: .6cqw; }
.taskbar .start { background: conic-gradient(#4CC2FF 0 25%, #1F8FFF 0 50%, #4CC2FF 0 75%, #1F8FFF 0); -webkit-mask: linear-gradient(#000 0 0) top left / 46% 46% no-repeat, linear-gradient(#000 0 0) top right / 46% 46% no-repeat, linear-gradient(#000 0 0) bottom left / 46% 46% no-repeat, linear-gradient(#000 0 0) bottom right / 46% 46% no-repeat; mask: linear-gradient(#000 0 0) top left / 46% 46% no-repeat, linear-gradient(#000 0 0) top right / 46% 46% no-repeat, linear-gradient(#000 0 0) bottom left / 46% 46% no-repeat, linear-gradient(#000 0 0) bottom right / 46% 46% no-repeat; }
.taskbar .find { border-radius: 50%; box-shadow: inset 0 0 0 .3cqw #E7ECF3; transform: scale(.75); }
.taskbar .exp { background: linear-gradient(180deg, #FFD978 32%, #F2B530 32%); }
.taskbar .edge { border-radius: 50%; background: conic-gradient(from 200deg, #33C481, #1E90E8, #0F6CBD, #33C481); }
.taskbar .xls { background: #107C41; position: relative; }
.taskbar .rm { background: #0E1013; box-shadow: inset 0 0 0 .2cqw #32D27A; }
.taskbar .apps i:nth-child(n+3) { position: relative; }
.taskbar .apps i:nth-child(3)::after, .taskbar .apps i:nth-child(5)::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: -.9cqw; height: .3cqw; border-radius: 1cqw; background: #A9C7FF; }
.taskbar .clock { position: absolute; right: 1.6cqw; top: 50%; transform: translateY(-50%); color: #fff; font-size: 1.35cqw; line-height: 1.2; text-align: right; }
.ptr { position: absolute; left: 56%; top: 72%; width: 2.6cqw; fill: #fff; stroke: #000; stroke-width: .9; filter: drop-shadow(0 .25cqw .3cqw rgba(0,0,0,.45)); animation: d-ptr var(--t) infinite; }

/* Connection between phone and computer: data flowing along a soft glowing line */
.d-link { position: absolute; left: 22%; top: 30%; width: 26%; height: 30%; overflow: visible; fill: none; opacity: 0; animation: d-link var(--t) infinite; }
.d-link path { vector-effect: non-scaling-stroke; }
.d-link .lk-glow { stroke: rgba(50,210,122,.22); stroke-width: 6; filter: blur(2px); }
.d-link .lk { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 7; animation: d-flow .9s linear infinite; }

/* iPhone */
.d-phone { position: absolute; left: 0; bottom: 0; z-index: 3; width: 29%; aspect-ratio: 9 / 19.3; padding: .85cqw; border-radius: 5.2cqw; background: #050608; box-shadow: 0 0 0 .3cqw #6B717B, 0 0 0 .5cqw #2A2E35, 0 4cqw 8cqw rgba(0,0,0,.6); }
.d-phone::before { content: ""; position: absolute; left: -.6cqw; top: 22%; width: .3cqw; height: 6%; border-radius: .3cqw; background: #4A5059; box-shadow: 0 3.2cqw 0 #4A5059; }
.d-ph { container-type: inline-size; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4.4cqw; background: #0B0D10; color: #F2F4F7; font: 400 3.4cqw/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.island { position: absolute; left: 50%; top: 2.8cqw; z-index: 5; width: 31cqw; height: 9cqw; margin-left: -15.5cqw; border-radius: 9cqw; background: #000; }
.ios-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 14cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 7cqw 0 9cqw; font-size: 4.3cqw; }
.ios-bar b { font-weight: 600; }
.ios-bar > span { display: flex; align-items: center; gap: 1.6cqw; }
.ios-bar .sig { display: flex; align-items: flex-end; gap: .6cqw; height: 3.2cqw; }
.ios-bar .sig i { width: .9cqw; background: #fff; border-radius: .3cqw; }
.ios-bar .sig i:nth-child(1) { height: 35%; } .ios-bar .sig i:nth-child(2) { height: 55%; } .ios-bar .sig i:nth-child(3) { height: 78%; } .ios-bar .sig i:nth-child(4) { height: 100%; }
.ios-bar .wifi { width: 4.2cqw; height: 3.1cqw; background: #fff; clip-path: polygon(50% 100%, 0 25%, 15% 8%, 50% 0, 85% 8%, 100% 25%); border-radius: 0 0 .6cqw .6cqw; }
.ios-bar .bat { position: relative; width: 6.6cqw; height: 3.2cqw; padding: .5cqw; border-radius: 1cqw; box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.45); }
.ios-bar .bat i { width: 78%; height: 100%; border-radius: .5cqw; background: #fff; }
.ios-bar .bat::after { content: ""; position: absolute; right: -1cqw; top: 35%; width: .6cqw; height: 30%; border-radius: 0 .4cqw .4cqw 0; background: rgba(255,255,255,.45); }
.home-ind { position: absolute; left: 50%; bottom: 2cqw; z-index: 4; width: 36cqw; height: 1.4cqw; margin-left: -18cqw; border-radius: 1cqw; background: rgba(255,255,255,.75); }
.p-list, .p-wait, .p-remote { position: absolute; inset: 0; }
/* App: computer list */
.p-list { padding: 15cqw 4.5cqw 0; animation: d-list var(--t) infinite; }
.p-nav { padding: 2cqw 1.5cqw 3cqw; }
.p-nav .p-acct { display: block; color: #8B93A1; font-size: 3.2cqw; }
.p-nav b { font-size: 8.4cqw; font-weight: 700; letter-spacing: -.03em; }
.p-group { border-radius: 4cqw; background: #16191F; overflow: hidden; }
.p-row { position: relative; display: flex; align-items: center; gap: 3cqw; padding: 3.6cqw 3.2cqw; }
.p-row + .p-row::before { content: ""; position: absolute; left: 13cqw; right: 0; top: 0; height: .25cqw; background: rgba(255,255,255,.07); }
.p-row .os { flex: none; width: 6.4cqw; height: 6.4cqw; padding: 1.3cqw; border-radius: 1.8cqw; background: #232832; fill: #9FB3CC; }
.p-row.off { opacity: .55; }
.p-row .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 3.7cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row em { display: flex; align-items: center; gap: 1.2cqw; margin-top: .6cqw; font-size: 2.9cqw; font-weight: 400; color: #8B93A1; }
.p-row .dot, .p-top .dot { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--accent); box-shadow: 0 0 1.2cqw rgba(50,210,122,.6); }
.p-row.off .dot { background: #5F6672; box-shadow: none; }
.p-row u { flex: none; padding: 1.5cqw 3cqw; border-radius: 9cqw; background: rgba(50,210,122,.16); color: var(--accent); font-size: 3cqw; font-weight: 600; }
.p-row.on { animation: d-rowsel var(--t) infinite; }
.p-row.on u { animation: d-btn var(--t) infinite; }
.p-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 15cqw; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 3cqw; background: rgba(18,20,24,.9); border-top: .25cqw solid rgba(255,255,255,.06); }
.p-tabs .t { width: 6cqw; height: 4.4cqw; border-radius: 1cqw; background: #4A505B; }
.p-tabs .t.on { background: var(--accent); }
.tap { position: absolute; right: 9cqw; top: 46.5cqw; width: 11cqw; height: 11cqw; margin: -5.5cqw -5.5cqw 0 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,.18) 60%, transparent 70%); opacity: 0; animation: d-tap var(--t) infinite; }
/* App: connecting */
.p-wait { padding: 15cqw 4.5cqw 0; opacity: 0; animation: d-wait var(--t) infinite; }
.p-nav.sm { padding-bottom: 0; }
.p-wait .back { color: var(--accent); font-size: 3.6cqw; }
.p-wait .back::before { content: "‹ "; font-size: 5cqw; line-height: 1; }
.w-body { display: flex; flex-direction: column; align-items: center; gap: 2.2cqw; margin-top: 22cqw; text-align: center; }
.w-pc .os { width: 14cqw; height: 14cqw; padding: 3.4cqw; border-radius: 4cqw; background: #1C2029; fill: #9FB3CC; }
.w-body b { font-size: 5cqw; font-weight: 600; }
.w-ring { margin-top: 4cqw; }
.spin { width: 8cqw; height: 8cqw; border-radius: 50%; border: .9cqw solid rgba(255,255,255,.1); border-top-color: var(--accent); animation: d-spin .8s linear infinite !important; }
.w-body em { color: #8B93A1; font-size: 3.2cqw; }
/* App: in a session */
.p-remote { display: flex; flex-direction: column; padding-top: 14cqw; background: #000; opacity: 0; animation: d-remote var(--t) infinite; }
.p-top { display: flex; align-items: center; justify-content: space-between; padding: 1.5cqw 4cqw 2.5cqw; font-size: 3.4cqw; }
.p-top .done { color: var(--accent); }
.p-top b { display: flex; align-items: center; gap: 1.4cqw; font-weight: 600; }
.p-top .kb { width: 6cqw; height: 4cqw; border-radius: 1cqw; box-shadow: inset 0 0 0 .35cqw #8B93A1; }
.p-scr { aspect-ratio: 16 / 10; }
.p-pad { position: relative; flex: 1; margin: 3cqw 3cqw 0; border-radius: 4cqw; background: linear-gradient(180deg, #121419, #0C0E11); box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.05); }
.p-pad .hint { position: absolute; left: 0; right: 0; top: 42%; text-align: center; color: #5F6672; font-size: 2.9cqw; animation: d-hint var(--t) infinite; }
.p-keys { flex: none; height: 17cqw; display: flex; justify-content: center; gap: 4cqw; padding-top: 3.5cqw; }
.p-keys i { width: 9cqw; height: 6cqw; border-radius: 1.8cqw; background: #1A1D23; }
.finger { position: absolute; left: 40%; top: 72%; width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw; border-radius: 50%; background: radial-gradient(circle at 45% 40%, rgba(255,255,255,.5), rgba(255,255,255,.22) 55%, rgba(255,255,255,.06) 70%, transparent 72%); opacity: 0; animation: d-finger var(--t) infinite; }
.finger::after { content: ""; position: absolute; inset: -2cqw; border-radius: 50%; border: .5cqw solid var(--accent); opacity: 0; animation: d-hold var(--t) infinite; }

/* Timeline (12 s): 0–7 list · 8–11 tap Control · 12–28 connecting · 30 connected · 35–46 move the
   pointer · 48–53 tap, then touch and hold · 54–66 drag the window · 67 release · 88–96 back to the list */
@keyframes d-tap { 0%, 7.5% { opacity: 0; transform: scale(.5); } 8.5% { opacity: 1; transform: scale(.85); } 10.5% { opacity: .9; transform: scale(1); } 13%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes d-rowsel { 0%, 8% { background: transparent; } 9%, 11.5% { background: rgba(255,255,255,.08); } 13.5%, 100% { background: transparent; } }
@keyframes d-btn { 0%, 8% { background: rgba(50,210,122,.16); color: var(--accent); transform: scale(1); } 9%, 11% { background: var(--accent); color: var(--accent-ink); transform: scale(.94); } 13%, 100% { background: rgba(50,210,122,.16); color: var(--accent); transform: scale(1); } }
@keyframes d-list { 0%, 12% { opacity: 1; transform: none; } 16%, 93% { opacity: 0; transform: translateX(-28%); } 97%, 100% { opacity: 1; transform: none; } }
@keyframes d-wait { 0%, 12% { opacity: 0; transform: translateX(40%); } 16%, 27% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: none; } }
@keyframes d-remote { 0%, 27% { opacity: 0; transform: scale(.97); } 31%, 89% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateX(40%); } }
@keyframes d-link { 0%, 13% { opacity: 0; } 17%, 29% { opacity: 1; } 34%, 88% { opacity: .38; } 92%, 100% { opacity: 0; } }
@keyframes d-flow { to { stroke-dashoffset: -18; } }
@keyframes d-ring { 0%, 28% { box-shadow: 0 0 0 .2cqw #2C313A, 0 5cqw 9cqw rgba(0,0,0,.55), inset 0 .2cqw 0 rgba(255,255,255,.06); } 31%, 89% { box-shadow: 0 0 0 .3cqw rgba(50,210,122,.85), 0 0 5cqw rgba(50,210,122,.18), 0 5cqw 9cqw rgba(0,0,0,.55), inset 0 .2cqw 0 rgba(255,255,255,.06); } 93%, 100% { box-shadow: 0 0 0 .2cqw #2C313A, 0 5cqw 9cqw rgba(0,0,0,.55), inset 0 .2cqw 0 rgba(255,255,255,.06); } }
@keyframes d-badge { 0%, 29% { opacity: 0; transform: translate(-50%, 1cqw); } 32%, 89% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes d-blink { 50% { opacity: .35; } }
@keyframes d-hint { 0%, 31% { opacity: 1; } 36%, 100% { opacity: 0; } }
/* Finger on the trackpad area (relative: it never jumps to where the pointer is) */
@keyframes d-finger {
  0%, 33% { opacity: 0; left: 40%; top: 72%; transform: scale(1.2); }
  35.5% { opacity: 1; left: 40%; top: 72%; transform: scale(1); }
  46% { opacity: 1; left: 58%; top: 30%; transform: scale(1); }
  47.5% { opacity: .15; left: 58%; top: 30%; transform: scale(.8); }
  49% { opacity: 1; left: 58%; top: 31%; transform: scale(1); }
  50% { opacity: .15; left: 58%; top: 31%; transform: scale(.8); }
  51.5%, 54% { opacity: 1; left: 58%; top: 31%; transform: scale(1); }
  66% { opacity: 1; left: 26%; top: 12%; transform: scale(1); }
  68%, 100% { opacity: 0; left: 26%; top: 12%; transform: scale(.8); } }
@keyframes d-hold { 0%, 51.5% { opacity: 0; transform: scale(.7); } 53.5%, 66% { opacity: .9; transform: scale(1); } 68%, 100% { opacity: 0; transform: scale(1); } }
/* Pointer (in % of the screen): follows the finger's movement, then drags with the window */
@keyframes d-ptr { 0%, 35.5% { left: 56%; top: 72%; } 46%, 54% { left: 61%; top: 32.5%; } 66%, 89% { left: 31%; top: 13.5%; } 95%, 100% { left: 56%; top: 72%; } }
@keyframes d-drag {
  0%, 54% { left: 40%; top: 31%; opacity: 1; transform: none; box-shadow: 0 1.6cqw 4cqw rgba(0,0,0,.38), 0 0 0 .15cqw rgba(0,0,0,.18); }
  56%, 64% { box-shadow: 0 3cqw 7cqw rgba(0,0,0,.5), 0 0 0 .15cqw rgba(0,0,0,.18); }
  66% { left: 10%; top: 12%; box-shadow: 0 3cqw 7cqw rgba(0,0,0,.5), 0 0 0 .15cqw rgba(0,0,0,.18); }
  69%, 89% { left: 10%; top: 12%; opacity: 1; transform: none; box-shadow: 0 1.6cqw 4cqw rgba(0,0,0,.38), 0 0 0 .15cqw rgba(0,0,0,.18); }
  92% { left: 10%; top: 12%; opacity: 0; transform: translateY(4%) scale(.96); }
  94% { left: 40%; top: 31%; opacity: 0; transform: translateY(4%) scale(.96); }
  98%, 100% { left: 40%; top: 31%; opacity: 1; transform: none; } }
@keyframes d-spin { to { transform: rotate(360deg); } }

/* Reduced motion: the connected state, still, with the pointer on the moved window. */
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { animation: none !important; }
  .p-list, .p-wait, .tap, .finger, .p-pad .hint { opacity: 0; }
  .p-remote, .d-badge { opacity: 1; }
  .d-link { opacity: .38; }
  .d-mon { box-shadow: 0 0 0 .3cqw rgba(50,210,122,.85), 0 5cqw 9cqw rgba(0,0,0,.55); }
}
@media (max-width: 760px) { .demo { margin: 28px auto 0; } }
