/* renamedesktops.com  |  Rename Desktops
   One stylesheet for both pages. System fonts only, no scripts, no trackers. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f6;
  --ink: #16161a;
  --ink-soft: #62626b;
  --line: #e2e2e7;
  --link: #2458e6;
  --card: #ffffff;
  --night: #09090c;
  --night-ink: #f5f5f7;
  --night-soft: #a3a3ad;
  --night-line: #26262d;
  --btn: #16161a;
  --btn-ink: #ffffff;

  /* The app's own nine colours */
  --c-grey: #2b2b2d;
  --c-red: #c9302c;
  --c-orange: #cc6a0a;
  --c-gold: #a67c00;
  --c-green: #23863f;
  --c-teal: #0b8585;
  --c-blue: #1f6feb;
  --c-purple: #7a49d6;
  --c-pink: #c9388f;

  --wrap: 1040px;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d11;
    --bg-soft: #15151a;
    --ink: #f5f5f7;
    --ink-soft: #a3a3ad;
    --line: #2a2a31;
    --link: #7ea6ff;
    --card: #1a1a20;
    --btn: #f5f5f7;
    --btn-ink: #101014;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Draft marker. Remove class="draft" from <body> to switch all of this off. */
.draft-bar { display: none; }
body.draft .draft-bar {
  display: block;
  background: #fff3c4;
  color: #4a3b00;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 7px 16px;
}
body.draft .tbc { border-bottom: 2px dotted #d49b00; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--night) 93%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--night-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--night-soft); }
.nav-links a:hover { color: var(--night-ink); text-decoration: none; }
.nav-links .btn { color: #101014; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .28em;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  background: var(--btn); color: var(--btn-ink);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; opacity: .88; }
.btn:active { transform: scale(.98); }
.btn.small { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn.light { background: #f5f5f7; color: #101014; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.night .btn.ghost { color: var(--night-ink); border-color: #3a3a44; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Sections */
section { padding: 96px 0; }
[id] { scroll-margin-top: 64px; }
.soft { background: var(--bg-soft); }
.night { background: var(--night); color: var(--night-ink); }
.night .lede, .night .fine { color: var(--night-soft); }
.center { text-align: center; }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin: 0 0 12px; letter-spacing: -0.005em; }
.night .eyebrow { color: var(--night-soft); }
h1, h2, h3 { margin: 0; letter-spacing: -0.028em; line-height: 1.07; font-weight: 700; }
h1 { font-size: clamp(42px, 7.2vw, 80px); }
h2 { font-size: clamp(32px, 4.8vw, 54px); }
h3 { font-size: 22px; letter-spacing: -0.018em; line-height: 1.2; font-weight: 600; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--ink-soft); letter-spacing: -0.012em; margin: 20px auto 0; max-width: 680px; }
.fine { font-size: 13px; color: var(--ink-soft); margin: 18px 0 0; }
p { margin: 0 0 16px; }

/* Hero */
.hero { padding: 84px 0 0; overflow: hidden; }
.hero .btn-row { margin-top: 32px; }

/* Mission Control illustration (drawn in CSS, not a screenshot) */
.mc {
  margin: 64px auto 0; max-width: 980px;
  border-radius: 20px 20px 0 0;
  background:
    radial-gradient(120% 90% at 20% 0%, #3b2b78 0%, transparent 60%),
    radial-gradient(90% 80% at 85% 10%, #0f5c7a 0%, transparent 60%),
    linear-gradient(180deg, #1a1830 0%, #0b0b12 100%);
  border: 1px solid #2c2c38; border-bottom: 0;
  padding: 0 0 70px;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.mc-bar {
  display: flex; justify-content: center; gap: clamp(8px, 2vw, 22px);
  padding: clamp(14px, 2.4vw, 24px) clamp(10px, 2vw, 24px) clamp(12px, 2vw, 18px);
  background: rgba(22, 22, 30, .62);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px 20px 0 0;
}
.space { flex: 1 1 0; max-width: 150px; min-width: 0; text-align: center; }
.thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
.thumb i { position: absolute; border-radius: 2px; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.thumb i.dark { background: rgba(30, 30, 38, .92); }
.w1 { background: linear-gradient(135deg, #4f7cff, #9b5cff); }
.w2 { background: linear-gradient(135deg, #ff9d4d, #ff5d7a); }
.w3 { background: linear-gradient(135deg, #21b88a, #1a7fbf); }
.w4 { background: linear-gradient(135deg, #f2c94c, #f2784b); }
.w5 { background: linear-gradient(135deg, #7b6cf6, #e15bb1); }
.label { position: relative; height: clamp(20px, 3vw, 26px); margin-top: clamp(6px, 1vw, 10px); }
.label span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.label .old { font-size: clamp(8px, 1.35vw, 12px); color: rgba(255, 255, 255, .78); }
.pill {
  margin: 0 auto; width: max-content; max-width: 100%;
  padding: 0 clamp(6px, 1.1vw, 11px); border-radius: 999px;
  font-size: clamp(8px, 1.35vw, 12px); font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis;
}
.label .pill { left: 50%; right: auto; transform: translateX(-50%); }
.bg-grey { background: var(--c-grey); } .bg-red { background: var(--c-red); } .bg-orange { background: var(--c-orange); }
.bg-gold { background: var(--c-gold); } .bg-green { background: var(--c-green); } .bg-teal { background: var(--c-teal); }
.bg-blue { background: var(--c-blue); } .bg-purple { background: var(--c-purple); } .bg-pink { background: var(--c-pink); }

/* The hero swaps Apple's label for yours, on a loop */
.mc.swap .old { animation: oldOut 9s ease-in-out infinite; }
.mc.swap .pill { animation: pillIn 9s ease-in-out infinite; }
.mc.swap .space:nth-child(2) :is(.old, .pill) { animation-delay: .18s; }
.mc.swap .space:nth-child(3) :is(.old, .pill) { animation-delay: .36s; }
.mc.swap .space:nth-child(4) :is(.old, .pill) { animation-delay: .54s; }
.mc.swap .space:nth-child(5) :is(.old, .pill) { animation-delay: .72s; }
@keyframes oldOut { 0%, 16% { opacity: 1; } 22%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pillIn {
  0%, 18% { opacity: 0; transform: translateX(-50%) scale(.86); }
  25%, 90% { opacity: 1; transform: translateX(-50%) scale(1); }
  98%, 100% { opacity: 0; transform: translateX(-50%) scale(.86); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mc.swap .old { animation: none; opacity: 0; }
  .mc.swap .pill { animation: none; opacity: 1; }
}

/* Before and after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.compare figure { margin: 0; }
.compare figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.mc.mini { margin: 0; max-width: none; border-radius: 16px; border: 1px solid #2c2c38; padding: 0; -webkit-mask-image: none; mask-image: none; }
.mc.mini .mc-bar { border-radius: 16px; border-bottom: 0; gap: clamp(6px, 1.2vw, 12px); padding: 18px 12px 14px; }
.mc.mini .label { height: 20px; margin-top: 7px; }
.mc.mini .label .old, .mc.mini .pill { font-size: clamp(8px, 1vw, 10.5px); }
.mc.mini .pill { padding: 0 8px; }

/* Slim bar illustration */
.slim {
  display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 7px; border-radius: 999px; background: #121217; border: 1px solid #2c2c38;
}
.slim .pill { font-size: 12px; padding: 3px 11px; position: static; transform: none; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.soft .card { border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 16px; }
.card .art { height: 64px; display: flex; align-items: center; margin-bottom: 20px; }
.dots { display: flex; gap: 7px; }
.dots b { width: 20px; height: 20px; border-radius: 50%; display: block; }
.glyph { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; }
.soft .glyph { background: var(--bg); }
.glyph svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Nothing hidden */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--night-line); }
.fact { padding: 30px 22px 0 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--night-line); }
.fact strong { display: block; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.fact span { font-size: 15px; color: var(--night-soft); display: block; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.soft .steps li { border-color: transparent; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px; margin-bottom: 18px;
}
.steps h3 { margin-bottom: 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Price */
.price { font-size: clamp(64px, 11vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 6px 0 0; }
.price small { font-size: .3em; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-soft); margin-left: 8px; }
.ticks { list-style: none; padding: 0; margin: 28px auto 34px; display: inline-grid; gap: 10px; text-align: left; font-size: 17px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 12px; border: solid var(--c-green); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg); }

/* Questions */
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border: solid var(--ink-soft); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 44px 24px 0; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer */
footer { padding: 44px 0 56px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-bottom: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-soft); }
footer p { margin: 0 0 6px; max-width: 760px; }

/* Guide page */
.guide-head { padding: 72px 0 40px; }
.guide-head h1 { font-size: clamp(38px, 6vw, 62px); }
.crumbs { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; }
.crumbs a { color: var(--ink-soft); }
.byline { font-size: 14px; color: var(--ink-soft); margin: 22px 0 0; }
.prose { padding: 0 0 88px; }
.prose h2 { font-size: clamp(27px, 3.6vw, 36px); margin: 64px 0 18px; letter-spacing: -0.024em; line-height: 1.12; }
.prose h3 { margin: 36px 0 10px; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; }
.prose ol, .prose ul { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose .mc.mini { margin: 28px 0 8px; }
.prose figure { margin: 0; }
.prose figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.path { font-weight: 600; white-space: nowrap; }
.answer { background: var(--bg-soft); border-radius: var(--radius); padding: 28px 30px; margin: 0 0 8px; }
.answer h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: 0; font-weight: 600; color: var(--ink-soft); }
.answer p { font-size: 20px; line-height: 1.45; letter-spacing: -0.012em; margin: 0 0 12px; }
.answer p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 16px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
tr.ours td, tr.ours th { background: color-mix(in srgb, var(--c-blue) 8%, transparent); }
.cta { background: var(--night); color: var(--night-ink); border-radius: var(--radius); padding: 40px 36px; margin: 56px 0 0; }
.cta h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 34px); }
.cta p { color: var(--night-soft); font-size: 18px; margin: 0 0 22px; }
.cta .btn.ghost { color: var(--night-ink); border-color: #3a3a44; }

/* Small screens */
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 26px 16px 26px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--night-line); }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--night-line); }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 60px; }
  .mc { margin-top: 44px; }
  .hero .space:nth-child(5) { display: none; }
  .mc.mini .space:nth-child(5) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(even) { padding: 22px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--night-line); }
  .cta { padding: 30px 24px; }
}

/* --- Second pass (25 Nov): logo, real captures, shorter home page --- */
.brand img { width: 28px; height: 28px; }
.hero-logo { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 22px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)); }
.shot { margin: 60px auto 0; max-width: 980px; }
.shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid #2c2c38; }
.shot figcaption, .cap { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.night .shot figcaption { color: var(--night-soft); }
.hero.has-shot { padding-top: 52px; padding-bottom: 72px; }
.hero.has-shot .shot { margin-top: 48px; }

.how { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; }
.how .box img { width: 100%; height: auto; }
.how h2 { margin-bottom: 26px; }
.spaces-line { margin: -12px 0 26px; font-size: 17px; line-height: 1.45; color: var(--sc-ink-soft, #a2968a); }
.plain-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.plain-steps li { counter-increment: s; position: relative; padding-left: 50px; font-size: 20px; line-height: 1.4; letter-spacing: -0.012em; min-height: 34px; display: flex; align-items: center; }
.plain-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px;
}
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 60px; text-align: center; }
.trio .art { height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.trio h3 { font-size: 20px; margin-bottom: 6px; }
.trio p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.trio .slim { background: #121217; }
.mc.inpage { border-radius: 20px; border-bottom: 1px solid #2c2c38; padding: 0; -webkit-mask-image: none; mask-image: none; margin-top: 56px; max-width: 860px; }
.mc.inpage .mc-bar { border-radius: 20px; border-bottom: 0; }
.prose .shot { margin: 28px 0 8px; }
.prose .shot.small { max-width: 360px; margin-left: auto; margin-right: auto; }
.prose .shot.small img { border: 0; border-radius: 0; }
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; gap: 28px; }
  .how .box { max-width: 340px; margin: 0 auto; }
  .trio { grid-template-columns: 1fr; gap: 34px; }
}

/* --- Hero: two real screenshots of the whole screen, short swipe and fully open --- */
.shot.stage { max-width: 1040px; }
.stage-frame {
  position: relative; aspect-ratio: 2000 / 1295; overflow: hidden;
  border-radius: 16px; border: 1px solid #2c2c38; background: #0d4a7a;
}
.shot.stage .stage-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0; transition: opacity .8s ease;
}
.stage[data-view="slim"] .is-full, .stage[data-view="full"] .is-slim { opacity: 0; }
.stage-tabs {
  display: inline-flex; gap: 4px; margin: 18px auto 0; padding: 4px;
  border-radius: 999px; background: #17171c; border: 1px solid #2c2c38;
}
.stage-tabs[hidden] { display: none; }
.stage-tabs button {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--night-soft);
  padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
}
.stage-tabs button[aria-pressed="true"] { background: #f5f5f7; color: #101014; }
.stage-tabs button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .shot.stage .stage-img { transition: none; } }

/* === Scroll pass (25 Nov): the hero is one pinned screen; the visitor's scroll does the swipe === */
html { scroll-behavior: auto; }
.nav { position: fixed; left: 0; right: 0; top: 0; }
body.draft .draft-bar {
  position: fixed; left: 12px; bottom: 12px; z-index: 30; max-width: calc(100vw - 24px);
  border-radius: 999px; padding: 6px 13px; font-size: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.guide-head { padding-top: 118px; }

.hero-act {
  padding: 0; background: var(--night); color: var(--night-ink);
  /* 0 to 1 while the headline leaves and the screen grows */
  --k1: clamp(0, calc((var(--sc-p, 0) - 0.08) / 0.30), 1);
}
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) 46px;
  padding: 86px 20px 8px; text-align: center;
}
.hero-copy { opacity: calc(1 - var(--k1)); transform: translateY(calc(var(--k1) * -44px)); will-change: opacity, transform; }
.hero-copy.is-out { visibility: hidden; }
.hero-copy h1 { font-size: clamp(34px, min(6vw, 7.4vh), 68px); }
.hero-copy .lede { color: var(--night-soft); margin-top: 16px; font-size: clamp(17px, min(2vw, 2.5vh), 22px); }
.hero-copy .btn-row { justify-content: center; margin-top: 24px; }
.hero-copy .btn.ghost { color: var(--night-ink); border-color: #3a3a44; }
.hero-screen-wrap { container-type: size; width: 100%; min-height: 0; margin-top: 26px; display: grid; place-items: end center; }
.hero-screen {
  position: relative; margin: 0; overflow: hidden;
  width: min(100cqw, calc(100cqh * 1.5444)); aspect-ratio: 2000 / 1295;
  border-radius: 12px; border: 1px solid #2c2c38; background: #0d4a7a;
  transform-origin: 50% 100%;
  transform: scale(calc(1 + (var(--grow, 1) - 1) * var(--k1)));
  will-change: transform;
}
.hero-screen img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* Mission Control opens in one clean change at a set point in the scroll, not a slow blend:
   two different screens half-mixed looked messy when the visitor paused part-way. */
.hero-screen .is-full { opacity: 0; transition: opacity .26s ease; }
.hero-act.is-open .hero-screen .is-full { opacity: 1; }
.hero-captions { position: relative; width: 100%; }
.hero-captions p { position: absolute; left: 0; right: 0; top: 13px; margin: 0; font-size: 16px; letter-spacing: -0.01em; color: var(--night-ink); }
.hero-captions p.quiet { font-size: 13px; color: var(--night-soft); letter-spacing: 0; }

section.after-pin { padding-top: 64px; }
.lead-left { text-align: left; }
.lead-left .lede { margin-left: 0; }

@media (max-width: 700px) {
  /* A phone screen is taller than the screenshot is wide, so the picture cannot grow. It rises into the
     space the headline leaves instead, and its caption goes with it. */
  .hero-stage { padding: 76px 14px 8px; grid-template-rows: auto minmax(0, 1fr) 64px; }
  .hero-screen-wrap, .hero-captions { transform: translateY(calc(var(--k1) * -26svh)); will-change: transform; }
  .hero-captions p { font-size: 14px; line-height: 1.3; top: 8px; padding: 0 6px; }
  body.draft .hero-stage { padding-bottom: 46px; }
  body.draft .draft-bar { font-size: 11px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy { opacity: 1; transform: none; }
  .hero-copy.is-out { visibility: visible; }
  .hero-screen, .hero-screen-wrap, .hero-captions { transform: none; }
  .hero-screen .is-full { transition: none; }
}


footer { background: var(--night); color: var(--night-soft); border-top-color: var(--night-line); }
footer a { color: var(--night-soft); }

/* === The look Glyn chose on 25 Nov: black from top to bottom, with a soft purple glow that stays
   with the visitor all the way down the page. Home page only; fixed whatever their light or dark setting. === */
.night .price small { color: var(--night-soft); }
body.home { background: #09090c; }
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 58% at 60% 100%, rgba(122, 73, 214, .30), transparent 72%),
    radial-gradient(55% 40% at 12% 0%, rgba(122, 73, 214, .10), transparent 70%),
    #09090c;
}
body.home .hero-act, body.home .night, body.home footer { background: transparent; }
section.dark {
  --bg: #09090c; --bg-soft: #101014; --ink: #f5f5f7; --ink-soft: #a9a9b4; --line: rgba(255, 255, 255, .12);
  --link: #9db8ff; --card: #15151a; --btn: #f5f5f7; --btn-ink: #101014;
  background: transparent; color: var(--ink);
}
body.home footer { border-top-color: rgba(255, 255, 255, .10); }

/* === Top menu as a glass bar: anchored to the top, full width, see-through. It blurs and brightens what
   passes beneath it, with a soft sheen and a fine bright line along its lower edge. === */
.nav {
  top: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .07)), rgba(18, 18, 24, .62);
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.08);
  backdrop-filter: blur(24px) saturate(190%) brightness(1.08);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .28);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 50% 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
}
.nav .wrap { position: relative; }
body.home .nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .06)), rgba(18, 18, 26, .34);
}
.nav-links a { color: rgba(255, 255, 255, .78); }
.nav-links a:hover { color: #fff; }

/* === The guide page in the same black and purple as the home page, fixed whatever the visitor's setting. === */
body.glow {
  --bg: #09090c; --bg-soft: rgba(255, 255, 255, .06); --ink: #f5f5f7; --ink-soft: #a9a9b4; --line: rgba(255, 255, 255, .13);
  --link: #9db8ff; --card: #15151a; --btn: #f5f5f7; --btn-ink: #101014;
  background: #09090c; color: var(--ink);
}
body.glow::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 58% at 60% 100%, rgba(122, 73, 214, .30), transparent 72%),
    radial-gradient(55% 40% at 12% 0%, rgba(122, 73, 214, .10), transparent 70%),
    #09090c;
}
body.glow footer { background: transparent; border-top-color: rgba(255, 255, 255, .10); }
body.glow .nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .06)), rgba(18, 18, 26, .34);
}
body.glow .cta { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); }
body.glow tr.ours td, body.glow tr.ours th { background: rgba(122, 73, 214, .20); }
body.glow .prose strong, body.glow .path { color: #ffffff; }

/* The site logo (Glyn's choice, 26 Nov): three purple panels, then "Rename" over "Desktops".
   The same logo is drawn in the app's rename box. Full-size version: assets/logo.svg. */
.nav .wrap { height: 62px; }
.brand { flex-direction: row; align-items: center; gap: 10px; line-height: 1; }
.brand-mark { height: 36px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text span { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; }
.hero-stage { padding-top: 94px; }
.guide-head { padding-top: 126px; }
[id] { scroll-margin-top: 74px; }
@media (max-width: 700px) { .hero-stage { padding-top: 84px; } }

/* Buy buttons in the logo purple with white text, so they stand out next to the white Download button
   (Glyn, 26 Nov). White on #7a49d6 is 5.6:1 contrast. */
.btn.buy { background: var(--c-purple); color: #ffffff; border-color: var(--c-purple); box-shadow: 0 6px 22px rgba(122, 73, 214, .35); }
.btn.buy:hover { opacity: 1; background: #8a5ae6; border-color: #8a5ae6; }

/* Guide: the apps comparison table (26 Nov) */
table.apps-table { min-width: 640px; font-size: 15px; }
table.apps-table tbody th { width: 130px; }
.table-note { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
