/*
 * Offivelle's website: the app's own look — graphite and gold, Apple's system font, Liquid Glass.
 * The colors are the app's Golden Hour theme (apps/web/src/ui/theme.css): dark by default, light
 * when the visitor's system is light. The glass and buttons follow apps/web/src/ui/glass.css.
 */
:root {
  color-scheme: dark light;
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --fs: 1;
  --spring: cubic-bezier(0.32, 1.32, 0.48, 1);
  --ease: cubic-bezier(0.25, 0.8, 0.3, 1);
  --max: 1160px;
  --radius: 22px;

  /* Dark: the app's Golden Hour. */
  --bg: #121419;
  --bg-2: #181b21;
  --card: #1d2129;
  --world: #15181c;
  --ink: 255 255 255;
  --text: #f5f5f7;
  --text-2: rgb(235 235 245 / 0.86);
  --muted: rgb(235 235 245 / 0.6);
  --line: rgb(255 255 255 / 0.1);
  --glass-1: 52 56 66;
  --glass-2: 22 24 30;
  --glass-3: 40 44 52;
  --glass-a: 0.7;
  --glass-blur: 28px;
  --glass-sat: 190%;
  --glass-sheen: 0.07;
  --rim: rgb(255 255 255 / 0.2);
  --rim-hi: rgb(255 255 255 / 0.46);
  --rim-lo: rgb(255 255 255 / 0.07);
  --spec: 0.22;
  --shadow: 0 20px 44px rgb(0 0 0 / 0.3), 0 2px 6px rgb(0 0 0 / 0.2);
  --ctl-top: rgb(255 255 255 / 0.15);
  --ctl-bottom: rgb(255 255 255 / 0.05);
  --ctl-border: rgb(255 255 255 / 0.16);
  --ctl-hi: rgb(255 255 255 / 0.3);
  --ctl-hover: rgb(255 255 255 / 0.1);
  --accent: #e9b44c;
  --accent-rgb: 233 180 76;
  --on-accent: #1d1606;
  --accent-text: #f5d38a;
  --good: #30d158;
  /* Around the Mac window in scene 6. */
  --desk: rgb(30 33 40 / 0.9);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ece8e1;
    --bg-2: #f5f2ec;
    --card: #fbf9f5;
    --world: #d9d6cf;
    --ink: 0 0 0;
    --text: #241f17;
    --text-2: rgb(36 31 23 / 0.84);
    --muted: rgb(60 54 45 / 0.66);
    --line: rgb(0 0 0 / 0.1);
    --glass-1: 255 252 246;
    --glass-2: 246 242 234;
    --glass-3: 255 250 242;
    --glass-a: 0.76;
    --rim: rgb(255 255 255 / 0.7);
    --rim-hi: rgb(255 255 255 / 0.95);
    --rim-lo: rgb(0 0 0 / 0.05);
    --spec: 0.55;
    --shadow: 0 18px 40px rgb(0 0 0 / 0.14), 0 2px 6px rgb(0 0 0 / 0.08);
    --ctl-top: rgb(255 255 255 / 0.92);
    --ctl-bottom: rgb(255 255 255 / 0.62);
    --ctl-border: rgb(0 0 0 / 0.09);
    --ctl-hi: rgb(255 255 255 / 1);
    --ctl-hover: rgb(0 0 0 / 0.05);
    --accent: #c08417;
    --accent-rgb: 192 132 23;
    --on-accent: #ffffff;
    --accent-text: #8a5f11;
    --good: #1a7f37;
    --desk: rgb(226 222 214 / 0.86);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
img,
video {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  width: min(var(--max), 100% - 40px);
  margin: 0 auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ── Liquid Glass (the app's material: tint, sheen, specular light, rim, blur) ── */
.glass {
  background:
    radial-gradient(130% 65% at 12% -12%, rgb(255 255 255 / var(--spec)), rgb(255 255 255 / 0) 52%),
    radial-gradient(
      80% 55% at 105% 125%,
      rgb(255 255 255 / calc(var(--spec) * 0.4)),
      rgb(255 255 255 / 0) 60%
    ),
    linear-gradient(160deg, rgb(255 255 255 / var(--glass-sheen)), rgb(255 255 255 / 0) 60%),
    linear-gradient(
      160deg,
      rgb(var(--glass-1) / var(--glass-a)),
      rgb(var(--glass-2) / calc(var(--glass-a) - 0.08)) 55%,
      rgb(var(--glass-3) / calc(var(--glass-a) - 0.03))
    );
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--rim);
  box-shadow:
    inset 0 1px 0 var(--rim-hi),
    inset 0 -1px 0 var(--rim-lo),
    inset 0 0 22px rgb(255 255 255 / 0.04),
    var(--shadow);
}
/* System Settings → Accessibility → Reduce transparency: solid surfaces, no blur. */
@media (prefers-reduced-transparency: reduce) {
  .glass {
    --glass-a: 0.97;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --line: rgb(var(--ink) / 0.28);
    --rim: rgb(var(--ink) / 0.4);
    --muted: var(--text-2);
    --glass-a: 0.94;
  }
}

/* ── Buttons: the app's gold primary and glass capsules ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, var(--ctl-top), var(--ctl-bottom));
  border: 1px solid var(--ctl-border);
  box-shadow:
    inset 0 1px 0 var(--ctl-hi),
    0 1px 2px rgb(0 0 0 / 0.12);
  cursor: pointer;
  transition:
    transform 0.22s var(--spring),
    background-color 0.15s,
    box-shadow 0.2s;
}
.btn:hover {
  background:
    linear-gradient(var(--ctl-hover), var(--ctl-hover)),
    linear-gradient(180deg, var(--ctl-top), var(--ctl-bottom));
}
.btn:active {
  transform: scale(0.96);
}
.btn.gold {
  color: var(--on-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent));
  border: 1px solid rgb(255 255 255 / 0.42);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -2px 6px rgb(0 0 0 / 0.14),
    0 6px 16px rgb(var(--accent-rgb) / 0.28);
}
.btn.gold:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, white), var(--accent));
}
.btn.small {
  min-height: 34px;
  padding: 0 15px;
  font-size: 14px;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

/* ── Top bar: a glass capsule, like the app's ── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--max), 100% - 28px);
  height: 58px;
  padding: 0 10px 0 18px;
  border-radius: 29px;
  transform: translateX(-50%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* ── The home page: the office behind eight scenes ── */
.office {
  position: fixed;
  inset: 0 0 auto;
  z-index: 0;
  height: 100lvh;
  overflow: hidden;
  background: var(--world);
}
.still {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  background: var(--dw) center / cover no-repeat;
  transition: opacity 0.8s var(--ease);
}
@media (prefers-color-scheme: light) {
  .still {
    background-image: var(--lw);
  }
}
@media (max-aspect-ratio: 4 / 5), (max-width: 600px) {
  .still {
    background-image: var(--dt);
  }
  @media (prefers-color-scheme: light) {
    .still {
      background-image: var(--lt);
    }
  }
}
.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Before the page script runs (and without it): the first picture. */
.still[data-still="1"] {
  display: block;
  opacity: 1;
}
/* Pictures only (no 3D on this device): every scene's picture, crossfading. */
:root[data-office="still"] .still {
  display: block;
}
:root[data-office] .still[data-still="1"] {
  opacity: 0;
}
:root[data-scene="1"] .still[data-still="1"],
:root[data-scene="2"] .still[data-still="2"],
:root[data-scene="3"] .still[data-still="3"],
:root[data-scene="4"] .still[data-still="4"],
:root[data-scene="5"] .still[data-still="5"],
:root[data-scene="6"] .still[data-still="6"],
:root[data-scene="7"] .still[data-still="7"],
:root[data-scene="8"] .still[data-still="8"] {
  display: block;
  opacity: 1;
}
/* The live office: no more pictures to fetch once it shows. */
:root[data-office="live"] .office div.still {
  display: none;
}
.live {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
:root[data-office="live"] .live {
  opacity: 1;
}
/* The office is to look at: the page scrolls over it (name tags aren't buttons here). */
.office,
.office .agent-label .name,
.office .agent-label .say {
  pointer-events: none;
}

.scenes {
  position: relative;
  z-index: 2;
}
.scene {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 100px max(24px, 5.5vw) 56px;
}
.panel {
  width: min(600px, 100%);
  padding: 42px 46px 44px;
  border-radius: 32px;
  --glass-a: 0.74;
}
@media (prefers-color-scheme: light) {
  .panel {
    --glass-a: 0.8;
  }
}
.panel h1,
.panel h2,
.plain h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}
.panel h1 {
  font-size: clamp(40px, 4.7vw, 70px);
}
.panel h2 {
  font-size: clamp(30px, 3.3vw, 48px);
}
/* After the first scene the words step back a little: more of the office shows. */
.scene + .scene .panel {
  width: min(540px, 100%);
}
.panel p {
  margin: 20px 0 0;
  max-width: 31em;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.panel p.fine {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Scene 5: a request waiting for your OK. */
.request {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: rgb(var(--ink) / 0.06);
  border: 1px solid rgb(var(--accent-rgb) / 0.55);
  box-shadow: inset 0 1px 0 var(--rim-lo);
}
.panel .request p {
  margin: 0;
  font-size: 16px;
}
.panel .request .request-who {
  color: var(--muted);
  font-size: 14px;
}
.panel .request .request-what {
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
}
.panel .request .request-why {
  margin-top: 4px;
  font-size: 15px;
}
.command pre {
  font-family: var(--mono);
  font-size: 14px;
}
.request .btn {
  justify-self: start;
  margin-top: 14px;
}
.btn.glow {
  animation: glow 2.4s var(--ease) infinite;
}
@keyframes glow {
  50% {
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.6),
      inset 0 -2px 6px rgb(0 0 0 / 0.14),
      0 0 0 6px rgb(var(--accent-rgb) / 0.22),
      0 8px 30px rgb(var(--accent-rgb) / 0.55);
  }
}
.panel .request-done {
  display: none;
  margin-top: 10px;
  color: var(--good);
  font-weight: 600;
}
.request[data-state="approved"] {
  border-color: rgb(var(--ink) / 0.14);
}
.request[data-state="approved"] .btn {
  animation: none;
  opacity: 0.55;
}
.request[data-state="approved"] .request-done {
  display: block;
}

/* Scene 8: the one-line install. */
.command {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.command pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  border-radius: 14px;
  background: rgb(var(--ink) / 0.07);
  border: 1px solid var(--line);
  color: var(--text);
}

/* The scenes, on the right edge: where you are, and a way to jump. */
.rail {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-50%);
  transition: opacity 0.4s;
}
:root[data-after] .rail {
  opacity: 0;
  pointer-events: none;
}
.rail a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.rail a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--ink) / 0.35);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
  transition:
    transform 0.3s var(--spring),
    background 0.3s;
}
.rail a:hover::before {
  background: rgb(var(--ink) / 0.7);
}
:root[data-scene="1"] .rail a:nth-child(1)::before,
:root[data-scene="2"] .rail a:nth-child(2)::before,
:root[data-scene="3"] .rail a:nth-child(3)::before,
:root[data-scene="4"] .rail a:nth-child(4)::before,
:root[data-scene="5"] .rail a:nth-child(5)::before,
:root[data-scene="6"] .rail a:nth-child(6)::before,
:root[data-scene="7"] .rail a:nth-child(7)::before,
:root[data-scene="8"] .rail a:nth-child(8)::before {
  background: var(--accent);
  transform: scale(1.45);
}

/* Scene 6: the office in a window on your Mac, with a lock that settles on it. */
.mac {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.mac-window {
  position: absolute;
  inset: 15vh 4vw 9vh;
  border-radius: 18px;
  border: 1px solid var(--rim);
  box-shadow:
    0 0 0 100vmax var(--desk),
    0 30px 80px rgb(0 0 0 / 0.4);
  transform: scale(1.18);
  transition: transform 1.1s var(--ease);
}
.mac-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 17px 17px 0 0;
  background: rgb(var(--glass-2) / 0.88);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.mac-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.mac-bar i:nth-child(2) {
  background: #febc2e;
}
.mac-bar i:nth-child(3) {
  background: #28c840;
}
.mac-bar span {
  margin-left: 10px;
}
.mac-lock {
  position: absolute;
  top: calc(15vh - 30px);
  left: 60%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  color: var(--accent);
  background: rgb(var(--glass-2) / 0.92);
  border: 1px solid rgb(var(--accent-rgb) / 0.6);
  box-shadow:
    inset 0 1px 0 var(--rim-hi),
    0 10px 30px rgb(0 0 0 / 0.35);
  opacity: 0;
  transform: translateY(-28px) scale(1.25);
  transition:
    opacity 0.4s var(--ease) 0.45s,
    transform 0.8s var(--spring) 0.45s;
}
:root[data-scene="6"] .mac {
  opacity: 1;
}
:root[data-scene="6"] .mac-window {
  transform: none;
}
:root[data-scene="6"] .mac-lock {
  opacity: 1;
  transform: none;
}

/*
 * Scene 7: a phone floats in, showing its lock screen. A request arrives as Offivelle's own
 * notification (title, body and the Approve / Deny buttons the app sends); Approve is tapped and,
 * as on a real phone, the notification turns into "Approved". Sizes inside follow the phone's own
 * height (cqh), so one design fits a desk screen and a phone.
 */
.phone {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 67%;
  width: 300px;
  height: 620px;
  margin: -310px 0 0 -150px;
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(160deg, #3a3f48, #16181d);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    0 40px 90px rgb(0 0 0 / 0.45);
  container-type: size;
  opacity: 0;
  transform: translateY(70px) rotate(4deg);
  transition:
    opacity 0.6s var(--ease),
    transform 1s var(--ease);
}
:root[data-phone] .phone {
  opacity: 1;
  transform: rotate(-2deg);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 3.4em 0.9em 0;
  border-radius: 2.95em;
  /* A quiet lock-screen wallpaper: night glass with a warm glow, like the app's icon. */
  background:
    radial-gradient(120% 60% at 50% 105%, rgb(233 180 76 / 0.32), transparent 70%),
    linear-gradient(170deg, #2b3140, #12141a 70%);
  color: #fff;
  font-size: 2.3cqh;
  line-height: 1.35;
  text-align: left;
}
@media (prefers-color-scheme: light) {
  .phone-screen {
    background:
      radial-gradient(120% 60% at 50% 105%, rgb(233 180 76 / 0.45), transparent 70%),
      linear-gradient(170deg, #c9d3e3, #8e9bb2 75%);
  }
}
/* No specificity: each line's own margin below wins. */
:where(.phone) p {
  margin: 0;
}
.phone-clock {
  font-family: var(--display);
  font-size: 4.6em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}
.phone-date {
  margin-top: 0.4em;
  font-size: 1.05em;
  font-weight: 600;
  text-align: center;
  opacity: 0.85;
}
.phone-notes {
  display: grid;
  margin-top: 2.2em;
}
.push {
  margin-top: 0.6em;
  padding: 0.85em 0.95em 0.9em;
  border-radius: 1.3em;
  color: #1d1d1f;
  background: rgb(246 246 248 / 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0.4em 1.4em rgb(0 0 0 / 0.18);
}
@media (prefers-color-scheme: dark) {
  .push {
    color: #f5f5f7;
    background: rgb(44 46 54 / 0.82);
  }
}
.push-app {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.85em;
  opacity: 0.75;
}
.push-app img {
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.3em;
}
.push-app span {
  margin-left: auto;
}
.push-title {
  margin-top: 0.35em;
  font-weight: 650;
}
.push-body {
  margin-top: 0.1em;
  font-size: 0.95em;
}
.push-done {
  display: none;
}
.push-actions {
  display: flex;
  gap: 1.6em;
  margin-top: 0.7em;
  padding-top: 0.6em;
  border-top: 1px solid rgb(128 128 128 / 0.25);
  font-weight: 650;
  color: var(--accent-text);
}
@media (prefers-color-scheme: light) {
  .push-actions {
    color: #8a5f11;
  }
}
.push-act {
  position: relative;
}
/* The request arrives on top of the older notification. */
.push-new {
  max-height: 0;
  margin-top: 0;
  padding-block: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-1.5em) scale(0.96);
  transition:
    max-height 0.6s var(--ease),
    margin 0.6s var(--ease),
    padding 0.6s var(--ease),
    opacity 0.4s var(--ease),
    transform 0.6s var(--spring);
}
:root[data-phone="ask"] .push-new,
:root[data-phone="tap"] .push-new,
:root[data-phone="ok"] .push-new {
  max-height: 14em;
  margin-top: 0.6em;
  padding-block: 0.85em 0.9em;
  opacity: 1;
  transform: none;
}
:root[data-phone="ok"] .push-new .push-asking,
:root[data-phone="ok"] .push-new .push-actions {
  display: none;
}
:root[data-phone="ok"] .push-new .push-done {
  display: inline;
}
.phone-tap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3em;
  height: 3em;
  margin: -1.5em 0 0 -1.5em;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.45);
  opacity: 0;
  transform: scale(0.4);
}
:root[data-phone="tap"] .phone-tap {
  animation: tap 0.5s var(--ease) forwards;
}
@keyframes tap {
  40% {
    opacity: 1;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* ── After the scenes: plain sections ── */
.after {
  position: relative;
  z-index: 3;
  background: var(--bg);
  box-shadow: 0 -40px 80px var(--bg);
}
.plain {
  padding: 88px 0;
  /* Links to #faq and the others land below the top bar. */
  scroll-margin-top: 40px;
}
.plain + .plain {
  border-top: 1px solid var(--line);
}
.narrow {
  max-width: 760px;
}
.plain h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.section-lead {
  margin: 16px 0 0;
  max-width: 640px;
  color: var(--text-2);
  font-size: 19px;
  text-wrap: pretty;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ctl-border);
  background: linear-gradient(180deg, var(--ctl-top), var(--ctl-bottom));
  box-shadow: inset 0 1px 0 var(--ctl-hi);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover {
  border-color: rgb(var(--accent-rgb) / 0.6);
}
.more {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent-text);
  font-weight: 600;
  text-underline-offset: 4px;
}
.faq {
  margin-top: 28px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 650;
  font-size: 18px;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  margin: 10px 0 0;
  color: var(--text-2);
}

.footer {
  position: relative;
  z-index: 3;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}
.footer-row a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-row a:hover {
  color: var(--text);
}
.footer-row .grow {
  flex: 1;
}

/* ── Other pages (download, privacy, compare) ── */
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.032em;
}
h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.02em;
}
.page {
  padding: 132px 0 96px;
}
.page h1 {
  font-size: clamp(36px, 5.5vw, 56px);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 15px;
}
.eyebrow a {
  text-decoration: none;
}
.page .cta {
  margin-top: 28px;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 44px;
  font-size: 26px;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose code,
.prose pre {
  font-family: var(--mono);
  font-size: 14px;
}
.prose pre {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow-x: auto;
  color: var(--text-2);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose td:first-child {
  white-space: nowrap;
}
.prose .command {
  margin-top: 0;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  max-width: 760px;
}
.download {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.download h3 {
  margin: 0;
  font-size: 21px;
}
.download p {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 15px;
}
.download.mine {
  border-color: rgb(var(--accent-rgb) / 0.55);
}
.this-mac {
  margin: 0;
  color: var(--accent-text);
  font-weight: 650;
  font-size: 14px;
}
.device-note + .downloads {
  margin-top: 20px;
}
.send-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.send-row code {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.note {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
  background: rgb(var(--accent-rgb) / 0.08);
  color: var(--text-2);
  max-width: 760px;
}

/* Compare (compare.html, vs-*.html) */
.vs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.vs-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
.vs-card:hover {
  border-color: rgb(var(--accent-rgb) / 0.55);
}
.vs-name {
  font-size: 20px;
  font-weight: 700;
}
.vs-maker {
  color: var(--muted);
  font-size: 14px;
}
.vs-is {
  flex: 1;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}
.vs-go {
  margin-top: 10px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 650;
}
.compare-h {
  margin: 56px 0 18px;
  font-size: 26px;
}
.compare-scroll {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.compare {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.45;
}
.compare th,
.compare td {
  min-width: 190px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--text-2);
}
.compare thead th {
  color: var(--text);
  font-size: 15px;
  background: var(--bg-2);
}
.compare thead a {
  color: inherit;
}
.compare tbody th {
  min-width: 130px;
  color: var(--text);
  font-weight: 650;
}
.compare tbody th,
.compare thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-2);
}
.compare .us {
  background: rgb(var(--accent-rgb) / 0.08);
  color: var(--text);
}
.compare thead .us {
  color: var(--accent-text);
}
.compare.two {
  width: 100%;
  table-layout: fixed;
}
.compare.two th,
.compare.two td {
  min-width: 0;
}
.compare.two thead th:first-child {
  width: 20%;
}
.compare tr:last-child > * {
  border-bottom: 0;
}
.compare .unknown {
  color: var(--muted);
  font-style: italic;
}
sup.src {
  margin-left: 2px;
  font-size: 11px;
  line-height: 0;
}
sup.src a {
  color: var(--muted);
}
.verdicts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.verdict {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.verdict.ours {
  border-color: rgb(var(--accent-rgb) / 0.4);
}
.verdict h2 {
  margin: 0 0 8px;
  font-size: 21px;
  text-align: left;
}
.verdict ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 15px;
}
.sources li {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.sources :target {
  color: var(--accent-text);
}
.fair {
  margin-top: 32px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Tall screens (phones): words at the bottom, the office above them ── */
@media (max-aspect-ratio: 4 / 5), (max-width: 600px) {
  .scene {
    align-items: flex-end;
    padding: 88px 12px max(14px, env(safe-area-inset-bottom));
  }
  .panel {
    width: 100%;
    padding: 24px 22px 24px;
    border-radius: 28px;
  }
  .panel h1 {
    font-size: clamp(32px, 8.6vw, 46px);
  }
  .panel h2 {
    font-size: clamp(27px, 7.4vw, 40px);
  }
  .panel p {
    margin-top: 12px;
    font-size: 16px;
  }
  .cta {
    margin-top: 18px;
  }
  .cta .btn {
    flex: 1;
  }
  .request {
    margin-top: 14px;
    padding: 14px 16px 16px;
  }
  .rail {
    display: none;
  }
  .mac-window {
    inset: 12vh 12px 50vh;
  }
  .mac-lock {
    top: calc(12vh - 30px);
    left: 50%;
  }
  .mac-bar span {
    display: none;
  }
  /* The phone fills the top of a small screen: names and words behind it step aside. */
  :root[data-phone] .labels {
    opacity: 0;
    transition: opacity 0.4s var(--ease);
  }
  .phone {
    top: 7vh;
    left: 50%;
    width: 22vh;
    height: 45vh;
    margin: 0 0 0 -11vh;
    padding: 1vh;
    border-radius: 4vh;
  }
}

@media (max-width: 860px) {
  .nav {
    gap: 12px;
    height: 54px;
  }
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .downloads,
  .verdicts {
    grid-template-columns: 1fr;
  }
  .compare.two thead tr,
  .compare.two tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .compare.two thead th:first-child {
    display: none;
  }
  .compare.two tbody th {
    grid-column: 1 / -1;
    position: static;
    padding-bottom: 4px;
    border-bottom: 0;
  }
  .plain {
    padding: 64px 0;
  }
  .page {
    padding-top: 108px;
  }
}

/* Short, wide screens (a phone held sideways): smaller words so they fit. */
@media (max-height: 560px) and (min-aspect-ratio: 4 / 5) {
  .scene {
    padding-top: 80px;
  }
  .panel {
    padding: 24px 28px;
  }
  .panel h1 {
    font-size: 34px;
  }
  .panel h2 {
    font-size: 28px;
  }
  .panel p {
    margin-top: 10px;
    font-size: 15px;
  }
}

/* Reduce Motion: scenes change with fades only. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn.glow {
    animation: none;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.6),
      0 0 0 5px rgb(var(--accent-rgb) / 0.22),
      0 8px 30px rgb(var(--accent-rgb) / 0.45);
  }
  :root .mac-window,
  :root .mac-lock,
  :root .phone,
  :root .push-new,
  :root[data-phone] .phone {
    transform: none;
  }
  :root[data-phone="tap"] .phone-tap {
    animation: none;
  }
  .push-new {
    transition: opacity 0.4s var(--ease);
  }
}

/* Pictures of the office for this page (apps/site/capture.ts): the office only. */
:root[data-still] .nav,
:root[data-still] .rail,
:root[data-still] .scenes,
:root[data-still] .mac,
:root[data-still] .phone {
  visibility: hidden;
}
